file_path
stringlengths
6
261
repository
stringclasses
2 values
language
stringclasses
1 value
content
stringlengths
121
454k
app/src/main/java/com/yashk9/githubapp/ui/adapter/RepoAdapter.kt
unknown_repo
kotlin
package com.yashk9.githubapp.ui.adapter import android.view.LayoutInflater import android.view.ViewGroup import androidx.paging.PagingDataAdapter import androidx.recyclerview.widget.DiffUtil import androidx.recyclerview.widget.RecyclerView import com.bumptech.glide.Glide import com.yashk9.githubapp.R import com.yashk9...
wear/src/main/java/io/homeassistant/companion/android/tiles/TemplateTile.kt
unknown_repo
kotlin
package io.homeassistant.companion.android.tiles import androidx.wear.tiles.ActionBuilders import androidx.wear.tiles.DimensionBuilders import androidx.wear.tiles.DimensionBuilders.dp import androidx.wear.tiles.LayoutElementBuilders import androidx.wear.tiles.LayoutElementBuilders.Box import androidx.wear.tiles.Layout...
src/main/kotlin/SettingsPanel.kt
unknown_repo
kotlin
import androidx.compose.desktop.ui.tooling.preview.Preview import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.width import androidx.compose.foundation.lazy.LazyColumn import androidx.c...
design-library/src/main/kotlin/app/dapk/st/design/components/itemRow.kt
unknown_repo
kotlin
package app.dapk.st.design.components import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.* import androidx.compose.material.Divider import androidx.compose.material.Icon import androidx.compose.material.Text import androidx.compose.runtime.Composable import androidx.compose.ui.Align...
android-hce-app/app/src/main/java/com/lexycon/hostcardemulation/HostCardEmulatorService.kt
unknown_repo
kotlin
package com.lexycon.hostcardemulation import android.nfc.cardemulation.HostApduService import android.os.Bundle import android.util.Log class HostCardEmulatorService: HostApduService() { companion object { val TAG = "Host Card Emulator" val STATUS_SUCCESS = "9000" val STATUS_FAILED = "6F0...
liveview-android/src/test/java/com/dockyard/liveviewtest/liveview/util/LiveViewComposableTest.kt
unknown_repo
kotlin
package com.dockyard.liveviewtest.liveview.util import androidx.activity.ComponentActivity import androidx.compose.runtime.Composable import androidx.compose.runtime.collectAsState import androidx.compose.runtime.getValue import androidx.compose.ui.test.junit4.ComposeContentTestRule import androidx.compose.ui.test.jun...
app/src/main/java/cn/lyric/getter/hook/app/SystemUi.kt
unknown_repo
kotlin
package cn.lyric.getter.hook.app import android.media.MediaMetadata import android.media.session.PlaybackState import android.os.Build import cn.lyric.getter.BuildConfig import cn.lyric.getter.R import cn.lyric.getter.api.data.LyricData import cn.lyric.getter.api.listener.LyricListener import cn.lyric.getter.api.list...
app/src/main/java/com/comunidadedevspace/taskbeats/core/data/repository/TaskRepositoryImpl.kt
unknown_repo
kotlin
package com.comunidadedevspace.taskbeats.core.data.repository import androidx.lifecycle.LiveData import com.comunidadedevspace.taskbeats.news.data.local.NewsDao import com.comunidadedevspace.taskbeats.news.data.local.NewsItem import com.comunidadedevspace.taskbeats.tasks.data.TaskDao import com.comunidadedevspace.task...
chat-demo-android/src/main/kotlin/com/twilio/chat/demo/activities/LoginActivity.kt
unknown_repo
kotlin
package com.twilio.chat.demo.activities import com.google.android.gms.common.ConnectionResult import com.google.android.gms.common.GoogleApiAvailability import com.twilio.chat.ChatClient import com.twilio.chat.demo.BasicChatClient.LoginListener import com.twilio.chat.demo.R import com.twilio.chat.demo.BuildConfig impo...
app/src/main/java/com/manu/foodacious/view/ui/MainActivity.kt
unknown_repo
kotlin
package com.manu.foodacious.view.ui import android.content.Intent import android.content.res.Configuration import android.os.Bundle import android.util.Log import android.view.Menu import android.view.MenuItem import android.widget.Toast import androidx.activity.viewModels import androidx.appcompat.app.AppCompatActivi...
androidOlympusBlog/src/main/java/com/olympusblog/android/presentation/screens/search/SearchScreen.kt
unknown_repo
kotlin
package com.olympusblog.android.presentation.screens.search import androidx.compose.foundation.layout.* import androidx.compose.material.* import androidx.compose.runtime.Composable import androidx.compose.ui.ExperimentalComposeUiApi import androidx.compose.ui.Modifier import androidx.compose.ui.platform.LocalContext ...
common/src/main/java/com/ishow/common/manager/CacheManager.kt
unknown_repo
kotlin
package com.ishow.common.manager import android.os.SystemClock import androidx.collection.LruCache import com.ishow.common.extensions.parseJSON import com.ishow.common.extensions.toJSON import com.ishow.common.utils.StorageUtils import java.util.concurrent.TimeUnit /** * Created by yuhaiyang on 2020/7/30. * 缓存管理 *...
app/src/main/java/com/example/slabber/composables/NewChat.kt
unknown_repo
kotlin
package com.example.slabber.composables import androidx.compose.foundation.Image import androidx.compose.foundation.background import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.* import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.itemsIndexed...
app/src/main/java/eu/kanade/tachiyomi/ui/source/browse/repos/InfoRepoMessage.kt
unknown_repo
kotlin
package eu.kanade.tachiyomi.ui.source.browse.repos import android.view.View import androidx.recyclerview.widget.RecyclerView import eu.davidea.flexibleadapter.FlexibleAdapter import eu.davidea.flexibleadapter.items.AbstractFlexibleItem import eu.davidea.flexibleadapter.items.IFlexible import eu.kanade.tachiyomi.R impo...
app/src/main/java/com/kusamaru/standroid/nicolive/compose/JCNicoLiveInfoFragment.kt
unknown_repo
kotlin
package com.kusamaru.standroid.nicolive.compose import android.content.Intent import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Spacer import androidx.compose.foun...
yasha-compose/src/main/java/zlc/season/yasha/compose/ComposeDataSource.kt
unknown_repo
kotlin
package zlc.season.yasha.compose import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.onSubscription import kotlinx.coroutines.flow.update import zlc.season.sange.datasource.DataSource import zlc.season.sange.datasource.FetchState open class ComposeDa...
app/src/main/java/edu/uw/acevedoj/sos/WelcomeActivity.kt
unknown_repo
kotlin
package edu.uw.acevedoj.sos import android.content.Intent import android.content.pm.PackageManager import android.support.v7.app.AppCompatActivity import android.os.Bundle import android.preference.PreferenceManager import android.support.v4.app.ActivityCompat import android.support.v4.content.ContextCompat import and...
app/src/main/java/com/onlinemadrasa/model/StoryModel.kt
unknown_repo
kotlin
package com.onlinemadrasa.model import android.os.Parcelable import kotlinx.android.parcel.Parcelize @Parcelize data class StoryModel( var storyTitle: String = "", var storyList: List<StoryItem>? = null, var createdDate: String = "", var updatedDate: String = "", var refrence: String? = "", va...
HTTPShortcuts/app/src/main/kotlin/ch/rmy/android/http_shortcuts/activities/editor/headers/RequestHeadersDialogState.kt
unknown_repo
kotlin
package ch.rmy.android.http_shortcuts.activities.editor.headers import androidx.compose.runtime.Stable @Stable sealed class RequestHeadersDialogState { @Stable data object AddHeader : RequestHeadersDialogState() @Stable data class EditHeader( val id: String, val key: String, v...
MyJetPackApplication/businesses/business-video/src/alone/java/com/example/myjetpackapplication/business/video/SingleVideoItemAdapter.kt
unknown_repo
kotlin
package com.example.myjetpackapplication.business.video import android.content.Context import android.view.LayoutInflater import android.view.ViewGroup import com.example.myjetpackapplication.annotationprocessor.business.annotation.BusinessItem import com.example.myjetpackapplication.business.video.databinding.ItemSin...
android/libraries/rib-coroutines/src/main/kotlin/com/uber/rib/core/RibCoroutineScopes.kt
unknown_repo
kotlin
/* * Copyright (C) 2022. Uber Technologies * * 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...
WebView/app/src/main/java/com/android/samples/webviewdemo/JsObject.kt
unknown_repo
kotlin
/* * Copyright (C) 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 app...
app/src/main/java/com/gonodono/smssender/MainActivity.kt
unknown_repo
kotlin
package com.gonodono.smssender import android.content.pm.PackageManager.PERMISSION_GRANTED import android.os.Bundle import android.util.Log import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.activity.result.contract.ActivityResultContracts.RequestMultiplePermissions ...
app/src/main/java/io/agora/flat/ui/viewmodel/RtcVideoController.kt
unknown_repo
kotlin
package io.agora.flat.ui.viewmodel import android.view.TextureView import android.view.View import android.widget.FrameLayout import androidx.core.view.isVisible import dagger.hilt.android.scopes.ActivityRetainedScoped import io.agora.flat.di.interfaces.RtcApi import io.agora.rtc.RtcEngine import io.agora.rtc.video.Vi...
simpleinterceptor-debug/src/main/java/com/kangaroo/simpleinterceptor/internal/tools/FormatUtils.kt
unknown_repo
kotlin
package com.kangaroo.simpleinterceptor.internal.tools import android.content.Context import android.text.TextUtils import com.google.gson.JsonParser import com.kangaroo.simpleinterceptor.R import com.kangaroo.simpleinterceptor.internal.data.HttpHeader import com.kangaroo.simpleinterceptor.internal.data.HttpTransaction...
app/src/main/java/com/infoskillstechnology/fluperpaginationdemo/DemoApp.kt
unknown_repo
kotlin
package com.infoskillstechnology.fluperpaginationdemo import android.app.Application class DemoApp:Application(){ override fun onCreate() { super.onCreate() } }
mvvm-core/src/androidMain/kotlin/dev/icerock/moko/mvvm/ViewModelFactory.kt
unknown_repo
kotlin
/* * Copyright 2019 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license. */ package dev.icerock.moko.mvvm import androidx.lifecycle.ViewModel import androidx.lifecycle.ViewModelProvider import androidx.lifecycle.ViewModelStoreOwner class ViewModelFactory( private val viewModelBlock: ...
zxscanner/android/app/src/androidTest/java/com/markosyan/zxscanner/JUnit4StyleTests.kt
unknown_repo
kotlin
package com.markosyan.zxscanner import androidx.test.ext.junit.rules.ActivityScenarioRule import org.junit.* import org.junit.runner.RunWith import org.junit.runners.JUnit4 import tools.fastlane.screengrab.Screengrab import tools.fastlane.screengrab.UiAutomatorScreenshotStrategy import tools.fastlane.screengrab.cleans...
libraries/core/src/main/java/com/n27/core/presentation/detail/adapters/ResultsAdapter.kt
unknown_repo
kotlin
package com.n27.core.presentation.detail.adapters import android.graphics.Color import android.view.LayoutInflater import android.view.ViewGroup import android.widget.TextView import androidx.constraintlayout.widget.ConstraintLayout import androidx.recyclerview.widget.DiffUtil import androidx.recyclerview.widget.Recyc...
collaboration-suite-glass-ui/src/main/java/com/kaleyra/collaboration_suite_glass_ui/participants/ParticipantStateTextView.kt
unknown_repo
kotlin
/* * Copyright 2023 Kaleyra @ https://www.kaleyra.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 required by applic...
examples/KotlinMP-Example/app/src/main/java/presentation/adapters/DeviceAdapter.kt
unknown_repo
kotlin
package presentation.adapters import android.view.View import android.view.ViewGroup import android.widget.BaseAdapter import org.jetbrains.anko.linearLayout import org.jetbrains.anko.padding import org.jetbrains.anko.textView import presentation.viewmodels.device.DeviceServiceViewModel class DeviceAdapter(var device...
app/src/main/java/se/locutus/sl/realtidhem/service/WakeLockReceiever.kt
unknown_repo
kotlin
package se.locutus.sl.realtidhem.service import android.content.BroadcastReceiver import android.content.Context import android.content.Intent import java.util.logging.Logger internal class WakeLockReceiever(val service : BackgroundUpdaterService) : BroadcastReceiver() { companion object { val LOG = Logge...
app/src/main/java/com/dokja/mizumi/repository/AppRepository.kt
unknown_repo
kotlin
package com.dokja.mizumi.repository import android.content.Context import androidx.core.net.toUri import com.dokja.mizumi.data.Response import com.dokja.mizumi.data.local.MizumiDatabase import com.dokja.mizumi.data.local.chapter.Chapter import com.dokja.mizumi.data.local.library.LibraryItem import com.dokja.mizumi.epu...
app/src/main/java/com/hercan/rickandmortyapp/ui/home/HomeViewModel.kt
unknown_repo
kotlin
package com.hercan.rickandmortyapp.ui.home import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import androidx.paging.PagingData import androidx.paging.liveData import com.hercan.rickandmortyapp.domain.repository.Rick...
app/src/main/java/dev/arkbuilders/rate/presentation/summary/SummaryViewModel.kt
unknown_repo
kotlin
package space.taran.arkrate.presentation.summary import androidx.lifecycle.ViewModel import androidx.lifecycle.ViewModelProvider import androidx.lifecycle.viewModelScope import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.launchIn import kotlinx.coroutines.flow.onEach import kotlinx.coroutin...
app/src/main/java/com/merttoptas/composebase/features/component/RickAndMortySearchBar.kt
unknown_repo
kotlin
package com.berger.baseapp.features.component import androidx.compose.foundation.Image import androidx.compose.foundation.background import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layou...
Corona-Warn-App/src/test/java/de/rki/coronawarnapp/submission/auto/AutoSubmissionTest.kt
unknown_repo
kotlin
package de.rki.coronawarnapp.submission.auto import androidx.work.ExistingPeriodicWorkPolicy import androidx.work.NetworkType import androidx.work.WorkManager import de.rki.coronawarnapp.coronatest.type.BaseCoronaTest import de.rki.coronawarnapp.submission.SubmissionSettings import de.rki.coronawarnapp.submission.task...
app/src/main/java/com/searchit/hastime/receiver/ScreenStateReceiver.kt
unknown_repo
kotlin
package com.searchit.hastime.receiver import android.content.BroadcastReceiver import android.content.Context import android.content.Intent import android.util.Log import com.searchit.hastime.Room.MyDatabase import com.searchit.hastime.Room.model.EventLog import kotlinx.coroutines.CoroutineScope import kotlinx.corout...
shared/src/commonMain/kotlin/WelcomeScreen.kt
unknown_repo
kotlin
import androidx.compose.foundation.Image import androidx.compose.foundation.background import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxHeight import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foun...
app/src/main/java/com/suihan74/hatenaLib/EntriesType.kt
unknown_repo
kotlin
package com.suihan74.hatenaLib import androidx.annotation.StringRes import com.suihan74.satena.R enum class EntriesType(val id: Int) { Hot(0), Recent(1); // for Gson private constructor() : this(0) companion object { fun fromId(id: Int) = values().firstOrNull { it.id == id } ?: Hot ...
App/app/src/main/java/com/app/appellas/viewmodel/user/HomeViewModel.kt
unknown_repo
kotlin
/* Copyright 2023 WeGotYou! 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, so...
app/src/main/java/com/example/buynow/presentation/seller/adapter/OrderSellerAdapter.kt
unknown_repo
kotlin
package com.example.buynow.presentation.seller.adapter import android.content.Context import android.content.Intent import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.Filter import android.widget.Filterable import android.widget.ImageView import android.wid...
demo/src/main/java/com/bytedance/scenedemo/animation/TransitionListDemo.kt
unknown_repo
kotlin
package com.bytedance.scenedemo.animation import android.os.Build import androidx.annotation.RequiresApi import android.view.LayoutInflater import android.view.ViewGroup import android.os.Bundle import com.bytedance.scenedemo.R import android.view.View import android.widget.Button import android.widget.LinearLayout im...
app/src/main/java/com/csc2007/notetaker/ui/Theme.kt
unknown_repo
kotlin
package com.csc2007.notetaker.ui import android.app.Activity import android.os.Build import androidx.compose.foundation.isSystemInDarkTheme import androidx.compose.material3.MaterialTheme import androidx.compose.material3.darkColorScheme import androidx.compose.material3.dynamicDarkColorScheme import androidx.compose....
app/src/main/java/com/rangganf/storyappearly/ui/maps/MapViewModel.kt
unknown_repo
kotlin
package com.rangganf.storyappearly.ui.maps import androidx.lifecycle.ViewModel import com.rangganf.storyappearly.data.StoryRepository /** * ViewModel untuk menangani logika terkait tampilan peta (maps) dan data cerita. * * @param storyRepository Repository untuk mengakses data cerita. */ class MapViewModel(privat...
android/src/main/kotlin/org/acyb/sayit/app/SayIt.kt
unknown_repo
kotlin
/* * Copyright (c) 2024 <NAME> / All rights reserved. * * Use of this source code is governed by Apache v2.0 */ package org.acyb.sayit.app import android.app.Application class SayIt : Application()
app/src/main/kotlin/com/peecock/ymusic/ui/screens/searchresult/SearchResultScreen.kt
unknown_repo
kotlin
package com.peecock.ymusic.ui.screens.searchresult import android.annotation.SuppressLint import androidx.compose.animation.ExperimentalAnimationApi import androidx.compose.foundation.ExperimentalFoundationApi import androidx.compose.foundation.clickable import androidx.compose.foundation.combinedClickable import andr...
app/src/main/java/com/germanautolabs/acaraus/screens/articles/list/ArticleListScreen.kt
unknown_repo
kotlin
package com.germanautolabs.acaraus.screens.articles.list import androidx.compose.foundation.background import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size import androidx.compose....
app/src/main/java/com/projectbyzakaria/animes/ui/component/ErrorShow.kt
unknown_repo
kotlin
package com.projectbyzakaria.animes.ui.component import androidx.compose.foundation.Image import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size import androidx.compose.found...
app/src/main/java/com/example/fitnesslog/program/view/adapter/ProgramAdapter.kt
unknown_repo
kotlin
package com.example.fitnesslog.program.ui.program.adapter import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.TextView import androidx.recyclerview.widget.RecyclerView import com.example.fitnesslog.R import com.example.fitnesslog.program.data.entity.Program ...
presentation/src/main/java/com/dsm/dms/presentation/di/module/LocalModule.kt
unknown_repo
kotlin
package com.dsm.dms.presentation.di.module import dagger.Module import dagger.Provides import javax.inject.Singleton import android.content.Context import androidx.room.Room import com.dsm.dms.data.local.database.Database import com.dsm.dms.data.local.pref.LocalStorage import com.dsm.dms.data.local.pref.SharedPrefStor...
app/src/main/java/com/revolgenx/anilib/ui/view/drawable/BaseDrawablePaint.kt
unknown_repo
kotlin
package com.revolgenx.anilib.ui.view.drawable import android.graphics.Canvas import android.graphics.Color import android.graphics.Paint abstract class BaseDrawablePaint : BaseDrawable() { private var mPaint: Paint? = null override fun onDraw(canvas: Canvas?, width: Int, height: Int) { if (mPaint == ...
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/regular/CheckboxIndeterminate.kt
unknown_repo
kotlin
package com.konyaco.fluent.icons.regular import androidx.compose.ui.graphics.vector.ImageVector import com.konyaco.fluent.icons.Icons import com.konyaco.fluent.icons.fluentIcon import com.konyaco.fluent.icons.fluentPath public val Icons.Regular.CheckboxIndeterminate: ImageVector get() { if (_checkboxInd...
paging/paging-compose/integration-tests/paging-demos/src/main/java/androidx/paging/compose/demos/PagingDemos.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...
ui/src/commonMain/kotlin/com/popalay/barnee/ui/screen/addtocollection/CreateCollectionBottomSheet.kt
unknown_repo
kotlin
/* * Copyright (c) 2021 <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, merge, publish, dis...
common/src/main/java/jp/co/soramitsu/common/utils/QrCodeGenerator.kt
unknown_repo
kotlin
package jp.co.soramitsu.common.utils import android.graphics.Bitmap import com.google.zxing.EncodeHintType import com.google.zxing.qrcode.decoder.ErrorCorrectionLevel import com.google.zxing.qrcode.encoder.Encoder class QrCodeGenerator( private val firstColor: Int, private val secondColor: Int ) { compan...
recycleradapter/src/main/java/com/xingray/recycleradapter/HolderFactory.kt
unknown_repo
kotlin
package com.xingray.recycleradapter import android.view.View /** *{@code ViewHolder}工厂 * * @author : leixing * @date : 19-7-14 * email : leixing1012@qq.com * */ interface HolderFactory<VH> { fun create(itemView: View): VH }
firsttestdemo/src/main/java/com/hikeen/firsttestdemo/ProviderActivity.kt
unknown_repo
kotlin
package com.hikeen.firsttestdemo import android.app.Activity import android.net.Uri import android.os.Bundle import android.util.Log import android.view.View import androidx.core.content.contentValuesOf import kotlinx.android.synthetic.main.activity_provider.* class ProviderActivity : Activity() ,View.OnClickListener{...
language-kotlin/kotlin-sample/coroutine-in-action/src/main/kotlin/com/chiclaim/coroutine/basic/example-basic-04.kt
unknown_repo
kotlin
import kotlinx.coroutines.* fun main() = runBlocking { launch { delay(200L) println("Task from runBlocking") } // Creates a new coroutine scope coroutineScope { //基于该scope的coroutine launch { delay(500L) println("Task from nested launch1") ...
demo-core/src/main/java/com/adamkobus/compose/navigation/democore/model/DogsSource.kt
unknown_repo
kotlin
package com.adamkobus.compose.navigation.democore.model import com.adamkobus.compose.navigation.democore.data.DogInfo import kotlinx.coroutines.delay import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.MutableStateFlow import javax.inject.Inject import javax.inject.Singleton @Singleton class DogsSource...
app/src/main/java/ru/ltst/u2020mvp/util/EnumPreferences.kt
unknown_repo
kotlin
package ru.ltst.u2020mvp.util import android.content.SharedPreferences object EnumPreferences { fun <T : Enum<T>> getEnumValue(preferences: SharedPreferences, type: Class<T>, key: String, defaultValue: T?): T? { val name = preferences.getString(key, null) if (na...
app/src/main/java/jp/co/yumemi/droidtraining/presentation/components/ErrorAlertDialog.kt
unknown_repo
kotlin
package jp.co.yumemi.droidtraining.presentation.components import androidx.compose.foundation.layout.Row import androidx.compose.material3.AlertDialog import androidx.compose.material3.Text import androidx.compose.material3.TextButton import androidx.compose.runtime.Composable @Composable fun ErrorAlertDialog( on...
ui-difficulty-selection/src/main/java/com/jayasuryat/difficultyselection/preview/ParamProvider.kt
unknown_repo
kotlin
/* * Copyright 2022 <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 wr...
app/src/main/java/com/murilodev/dogs/view/DetailFragment.kt
unknown_repo
kotlin
package com.murilodev.dogs.view import android.app.PendingIntent import android.content.Intent import android.graphics.Bitmap import android.graphics.drawable.Drawable import android.os.Bundle import android.telephony.SmsManager import android.view.* import androidx.appcompat.app.AlertDialog import androidx.fragment.a...
sample/src/main/java/studio/opends/sample/Navhost.kt
unknown_repo
kotlin
package studio.opends.sample import androidx.compose.foundation.layout.padding import androidx.compose.material.icons.Icons import androidx.compose.material.icons.automirrored.rounded.ArrowBack import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.material3.Icon import androidx.compose.mat...
compose/ui/ui-text/src/desktopTest/kotlin/androidx/compose/ui/text/DesktopParagraphTest.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/volovyk/guerrillamail/ui/assigned/AssignedEmailViewModel.kt
unknown_repo
kotlin
package volovyk.guerrillamail.ui.assigned import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import dagger.hilt.android.lifecycle.HiltViewModel import kotlinx.coroutines.channels.Channel import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.corouti...
gto-support-util/src/test/java/org/ccci/gto/android/common/util/LocaleUtilsFallbackTest.kt
unknown_repo
kotlin
package org.ccci.gto.android.common.util import androidx.test.ext.junit.runners.AndroidJUnit4 import java.util.Locale import org.hamcrest.CoreMatchers.equalTo import org.hamcrest.MatcherAssert.assertThat import org.junit.Test import org.junit.runner.RunWith import org.robolectric.annotation.Config private val MALAY =...
app/src/main/java/com/mytest/composetest/util/LogUtils.kt
unknown_repo
kotlin
package com.mytest.composetest.util import android.util.Log /** * kotlin에서 사용하기 위한 utility functions */ const val APP_TAG = "MyTestApp" inline fun LogDebug(TAG: String, printLog: () -> String) { Log.d(APP_TAG, "[$TAG] ${printLog()}") } inline fun LogInfo(TAG: String, printLog: () -> String) { Log.i(APP_T...
src/zh/qinqin/src/eu/kanade/tachiyomi/extension/zh/qinqin/Qinqin.kt
unknown_repo
kotlin
package eu.kanade.tachiyomi.revived.zh.qinqin import android.util.Base64 import eu.kanade.tachiyomi.multisrc.sinmh.SinMH import eu.kanade.tachiyomi.network.GET import org.jsoup.nodes.Document import org.jsoup.select.Elements import javax.crypto.Cipher import javax.crypto.spec.IvParameterSpec import javax.crypto.spec.S...
app/src/main/java/com/sofa/nerdrunning/navigation/MainNavHost.kt
unknown_repo
kotlin
package com.sofa.nerdrunning.navigation import androidx.compose.runtime.Composable import androidx.navigation.NavHostController import androidx.navigation.NavType import androidx.navigation.compose.NavHost import androidx.navigation.compose.composable import androidx.navigation.navArgument import com.sofa.nerdrunning....
calendarview/src/main/java/com/chahine/calendarview/delegates/EmptyDayDelegate.kt
unknown_repo
kotlin
package com.chahine.calendarview.delegates import android.support.v7.widget.RecyclerView.ViewHolder import android.view.View import android.view.ViewGroup import com.chahine.calendarview.CalendarAdapter import com.chahine.calendarview.R import org.threeten.bp.LocalDate class EmptyDayDelegate { class Delegate : Cale...
cinescout/trending/data/remote/src/commonMain/kotlin/cinescout/trending/data/remote/service/TrendingService.kt
unknown_repo
kotlin
package cinescout.trending.data.remote.service import arrow.core.Either import cinescout.error.NetworkError import cinescout.network.Try import cinescout.network.trakt.TraktClient import cinescout.network.trakt.model.withLimit import cinescout.screenplay.domain.model.ScreenplayTypeFilter import cinescout.trending.data...
src/commonMain/kotlin/io/github/koalaplot/sample/StackedVerticalBarSample.kt
unknown_repo
kotlin
package io.github.koalaplot.sample import androidx.compose.foundation.layout.absolutePadding import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size import androidx.compose.material3.Surface import androidx.compose.material...
android/src/main/kotlin/br/com/capyensina/gamestudies/main/android/AndroidLauncher.kt
unknown_repo
kotlin
package br.com.capyensina.gamestudies.main.android import android.os.Bundle import com.badlogic.gdx.backends.android.AndroidApplication import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration import br.com.capyensina.gamestudies.main.Main /** Launches the Android application. */ class AndroidLaunche...
pathshapeview/src/main/java/shape/path/view/PathProvider.kt
unknown_repo
kotlin
package shape.path.view import android.annotation.TargetApi import android.graphics.Matrix import android.graphics.Path import android.graphics.PointF import android.graphics.RectF import android.os.Build import shape.path.view.graph.function.CustomLinesBuilder import shape.path.view.point.converter.PointConverter /*...
screenshot-test/feature/home/src/test/java/com/yml/healthcare/home/ui/view/LoadedHomeKtTest.kt
unknown_repo
kotlin
package com.yml.healthcare.home.ui.view import androidx.compose.foundation.background import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.ui.Modifier import androidx.compose.ui.graphics.Color import app.cash.paparazzi.Paparazzi import com.yml.healthcare.home.domain.model.Article import com.ym...
demo/src/main/java/de/brueggenthies/compose/video/demo/ui/VideoPlaybackDemo.kt
unknown_repo
kotlin
package de.brueggenthies.compose.video.demo.ui import androidx.compose.foundation.background import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundat...
app/src/main/java/com/example/app/ui/AppActivity.kt
unknown_repo
kotlin
package com.example.app.ui import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import androidx.navigation.Navigation.findNavController import androidx.navigation.findNavController import androidx.navigation.fragment.NavHostFragment import androidx.navigation.ui.AppBarConfiguration import androidx....
features/preferences/impl/src/main/kotlin/io/element/android/features/preferences/impl/user/UserPreferences.kt
unknown_repo
kotlin
/* * Copyright (c) 2022 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 agr...
app/src/main/java/com/example/i210566/VerifyPhoneNumberActivity.kt
unknown_repo
kotlin
package com.example.i210566 import android.content.Intent import android.os.Bundle import android.widget.ImageButton import android.widget.Toast import androidx.appcompat.app.AppCompatActivity import com.google.firebase.FirebaseException import com.google.firebase.auth.FirebaseAuth import com.google.firebase.auth.Phon...
auth/app/src/minSdkIcs/java/com/google/firebase/quickstart/auth/FacebookLoginActivity.kt
unknown_repo
kotlin
/** * Copyright 2016 Google Inc. 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 required by applicable law o...
app/src/main/java/com/alexvoz/tawk_test_task/presentation/users_list/UserListAdapter.kt
unknown_repo
kotlin
package com.alexvoz.tawk_test_task.presentation.users_list import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.ImageView import androidx.recyclerview.widget.AsyncListDiffer import androidx.recyclerview.widget.DiffUtil import androidx.recyclerview.widget.Recyc...
app/src/main/java/com/gitlab/j_m_hoffmann/meditate/repository/db/Db.kt
unknown_repo
kotlin
package com.gitlab.j_m_hoffmann.meditate.repository.db import androidx.room.Database import androidx.room.RoomDatabase @Database(entities = [Session::class], version = 1, exportSchema = false) abstract class Db : RoomDatabase() { abstract val dao: Dao }
app/src/main/kotlin/me/xizzhu/android/joshua/search/result/SearchVerseItem.kt
unknown_repo
kotlin
/* * Copyright (C) 2020 <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 ...
compose/ui/ui/src/androidAndroidTest/kotlin/androidx/compose/ui/focus/FocusObserverTest.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/hms/referenceapp/hifood/adapter/RecipeListAdapter.kt
unknown_repo
kotlin
/* Copyright 2020. Explore in HMS. 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 * distributed under the License is ...
app/src/main/java/xyz/daijoubuteam/foodshoppingapp/services/AppFirebaseMessagingService.kt
unknown_repo
kotlin
package xyz.daijoubuteam.foodshoppingapp.services import android.app.Notification import android.app.Notification.DEFAULT_SOUND import android.app.Notification.DEFAULT_VIBRATE import android.app.NotificationManager import android.content.ContentResolver import android.content.Context import android.media.RingtoneMana...
app/src/main/java/com/ajce/hostelmate/sickleave/SickLeaveViewModel.kt
unknown_repo
kotlin
package com.ajce.hostelmate.sickleave import androidx.lifecycle.LiveData import androidx.lifecycle.ViewModel import com.ajce.hostelmate.FirebaseQueryLiveData import com.google.firebase.database.DataSnapshot import com.google.firebase.database.FirebaseDatabase /** * Created by JithinJude on 02,May,2020 */ class Sick...
feature/user/deactivation/src/main/java/com/uragiristereo/mikansei/feature/user/deactivation/navigation/UserDeactivationNavGraph.kt
unknown_repo
kotlin
package com.uragiristereo.mikansei.feature.user.deactivation.navigation import androidx.compose.animation.AnimatedContent import androidx.compose.animation.togetherWith import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.runtime.Composab...
android/src/test/java/com/adyenreactnativesdk/configuration/GooglePayConfigurationParserTest.kt
unknown_repo
kotlin
package com.adyenreactnativesdk.configuration import android.util.Log import com.adyen.checkout.core.api.Environment import com.facebook.react.bridge.ReadableArray import org.junit.Assert.assertEquals import org.junit.Test import org.mockito.MockedStatic import org.mockito.Mockito.anyString import org.mockito.Mockito....
app/src/main/java/com/yabancikelimedefteri/domain/utils/ImportanceLevelSetter.kt
unknown_repo
kotlin
package com.yabancikelimedefteri.domain.utils import androidx.compose.ui.graphics.Color import com.yabancikelimedefteri.domain.model.ImportanceLevel fun Int.setImportanceLevel(): Color { return when (this) { ImportanceLevel.Green.ordinal -> Color.Green ImportanceLevel.Yellow.ordinal -> Color.Yello...
app/src/main/kotlin/app/grapheneos/info/ui/donate/cryptocurrency/BitcoinScreen.kt
unknown_repo
kotlin
package app.grapheneos.info.ui.donate.cryptocurrency import android.content.res.Configuration import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx....
Code/app/src/main/java/com/istudio/services/modules/started_services/intent_service/IntentServiceScreen.kt
unknown_repo
kotlin
package com.istudio.services.modules.started_services.intent_service import android.content.Intent import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.fillMaxSize import android...
app/src/main/java/resonance/http/httpdownloader/implementations/FileIO.kt
unknown_repo
kotlin
package resonance.http.httpdownloader.implementations import android.content.Context import android.net.Uri import androidx.core.content.FileProvider import resonance.http.httpdownloader.core.OutputObj import resonance.http.httpdownloader.core.otherwise import resonance.http.httpdownloader.core.silently import resonan...
app/src/main/java/de/thomaskuenneth/smsrelay/SmsReceivedBroadcastReceiver.kt
unknown_repo
kotlin
package de.thomaskuenneth.smsrelay import android.content.BroadcastReceiver import android.content.Context import android.content.Intent import android.net.Uri import android.provider.Telephony import android.provider.Telephony.Mms import android.provider.Telephony.Sms.Intents.getMessagesFromIntent import android.util...
VehicleUI/src/main/java/com/drivequant/drivekit/vehicle/ui/bluetooth/adapter/BluetoothItemRecyclerViewAdapter.kt
unknown_repo
kotlin
package com.drivequant.drivekit.vehicle.ui.bluetooth.adapter import android.content.Context import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.ImageView import android.widget.LinearLayout import android.widget.TextView import androidx.core.graphics.drawable....
app/src/main/java/desoft/studio/webpoint/data/Webpoint_Dao.kt
unknown_repo
kotlin
package desoft.studio.webpocket.data import androidx.room.* /** * @Insert - This method will add records. This means a query of type "Insert" will be executed. @Update - This method will update records. @Delete - This method to delete a record @Query - Define the database operations to be performed directly using SQ...
app/src/main/java/com/ismailhakkiaydin/football/model/topscorer/Penalty.kt
unknown_repo
kotlin
package com.ismailhakkiaydin.football.model.topscorer import androidx.room.Embedded import com.google.gson.annotations.SerializedName data class Penalty( @SerializedName("won") var won: Int, @SerializedName("success") var success: Int, @SerializedName("missed") var missed: Int )
src/test/kotlin/passwordStore/tags/TagTest.kt
unknown_repo
kotlin
package passwordStore.tags import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.remember import androidx.compose.ui.ExperimentalComposeUiApi import androidx.compose.ui.input.key.Key import androidx.compose.ui.test.* import androidx.compose.ui.test.junit4.createComposeRule import com.natpryce....