file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/com/guiying712/demo/SplashActivity.kt | unknown_repo | kotlin | package com.pedrorau.flawlesspoetrade
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
class SplashActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_splash)
}
} |
appintro/src/main/java/com/hb/introduction/IntroductionLottieAnimationBaseFragment.kt | unknown_repo | kotlin | package com.hb.introduction
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.animation.Animation
import android.widget.ImageView
import android.widget.TextView
import androidx.annotation.ColorInt
import androidx.annotation.LayoutRes
... |
richtext/src/main/java/com/keykat/richtext/CustomRichTextScope.kt | unknown_repo | kotlin | package com.keykat.richtext
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.wrapContentSize
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.materia... |
app/src/main/java/com/shaf/composescanner/QRCodeAnalyzer.kt | unknown_repo | kotlin | package com.shaf.composescanner
import androidx.camera.core.ExperimentalGetImage
import androidx.camera.core.ImageAnalysis
import androidx.camera.core.ImageProxy
import com.google.mlkit.vision.barcode.BarcodeScanning
import com.google.mlkit.vision.barcode.common.Barcode
import com.google.mlkit.vision.common.InputImage
... |
android/app/src/main/kotlin/com/v2ray/ang/ui/ScScannerActivity.kt | unknown_repo | kotlin | package com.v2ray.ang.ui
import android.Manifest
import android.content.*
import com.tbruyelle.rxpermissions.RxPermissions
import com.v2ray.ang.R
import com.v2ray.ang.util.AngConfigManager
import android.os.Bundle
import androidx.activity.result.contract.ActivityResultContracts
import com.v2ray.ang.extension.toast
cl... |
app/src/main/java/com/vitordmoraes/thecompanion/ui/addChar/AddCharacterActivity.kt | unknown_repo | kotlin | package com.vitordmoraes.thecompanion.ui.addChar
import android.content.Context
import android.content.Intent
import android.content.res.Resources
import android.os.Bundle
import android.widget.ArrayAdapter
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.vitordmoraes.thecompanion... |
pluto-plugins/plugins/rooms-database/lib/src/main/java/com/pluto/plugins/rooms/db/internal/DataModels.kt | unknown_repo | kotlin | package com.pluto.plugins.rooms.db.internal
import android.os.Parcelable
import androidx.annotation.DrawableRes
import androidx.annotation.Keep
import androidx.room.RoomDatabase
import com.pluto.plugins.rooms.db.R
import com.pluto.utilities.list.ListItem
import kotlinx.parcelize.Parcelize
@Keep
internal data class Da... |
fragment/fragment/src/androidTest/java/androidx/fragment/app/FragmentViewLifecycleTest.kt | unknown_repo | kotlin | /*
* Copyright 2018 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... |
libraries/easy-camera/src/main/kotlin/easy/camera/CameraPreviewImpl.kt | unknown_repo | kotlin | package easy.camera
import android.view.GestureDetector
import android.view.MotionEvent
import android.view.ViewGroup
import androidx.camera.core.ZoomState
import androidx.camera.view.PreviewView
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.g... |
compat/src/main/kotlin/dev/sanmer/hidden/compat/PackageInfoCompat.kt | unknown_repo | kotlin | package dev.sanmer.hidden.compat
import android.content.pm.ApplicationInfo
import android.content.pm.PackageInfo
import android.content.pm.PackageInfoHidden
import dev.rikka.tools.refine.Refine
object PackageInfoCompat {
val PackageInfo.isOverlayPackage get() =
Refine.unsafeCast<PackageInfoHidden>(this)
... |
uxmobile/src/main/java/sk/uxtweak/uxmobile/ui/ShakeDetector.kt | unknown_repo | kotlin | package sk.uxtweak.uxmobile.ui
import android.hardware.Sensor
import android.hardware.SensorEvent
import android.hardware.SensorEventListener
import android.hardware.SensorManager
import kotlin.math.sqrt
class ShakeDetector : SensorEventListener {
private var listener: OnShakeListener? = null
private var shak... |
app/src/main/java/com/beeglobaladmin/meditationuiwithcompose/ui/theme/HomeScreen.kt | unknown_repo | kotlin | package com.beeglobaladmin.meditationuiwithcompose.ui.theme
import androidx.compose.foundation.*
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyRow
import androidx.compose.material.Icon
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import ... |
Wechat_chatroom_helper_android/app/src/main/kotlin/com/zdy/project/wechat_chatroom_helper/wechat/plugins/hook/adapter/MainItemViewHolder.kt | unknown_repo | kotlin | package com.zdy.project.wechat_chatroom_helper.wechat.plugins.hook.adapter
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
class MainItemViewHolder(val itemView: ViewGroup) {
val containerView: ViewGroup = itemView.getChildAt(0) as ViewGroup
val avatarContainer = ... |
ime/android/src/main/kotlin/studio/lunabee/onesafe/ime/DecryptClipboardListener.kt | unknown_repo | kotlin | /*
* Copyright (c) 2023 Lunabee Studio
*
* 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 agree... |
feature/feature_pokemon_list/src/main/java/com/serj113/pokedex/feature/pokemonlist/ui/PokemonListFragment.kt | unknown_repo | kotlin | package com.serj113.pokedex.feature.pokemonlist.ui
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.ui.platform.ComposeView
import androidx.c... |
litho-it/src/main/java/com/facebook/litho/MountItemTestHelper.kt | unknown_repo | kotlin | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* 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 appl... |
app/src/main/java/com/getcode/view/login/PhoneConfirm.kt | unknown_repo | kotlin | package com.getcode.view.login
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.founda... |
cupertino-icons-extended/src/commonMain/kotlin/io/github/alexzhirkevich/cupertino/icons/outlined/Umbrella.kt | unknown_repo | kotlin | package io.github.alexzhirkevich.cupertino.icons.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... |
app/src/main/java/com/s16/febraury/Screens/Network/NetCityActivity.kt | unknown_repo | kotlin | package com.s16.febraury.Screens.Network
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.shape.RoundedCo... |
app/src/main/java/com/longdo/api3/App.kt | unknown_repo | kotlin | package com.longdo.api3
import android.app.Application
import android.webkit.WebView
import com.longdo.map3.BuildConfig
class App : Application() {
override fun onCreate() {
super.onCreate()
setupWebView()
}
private fun setupWebView() {
WebView.setWebContentsDebuggingEnabled(Buil... |
11-using-fragments-to-expand-ui/projects/starter/ListMaker/app/src/main/java/com/raywenderlich/listmaker/ui/main/ListSelectionRecyclerViewAdapter.kt | unknown_repo | kotlin | package com.trios2024amdj.listmaker.ui.main
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.trios2024amdj.listmaker.databinding.ListSelectionViewHolderBinding
import com.trios2024amdj.listmaker.models.TaskList
class ListSelectionRecyclerView... |
compose/ui/ui-test-junit4/src/androidAndroidTest/kotlin/androidx/compose/ui/test/junit4/IdlingResourceRegistryTest.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/udc/apptfg/viewmodel/orders/AddItemOrderViewModel.kt | unknown_repo | kotlin | package com.udc.apptfg.viewmodel.orders
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.firestore.FirebaseFirestore
import com.google.firebase.stora... |
app/src/main/java/com/gggames/hourglass/features/video/VideoModule.kt | unknown_repo | kotlin | package com.gggames.hourglass.features.video
import android.content.Context
import com.gggames.hourglass.core.di.AppContext
import com.google.android.exoplayer2.ExoPlayerFactory
import com.google.android.exoplayer2.SimpleExoPlayer
import dagger.Module
import dagger.Provides
@Module
class VideoModule {
@Provides
... |
common/sdk/settings/impl/src/androidMain/kotlin/io/chefbook/sdk/settings/impl/data/platform/IconSwitcherImpl.kt | unknown_repo | kotlin | package io.chefbook.sdk.settings.impl.data.platform
import android.content.ComponentName
import android.content.Context
import android.content.pm.PackageManager
import io.chefbook.sdk.settings.api.external.domain.entities.AppIcon
internal class IconSwitcherImpl(
private val context: Context,
) : IconSwitcher {
p... |
app/src/main/java/com/byteteam/bluesense/core/presentation/views/store/water_supplier/WaterSupplierScreen.kt | unknown_repo | kotlin | package com.byteteam.bluesense.core.presentation.views.store.water_supplier
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.material3.CircularProgress... |
app/src/main/java/com/dagan/lior/crypto_currency_market_price/login/presenter/LoginPresenter.kt | unknown_repo | kotlin | package com.dagan.lior.crypto_currency_market_price.login.presenter
import android.content.Context
import android.content.Intent
import android.widget.Toast
import androidx.annotation.NonNull
import com.google.firebase.auth.FirebaseUser
import com.dagan.lior.crypto_currency_market_price.bitcoinpricemainscreen.view.Cry... |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/BorderCornerIos.kt | unknown_repo | kotlin | package com.woowla.compose.icon.collections.tabler.tabler.outline
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.Round
import androidx.compose.ui.graphics... |
packages/nativescript-masonkit/src-native/mason-android/masonkit/src/main/java/org/nativescript/mason/masonkit/Utils.kt | unknown_repo | kotlin | package org.nativescript.mason.masonkit
import android.util.Log
val LengthPercentageZeroSize =
Size<LengthPercentage>(LengthPercentage.Zero, LengthPercentage.Zero)
val LengthPercentageAutoZeroSize =
Size<LengthPercentageAuto>(LengthPercentageAuto.Zero, LengthPercentageAuto.Zero)
val zeroSize = Size(0F, 0F)
val ... |
app/src/main/java/com/bluetoothversion1/android/MainActivity.kt | unknown_repo | kotlin | package com.bluetoothversion1.android
import android.Manifest
import android.app.Activity
import android.bluetooth.BluetoothAdapter
import android.bluetooth.BluetoothDevice
import android.bluetooth.BluetoothSocket
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
imp... |
finish/src/main/java/org/tensorflow/lite/examples/classification/MyDatabaseHelper.kt | unknown_repo | kotlin | package org.tensorflow.lite.examples.classification
import android.content.Context
import android.database.sqlite.SQLiteDatabase
import android.database.sqlite.SQLiteOpenHelper
import android.widget.Toast
class MyDatabaseHelper(var context:Context,name:String,version:Int):SQLiteOpenHelper(context,name,null,version) {... |
Kotlin/P39_a.kt | unknown_repo | kotlin | package com.example.three
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ArrayAdapter
import android.widget.ListView
class FragmentOne : Fragment() {
lateinit var view1: View
latei... |
doflib/src/main/java/no/danielzeller/doflib/opengl/VertexArray.kt | unknown_repo | kotlin | package no.danielzeller.blurbehindlib.opengl
import android.opengl.GLES20.*
import java.nio.ByteBuffer
import java.nio.ByteOrder
import java.nio.FloatBuffer
private const val BYTES_PER_FLOAT = 4
class VertexArray(vertexData: FloatArray) {
private val floatBuffer: FloatBuffer = ByteBuffer
.allocateD... |
app/src/main/java/dev/marcosfarias/pokedex/App.kt | unknown_repo | kotlin | package dev.marcosfarias.pokedex
import android.app.Application
import android.content.Context
import androidx.room.Room
import dev.marcosfarias.pokedex.database.AppDatabase
class App : Application() {
companion object {
var context: Context? = null
var database: AppDatabase? = null
}
ove... |
SovrinAgentApp/app/src/main/java/com/luxoft/supplychain/sovrinagentapp/ui/model/OrdersAdapter.kt | unknown_repo | kotlin | /*
* 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 writing, software
* distribut... |
modules/module-content/src/main/java/com/bbgo/module_content/webclient/WebClientFactory.kt | unknown_repo | kotlin | package com.cxz.wanandroid.webclient
import android.webkit.WebViewClient
/**
* @author guoyikai
* @date 2023/11/24
* @desc WebClientFactory
*/
object WebClientFactory {
val JIAN_SHU = "https://www.jianshu.com"
fun create(url: String): WebViewClient {
return when {
url.startsWith(JIAN... |
app/src/main/java/moe/feng/danmaqua/ui/main/DanmakuContextMenuDialogFragment.kt | unknown_repo | kotlin | package moe.feng.danmaqua.ui.main
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.os.bundleOf
import kotlinx.android.synthetic.main.main_danmaku_context_menu_dialog_layout.*
import moe.feng.common.eventshelper.of
import moe.feng.da... |
app/src/main/java/com/developerkurt/gamedatabase/ui/FavoriteGamesFragment.kt | unknown_repo | kotlin | package com.developerkurt.gamedatabase.ui
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.viewModels
import androidx.lifecycle.lifecycleScope
import androidx.navigation.findNavController
import com.developerkurt.gamedatabas... |
app/src/main/kotlin/com/cyb3rko/pazzword/fragments/analyzefragment/BottomLayoutTextView.kt | unknown_repo | kotlin | /*
* Copyright (c) 2023 Cyb3rKo
*
* 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 w... |
app/src/main/java/com/dkaera/mash/ui/onboarding/widgets/Password.kt | unknown_repo | kotlin | package com.crazy.musicdrops.ui.util
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.text.KeyboardActions
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material.*
import androidx.compose.material.icons.Icons
import androidx.compose.material.ic... |
feature/tasks/src/main/kotlin/com/ngapps/phototime/feature/tasks/SingleShootViewModel.kt | unknown_repo | kotlin | /*
* Copyright 2024 NGApps Dev (https://github.com/ngapp-dev). All rights reserved.
*
* 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
*
*... |
knee-compiler-plugin/src/main/kotlin/DownwardProperties.kt | unknown_repo | kotlin | package io.deepmedia.tools.knee.plugin.compiler
import com.squareup.kotlinpoet.KModifier
import io.deepmedia.tools.knee.plugin.compiler.codegen.CodegenProperty
import io.deepmedia.tools.knee.plugin.compiler.codegen.KneeCodegen
import io.deepmedia.tools.knee.plugin.compiler.context.KneeContext
import io.deepmedia.tools... |
card/src/main/java/com/adyen/checkout/card/internal/ui/view/CardListAdapter.kt | unknown_repo | kotlin | /*
* Copyright (c) 2019 <NAME>.
*
* This file is open source and available under the MIT license. See the LICENSE file for more info.
*
* Created by arman on 28/5/2019.
*/
package com.adyen.checkout.card.internal.ui.view
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclervie... |
aws-auth-cognito/src/test/java/com/amplifyframework/auth/cognito/actions/SetupTOTPCognitoActionsTest.kt | unknown_repo | kotlin | /*
* Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" ... |
app/src/main/java/com/example/wordle_and/MainActivity.kt | unknown_repo | kotlin | package com.example.wordle_and
import android.content.Intent
import android.os.Bundle
import android.text.Spanned
import android.view.View
import android.widget.Button
import android.widget.EditText
import android.widget.TextView
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androi... |
lib/src/main/java/com/smileidentity/viewmodel/document/OrchestratedDocumentViewModel.kt | unknown_repo | kotlin | package com.smileidentity.viewmodel.document
import android.os.Parcelable
import androidx.annotation.StringRes
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.smileidentity.R
import com.smileidentity.SmileID
import com.smileidentity.SmileIDCrashReporting
import com.smileidentity... |
presentation/base/src/main/java/com/ihorvitruk/telegramclient/presentation/base/BaseActivity.kt | unknown_repo | kotlin | package com.ihorvitruk.telegramclient.presentation.base
import android.support.v7.app.AppCompatActivity
import java.util.*
abstract class BaseActivity : AppCompatActivity() {
private val viewModelStack: Stack<BaseViewModel<*>> = Stack()
protected fun <VM : BaseViewModel<*>> replaceView(view: BaseView<*, VM>... |
Android/app/src/main/java/ipn/mx/androidkleene/MainActivity.kt | unknown_repo | kotlin | package ipn.mx.androidkleene
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.reme... |
sync/sync-impl/src/main/java/com/duckduckgo/sync/impl/ui/setup/SyncDeviceConnectedViewModel.kt | unknown_repo | kotlin | /*
* Copyright (c) 2023 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 ... |
Project 21 - OurGithubContributions/app/src/main/java/com/example/ourgithubcontributions/ui/adapter/UserListAdapter.kt | unknown_repo | kotlin | package com.example.ourgithubcontributions.ui.adapter
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.barryzhang.tcontributionsview.TContributionsView
import com.... |
core/src/skikoMain/kotlin/dev/tclement/fonticons/VariableIconFont.skiko.kt | unknown_repo | kotlin | /*
* Copyright 2024 T. Clément (@tclement0922)
*
* 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 l... |
app/src/main/java/io/agora/education/setting/FcrMainActivity.kt | unknown_repo | kotlin | package io.agora.education.setting
import android.Manifest
import android.annotation.SuppressLint
import android.content.Context
import android.content.Intent
import android.content.pm.ActivityInfo
import android.content.pm.PackageManager
import android.os.Bundle
import android.os.Handler
import android.os.IBinder
imp... |
app-aqi/src/main/java/com/android/app_aqi/SharedViewModel.kt | unknown_repo | kotlin | package com.android.app_aqi
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import com.android.app_aqi.model.AqiModel
import com.android.app_aqi.model.SiteModel
import com.android.app_aqi.repository.AqiRepository
import com.android.app_aqi.repository.AqiRepositoryImpl
class SharedViewModel(priv... |
ui/src/sharedTest/kotlin/com/alexvanyo/composelife/ui/info/CellUniverseInfoItemTests.kt | unknown_repo | kotlin | /*
* Copyright 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
app/src/main/java/com/example/lunchtray/LunchTrayScreen.kt | unknown_repo | kotlin | /*
* Copyright (C) 2023 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
netk_app/src/main/java/com/mozhimen/netk/app/verify/NetKAppVerifyManager.kt | unknown_repo | kotlin | package com.mozhimen.netk.app.verify
import android.text.TextUtils
import android.util.Log
import com.mozhimen.basick.utilk.android.util.UtilKLogWrapper
import com.mozhimen.basick.lintk.optins.OApiInit_InApplication
import com.mozhimen.basick.utilk.commons.IUtilK
import com.mozhimen.basick.utilk.java.io.UtilKFileDir
i... |
rximagepicker_support/src/main/java/com/qingmei2/rximagepicker_extension/ui/AlbumPreviewActivity.kt | unknown_repo | kotlin | /*
* Copyright 2017 Zhihu Inc.
*
* 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 ... |
app/src/main/java/com/makaota/mammamskitchenmanager/utils/Constants.kt | unknown_repo | kotlin | package com.makaota.mammamskitchenmanager.utils
import android.app.Activity
import android.content.Intent
import android.net.Uri
import android.provider.MediaStore
import android.webkit.MimeTypeMap
object Constants {
const val USER_MANAGER_ID = "user_manager_id"
const val BASE_URL = "https://fcm.googleapis.co... |
app/src/main/java/androidx/compose/material3/pullrefresh/PullRefreshIndicatorTransform.kt | unknown_repo | kotlin | /*
* Copyright 2022 The Android Open Source Project
* Copyright 2023 Bamboo Apps
*
* 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
*
... |
libraries/android/src/main/java/com/raxdenstudios/commons/ext/AppCompatActivityExtension.kt | unknown_repo | kotlin | package com.raxdenstudios.commons.android.ext
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.Toolbar
fun AppCompatActivity.setupToolbar(
toolbar: Toolbar,
titleEnabled: Boolean = false
): Toolbar = toolbar.also {
setSupportActionBar(toolbar)
supportActionBar?.setDispl... |
shared/src/commonMain/kotlin/org/mixdrinks/ui/details/goods/GoodsView.kt | unknown_repo | kotlin | package org.mixdrinks.ui.details.goods
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
impo... |
ui/src/main/java/com/pyamsoft/pydroid/ui/defaults/ImageDefaults.kt | unknown_repo | kotlin | package com.pyamsoft.pydroid.ui.defaults
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
/** Default values for Icons */
public object ImageDefaults {
/** Default size unit */
public val LargeSize: Dp = 80.dp
/** Default size unit */
public val DefaultSize: Dp = 56.dp
/** Icon size ... |
app/src/main/java/com/xiang/ssg/main/MainViewModel.kt | unknown_repo | kotlin | package com.xiang.ssg.main
import android.app.Application
import android.content.pm.PackageManager
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.xiang.ssg.getApplicationInfoCompat
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.MutableStateFlo... |
basick/src/main/java/com/mozhimen/basick/utilk/android/content/UtilKPackageManager.kt | unknown_repo | kotlin | package com.mozhimen.kotlin.utilk.android.content
import android.annotation.SuppressLint
import android.content.ComponentName
import android.content.Context
import android.content.Intent
import android.content.pm.ActivityInfo
import android.content.pm.ApplicationInfo
import android.content.pm.PackageInfo
import androi... |
app/src/main/java/com/ClassicaMusic/inventory/ui/item/ItemEntryViewModel.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 app... |
collector/src/main/java/com/bitmovin/analytics/features/errordetails/ErrorDetailBackend.kt | unknown_repo | kotlin | package com.bitmovin.analytics.features.errordetails
import android.content.Context
import com.bitmovin.analytics.CollectorConfig
import com.bitmovin.analytics.features.httprequesttracking.HttpRequest
import com.bitmovin.analytics.utils.DataSerializer
import com.bitmovin.analytics.utils.HttpClient
import com.bitmovin.... |
navui/src/main/java/com/hutchins/navui/core/NavUIControllerViewModel.kt | unknown_repo | kotlin | /*******************************************************************************
* Copyright 2019 <NAME>
*
* 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 ... |
app/src/main/java/me/seebrock3r/elevationtester/widget/BitmapGenerator.kt | unknown_repo | kotlin | package me.seebrock3r.elevationtester.widget
import android.content.Context
import android.graphics.Bitmap
import android.renderscript.Allocation
import android.renderscript.RenderScript
import kotlinx.coroutines.experimental.CommonPool
import kotlinx.coroutines.experimental.Deferred
import kotlinx.coroutines.experime... |
app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsTrackingController.kt | unknown_repo | kotlin | package eu.kanade.tachiyomi.ui.setting
import android.app.Activity
import androidx.preference.Preference
import androidx.preference.PreferenceGroup
import androidx.preference.PreferenceScreen
import eu.kanade.tachiyomi.data.preference.PreferenceKeys as Keys
import eu.kanade.tachiyomi.data.track.TrackManager
import eu.... |
amazon-chime-sdk/src/main/java/com/amazonaws/services/chime/sdk/meetings/internal/video/gl/DefaultEglRenderer.kt | unknown_repo | kotlin | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package com.amazonaws.services.chime.sdk.meetings.internal.video.gl
import android.graphics.Matrix
import android.graphics.SurfaceTexture
import android.opengl.EGL14
import android.opengl.GLES20
import ... |
compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/LazyListMeasureResult.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... |
payments-core/src/main/java/com/stripe/android/model/parsers/DeferredSetupIntentJsonParser.kt | unknown_repo | kotlin | package com.stripe.android.model.parsers
import androidx.annotation.RestrictTo
import com.stripe.android.core.model.StripeJsonUtils.optString
import com.stripe.android.core.model.parsers.ModelJsonParser
import com.stripe.android.core.model.parsers.ModelJsonParser.Companion.jsonArrayToList
import com.stripe.android.mod... |
app/src/main/java/com/vitorpamplona/amethyst/model/Channel.kt | unknown_repo | kotlin | package com.vitorpamplona.amethyst.model
import androidx.compose.runtime.Stable
import androidx.lifecycle.LiveData
import com.vitorpamplona.amethyst.service.NostrSingleChannelDataSource
import com.vitorpamplona.amethyst.service.checkNotInMainThread
import com.vitorpamplona.amethyst.service.model.ATag
import com.vitorp... |
app/src/main/java/net/voussoir/trkpt/MapFragment.kt | unknown_repo | kotlin | /*
* MapFragment.kt
* Implements the MapFragment fragment
* A MapFragment displays a map using osmdroid as well as the controls to start / stop a recording
*
* This file is part of
* TRACKBOOK - Movement Recorder for Android
*
* Copyright (c) 2016-22 - Y20K.org
* Licensed under the MIT-License
* http://openso... |
screenmanager/dm/screenmanager-displaymask/src/main/java/com/microsoft/device/dualscreen/ScreenManagerProvider.kt | unknown_repo | kotlin | /*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
package com.microsoft.device.dualscreen
import android.app.Application
import java.lang.IllegalStateException
/**
* Utility class used to initialize and retrieve [SurfaceDuoScreenManager] object.
*/
object Scre... |
app/src/main/java/io/horizontalsystems/bankwallet/core/managers/BaseTokenManager.kt | unknown_repo | kotlin | package io.deus.wallet.core.managers
import io.deus.wallet.core.ICoinManager
import io.deus.wallet.core.ILocalStorage
import io.horizontalsystems.marketkit.models.BlockchainType
import io.horizontalsystems.marketkit.models.Token
import io.horizontalsystems.marketkit.models.TokenQuery
import io.horizontalsystems.market... |
demo-app/src/main/java/cash/z/ecc/android/sdk/demoapp/ui/screen/send/view/SendView.kt | unknown_repo | kotlin | package cash.z.ecc.android.sdk.demoapp.ui.screen.send.view
import androidx.compose.foundation.horizontalScroll
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import a... |
app/src/main/java/com/yeahush/quickquest/ui/trivia/TriviaPlayViewModel.kt | unknown_repo | kotlin | package com.yeahush.quickquest.ui.trivia
import android.os.CountDownTimer
import android.os.Handler
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Transformations
import androidx.lifecycle.ViewModel
import com.yeahush.quickquest.data.local.prefs.AppPreferences
im... |
rxbinding-kotlin/src/main/kotlin/com/jakewharton/rxbinding2/widget/RxRatingBar.kt | unknown_repo | kotlin | package com.jakewharton.rxbinding2.widget
import android.widget.RatingBar
import io.reactivex.Observable
import io.reactivex.functions.Consumer
/**
* Create an observable of the rating changes on `view`.
*
* *Warning:* The created observable keeps a strong reference to `view`. Unsubscribe
* to free this reference... |
data/src/main/java/com/ravnnerdery/data/di/DatabaseModule.kt | unknown_repo | kotlin | package com.ravnnerdery.data.di
import android.content.Context
import androidx.room.Room
import com.ravnnerdery.data.database.DatabaseDao
import com.ravnnerdery.data.database.DbWrapper
import com.ravnnerdery.data.database.DbWrapperImpl
import com.ravnnerdery.data.database.MessagesDatabase
import dagger.Module
import d... |
app/src/main/java/com/example/reciepe_app_kt/domain/model/Recipe.kt | unknown_repo | kotlin | package xyz.teamgravity.composerecipeapp.model
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
data class RecipeModel(
val id: Int? = null,
val title: String? = null,
val publisher: String? = null,
val featuredImage: String? = null,
val rating: Int? = 0,
val sourceU... |
app/src/main/java/ir/mahdi/circulars/IntroActivity.kt | unknown_repo | kotlin | package ir.mahdi.circulars
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.ViewGroup.LayoutParams.WRAP_CONTENT
import android.view.Window
import android.view.WindowManager
import android.widget.ImageView
import android.widget.LinearLayout
import androidx.appcom... |
app/src/main/java/com/example/androiddevchallenge/models/ForecastViewModel.kt | unknown_repo | kotlin | /*
* Copyright 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
rxhttp-compiler/src/main/java/com/rxhttp/compiler/ksp/RxHttpGenerator.kt | unknown_repo | kotlin | package com.rxhttp.compiler.ksp
import com.google.devtools.ksp.KspExperimental
import com.google.devtools.ksp.processing.CodeGenerator
import com.google.devtools.ksp.processing.Dependencies
import com.google.devtools.ksp.processing.KSPLogger
import com.google.devtools.ksp.symbol.KSFile
import com.rxhttp.compiler.RXHtt... |
retrofit2/src/main/java/com/rui/retrofit2/module/RetrofitModule.kt | unknown_repo | kotlin | /*
* Copyright (C) 2019 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/jsom/dentgame/SelectDevicesFragment.kt | unknown_repo | kotlin | package com.jsom.dentgame
import android.Manifest
import android.R
import android.bluetooth.BluetoothManager
import android.content.Context
import android.content.pm.PackageManager
import android.os.Build
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup... |
app/src/main/java/com/example/satu/data/local/UserPreferences.kt | unknown_repo | kotlin | package com.example.satu.data.local
import android.content.Context
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.core.edit
import androidx.datastore.preferences.core.stringPreferencesKey
import androidx.datastore.preferences.prefer... |
app/src/main/kotlin/com/fpliu/newton/video/player/sample/ErrorHandler.kt | unknown_repo | kotlin | package com.fpliu.newton.video.player.sample
import android.text.TextUtils
import com.fpliu.newton.log.Logger
import com.fpliu.newton.util.appContext
import com.umeng.analytics.MobclickAgent
object ErrorHandler {
private val TAG = ErrorHandler::class.java.simpleName
fun onError(e: Throwable, extraInfo: Stri... |
offix/src/main/java/org/aerogear/offix/persistence/MutationDao.kt | unknown_repo | kotlin | package org.aerogear.offix.persistence
import android.arch.persistence.room.*
@Dao
interface MutationDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
fun insertMutation(mutation: Mutation): Long
@Delete
fun deleteMutation(mutation: Mutation)
@Query("SELECT * FROM MutationOffline")
fun... |
feature/about/view/implementation/src/main/kotlin/com/savvasdalkitsis/uhuruphotos/feature/about/view/implementation/ui/About.kt | unknown_repo | kotlin | /*
Copyright 2023 <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 writing, software
distribu... |
app/src/main/java/com/malibin/morse/presentation/viewer/BroadCastFinishedDialog.kt | unknown_repo | kotlin | package com.malibin.morse.presentation.viewer
import android.app.Dialog
import android.content.Context
import android.os.Bundle
import com.malibin.morse.R
import com.malibin.morse.databinding.DialogBroadcastFinishBinding
/**
* Created By Malibin
* on 2월 05, 2021
*/
class BroadCastFinishedDialog(context: Context) ... |
library/src/main/java/com/jaredrummler/cyanea/delegate/CyaneaDelegateImplV24.kt | unknown_repo | kotlin | /*
* Copyright (C) 2018 <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 ... |
app/src/main/java/com/daya/taha/presentation/splash/SplashFragment.kt | unknown_repo | kotlin | package com.daya.taha.presentation.splash
import android.os.Bundle
import android.view.View
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.lifecycle.lifecycleScope
import androidx.navigation.fragment.findNavController
import com.daya.shared.taha.data.Resource
import com.d... |
samples/tictactoe/app/src/main/java/com/squareup/sample/mainactivity/MainActivity.kt | unknown_repo | kotlin | /*
* Copyright 2017 Square Inc.
*
* 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 ... |
app/src/main/java/com/samkt/filmio/navigation/BottomNavItems.kt | unknown_repo | kotlin | package com.samkt.filmio.navigation
import androidx.annotation.DrawableRes
import com.samkt.filmio.R
data class BottomNavItem(
val label: String,
val screen: Screens,
@DrawableRes val unselectedIcon: Int,
@DrawableRes val selectedIcon: Int
)
val navigationItems = listOf(
BottomNavItem(
"H... |
navigation/integration-tests/testapp/src/main/java/androidx/navigation/testapp/TwoPaneAdapter.kt | unknown_repo | kotlin | /*
* Copyright 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 applica... |
android/src/main/kotlin/com/vonage/tutorial/opentok/opentok_flutter_samples/OpenTokPlugin.kt | unknown_repo | kotlin | package com.vonage.tutorial.opentok.opentok_flutter_samples
import android.os.Handler
import android.os.Looper
import androidx.annotation.NonNull
import com.pcnc2000.flutter_open_tok_video_chat.archiving.Archiving
import com.pcnc2000.flutter_open_tok_video_chat.archiving.ArchivingFactory
import io.flutter.embedding.an... |
compose/recomposehighlighter/src/main/java/com/example/android/compose/recomposehighlighter/RecomposeHighlighter.kt | unknown_repo | kotlin | /*
* Copyright 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
sdk/src/androidTest/java/co/omise/android/ui/InstallmentChooserFragmentTest.kt | unknown_repo | kotlin | package co.omise.android.ui
import androidx.test.core.app.ActivityScenario
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.ViewActions.click
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMatchers.hasDescendant
import androidx... |
lite/examples/sound_classification/android/app/src/main/java/org/tensorflow/lite/examples/soundclassifier/SoundClassifier.kt | unknown_repo | kotlin | /*
* Copyright 2020 The TensorFlow Authors. All Rights Reserved.
*
* 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 requi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.