file_path
stringlengths
6
261
repository
stringclasses
2 values
language
stringclasses
1 value
content
stringlengths
121
454k
app/src/main/java/com/omgodse/notally/activities/MakeList.kt
unknown_repo
kotlin
package com.omgodse.notally.activities import android.os.Bundle import android.text.Editable import android.text.InputType import android.text.TextWatcher import android.view.KeyEvent import android.view.View import android.view.inputmethod.EditorInfo import androidx.activity.viewModels import androidx.lifecycle.Obser...
core/src/jsMain/kotlin/dev/fritz2/binding/store.kt
unknown_repo
kotlin
package dev.fritz2.binding import dev.fritz2.lenses.Lens import dev.fritz2.lenses.Lenses import dev.fritz2.remote.Socket import dev.fritz2.remote.body import dev.fritz2.resource.Resource import kotlinx.coroutines.Job import kotlinx.coroutines.MainScope import kotlinx.coroutines.flow.* import kotlinx.coroutines.plus im...
app/src/main/java/ke/co/tulivuapps/hoteltours/features/component/HobbyHorseToursHotelFavoriteButton.kt
unknown_repo
kotlin
package ke.co.tulivuapps.hobbyhorsetours.features.component import androidx.compose.foundation.layout.size import androidx.compose.material.Icon import androidx.compose.material.IconButton import androidx.compose.material.icons.Icons import androidx.compose.material.icons.filled.Favorite import androidx.compose.runtim...
core/src/androidTest/java/com/sagar/core/widget/TextViewExtensionTest.kt
unknown_repo
kotlin
package com.sagar.core.widget import android.widget.TextView import androidx.test.core.app.ApplicationProvider import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.async import kotlinx.coroutines.flow.first import kotlinx.coroutines.runBlocking import org.junit.Assert.assertEquals import org.junit.Test cla...
app/src/main/java/com/frogobox/wallpaper/util/WallpaperHelper.kt
unknown_repo
kotlin
package com.frogobox.wallpaper.util import android.app.WallpaperManager import android.content.Context import android.os.Build import android.os.StrictMode import android.widget.Toast import java.io.IOException import java.net.URL /** * Created by <NAME> * FrogoBox Inc License * ===================================...
baselibs/src/main/java/com/yg/newsproject/baselibs/config/UserManager.kt
unknown_repo
kotlin
package com.xktt.renovation.baselibs.config import android.text.TextUtils import com.blankj.utilcode.util.SPUtils class UserManager private constructor(){ //用户基本信息 private val USER_NICKNAME = "nickname" private val USER_TOKEN = "usertoken" private val USER_HEAD = "userhead" private val USER_MOBILE...
app/src/main/java/com/example/appstory/ui/viewmodel/LoginViewModel.kt
unknown_repo
kotlin
package com.example.appstory.ui.viewmodel import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import com.example.appstory.data.api.ApiService import com.example.appstory.data.response.LoginResponse import com.example.appstory.utils.SharedPreferencesHelper im...
viewpager2/src/androidTest/kotlin/pl/wezze/tech/rxbinding/viewpager2/RxViewPager2TestActivity.kt
unknown_repo
kotlin
package pl.wezze.tech.rxbinding.viewpager2 import android.app.Activity import android.os.Bundle import android.view.View import android.view.ViewGroup import android.view.ViewGroup.LayoutParams import android.view.ViewGroup.LayoutParams.MATCH_PARENT import androidx.recyclerview.widget.RecyclerView import androidx.view...
analytics/src/test/java/com/segment/analytics/integrations/BasePayloadTest.kt
unknown_repo
kotlin
/** * The MIT License (MIT) * * Copyright (c) 2014 Segment.io, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to...
src/main/java/com/example/justfollow/Local04.kt
unknown_repo
kotlin
package com.example.justfollow import android.os.Bundle import android.util.Log import android.view.View import android.widget.AdapterView import androidx.appcompat.app.AppCompatActivity import androidx.recyclerview.widget.DividerItemDecoration import kotlinx.android.synthetic.main.activity_local03.* import kotlinx.an...
app/src/main/java/com/kickstarter/viewmodels/RewardsFragmentViewModel.kt
unknown_repo
kotlin
package com.kickstarter.viewmodels import android.util.Pair import androidx.annotation.NonNull import com.kickstarter.libs.Environment import com.kickstarter.libs.FragmentViewModel import com.kickstarter.libs.rx.transformers.Transformers import com.kickstarter.libs.utils.BackingUtils import com.kickstarter.models.Proj...
packages/SystemUI/src/com/android/systemui/statusbar/notification/logging/NotificationMemoryMonitor.kt
unknown_repo
kotlin
/* * * Copyright (C) 2022 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
android/src/main/kotlin/top/kikt/bt/ble/bluetooth_ble/core/BleDevice.kt
unknown_repo
kotlin
package top.kikt.bt.ble.bluetooth_ble.core import android.bluetooth.* import io.flutter.plugin.common.MethodCall import io.flutter.plugin.common.MethodChannel import io.flutter.plugin.common.PluginRegistry import top.kikt.bt.ble.bluetooth_ble.ext.checkProperty import top.kikt.bt.ble.bluetooth_ble.ext.toMap import top....
lib_kotlin/src/main/java/lib/kalu/adapter/animation/SlideInBottomAnimation.kt
unknown_repo
kotlin
package lib.kalu.adapter.animation import android.animation.Animator import android.animation.ObjectAnimator import android.view.View class SlideInBottomAnimation : BaseAnimation { override fun getAnimators(view: View): Array<Animator> { return arrayOf(ObjectAnimator.ofFloat(view, "translationY", view.me...
FetLifeKotlin/app/src/main/java/com/bitlove/fetlife/view/generic/CardViewHolder.kt
unknown_repo
kotlin
package com.bitlove.fetlife.view.generic import android.support.v7.widget.RecyclerView import com.bitlove.fetlife.databinding.ItemDataCardBinding import com.bitlove.fetlife.logic.dataholder.CardViewDataHolder import com.bitlove.fetlife.logic.interactionhandler.CardViewInteractionHandler class CardViewHolder(itemDataC...
service/src/main/kotlin/fr/nihilus/music/service/playback/AudioOnlyExtractorsFactory.kt
unknown_repo
kotlin
/* * Copyright 2021 Thibault Seisel * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
app/src/main/java/com/argon/launcher/util/ContextExtension.kt
unknown_repo
kotlin
package com.argon.launcher.util import android.content.Context import androidx.datastore.preferences.preferencesDataStore import java.io.File val Context.dataStorePreferences by preferencesDataStore( name = "datastore_prefs" ) fun Context.getIconFolderPath(label: String): String { return "${applicationConte...
xwidget/src/main/java/com/scott/xwidget/widget/XImageButton.kt
unknown_repo
kotlin
package com.scott.xwidget.widget import android.content.Context import android.util.AttributeSet import androidx.appcompat.widget.AppCompatImageButton import com.scott.xwidget.annotation.XWidgetView @XWidgetView("com.scott.xwidget") class XImageButton(context: Context, attrs: AttributeSet?) : AppCompatImageButton(con...
app/src/main/java/edu/arimanius/letsqueeze/ui/profile/ProfileFragment.kt
unknown_repo
kotlin
package edu.arimanius.letsqueeze.ui.profile import android.os.Bundle import android.text.Editable import android.text.TextWatcher import androidx.fragment.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.view.inputmethod.EditorInfo import android.wid...
agp-7.1.0-alpha01/tools/base/lint/libs/lint-tests/src/test/java/com/android/tools/lint/checks/SdkIntDetectorTest.kt
unknown_repo
kotlin
/* * Copyright (C) 2021 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
app/src/main/java/com/vdcodeassociate/fitme/ui/fragments/AvatarDialog.kt
unknown_repo
kotlin
package com.vdcodeassociate.fitme.ui.fragments import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.DialogFragment import com.vdcodeassociate.fitme.R import com.vdcodeassociate.fitme.constants.Constants.AVATAR_ID import com.vdco...
app/src/main/java/com/example/tank_controller/settings/SettingsViewModel.kt
unknown_repo
kotlin
package com.example.tank_controller.settings import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.example.tank_controller.utilities.singleArgViewModelFactory import kotlinx.coroutines.launch import java.lang.Exception class SettingsViewModel(private val repository: SettingsRepositor...
project/PushKtx/src/main/java/afkt/push/ui/activity/OtherActivity.kt
unknown_repo
kotlin
package afkt.push.ui.activity import afkt.push.R import afkt.push.base.BaseActivity import androidx.viewbinding.ViewBinding /** * detail: 其他页面 ( 二级页面 ) * @author Ttt * 用于演示以 [SplashActivity] -> [MainActivity] -> [OtherActivity] 进入顺序后 * 点击推送通知栏区分 APP 在后台、前台、未启动各种情况展示效果 */ class OtherActivity : BaseActivity<ViewBi...
app/src/main/java/com/mapbox/maps/testapp/examples/RawSourceLayerActivity.kt
unknown_repo
kotlin
package com.mapbox.maps.testapp.examples import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import com.mapbox.common.ValueConverter import com.mapbox.maps.Style import com.mapbox.maps.testapp.R import kotlinx.android.synthetic.main.activity_simple_map.* /** * Example showcasing raw source/layer...
stream-video-android-core/src/androidTest/kotlin/io/getstream/video/android/core/RingTest.kt
unknown_repo
kotlin
/* * Copyright (c) 2014-2023 Stream.io Inc. All rights reserved. * * Licensed under the Stream License; * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://github.com/GetStream/stream-video-android/blob/main/LICENSE * * Unless required by ...
app/src/main/java/com/bulletapps/candypricer/presentation/util/SafeRequestExtension.kt
unknown_repo
kotlin
package com.bulletapps.candypricer.presentation.util import android.util.Log import com.bulletapps.candypricer.config.Resource import com.bulletapps.candypricer.config.UiText import com.bulletapps.candypricer.domain.model.ErrorModel import com.google.gson.Gson import kotlinx.coroutines.CoroutineDispatcher import kotli...
app/src/main/java/com/team_no_yes/matzip_exe/utils/CheckLocation.kt
unknown_repo
kotlin
package com.team_no_yes.matzip_exe.utils import android.Manifest import android.content.Context import android.content.pm.PackageManager import android.location.Location import android.location.LocationManager import android.util.Log import androidx.core.content.ContextCompat class CheckLocation(val context: Context)...
k4-scaffolding/src/main/kotlin/com/luggsoft/k4/scaffolding/ScaffoldDefinition.kt
unknown_repo
kotlin
package com.luggsoft.k4.scaffolding import com.luggsoft.k4.scaffolding.nodes.Node data class ScaffoldDefinition( val name: String, val nodes: List<Node> )
parkdatetimepicker/src/main/java/com/smparkworld/parkdatetimepicker/ui/date/DateMonthAdapter.kt
unknown_repo
kotlin
package com.smparkworld.parkdatetimepicker.ui.date import android.view.LayoutInflater import android.view.ViewGroup import androidx.recyclerview.widget.RecyclerView import com.smparkworld.parkdatetimepicker.databinding.PdtpItemDateMonthBinding import com.smparkworld.parkdatetimepicker.ui.date.model.DayUiModel import c...
TripKitData/src/main/java/util/ReactiveSharedPreferences.kt
unknown_repo
kotlin
package util import android.content.SharedPreferences import rx.Emitter import rx.Observable typealias PreferenceKey = String fun SharedPreferences.onChanged(): Observable<PreferenceKey> = Observable .fromEmitter<PreferenceKey>({ val listener = SharedPreferences.OnSharedPreferenceChangeListener { _...
simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Abbrobotstudio.kt
unknown_repo
kotlin
package compose.icons.simpleicons import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.Companion.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap.Companion.Butt import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter impor...
app/src/main/java/com/example/trzeszczu/dietmanagement2017/RegisterActivity.kt
unknown_repo
kotlin
package com.example.trzeszczu.dietmanagement2017 import android.os.Bundle import android.support.v7.app.AppCompatActivity import android.util.Log import android.view.WindowManager import android.widget.Toast import kotlinx.android.synthetic.main.activity_register.* import okhttp3.RequestBody import okhttp3.Response im...
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/ArrowAltToRight.kt
unknown_repo
kotlin
package me.localx.icons.rounded.filled import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.Companion.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap.Companion.Butt import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter ...
app/src/main/java/com/sonphil/canadarecallsandsafetyalerts/presentation/recall/details/RecallImageExt.kt
unknown_repo
kotlin
package com.sonphil.canadarecallsandsafetyalerts.presentation.recall.details import android.graphics.drawable.Drawable import android.widget.ImageView import com.bumptech.glide.Glide import com.bumptech.glide.RequestBuilder import com.sonphil.canadarecallsandsafetyalerts.domain.model.RecallImage /** * Created by Son...
app/src/main/java/bakiev/artour/asyncu/ui/GoogleSignInWidget.kt
unknown_repo
kotlin
package bakiev.artour.asyncu.ui import androidx.compose.runtime.Composable import androidx.compose.ui.viewinterop.AndroidView import com.google.android.gms.common.SignInButton @Composable fun GoogleSignInBlock(onClick: () -> Unit) { AndroidView( factory = { context -> SignInButton(context).app...
app/src/main/java/com/iamkurtgoz/ecommerceandroid/ui/Extensions.kt
unknown_repo
kotlin
package com.iamkurtgoz.ecommerceandroid.ui import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.size import androidx.compose.foundation.layout.width import androidx.compose.ui.Modifier import androidx.compose.ui.unit.dp fun Modifier.width(width: Double) = width(width.dp) fun Modi...
app/src/main/java/dev/kdrag0n/android12ext/ui/BaseFragment.kt
unknown_repo
kotlin
package dev.kdrag0n.android12ext.ui import android.os.Bundle import android.view.LayoutInflater import android.view.MenuItem import android.view.View import android.view.ViewGroup import androidx.annotation.CallSuper import androidx.annotation.LayoutRes import androidx.fragment.app.Fragment import androidx.navigation....
data-android/src/main/java/ly/david/data/persistence/MusicBrainzTypeRoomConverters.kt
unknown_repo
kotlin
package ly.david.data.persistence import androidx.room.TypeConverter import java.util.Date import ly.david.data.network.MusicBrainzResource // Just need to make sure possible values cannot include this delimiter private const val DELIMITER = "," internal class MusicBrainzRoomTypeConverters { // For things like "...
V2rayNG/app/src/main/kotlin/com/v2ray/ang/AngApplication.kt
unknown_repo
kotlin
package com.v2ray.ang import android.app.Application import android.content.Context import com.orhanobut.logger.LogLevel import com.orhanobut.logger.Logger import com.squareup.leakcanary.LeakCanary import com.v2ray.ang.util.AngConfigManager import me.dozen.dpreference.DPreference import org.jetbrains.anko.defaultShare...
navikit-demo/domain/src/main/java/com/yandex/navikitdemo/domain/utils/SystemExtensions.kt
unknown_repo
kotlin
package com.yandex.navikitdemo.domain.utils import android.content.res.Configuration import android.content.res.Resources fun Resources.isNightModeActive(): Boolean { return when (configuration.uiMode and Configuration.UI_MODE_NIGHT_MASK) { Configuration.UI_MODE_NIGHT_YES -> true else -> false ...
mylibrary/src/main/java/com/esp/library/exceedersesp/controllers/applications/ESP_LIB_AddApplicationsActivity.kt
unknown_repo
kotlin
package com.esp.library.exceedersesp.controllers.applications import android.content.Context import android.content.Intent import android.graphics.Rect import android.os.Bundle import android.view.Gravity import android.view.MotionEvent import android.view.inputmethod.InputMethodManager import android.widget.EditText ...
secure-shared-preferences/src/sharedTest/java/com/github/ibara1454/secure_shared_preferences/secret/SecretKeysTest.kt
unknown_repo
kotlin
package com.github.ibara1454.secure_shared_preferences.secret import android.content.SharedPreferences import androidx.test.ext.junit.runners.AndroidJUnit4 import androidx.test.platform.app.InstrumentationRegistry import com.github.ibara1454.secure_shared_preferences.cipher.Decoder import com.github.ibara1454.secure_s...
core/src/main/java/com/loitp/views/layout/swipeBack/SwipeBackLayout.kt
unknown_repo
kotlin
package com.loitp.views.layout.swipeBack import android.annotation.SuppressLint import android.app.Activity import android.content.Context import android.graphics.Canvas import android.graphics.Color import android.util.AttributeSet import android.view.MotionEvent import android.view.View import android.view.ViewGroup...
src/test/java/org/sleepydragon/kutil/android/support/fragment/FragmentManagerExtTest.kt
unknown_repo
kotlin
/* * Copyright (C) 2017 <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
app/src/main/java/org/stepic/droid/storage/migration/MigrationFrom72To73.kt
unknown_repo
kotlin
package org.stepic.droid.storage.migration import androidx.room.migration.Migration import androidx.sqlite.db.SupportSQLiteDatabase import org.stepik.android.cache.lesson.structure.DbStructureLesson object MigrationFrom72To73 : Migration(72, 73) { override fun migrate(db: SupportSQLiteDatabase) { db.execS...
RSS/app/src/main/java/br/ufpe/cin/if710/rss/StaticBroadcastReceiver.kt
unknown_repo
kotlin
package br.ufpe.cin.if710.rss import android.app.Notification import android.app.NotificationChannel import android.app.NotificationManager import android.app.NotificationManager.IMPORTANCE_HIGH import android.app.PendingIntent import android.content.BroadcastReceiver import android.content.Context import android.cont...
shared/src/commonMain/kotlin/ui/screens/post/tabs/BestPostScreen.kt
unknown_repo
kotlin
package ui.screens.post.tabs import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items import androidx.compose.foundation...
app/src/main/java/com/vultisig/wallet/data/db/migrations/MIGRATIONS.kt
unknown_repo
kotlin
package com.vultisig.wallet.data.db.migrations import androidx.room.migration.Migration import androidx.sqlite.db.SupportSQLiteDatabase val MIGRATION_1_2 = object : Migration(1, 2) { override fun migrate(db: SupportSQLiteDatabase) { db.execSQL( """ CREATE TABLE IF NOT EXISTS `chain...
webview/src/main/java/com/jessi/webview/utils/MainLooper.kt
unknown_repo
kotlin
package com.jessi.webview.utils import android.os.Handler import android.os.Looper class MainLooper private constructor(): Handler(Looper.getMainLooper()) { companion object{ val instance by lazy (mode = LazyThreadSafetyMode.SYNCHRONIZED){ MainLooper() } } fun runOnUiThread(runnable: Runnable) ...
app/src/main/java/ca/on/hojat/gamenews/core/data/auth/di/CoreModule.kt
unknown_repo
kotlin
package ca.hojat.gamehub.core.data.auth.di import android.content.Context import androidx.datastore.core.DataStore import androidx.datastore.dataStore import ca.hojat.gamehub.core.data.auth.datastores.file.NewProtoOauthCredentials import ca.hojat.gamehub.core.data.auth.datastores.file.ProtoOauthCredentialsSerializer i...
app/src/main/java/com/example/bitfitt/DayEntity.kt
unknown_repo
kotlin
package com.example.bitfit import androidx.room.Entity import androidx.room.PrimaryKey import androidx.room.ColumnInfo @Entity(tableName = "dayTable") data class DayEntity( @PrimaryKey (autoGenerate = true) val id: Long = 0, @ColumnInfo(name = "date") val date: String?, @ColumnInfo(name = "comments") val ...
app/src/main/java/com/ltu/m7019e/v23/themoviedb/MovieListFragment.kt
unknown_repo
kotlin
package com.ltu.m7019e.v23.themoviedb import android.os.Bundle import android.util.Log import android.view.* import androidx.fragment.app.Fragment import androidx.core.view.MenuHost import androidx.core.view.MenuProvider import androidx.lifecycle.Lifecycle import androidx.lifecycle.ViewModelProvider import androidx.na...
app/src/test/java/com/dicoding/picodiploma/loginwithanimation/view/main/MainViewModelTest.kt
unknown_repo
kotlin
package com.dicoding.picodiploma.loginwithanimation.view.main import androidx.arch.core.executor.testing.InstantTaskExecutorRule import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.paging.AsyncPagingDataDiffer import androidx.paging.PagingData import androidx.paging.PagingSourc...
foryouandme/src/main/java/com/foryouandme/ui/auth/onboarding/step/integration/IntegrationViewModel.kt
unknown_repo
kotlin
package com.foryouandme.ui.auth.onboarding.step.integration import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.foryouandme.core.arch.flow.ErrorFlow import com.foryouandme.core.arch.flow.LoadingFlow import com.foryouandme.core.arch.flow.StateUpdateFlow import com.foryouandme.core.ar...
app/src/main/java/com/example/authenticationmethods/google_authentication/presentation/GoogleSignInViewModel.kt
unknown_repo
kotlin
package com.example.authenticationmethods.google_authentication.presentation import androidx.lifecycle.ViewModel import com.example.authenticationmethods.google_authentication.presentation.model.SignInResult import com.example.authenticationmethods.google_authentication.presentation.model.SignInState import kotlinx.co...
mediapicker/src/main/java/com/greentoad/turtlebody/mediapicker/ui/component/media/video/VideoListFragment.kt
unknown_repo
kotlin
package com.greentoad.turtlebody.mediapicker.ui.component.media.video import android.os.Bundle import android.view.View import androidx.appcompat.app.AlertDialog import androidx.fragment.app.Fragment import androidx.recyclerview.widget.GridLayoutManager import com.greentoad.turtlebody.mediapicker.ui.ActivityLibMain im...
pillarbox-demo-tv/src/main/java/ch/srgssr/pillarbox/demo/tv/MainActivity.kt
unknown_repo
kotlin
/* * Copyright (c) SRG SSR. All rights reserved. * License information is available from the LICENSE file. */ package ch.srgssr.pillarbox.demo.tv import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.foundation.background import andro...
app/src/main/java/com/tahakorkem/tuttur/Movie.kt
unknown_repo
kotlin
package com.tahakorkem.tuttur import android.os.Parcelable import com.tahakorkem.tuttur.listadapter.common.Identifiable import kotlinx.parcelize.Parcelize @Parcelize data class Movie( override val id: Int, val title: String, val description: String, val rating: Float, ) : Identifiable, Parcelable
samples/demo/src/wasmJsMain/kotlin/main.kt
unknown_repo
kotlin
import androidx.compose.runtime.CompositionLocalProvider import androidx.compose.ui.ExperimentalComposeUiApi import androidx.compose.ui.window.ComposeViewport import kotlinx.browser.document import kotlinx.browser.window @OptIn(ExperimentalComposeUiApi::class) fun main() { ComposeViewport(document.body!!) { ...
app/src/main/java/com/kneelawk/flashkardsandroid/AnnotatedStringParser.kt
unknown_repo
kotlin
package com.kneelawk.flashkardsandroid import androidx.compose.ui.graphics.Color import androidx.compose.ui.text.AnnotatedString import androidx.compose.ui.text.SpanStyle import androidx.compose.ui.text.style.BaselineShift import androidx.compose.ui.unit.sp import java.io.IOException object AnnotatedStringParser { ...
lib/src/main/java/com/sd/lib/compose/dialogview/DialogView.kt
unknown_repo
kotlin
package com.sd.lib.compose.dialogview import android.content.Context import androidx.compose.runtime.Composable import androidx.compose.ui.platform.ComposeView import com.sd.lib.activity.fLastActivity import com.sd.lib.vdialog.IDialog object DialogViewHook { /** 拦截[setComposable]的内容 */ var hook: @Composable (...
base/base-chat/src/main/java/qsos/base/chat/utils/CircularAnimHelper.kt
unknown_repo
kotlin
package qsos.base.chat.utils import android.animation.Animator import android.animation.AnimatorListenerAdapter import android.annotation.SuppressLint import android.view.View import android.view.ViewAnimationUtils import kotlin.math.sqrt /** * @author : 华清松 * 扩大与缩小动画 */ object CircularAnimHelper { const val ...
app/src/main/java/com/dtmilano/android/culebratester2/Holder.kt
unknown_repo
kotlin
package com.dtmilano.android.culebratester2 import android.content.Context import android.view.WindowManager import androidx.test.uiautomator.UiDevice import java.io.File import java.lang.ref.WeakReference import javax.inject.Inject import javax.inject.Singleton /** * Holds some important objects accessible from app...
sample/src/main/java/smartrecycleradapter/feature/simpleitem/SimpleItemViewHolder.kt
unknown_repo
kotlin
package smartrecycleradapter.feature.simpleitem import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.TextView import smartadapter.viewholder.SmartViewHolder import smartrecycleradapter.R /* * Created by <NAME> on 2019-08-04. * Copyright (c) All rights rese...
app/src/main/java/cz/inventi/inventiskeleton/utils/ImageUtils.kt
unknown_repo
kotlin
package cz.inventi.inventiskeleton.utils import android.app.Activity import android.content.Context import android.widget.ImageView import com.bumptech.glide.Glide import com.bumptech.glide.Priority import com.bumptech.glide.load.engine.DiskCacheStrategy import com.bumptech.glide.request.RequestOptions import cz.inve...
compose/ui/ui/src/skikoMain/kotlin/androidx/compose/ui/platform/Wrapper.skiko.kt
unknown_repo
kotlin
/* * Copyright 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
app/src/main/java/com/goodjia/multiplemedia/sample/CustomTaskFragment.kt
unknown_repo
kotlin
package com.goodjia.multiplemedia.sample import android.os.Bundle import android.view.View import com.goodjia.multiplemedia.fragment.component.PlayTimeMediaFragment import kotlinx.android.synthetic.main.fragment_custom.* class CustomTaskFragment : PlayTimeMediaFragment(R.layout.fragment_custom) { override fun on...
app/src/main/java/com/battlelancer/seriesguide/history/MovieHistoryAdapter.kt
unknown_repo
kotlin
// Copyright 2023 <NAME> // SPDX-License-Identifier: Apache-2.0 package com.battlelancer.seriesguide.history import android.content.Context class MovieHistoryAdapter( context: Context, itemClickListener: OnItemClickListener ) : BaseHistoryAdapter(context, itemClickListener) { override fun onBindHistoryI...
app/src/main/java/com/xdzl/golden/mango/application/viewmodel/SabotListViewModel.kt
unknown_repo
kotlin
package com.xdzl.golden.mango.application.viewmodel import androidx.lifecycle.ViewModel class SabotListViewModel : ViewModel() { // TODO: Implement the ViewModel }
app/src/main/java/com/foreveross/atwork/modules/workbench/activity/admin/WorkbenchAdminAdminActivity.kt
unknown_repo
kotlin
package com.foreveross.atwork.modules.workbench.activity.admin import android.content.Context import android.content.Intent import androidx.fragment.app.Fragment import androidx.localbroadcastmanager.content.LocalBroadcastManager import com.foreveross.atwork.AtworkApplicationLike import com.foreveross.atwork.infrastru...
library/src/main/java/com/zsp/library/layout/shadow/ShadowLayout.kt
unknown_repo
kotlin
package com.zsp.library.layout.shadow import android.content.Context import android.graphics.* import android.util.AttributeSet import android.view.View import android.widget.FrameLayout import androidx.annotation.ColorInt import com.zsp.library.R import com.zsp.library.kit.containFlag import com.zsp.library.kit.creat...
app/src/main/java/com/sjn/stamp/ui/item/holder/SongHistoryViewHolder.kt
unknown_repo
kotlin
package com.sjn.stamp.ui.item.holder import android.app.Activity import android.view.View import android.widget.ImageView import android.widget.TextView import com.sjn.stamp.R import com.sjn.stamp.utils.ViewHelper import eu.davidea.flexibleadapter.FlexibleAdapter class SongHistoryViewHolder(view: View, adapter: Flexi...
rxmaps-kotlin/src/main/kotlin/com/laimiux/rxmaps/kotlin/googlemaps.kt
unknown_repo
kotlin
package com.laimiux.rxmaps.kotlin import com.google.android.gms.maps.CameraUpdateFactory import com.google.android.gms.maps.GoogleMap import com.google.android.gms.maps.model.CameraPosition import com.google.android.gms.maps.model.LatLng import com.laimiux.rxmaps.RxGoogleMaps import rx.Observable public fun GoogleMa...
rxmaps-kotlin/src/main/kotlin/com/laimiux/rxmaps/kotlin/googlemaps.kt
unknown_repo
kotlin
package com.laimiux.rxmaps.kotlin import com.google.android.gms.maps.CameraUpdateFactory import com.google.android.gms.maps.GoogleMap import com.google.android.gms.maps.model.CameraPosition import com.google.android.gms.maps.model.LatLng import com.laimiux.rxmaps.RxGoogleMaps import rx.Observable public fun GoogleMa...
shared/src/commonMain/kotlin/ui/mainScreen/tournament/TournamentScreen.kt
unknown_repo
kotlin
package ui.mainScreen.tournament import androidx.compose.foundation.background import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.BoxScope import androidx.compose.runtime.Composable import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxWi...
app/src/main/java/com/alexjlockwood/beesandbombs/demos/HexZoom.kt
unknown_repo
kotlin
package com.alexjlockwood.beesandbombs.demos import androidx.compose.foundation.Canvas import androidx.compose.foundation.isSystemInDarkTheme import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.ui.Modifier import androidx.compose.ui.draw.clipToBounds import andro...
app/src/main/java/al/ahgitdevelopment/municion/repository/database/dao/LicenseDao.kt
unknown_repo
kotlin
package al.ahgitdevelopment.municion.repository.database.dao import al.ahgitdevelopment.municion.datamodel.License import al.ahgitdevelopment.municion.repository.database.KEY_ID import al.ahgitdevelopment.municion.repository.database.TABLE_LICENSES import androidx.room.Dao import androidx.room.Insert import androidx.r...
app/src/main/java/com/example/simpledraggableshape/util/ColorUtil.kt
unknown_repo
kotlin
package com.example.simpledraggableshape.util import android.graphics.Color import kotlin.random.Random fun randomColor(): Int { return Color.argb( 255, Random.nextInt(256), Random.nextInt(256), Random.nextInt(256) ) }
app/src/main/kotlin/com/codeka/picscan/ui/viewmodel/ProjectViewModel.kt
unknown_repo
kotlin
package com.codeka.picscan.ui.viewmodel import android.content.Context import android.content.Intent import android.graphics.Bitmap import android.net.Uri import android.util.Log import androidx.core.content.FileProvider import androidx.lifecycle.* import com.codeka.picscan.App import com.codeka.picscan.export.PdfExpo...
jdroid-android-core/src/main/java/com/jdroid/android/social/twitter/TwitterHelper.kt
unknown_repo
kotlin
package com.jdroid.android.social.twitter import android.content.ActivityNotFoundException import android.content.Intent import android.net.Uri import com.jdroid.android.activity.ActivityLauncher import com.jdroid.android.application.AbstractApplication import com.jdroid.android.social.SocialAction import com.jdroid....
src/androidMain/kotlin/com/flyng/kalculus/core/manager/ThemeManager.kt
unknown_repo
kotlin
package com.flyng.kalculus.core.manager import android.util.Log import androidx.compose.ui.graphics.colorspace.ColorSpaces import com.flyng.kalculus.BuildConfig import com.flyng.kalculus.exposition.visual.primitive.ColorType import com.flyng.kalculus.theme.ThemeMode import com.flyng.kalculus.theme.ThemeProfile import ...
android/navigation_module_compose/src/main/java/com/example/sdk/sample/utils/PermissionUtils.kt
unknown_repo
kotlin
package com.example.sdk.sample.utils import android.Manifest import android.app.Activity import android.content.Context import android.content.pm.PackageManager import androidx.core.app.ActivityCompat import androidx.core.content.ContextCompat import androidx.lifecycle.Lifecycle import androidx.lifecycle.LifecycleObse...
app/src/main/java/com/github/pakka_papad/data/daos/AlbumArtistDao.kt
unknown_repo
kotlin
package com.github.pakka_papad.data.daos import androidx.room.* import com.github.pakka_papad.Constants import com.github.pakka_papad.data.music.AlbumArtist import com.github.pakka_papad.data.music.AlbumArtistWithSongs import kotlinx.coroutines.flow.Flow @Dao interface AlbumArtistDao { @Insert(onConflict = OnCon...
feature/search-bar/ui/src/main/kotlin/ru/maksonic/beresta/feature/search_bar/ui/widget/EmptySearchResult.kt
unknown_repo
kotlin
package ru.maksonic.beresta.feature.search_bar.ui.widget import androidx.compose.foundation.Image import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.aspectRatio import androidx.compose.foundation.layout.fillMaxWidth import android...
app/src/main/java/com/example/frani/examen1moviles/Libro.kt
unknown_repo
kotlin
package com.example.frani.examen1moviles import android.os.Parcel import android.os.Parcelable class Libro(var icbn: Int, var nombre: String, var numeroPaginas: Int, var edicion: Int, var fechaPublicacion: String, var nombreEditorial: String, var autorID: Int) : Parcelable { constructor(parcel: Parcel) : this( ...
app/src/main/java/com/example/root/graduation_app/ui/activity/ThemeActivity.kt
unknown_repo
kotlin
package com.example.root.graduation_app.ui.activity import android.app.Activity import android.content.Intent import android.os.Build import android.os.Bundle import android.support.v4.content.ContextCompat import android.support.v7.app.AppCompatActivity import com.example.root.graduation_app.R import kotlinx.android....
app/src/main/kotlin/com/zj/weather/view/weather/viewmodel/WeatherRepository.kt
unknown_repo
kotlin
package com.zj.weather.view.weather.viewmodel import android.app.Application import android.location.Address import android.location.Location import com.zj.model.SUCCESSFUL import com.zj.model.air.AirNowBean import com.zj.model.getErrorText import com.zj.model.indices.WeatherLifeIndicesBean import com.zj.model.room.Pl...
app/src/main/java/com/ttpsc/dynamics365fieldService/viewmodels/SettingsViewModel.kt
unknown_repo
kotlin
package com.ttpsc.dynamics365fieldService.viewmodels import androidx.lifecycle.ViewModel import com.ttpsc.dynamics365fieldService.core.abstraction.AuthorizationManager import javax.inject.Inject class SettingsViewModel @Inject constructor() : ViewModel() { @Inject lateinit var authorizationManager: Authoriza...
services/shortcuts/src/main/java/city/zouitel/shortcuts/shorts/newRecord.kt
unknown_repo
kotlin
package city.zouitel.shortcuts.shorts import android.content.Context import android.content.Intent import android.content.pm.ShortcutInfo import androidx.core.graphics.drawable.IconCompat import city.zouitel.systemDesign.CommonIcons fun newRecord(context: Context): ShortcutInfo { val intent = Intent(context, cont...
app/src/main/java/io/github/droidkaigi/confsched2018/data/repository/SessionDataRepository.kt
unknown_repo
kotlin
package io.github.droidkaigi.confsched2018.data.repository import android.support.annotation.CheckResult import android.support.annotation.VisibleForTesting import io.github.droidkaigi.confsched2018.data.api.DroidKaigiApi import io.github.droidkaigi.confsched2018.data.api.SessionFeedbackApi import io.github.droidkaigi...
app/src/main/java/danielabbott/personalorganiser/ui/SettingsFragment.kt
unknown_repo
kotlin
package danielabbott.personalorganiser.ui import android.app.AlertDialog import android.content.Intent import android.os.Build import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.* import androidx.appcompat.widget.SwitchCompat import ...
commonCompose/src/commonMain/kotlin/tk/zwander/commonCompose/model/DecryptModel.kt
unknown_repo
kotlin
package tk.zwander.common.model import androidx.compose.runtime.* import tk.zwander.common.data.DecryptFileInfo /** * The model for the Decrypter view. */ class DecryptModel : BaseModel() { /** * Contains the encrypted file and decrypted target. */ var fileToDecrypt by mutableStateOf<DecryptFileIn...
app/src/test/java/com/dicoding/moviesapps/PagedListUtils.kt
unknown_repo
kotlin
package com.dicoding.moviesapps import androidx.paging.PagedList import org.mockito.Mockito.`when` import org.mockito.Mockito.mock object PagedListUtil { fun <T> mockPagedList(list: List<T>): PagedList<T> { val pagedList = mock(PagedList::class.java) as PagedList<T> `when`(pagedList.size).thenRet...
ui/src/main/kotlin/io/rippledown/appbar/KbInfoItem.kt
unknown_repo
kotlin
package io.rippledown.appbar import androidx.compose.material.DropdownMenuItem import androidx.compose.material.Text import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier import androidx.compose.ui.semantics.contentDescription import androidx.compose.ui.semantics.semantics interface KbSelecti...
app/src/main/java/com/ando/chathouse/ui/screen/SettingScreen.kt
unknown_repo
kotlin
@file:OptIn( ExperimentalMaterial3Api::class, ExperimentalMaterial3Api::class, ExperimentalMaterial3Api::class ) package com.ando.chathouse.ui.screen import androidx.activity.compose.BackHandler import androidx.compose.foundation.background import androidx.compose.foundation.gestures.Orientation import androi...
app/src/main/java/com/duckduckgo/app/di/SystemComponentsModule.kt
unknown_repo
kotlin
/* * Copyright (c) 2020 DuckDuckGo * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
app/src/main/java/com/example/dapurmamatur/viewmodel/DetailViewModelFactory.kt
unknown_repo
kotlin
package com.example.dapurmamatur.viewmodel import androidx.lifecycle.* import com.example.dapurmamatur.data.repository.MainRepository class DetailViewModelFactory(private val repository: MainRepository) : ViewModelProvider.Factory { override fun <T : ViewModel> create(modelClass: Class<T>): T { if (modelC...
app/src/main/java/com/github/sms/di/component/ApplicationComponent.kt
unknown_repo
kotlin
/* Copyright 2019 <NAME> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writin...
app/src/main/java/com/android/esmond/myapplication/MyViewModelFactory.kt
unknown_repo
kotlin
package com.android.esmond.myapplication import android.app.Application import android.arch.lifecycle.ViewModel import android.arch.lifecycle.ViewModelProvider @Suppress("UNCHECKED_CAST") class MyViewModelFactory(val application: Application): ViewModelProvider.NewInstanceFactory() { override fun <T : ViewModel?>...
android/core/src/main/java/com/opensource/xt/core/XTManagedObject.kt
unknown_repo
kotlin
package com.opensource.xt.core import android.os.Handler import java.lang.ref.WeakReference import java.util.* /** * Created by cuiminghui on 2018/1/8. */ class XTManagedObject(obj: Any) { companion object { private val sharedHandler = Handler() } val objectUUID = UUID.randomUUID().toString()...