file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/androidTest/java/com/team28/thehiker/LanguageIntegrationTest.kt | unknown_repo | kotlin | package com.team28.thehiker
import androidx.test.core.app.ActivityScenario
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.ViewActions
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.contrib.DrawerActions
import androidx.test.espresso.matc... |
app/src/main/java/dev/twelveoclock/riverhacks/MainActivity.kt | unknown_repo | kotlin | package dev.twelveoclock.riverhacks
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compos... |
app/src/main/kotlin/com/absinthe/libchecker/view/detail/LibDetailBottomSheetView.kt | unknown_repo | kotlin | package com.absinthe.libchecker.view.detail
import android.content.Context
import android.content.res.ColorStateList
import android.text.method.LinkMovementMethod
import android.util.TypedValue
import android.view.ContextThemeWrapper
import android.view.Gravity
import android.view.ViewGroup
import android.widget.Frame... |
simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Cloud66.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... |
Quiz/app/src/main/java/com/example/quiz/model/repository/ResultRepository.kt | unknown_repo | kotlin | package com.example.quiz.model.repository
import androidx.lifecycle.LiveData
import com.example.quiz.model.dao.ResultDao
import com.example.quiz.model.entities.Result
class ResultRepository(private val dao: ResultDao) {
val getAllResult: LiveData<List<Result>> = dao.getAllResults()
suspend fun insert(result:... |
android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRootHelper.kt | unknown_repo | kotlin | package abi46_0_0.host.exp.exponent.modules.api.components.gesturehandler.react
import android.os.SystemClock
import android.util.Log
import android.view.MotionEvent
import android.view.ViewGroup
import android.view.ViewParent
import abi46_0_0.com.facebook.react.bridge.ReactContext
import abi46_0_0.com.facebook.react.... |
work/workmanager-ktx/src/androidTest/java/androidx/work/DataTest.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... |
androidApp/src/main/java/io/github/lazyengineer/castaway/androidApp/view/podcast/PodcastViewModel.kt | unknown_repo | kotlin | package io.github.lazyengineer.castaway.androidApp.view.podcast
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import io.github.lazyengineer.castaway.androidApp.player.PlayPauseUseCase
import io.github.lazyengineer.castaway.androidApp.player.PlayerState
import io.github.lazyengineer.casta... |
app/movies/src/main/java/io/github/kunal26das/yify/movies/compose/Movies.kt | unknown_repo | kotlin | package io.github.kunal26das.yify.movies.compose
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation... |
example-app/src/main/java/foo/bar/example/OG.kt | unknown_repo | kotlin | package foo.bar.example
import android.app.Application
import co.early.fore.kt.core.logging.AndroidLogger
import co.early.fore.kt.core.logging.Logger
import co.early.persista.PerSista
import foo.bar.example.feature.wallet.Wallet
import java.util.HashMap
/**
* OG - Object Graph, pure DI implementation
*
* Copyrigh... |
coroutine-cancellation/app/src/main/java/com/example/coroutine_cancellation/homework/assignmenttwo/MoneyTransferState.kt | unknown_repo | kotlin | package com.example.coroutine_cancellation.homework.assignmenttwo
import androidx.compose.foundation.text.input.TextFieldState
data class MoneyTransferState(
val savingsBalance: Double = 1000.0,
val checkingBalance: Double = 500.0,
val transferAmount: TextFieldState = TextFieldState(),
val isTransferr... |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/Layout.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.vector.ImageVector
import androidx.compose.ui.graphics.vector... |
auth/app/src/main/java/com/google/firebase/quickstart/auth/kotlin/FirebaseUIActivity.kt | unknown_repo | kotlin | package com.google.firebase.quickstart.auth.kotlin
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.View
import android.widget.Toast
import com.firebase.ui.auth.AuthUI
import com.google.firebase.auth.FirebaseAuth
impo... |
app/src/main/java/com/techbeloved/hymnbook/utils/workers/UnzipArchiveWorker.kt | unknown_repo | kotlin | package com.techbeloved.hymnbook.utils.workers
import android.content.Context
import androidx.hilt.Assisted
import androidx.hilt.work.WorkerInject
import androidx.work.Data
import androidx.work.RxWorker
import androidx.work.WorkerParameters
import com.techbeloved.hymnbook.R
import com.techbeloved.hymnbook.data.FileMan... |
room/integration-tests/kotlintestapp/src/androidTest/java/androidx/room/integration/kotlintestapp/migration/MigrationKotlinTest.kt | unknown_repo | kotlin | /*
* Copyright (C) 2017 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/cn/wthee/pcrtool/ui/components/Other.kt | unknown_repo | kotlin | package cn.wthee.pcrtool.ui.components
import androidx.annotation.StringRes
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layou... |
vector/src/main/java/im/vector/app/features/roomprofile/RoomProfileFragment.kt | unknown_repo | kotlin | /*
* Copyright 2019 New Vector Ltd
*
* 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 i... |
app/src/main/java/com/yangdai/opennote/ui/component/DrawerItem.kt | unknown_repo | kotlin | package com.yangdai.opennote.ui.component
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.Icon
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.NavigationDrawerItem
import androidx.compose.m... |
app/src/main/kotlin/app/newproj/lbrytv/data/datasource/VideoLocalDataSource.kt | unknown_repo | kotlin | /*
* MIT License
*
* Copyright (c) 2022 <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 without limitation the rights
* to use, copy, modify, m... |
platform/platform-impl/src/com/intellij/openapi/fileEditor/impl/EditorComposite.kt | unknown_repo | kotlin | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
@file:Suppress("ReplaceGetOrSet", "ReplacePutWithAssignment")
package com.intellij.openapi.fileEditor.impl
import com.intellij.codeWithMe.ClientId
import com.intellij.codeWithMe.ClientId.Companion.... |
desktop/src/main/kotlin/io/kanro/mediator/desktop/ui/MessageView.kt | unknown_repo | kotlin | package io.kanro.mediator.desktop.ui
import androidx.compose.foundation.ContextMenuItem
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.VerticalScrollbar
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.f... |
app/src/main/java/org/sil/storyproducer/controller/MultiRecordFrag.kt | unknown_repo | kotlin | package org.sil.storyproducer.controller
import android.app.Activity
import android.app.AlertDialog
import android.content.Intent
import android.os.Bundle
import android.os.Environment
import android.provider.MediaStore
import androidx.core.content.FileProvider
import android.view.LayoutInflater
import android.view.Vi... |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/ChargingPile.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
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
im... |
compose-annotation/src/androidMain/kotlin/app/meetacy/vm/compose/Immutable.kt | unknown_repo | kotlin | package app.meetacy.vm.compose
import androidx.compose.runtime.StableMarker
@androidx.compose.runtime.Immutable
@StableMarker
public actual annotation class Immutable |
app/src/main/java/com/app/tugaypamuk/movieapp/peresention/ui/BaseFragmentFactory.kt | unknown_repo | kotlin | package com.app.tugaypamuk.movieapp.peresention.ui
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentFactory
import com.app.tugaypamuk.movieapp.peresention.ui.home.HomeAdapter
import com.app.tugaypamuk.movieapp.peresention.ui.home.HomeFragment
import javax.inject.Inject
/*
class BaseFragmentF... |
android-uitests/testData/CatchUp/app/src/main/kotlin/io/sweers/catchup/ui/fragments/service/ImageAdapter.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 in ... |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/bulk/Languagesquare.kt | unknown_repo | kotlin | package moe.tlaster.icons.vuesax.vuesaxicons.bulk
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.co... |
app/src/main/java/com/mita/todolistcomposeapp/ui/theme/Theme.kt | unknown_repo | kotlin | package com.mita.todolistcomposeapp.ui.theme
import android.app.Activity
import android.os.Build
import android.view.View
import android.view.Window
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.darkColorScheme
import androidx.c... |
logging-android-appcenter4/src/main/java/com/fsryan/tools/logging/android/AppCenterDevMetricsLogger.kt | unknown_repo | kotlin | package com.fsryan.tools.logging.android
import android.content.Context
import com.fsryan.tools.logging.FSDevMetricsLogger
import com.microsoft.appcenter.analytics.Analytics
import com.microsoft.appcenter.analytics.EventProperties
class AppCenterDevMetricsLogger : ContextSpecificDevMetricsLogger {
override fun i... |
core/database/src/main/kotlin/com/anbui/recipely/core/database/DatabaseModule.kt | unknown_repo | kotlin | package com.anbui.recipely.core.database
import android.content.Context
import androidx.room.Room
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton
@Module
@In... |
app/src/main/java/com/example/dropy/network/services/rider/RiderService.kt | unknown_repo | kotlin | package com.example.dropy.network.services.rider
import android.content.Context
import com.example.dropy.network.models.acceptjob.AcceptJobResponse
import com.example.dropy.network.models.acceptjob.request.AcceptJobBody
import com.example.dropy.network.models.canceljob.CancelIncomingJobResponse
import com.example.drop... |
android/app/src/main/kotlin/alexandr/pavlov/ru/arma_helper_nav_bar_ver/MainActivity.kt | unknown_repo | kotlin | package alexandr.pavlov.ru.arma_helper_nav_bar_ver
import android.os.Bundle
import io.flutter.app.FlutterActivity
import io.flutter.plugins.GeneratedPluginRegistrant
class MainActivity: FlutterActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
GeneratedPlug... |
app/src/test/java/com/github/rovkinmax/rxretainexample/SimpleActivityTest.kt | unknown_repo | kotlin | package com.github.rovkinmax.rxretainexample
import android.app.Activity
import android.app.FragmentManager
import com.github.rovkinmax.rxretain.EmptySubscriber
import com.github.rovkinmax.rxretain.RetainFactory
import com.github.rovkinmax.rxretain.RetainWrapper
import com.github.rovkinmax.rxretainexample.test.*
impor... |
platform/core/ui/src/main/java/com/orogersilva/myweatherforecast/ui/screen/LoadingScreen.kt | unknown_repo | kotlin | package com.orogersilva.scaffoldandroid.ui.screen
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.size
import androidx.com... |
app/src/main/java/com/serjlaren/sloom/scenes/main/MainFragment.kt | unknown_repo | kotlin | package com.serjlaren.sloom.scenes.main
import androidx.fragment.app.viewModels
import by.kirich1409.viewbindingdelegate.viewBinding
import com.serjlaren.sloom.R
import com.serjlaren.sloom.common.mvvm.BaseFragment
import com.serjlaren.sloom.databinding.FragmentMainBinding
import dagger.hilt.android.AndroidEntryPoint
... |
feature/home/src/main/kotlin/com/skydoves/pokedex/compose/feature/home/PokedexHome.kt | unknown_repo | kotlin | /*
* Designed and developed by 2024 skydoves (<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... |
app/src/androidTest/java/com/steleot/jetpackcompose/playground/compose/viewmodel/ViewModelFlowScreenTest.kt | unknown_repo | kotlin | package com.steleot.jetpackcompose.playground.compose.viewmodel
import androidx.compose.ui.test.junit4.createAndroidComposeRule
import com.steleot.jetpackcompose.playground.MainActivity
import com.steleot.jetpackcompose.playground.compose.theme.TestTheme
import org.junit.Rule
import org.junit.Test
class ViewModelFlow... |
privacysandbox/tools/tools-apicompiler/src/test/test-data/fullfeaturedsdk/output/com/mysdk/MyCallbackClientProxy.kt | unknown_repo | kotlin | package com.mysdk
import android.content.Context
import androidx.privacysandbox.ui.provider.toCoreLibInfo
public class MyCallbackClientProxy(
public val remote: IMyCallback,
public val context: Context,
) : MyCallback {
public override fun onComplete(response: Response): Unit {
remote.onComplete(R... |
app/src/main/java/com/batdemir/template/ui/github/detail/GithubDetailViewModel.kt | unknown_repo | kotlin | package com.batdemir.template.ui.github.detail
import com.batdemir.template.core.vm.BaseViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject
@HiltViewModel
class GithubDetailViewModel @Inject constructor() : BaseViewModel() |
app/src/main/java/com/example/android/architecture/blueprints/todoapp/di/DataModules.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... |
app/src/main/java/com/utn/MascotApp/Pet.kt | unknown_repo | kotlin | package com.utn.MascotApp
import com.google.android.gms.maps.model.LatLng
data class Pet(
val name: String,
val latLng: LatLng,
val address: String,
val rating: Float
) |
client/android/sample/src/main/java/com/yandex/divkit/sample/MainPageActivity.kt | unknown_repo | kotlin | package com.yandex.divkit.sample
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.yandex.div.core.Div2Context
import com.yandex.div.core.DivConfiguration
import com.yandex.div.picasso.PicassoDivImageLoader
import com.yandex.div.rive.OkHttpDivRiveNetworkDelegate
import com.yandex.div.... |
app/src/main/java/com/example/rabbitapp/ui/mainTab/mainList/MainListFragment.kt | unknown_repo | kotlin | package com.example.rabbitapp.ui.mainTab.mainList
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
import androidx.navigation.findNavController
import com.example.rabb... |
app/src/main/java/com/example/myapplication/MainActivity.kt | unknown_repo | kotlin | package com.example.myapplication
import android.Manifest
import android.content.Context
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Handler
import android.util.Log
import android.widget.Toast
import com.blankj.utilcode.util.ActivityUtils
import com.blankj.utilcode.util.P... |
app/src/main/java/com/example/myapplication/MainActivity.kt | unknown_repo | kotlin | package com.example.myapplication
import android.Manifest
import android.content.Context
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Handler
import android.util.Log
import android.widget.Toast
import com.blankj.utilcode.util.ActivityUtils
import com.blankj.utilcode.util.P... |
info/src/commonMain/kotlin/com/maxkeppeler/sheets/info/InfoView.kt | unknown_repo | kotlin | /*
* Copyright (C) 2022-2023. <NAME> (https://www.maxkeppeler.com)
*
* 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... |
app/src/main/java/com/uogames/remembercards/ui/module/watch/WatchModuleViewModel.kt | unknown_repo | kotlin | package com.uogames.remembercards.ui.module.watch
import android.content.Context
import com.uogames.dto.global.GlobalModuleView
import com.uogames.dto.local.LocalModuleView
import com.uogames.remembercards.utils.ifNull
import com.uogames.remembercards.viewmodel.MViewModel
import kotlinx.coroutines.CoroutineScope
impor... |
room/room-compiler-processing/src/main/java/androidx/room/compiler/processing/ksp/KspExecutableElement.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... |
RippleView/src/main/kotlin/com/ripple/view/RippleView.kt | unknown_repo | kotlin | package com.cl.common_base.widget.ripple
import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.util.AttributeSet
import android.view.View
import androidx.annotation.ColorInt
import androidx.lifecycle.LifecycleOwner
import com.cl.common_... |
sample/src/main/java/com/drake/net/sample/ui/fragment/PushRefreshFragment.kt | unknown_repo | kotlin | /*
* Copyright (C) 2018 Drake, 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 ... |
base/src/main/java/com/zhangteng/base/adapter/TreeRecyclerViewAdapter.kt | unknown_repo | kotlin | package com.zhangteng.base.adapter
import android.annotation.SuppressLint
import android.content.*
import com.zhangteng.base.base.BaseAdapter
import com.zhangteng.base.tree.*
/**
* 树结构的列表适配器
* Created by swing on 2018/6/29.
*/
abstract class TreeRecyclerViewAdapter<T>(data: MutableList<T?>?, defaultExpandLevel: In... |
tasks/src/androidMain/kotlin/app/tivi/tasks/SyncLibraryShowsWorker.kt | unknown_repo | kotlin | // Copyright 2018, Google LLC, Christopher Banes and the Tivi project contributors
// SPDX-License-Identifier: Apache-2.0
package app.tivi.tasks
import android.content.Context
import androidx.work.CoroutineWorker
import androidx.work.WorkerParameters
import app.tivi.domain.interactors.UpdateLibraryShows
import app.ti... |
demo/src/main/java/pyxis/uzuki/live/richutilskt/demo/Misc.kt | unknown_repo | kotlin | package pyxis.uzuki.live.richutilskt.demo
import android.content.Context
import pyxis.uzuki.live.richutilskt.utils.browse
internal fun Context.browseToFile(fileName: String) {
browse("https://github.com/WindSekirun/RichUtilsKt/blob/master/RichUtils/src/main/java/pyxis/uzuki/live/richutilskt/%s".format(fileName))
... |
app/src/main/java/com/ramitsuri/notificationjournal/service/PhoneDataLayerListenerService.kt | unknown_repo | kotlin | package com.ramitsuri.notificationjournal.service
import android.annotation.SuppressLint
import android.util.Log
import com.google.android.gms.wearable.DataEvent
import com.google.android.gms.wearable.DataEventBuffer
import com.google.android.gms.wearable.DataMapItem
import com.google.android.gms.wearable.WearableList... |
app/src/main/java/com/ljubenvassilev/cities/db/CitiesDb.kt | unknown_repo | kotlin | package com.ljubenvassilev.cities.db
import androidx.room.Database
import androidx.room.RoomDatabase
import com.ljubenvassilev.cities.cities.entities.CityEntity
@Database(entities = [CityEntity::class], version = 1, exportSchema = false)
abstract class CitiesDb : RoomDatabase() {
abstract fun cityDao(): CityDao
... |
cams-framework-mvvm/src/main/java/com/linwei/cams/component/mvvm/mvvm/ViewModelFactory.kt | unknown_repo | kotlin | package com.linwei.cams.framework.mvi.mvi
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
/**
* ---------------------------------------------------------------------
* @Author: WeiShuai
* @Time: 2022/2/24
* @Contact: <EMAIL>"
* @Follow: https://github.com/WeiShuaiDev
* @Descripti... |
Yukari/src/main/java/shibafu/yukari/twitter/TwitterApi.kt | unknown_repo | kotlin | package shibafu.yukari.twitter
import android.content.Context
import android.os.Handler
import android.os.Looper
import android.preference.PreferenceManager
import androidx.collection.LongSparseArray
import android.widget.Toast
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import shibafu.yukar... |
app/src/main/kotlin/com/rayfantasy/icode/util/ErrorFormat.kt | unknown_repo | kotlin | /*
* Copyright 2015-2016 RayFantasy 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 l... |
data-saver-core/src/commonMain/kotlin/com/funny/data_saver/core/DataSaverListState.kt | unknown_repo | kotlin | package com.funny.data_saver.core
import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisposableEffect
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import com.fu... |
Adapter/src/main/java/com/angcyo/dsladapter/DslAdapterItem.kt | unknown_repo | kotlin | package com.angcyo.dsladapter
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.graphics.Rect
import android.graphics.drawable.Drawable
import android.os.Build
import android.view.View
import android.view.ViewGroup
import androidx.constraintlayout.widget.Constrai... |
app/src/main/java/com/akusuka/githubers/widget/MyFavoriteStackWidget.kt | unknown_repo | kotlin | package com.akusuka.githubers.widget
import android.app.PendingIntent
import android.appwidget.AppWidgetManager
import android.appwidget.AppWidgetProvider
import android.content.ComponentName
import android.content.Context
import android.content.Intent
import android.widget.RemoteViews
import androidx.core.app.TaskSta... |
app/src/main/java/com/ziggeo/androidsdk/demo/util/BundleExtractorDelegate.kt | unknown_repo | kotlin | package com.ziggeo.androidsdk.demo.util
import android.os.Bundle
import androidx.fragment.app.Fragment
import kotlin.properties.ReadWriteProperty
import kotlin.reflect.KProperty
/**
* Created by <NAME> on 25-Sep-19.
* Ziggeo, Inc.
* <EMAIL>
*/
inline fun <reified T> argument(
key: String,
defaultValue: T... |
paypal/src/test/java/com/paysafe/android/paypal/PSPayPalControllerTest.kt | unknown_repo | kotlin | /*
* Copyright (c) 2024 Paysafe Group
*/
package com.paysafe.android.paypal
import androidx.activity.result.ActivityResultCaller
import androidx.appcompat.app.AppCompatActivity
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.lifecycle.LifecycleCoroutineScope
import androidx.lifecy... |
testutils/src/main/java/com/xfinity/resourceprovider/testutils/ResourceProviderAnswers.kt | unknown_repo | kotlin | package com.xfinity.resourceprovider.testutils
import android.graphics.drawable.Drawable
import org.mockito.Mockito
import org.mockito.invocation.InvocationOnMock
import org.mockito.stubbing.Answer
import java.lang.reflect.Method
/**
* This file contains Mockito Answer sub-classes for automatically mocking ResourceP... |
app/src/main/java/com/bnb/grab/widget/CustomHistoryLayout.kt | unknown_repo | kotlin | package com.bnb.grab.widget
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.view.View
import android.widget.ImageView
import android.widget.LinearLayout
import android.widget.TextView
import com.bnb.grab.R
/**
* Created by wsl on 2018/1/8.
*/
class C... |
growhabit/src/main/kotlin/com/vsrstudio/growhabit/app/App.kt | unknown_repo | kotlin | package com.vsrstudio.growhabit.app
import android.app.Application
import com.vsrstudio.growhabit.BuildConfig
import com.vsrstudio.growhabit.crash.CrashProvider
import com.vsrstudio.growhabit.logging.ReleaseTree
import timber.log.Timber
class App : Application() {
override fun onCreate() {
super.onCreate... |
android/src/main/java/com/inspiredandroid/linuxcommandbibliotheca/ui/composables/NestedCommandView.kt | unknown_repo | kotlin | package com.inspiredandroid.linuxcommandbibliotheca.ui.composables
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.width
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
impo... |
domain/src/main/java/com/guru/cocktails/domain/model/ingredient/IngredientDetail.kt | unknown_repo | kotlin | package com.guru.cocktails.domain.model.ingredient
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
@Parcelize
data class IngredientDetail(
val id: Int,
val name: String,
val nameGrouped: String,
val description: String,
val imageName: String,
val imageUrl: String,
val ... |
feature/lists/src/main/kotlin/com/lolo/io/onelist/feature/lists/components/list_chips/ListsFlowRow.kt | unknown_repo | kotlin | package com.lolo.io.onelist.feature.lists.components.list_chips
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runti... |
app/src/main/java/com/example/anywherefitness/ui/Instructor/InstructorActivity.kt | unknown_repo | kotlin | package com.example.anywherefitness.ui.Instructor
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import com.google.android.material.bottomnavigation.BottomNavigationView
import androidx.appcompat.app.AppCompatActivity
import a... |
coil-base/src/androidTest/java/coil/RealImageLoaderTest.kt | unknown_repo | kotlin | @file:Suppress("SameParameterValue")
package coil
import android.content.ContentResolver.SCHEME_ANDROID_RESOURCE
import android.content.ContentResolver.SCHEME_CONTENT
import android.content.ContentResolver.SCHEME_FILE
import android.content.Context
import android.graphics.Bitmap
import android.graphics.Color
import a... |
mobile/src/main/java/com/siliconlabs/bledemo/features/demo/wifi_commissioning/activities/WifiCommissioningActivity.kt | unknown_repo | kotlin | package com.siliconlabs.bledemo.features.demo.wifi_commissioning.activities
import android.app.AlertDialog
import android.app.ProgressDialog
import android.bluetooth.*
import android.content.*
import android.os.Bundle
import android.view.View
import android.widget.*
import androidx.recyclerview.widget.LinearLayoutMana... |
app/src/main/java/com/example/wishlistapp/MainActivity.kt | unknown_repo | kotlin | package com.example.wishlistapp
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.Button
import android.widget.EditText
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
class MainActivity : App... |
app/src/main/java/com/kylecorry/trail_sense/tools/beacons/ui/list/BeaconListFragment.kt | unknown_repo | kotlin | package com.kylecorry.trail_sense.tools.beacons.ui.list
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.os.bundleOf
import androidx.core.view.isVisible
import androidx.lifecycle.lifecycleScope
import androidx.navigation.NavControll... |
app/src/main/java/com/celzero/bravedns/service/ConnectionMonitor.kt | unknown_repo | kotlin | /*
* Copyright 2021 RethinkDNS and its authors
*
* 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 applicable law o... |
library/src/main/java/io/github/chenfei0928/app/RunningEnvironmentUtil.kt | unknown_repo | kotlin | package io.github.chenfei0928.app
import android.app.ActivityManager
import android.app.Service
import android.content.Context
import androidx.core.content.getSystemService
object RunningEnvironmentUtil {
fun isServiceWork(context: Context, service: Class<out Service>): Boolean {
val runningService = con... |
idea/src/org/jetbrains/kotlin/idea/highlighter/markers/OverridenFunctionMarker.kt | unknown_repo | kotlin | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.kotlin.idea.highlighter.markers
import com.intellij.codeInsight.daemon.DaemonBundle
import com.intellij.codeInsight.navigation.BackgroundU... |
kanzankazuLibs/src/main/java/com/kanzankazu/kanzanwidget/viewpager/KanzanViewPagerBottomNavView.kt | unknown_repo | kotlin | @file:Suppress("MemberVisibilityCanBePrivate", "DEPRECATION")
package com.kanzankazu.kanzanwidget.viewpager
import androidx.fragment.app.Fragment
import androidx.viewpager.widget.ViewPager
import com.google.android.material.bottomnavigation.BottomNavigationView
import com.kanzankazu.kanzanwidget.viewpager.base.BaseFr... |
app/src/main/java/com/mendelin/tmdb_koin/data/room/ConverterIntList.kt | unknown_repo | kotlin | package com.mendelin.tmdb_koin.data.room
import androidx.room.TypeConverter
class ConverterIntList {
@TypeConverter
fun fromList(list: List<Int>): String = list.joinToString(",")
@TypeConverter
fun toList(s: String): List<Int> {
return s.split(",")
.map { it.toInt() }
}
} |
GUI/src/main/kotlin/ui/components/diffScreen/SaveCollageButton.kt | unknown_repo | kotlin | package ui.components.diffScreen
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Button
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.MutableState
import android... |
app/src/main/java/cc/sovellus/vrcaa/ui/components/misc/Description.kt | unknown_repo | kotlin | package cc.sovellus.vrcaa.ui.components.misc
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx... |
app/src/main/java/com/thoughtworks/carapp/device/di/CarManagerModule.kt | unknown_repo | kotlin | package com.thoughtworks.carapp.device.di
import android.car.Car
import android.car.hardware.property.CarPropertyManager
import android.content.Context
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.hilt.components.Singlet... |
app/src/main/java/com/naver/maps/map/compose/demo/MapSampleActivity.kt | unknown_repo | kotlin | /*
* Copyright 2022 SOUP
*
* 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 applicable law or agreed to in wri... |
publishing-sdk/src/main/java/com/ably/tracking/publisher/DefaultPublisher.kt | unknown_repo | kotlin | package com.ably.tracking.publisher
import android.Manifest.permission.ACCESS_COARSE_LOCATION
import android.Manifest.permission.ACCESS_FINE_LOCATION
import android.annotation.SuppressLint
import androidx.annotation.RequiresPermission
import com.ably.tracking.LocationUpdate
import com.ably.tracking.Resolution
import c... |
compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/focus/FocusTargetNode.kt | unknown_repo | kotlin | /*
* Copyright 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
app/src/main/java/com/battlelancer/seriesguide/jobs/movies/MovieJob.kt | unknown_repo | kotlin | // Copyright 2023 <NAME>
// SPDX-License-Identifier: Apache-2.0
package com.battlelancer.seriesguide.jobs.movies
import android.content.Context
import com.battlelancer.seriesguide.jobs.BaseFlagJob
import com.battlelancer.seriesguide.jobs.SgJobInfo
import com.battlelancer.seriesguide.jobs.episodes.JobAction
import com... |
app/src/main/java/com/kcteam/features/stockAddCurrentStock/adapter/AdapterShowStockList.kt | unknown_repo | kotlin | package com.breezesalesoriplast.features.stockAddCurrentStock.adapter
import android.content.Context
import androidx.recyclerview.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.breezesalesoriplast.R
import com.breezesalesoriplast.app.Pref
import... |
tabler-icons/src/commonMain/kotlin/compose/icons/tablericons/DotsDiagonal.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
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
im... |
app/src/main/java/com/tz/basicsmvp/mvp/base/BaseUIController.kt | unknown_repo | kotlin | package com.tz.basicsmvp.mvp.base
import android.app.Activity
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.appcompat.widget.Toolbar
import com.tz.basicsmvp.R
import com.tz.basicsmvp.mvp.base.Base... |
app/src/main/kotlin/net/primal/android/profile/details/ProfileDetailsContract.kt | unknown_repo | kotlin | package net.primal.android.profile.details
import androidx.paging.PagingData
import kotlinx.coroutines.flow.Flow
import net.primal.android.core.compose.feed.model.FeedPostUi
import net.primal.android.core.compose.feed.model.ZappingState
import net.primal.android.core.compose.profile.model.ProfileDetailsUi
import net.p... |
app/src/main/java/com/guru/composecookbook/ui/learnwidgets/Layouts.kt | unknown_repo | kotlin | package com.guru.composecookbook.ui.learnwidgets
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.material.Button
import androidx.compose.material.Ca... |
timelineviewv2/src/main/java/ro/dobrescuandrei/timelineviewv2/model/WeeklyDateTimeInterval.kt | unknown_repo | kotlin | package ro.dobrescuandrei.timelineviewv2.model
import android.annotation.SuppressLint
import android.content.res.Resources
import ro.dobrescuandrei.timelineviewv2.TimelineView
import ro.dobrescuandrei.timelineviewv2.recycler.adapter.WeeklyDateIntervalAdapter
import ro.dobrescuandrei.timelineviewv2.utils.atBeginningOfD... |
RetenoSdkCore/src/main/java/com/reteno/core/domain/controller/IamControllerImpl.kt | unknown_repo | kotlin | package com.reteno.core.domain.controller
import androidx.annotation.VisibleForTesting
import com.reteno.core.data.local.mappers.toDomain
import com.reteno.core.data.remote.model.iam.displayrules.frequency.FrequencyRuleValidator
import com.reteno.core.data.remote.model.iam.displayrules.schedule.ScheduleRuleValidator
i... |
lib_debug/src/main/java/com/ndhzs/lib/debug/crash/CrashActivity.kt | unknown_repo | kotlin | package com.ndhzs.lib.debug.crash
import android.annotation.SuppressLint
import android.content.ClipData
import android.content.ClipboardManager
import android.content.Context
import android.content.Intent
import android.graphics.Color
import android.os.Bundle
import android.os.Process
import android.text.Spannable
im... |
app/src/main/java/life/hnj/sms2telegram/smshandler/SMSReceiver.kt | unknown_repo | kotlin | package life.hnj.sms2telegram.smshandler
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
import android.os.Build
import android.telephony.SmsMessage
import android.util.Log
import android.widget.Toast
import androidx.annotat... |
ui/src/main/java/es/fnmtrcm/ceres/certificadoDigitalFNMT/ui/videocall/VideocallLastStepView.kt | unknown_repo | kotlin | package es.fnmtrcm.ceres.certificadoDigitalFNMT.ui.videocall
import android.content.Context
import android.content.res.Configuration
import android.net.Uri
import android.util.Log
import androidx.browser.customtabs.CustomTabsIntent
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Arra... |
app/src/main/java/com/rkbapps/neetflix/viewmodelfactories/movies/VideoAndImagesViewModelFactory.kt | unknown_repo | kotlin | package com.rkbapps.neetflix.viewmodelfactories.movies
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.rkbapps.neetflix.repository.movies.VideoAndImageRepository
import com.rkbapps.neetflix.viewmodels.movies.VideoAndImageViewModel
class VideoAndImagesViewModelFactory(
pr... |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/MathSin.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.vector.ImageVector
import androidx.compose.ui.graphics.vector... |
app/src/main/java/com/dluvian/voyage/ui/components/text/SmallHeader.kt | unknown_repo | kotlin | package com.dluvian.voyage.ui.components.text
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
@Composable
fun SmallHeader(header: String, modifier: Modifier = Modifier) {
Text(modifier = modifier,... |
app/src/main/java/com/kylecorry/trail_sense/tools/maps/infrastructure/create/CreateMapFromFileCommand.kt | unknown_repo | kotlin | package com.kylecorry.trail_sense.tools.maps.infrastructure.create
import android.content.Context
import com.kylecorry.andromeda.alerts.loading.ILoadingIndicator
import com.kylecorry.trail_sense.shared.extensions.onIO
import com.kylecorry.trail_sense.shared.io.UriPicker
import com.kylecorry.trail_sense.tools.maps.doma... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.