file_path
stringlengths
6
261
repository
stringclasses
2 values
language
stringclasses
1 value
content
stringlengths
121
454k
app/src/main/java/dev/marcosfarias/pokedex/ui/dashboard/DashboardFragment.kt
unknown_repo
kotlin
package dev.marcosfarias.pokedex.ui.dashboard import android.graphics.PorterDuff import android.graphics.PorterDuffColorFilter import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.core.view.isVisible import androidx.fragment.app.Fragment imp...
sample/src/main/java/ru/tinkoff/acquiring/sample/ui/AboutActivity.kt
unknown_repo
kotlin
/* * Copyright © 2020 Tinkoff Bank * * 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...
line-awesome/src/commonMain/kotlin/compose/icons/lineawesomeicons/PrescriptionSolid.kt
unknown_repo
kotlin
package compose.icons.lineawesomeicons import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.Companion.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap.Companion.Butt import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter ...
app/src/main/java/com/nightwalker/runnersstopwatch/fragments/splash/SplashFragment.kt
unknown_repo
kotlin
package com.nightwalker.runnersstopwatch.fragments.splash import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.Button import androidx.fragment.app.Fragment import androidx.fragment.app.viewModels import androidx.navigation.Navigation i...
app/src/test/java/com/balocco/androidcomponents/feature/toprated/viewmodel/TopRatedViewModelTest.kt
unknown_repo
kotlin
package com.balocco.androidcomponents.feature.toprated.viewmodel import androidx.arch.core.executor.testing.InstantTaskExecutorRule import androidx.lifecycle.Observer import com.balocco.androidcomponents.R import com.balocco.androidcomponents.TestUtils import com.balocco.androidcomponents.common.navigation.Navigator i...
boxicons/src/commonMain/kotlin/com/woowla/compose/icon/collections/boxicons/boxicons/logos/BxlWhatsappSquare.kt
unknown_repo
kotlin
package com.woowla.compose.icon.collections.boxicons.boxicons.logos 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 ...
Squadris/src/main/java/com/squadris/squadris/compose/components/CustomPullRefresh.kt
unknown_repo
kotlin
package com.squadris.squadris.compose.components import android.app.Activity import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.material.ExperimentalMaterialApi import androidx.compose.material.pullrefresh.PullRefreshState import androidx.compos...
src/main/kotlin/nobility/downloader/ui/views/SettingsView.kt
unknown_repo
kotlin
package nobility.downloader.ui.views import androidx.compose.foundation.* import androidx.compose.foundation.layout.* import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material3.HorizontalDivider import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Scaffol...
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/outline/Speaker.kt
unknown_repo
kotlin
package moe.tlaster.icons.vuesax.vuesaxicons.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 import androidx...
app/src/main/java/io/github/sdwfqin/quickseed/di/AppModule.kt
unknown_repo
kotlin
package io.github.sdwfqin.app_kt.di import android.util.Log import dagger.Module import dagger.Provides import dagger.hilt.InstallIn import dagger.hilt.android.components.ApplicationComponent import io.github.sdwfqin.app_kt.BuildConfig import io.github.sdwfqin.app_kt.data.remote.WeatherService import io.github.sdwfqin...
app/src/main/java/com/demo/app/TextFragment.kt
unknown_repo
kotlin
package com.demo.app import android.content.res.Resources import android.graphics.BlurMaskFilter import android.graphics.Color import android.graphics.Typeface import android.os.Bundle import android.text.method.LinkMovementMethod import android.text.style.MaskFilterSpan import android.view.View import android.widget....
stream-video-android-ui-xml/src/main/kotlin/io/getstream/video/android/xml/widget/participant/internal/CallParticipantsListView.kt
unknown_repo
kotlin
/* * Copyright (c) 2014-2023 Stream.io Inc. All rights reserved. * * Licensed under the Stream License; * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://github.com/GetStream/stream-video-android/blob/main/LICENSE * * Unless required by ...
PrimFastKotlin/KotlinAction/app/src/main/java/com/prim/gkapp/ui/login/LoginPresenter.kt
unknown_repo
kotlin
package com.prim.gkapp.ui.login import android.content.Context import com.prim.gkapp.BuildConfig import com.prim.gkapp.data.UserData import com.prim.lib_base.mvp.impl.BasePresenter /** * @desc * @author prim * @time 2019-05-29 - 07:32 * @version 1.0.0 */ class LoginPresenter : BasePresenter<LoginActivity>() { ...
app/src/main/java/com/jthou/wanandroidkotlin/repository/KnowledgeSystemListRepository.kt
unknown_repo
kotlin
package com.jthou.wanandroidkotlin.repository import androidx.lifecycle.LiveData import androidx.paging.PagedList import com.jthou.wanandroidkotlin.data.DataRepository import com.jthou.wanandroidkotlin.data.entity.Article /** * @author jthou * @version 1.0.0 * @date 22-09-2019 */ class KnowledgeSystemListReposito...
app/src/main/java/com/example/philosophyquotes/data/model/Quote.kt
unknown_repo
kotlin
package com.example.philosophyquotes.data.model import androidx.room.ColumnInfo import androidx.room.Entity import androidx.room.PrimaryKey import com.example.philosophyquotes.core.constants.AppConstants import com.google.gson.annotations.SerializedName @Entity(tableName = AppConstants.DATA_SOURCE.TABLE_NAME) class Q...
app/src/main/java/com/codelab/theming/ui/start/theme/Shape.kt
unknown_repo
kotlin
package com.codelab.theming.ui.start.theme import android.graphics.drawable.shapes.Shape import androidx.compose.foundation.shape.CutCornerShape import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material.Shapes import androidx.compose.ui.unit.dp val JetnewsShapes = Shapes( //Sha...
sample-tencent/src/main/java/com/melody/tencentmap/myapplication/ui/RoutePlanScreen.kt
unknown_repo
kotlin
// MIT License // // Copyright (c) 2022 被风吹过的夏天 // // 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, mer...
app/src/main/java/stark/android/appbase/demo/db/DbDemoActivity.kt
unknown_repo
kotlin
package stark.android.appbase.demo.db import android.os.Bundle import stark.android.appbase.activity.BaseToolbarActivity import stark.android.appbase.activity.setBaseContentView import stark.android.appbase.activity.setToolbar class DbDemoActivity : BaseToolbarActivity() { override fun onCreate(savedInstanceStat...
example/src/main/java/co/infinum/example/Extensions.kt
unknown_repo
kotlin
package co.infinum.example import android.content.Context import android.graphics.Bitmap import android.graphics.BitmapFactory import android.graphics.ImageFormat import android.graphics.YuvImage import android.media.Image import android.widget.Toast import androidx.appcompat.app.AlertDialog import androidx.camera.cor...
treeview/src/main/java/com/funny/treeview/TreeActivity.kt
unknown_repo
kotlin
package com.funny.treeview import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import com.alibaba.android.arouter.facade.annotation.Route @Route(path = "/tree/tree") class TreeActivity: AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedIns...
sample/src/main/java/nz/co/trademe/konfigure/sample/examples/restart/RestartUtil.kt
unknown_repo
kotlin
package nz.co.trademe.konfigure.sample.examples.restart import android.content.Intent import android.view.View import androidx.appcompat.app.AppCompatActivity import com.google.android.material.snackbar.Snackbar /** * Extension function for displaying a Snackbar with a restart app action. */ @JvmOverloads fun AppCo...
app/src/main/java/io/horizontalsystems/bankwallet/ui/extensions/SelectorDialog.kt
unknown_repo
kotlin
package io.horizontalsystems.bankwallet.ui.extensions import android.content.Context import android.os.Bundle import android.view.* import android.view.inputmethod.InputMethodManager import android.widget.TextView import androidx.core.view.isVisible import androidx.fragment.app.DialogFragment import androidx.recyclerv...
app/src/main/java/tech/salvatore/livro_android_kotlin_paulo_salvatore/view/navigation/NavigationActivity.kt
unknown_repo
kotlin
package tech.salvatore.livro_android_kotlin_paulo_salvatore.view.navigation import android.os.Bundle import android.view.View import android.view.ViewTreeObserver import androidx.activity.viewModels import androidx.appcompat.app.AppCompatActivity import androidx.navigation.fragment.NavHostFragment import androidx.navi...
app/src/main/java/org/wikipedia/main/MainActivity.kt
unknown_repo
kotlin
package org.wikipedia.main import android.annotation.SuppressLint import android.content.Context import android.content.Intent import android.os.Bundle import android.view.Menu import android.view.View import androidx.appcompat.view.ActionMode import androidx.appcompat.widget.Toolbar import androidx.fragment.app.Fragm...
zenet/request/src/main/kotlin/br/com/khomdrake/request/RequestHandler.kt
unknown_repo
kotlin
package br.com.khomdrake.request import android.content.Context import androidx.annotation.VisibleForTesting import br.com.arch.toolkit.livedata.response.MutableResponseLiveData import br.com.arch.toolkit.livedata.response.ResponseLiveData import br.com.khomdrake.request.cache.DiskVault import br.com.khomdrake.request...
payment-sdk-core/src/main/java/payment/sdk/android/core/api/CoroutinesGatewayHttpClient.kt
unknown_repo
kotlin
package payment.sdk.android.core.api import android.os.Build import androidx.annotation.UiThread import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.GlobalScope import kotlinx.coroutines.launch import kotlinx.coroutines.withContext import org.json.JSONObject import java.io.BufferedReader import java.io.Buf...
modules/module-compose/src/main/java/com/bbgo/module_compose/activity/ComposeActivity.kt
unknown_repo
kotlin
package com.bbgo.module_compose import android.app.Activity import android.os.Bundle import android.text.Html import androidx.activity.compose.setContent import androidx.activity.viewModels import androidx.compose.foundation.ExperimentalFoundationApi import androidx.compose.foundation.Image import androidx.compose.fou...
Session 12 - Firabase II/Exercise 1/app/src/main/java/com/harbourspace/unsplash/data/UnsplashCollection.kt
unknown_repo
kotlin
package com.harbourspace.unsplash.data import android.os.Parcelable import androidx.room.Entity import kotlinx.parcelize.Parcelize @Entity @Parcelize data class UnsplashCollection( val cover_photo: CoverPhoto, val description: String?, val id: String, val last_collected_at: String, val links: Link...
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/Bucket.kt
unknown_repo
kotlin
package me.localx.icons.straight.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.Butt import androidx.compose.ui.graphics.StrokeJoin.Companion.Mite...
app/src/main/java/dev/albertus/expensms/ui/components/GroupedTransactionList.kt
unknown_repo
kotlin
package dev.albertus.expensms.ui.components import androidx.compose.foundation.layout.* import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.LazyListState import androidx.compose.foundation.lazy.items import androidx.compose.foundation.lazy.rememberLazyListState import androidx.co...
app/src/main/java/com/aaron/yespdf/filepicker/IViewAllContract.kt
unknown_repo
kotlin
package com.aaron.yespdf.filepicker import androidx.annotation.StringRes import com.aaron.yespdf.common.IModel import com.aaron.yespdf.common.IPresenter import com.aaron.yespdf.common.IView import com.blankj.utilcode.util.SDCardUtils.SDCardInfo import java.io.File import java.util.* import kotlin.collections.ArrayList...
app/src/main/java/com/ahmedtikiwa/fxapp/MainActivity.kt
unknown_repo
kotlin
package com.ahmedtikiwa.fxapp import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import androidx.navigation.findNavController import androidx.navigation.fragment.NavHostFragment import androidx.navigation.ui.AppBarConfiguration import androidx.navigation.ui.setupActionBarWithNavController import ...
app/src/main/java/com/socketmobile/stockcount/helper/PreferenceHelper.kt
unknown_repo
kotlin
/** Copyright © 2018 Socket Mobile, Inc. */ package com.socketmobile.stockcount.helper import android.content.Context import android.preference.PreferenceManager const val SHOW_INSTRUCTION_KEY = "HaveToShowInstruction" const val AUTO_ADD_QUANTITY_KEY = "AutoAddQuantity" const val D600_SUPPORT_KEY = "D600Support" c...
example/shared/src/androidMain/kotlin/com/splendo/kaluga/example/shared/di/DependencyInjection.kt
unknown_repo
kotlin
/* Copyright 2022 Splendo Consulting B.V. The Netherlands 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 appli...
data/src/main/java/dev/mslalith/focuslauncher/data/database/dao/HiddenAppsDao.kt
unknown_repo
kotlin
package dev.mslalith.focuslauncher.data.database.dao import androidx.room.Dao import androidx.room.Delete import androidx.room.Insert import androidx.room.OnConflictStrategy import androidx.room.Query import dev.mslalith.focuslauncher.data.database.entities.HiddenAppRoom import dev.mslalith.focuslauncher.data.utils.Co...
sample/src/main/java/com/expresspay/sample/ui/ExpresspaySaleActivity.kt
unknown_repo
kotlin
/* * Property of Expresspay (https://expresspay.sa). */ package com.expresspay.sample.ui import android.app.DatePickerDialog import android.content.Intent import android.os.Bundle import android.widget.Toast import androidx.appcompat.app.AppCompatActivity import androidx.core.view.children import com.expresspay.sam...
app/src/main/java/com/selin/rickandmortycomposeapp/ui/theme/main/MainActivity.kt
unknown_repo
kotlin
package com.selin.rickandmortycomposeapp.ui.theme.main import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.foundation.Image import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Arrangement import andro...
ListaUsuario/app/src/main/java/com/rodrigo/listausuario/MainActivity.kt
unknown_repo
kotlin
package com.rodrigo.listausuario import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.RecyclerView class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { ...
app/src/main/java/com/torr/coroutinesplayground/MainActivity.kt
unknown_repo
kotlin
package com.torr.coroutinesplayground import androidx.appcompat.app.AppCompatActivity import android.os.Bundle class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) support...
app/src/main/kotlin/com/rajankali/plasma/compose/layout/MovieComposables.kt
unknown_repo
kotlin
/* * MIT License * * Copyright (c) 2020 rajandev17 * * 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, modif...
ground/src/test/java/com/google/android/ground/repository/UserMediaRepositoryTest.kt
unknown_repo
kotlin
/* * Copyright 2023 Google LLC * * 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 ...
app/src/main/java/com/alpriest/energystats/ui/theme/Theme.kt
unknown_repo
kotlin
package com.alpriest.energystats.ui.theme import androidx.compose.foundation.isSystemInDarkTheme import androidx.compose.material.MaterialTheme import androidx.compose.material.darkColors import androidx.compose.material.lightColors import androidx.compose.runtime.Composable import androidx.compose.ui.graphics.Color ...
app/src/main/java/com/alpriest/energystats/ui/theme/Theme.kt
unknown_repo
kotlin
package com.alpriest.energystats.ui.theme import androidx.compose.foundation.isSystemInDarkTheme import androidx.compose.material.MaterialTheme import androidx.compose.material.darkColors import androidx.compose.material.lightColors import androidx.compose.runtime.Composable import androidx.compose.ui.graphics.Color ...
mobile/src/main/java/ch/epfl/sdp/mobile/ui/tournaments/Contest.kt
unknown_repo
kotlin
package ch.epfl.sdp.mobile.ui.tournaments import androidx.compose.foundation.clickable import androidx.compose.material.ExperimentalMaterialApi import androidx.compose.material.ListItem import androidx.compose.material.MaterialTheme import androidx.compose.material.Text import androidx.compose.runtime.Composable impor...
app/src/main/kotlin/com/chatter/omeglechat/presentation/ChatScreen/ChatScreen.kt
unknown_repo
kotlin
package com.chatter.omeglechat import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.compose.foundation.lazy.rememberLazyListState import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.material3.MaterialTheme import android...
feature/mobile/provider-settings/src/main/kotlin/com/flixclusive/feature/mobile/provider/settings/component/AuthorCard.kt
unknown_repo
kotlin
package com.flixclusive.feature.mobile.provider.settings.component import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.size imp...
BaseDebug/src/main/java/com/bihe0832/android/base/debug/audio/asr/DebugRecordAndASRFragRecment.kt
unknown_repo
kotlin
/* * * * * Created by zixie <code@bihe0832.com> on 2022/7/8 下午10:09 * * Copyright (c) 2022 . All rights reserved. * * Last modified 2022/7/8 下午10:05 * */ package com.bihe0832.android.base.debug.audio.asr import android.annotation.SuppressLint import android.content.Context import android.util.Log import andr...
ui-kit/src/main/java/com/quickblox/android_ui_kit/presentation/base/BaseViewModel.kt
unknown_repo
kotlin
/* * Created by Injoit on 13.01.2023. * Copyright © 2023 Quickblox. All rights reserved. */ package com.quickblox.android_ui_kit.presentation.base import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.quic...
ComposeCollapsingTopBar/src/main/java/com/flaringapp/compose/topbar/nestedcollapse/CollapsingTopBarNestedCollapseState.kt
unknown_repo
kotlin
/* * Copyright 2024 Flaringapp * * 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...
library-common/src/main/kotlin/cz/filipproch/reactor/common/views/events/OptionsItemSelectedEvent.kt
unknown_repo
kotlin
package cz.filipproch.reactor.common.views.events import android.view.MenuItem import cz.filipproch.reactor.base.view.UiEvent /** * TODO: add description */ data class OptionsItemSelectedEvent( val menuItem: MenuItem ) : UiEvent
shared/src/commonMain/kotlin/core/ui/screens/itemlist/ItemHome.kt
unknown_repo
kotlin
package core.ui.screens.itemlist import androidx.compose.foundation.Image import androidx.compose.foundation.background import androidx.compose.foundation.border import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.fillMaxHeight import and...
MVIPractice/data/src/main/java/com/kimmandoo/data/usecase/file/GetImageUseCaseImpl.kt
unknown_repo
kotlin
package com.kimmandoo.data.usecase.file import android.content.Context import android.net.Uri import android.provider.MediaStore import com.kimmandoo.domain.model.Image import com.kimmandoo.domain.usecase.file.GetImageUseCase import javax.inject.Inject class GetImageUseCaseImpl @Inject constructor( private val co...
glide-loader/src/main/java/com/ouattararomuald/slider/loaders/glide/GlideImageLoader.kt
unknown_repo
kotlin
package com.ouattararomuald.slider.loaders.glide import android.widget.ImageView import androidx.annotation.DrawableRes import com.ouattararomuald.slider.ImageLoader /** * Loads images image using Glide. * * @property errorResId an error drawable to be used if the request image could not be loaded. * @property pl...
sample/src/main/java/com/miquido/restmock/sample/SampleApplication.kt
unknown_repo
kotlin
package com.miquido.restmock.sample import android.app.Application import org.koin.android.ext.koin.androidContext import org.koin.android.ext.koin.androidLogger import org.koin.core.context.startKoin import org.koin.core.logger.Level import timber.log.Timber class SampleApplication : Application() { override fu...
sample/wearapp/src/main/java/com/estivensh4/wearapp/presentation/MainActivity.kt
unknown_repo
kotlin
package com.estivensh4.wearapp.presentation import android.os.Bundle import android.os.StrictMode import android.os.StrictMode.ThreadPolicy import android.util.Log import androidx.activity.ComponentActivity import androidx.activity.compose.rememberLauncherForActivityResult import androidx.activity.compose.setContent i...
android/versioned-abis/expoview-abi43_0_0/src/main/java/abi43_0_0/expo/modules/analytics/amplitude/AmplitudePackage.kt
unknown_repo
kotlin
package abi43_0_0.expo.modules.analytics.amplitude import android.content.Context import abi43_0_0.expo.modules.core.BasePackage import abi43_0_0.expo.modules.core.ExportedModule class AmplitudePackage : BasePackage() { override fun createExportedModules(context: Context): List<ExportedModule> { return listOf(A...
plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/refactoring/move/moveUtil.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. package org.jetbrains.kotlin.idea.refactoring.move import com.intellij.ide.util.DirectoryUtil import com.intellij.openapi.application.runReadAction import com.intellij.openapi.command.WriteCommandAc...
lib_arch_delegate/src/main/java/com/android/base/delegate/activity/ActivityDelegateOwner.kt
unknown_repo
kotlin
package com.android.base.delegate.activity import androidx.annotation.UiThread @UiThread interface ActivityDelegateOwner { fun addDelegate(activityDelegate: ActivityDelegate<*>) fun removeDelegate(activityDelegate: ActivityDelegate<*>): Boolean fun findDelegate(predicate: (ActivityDelegate<*>) -> Boole...
android/app/src/main/java/com/example/android/fido2/repository/AuthRepository.kt
unknown_repo
kotlin
/* * Copyright 2019 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 applica...
ui/src/main/java/com/pyamsoft/pydroid/ui/preference/CheckBoxPreferenceCompat.kt
unknown_repo
kotlin
/* * Copyright 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 in wr...
app/src/main/java/com/example/calculosfinanceiros/MainActivity.kt
unknown_repo
kotlin
package com.example.calculosfinanceiros import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.widget.* import org.jetbrains.anko.startActivity class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstance...
app/src/main/java/com/dhl/uploadimage_Assignment/loginActivity.kt
unknown_repo
kotlin
package com.dhl.uploadimage_Assignment import android.content.Intent import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.text.TextUtils import android.widget.Button import android.widget.EditText import android.widget.TextView import android.widget.Toast import com.google.firebase.a...
app/src/main/java/com/dhl/uploadimage_Assignment/loginActivity.kt
unknown_repo
kotlin
package com.dhl.uploadimage_Assignment import android.content.Intent import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.text.TextUtils import android.widget.Button import android.widget.EditText import android.widget.TextView import android.widget.Toast import com.google.firebase.a...
base-android/src/main/java/com/sfaxdroid/base/Ads.kt
unknown_repo
kotlin
package com.sfaxdroid.base import android.app.Activity import android.content.Context interface Ads { fun showInterstitial(activity: Activity) fun loadInterstitial(context: Context) }
mobile/src/main/java/com/google/samples/apps/iosched/ui/agenda/AgendaFragment.kt
unknown_repo
kotlin
/* * Copyright 2018 Google LLC * * 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 ...
recorder-view/src/main/java/com/tougee/recorderview/AudioRecordView.kt
unknown_repo
kotlin
package com.tougee.recorderview import android.Manifest import android.animation.ObjectAnimator import android.annotation.SuppressLint import android.app.Activity import android.content.Context import android.content.pm.PackageManager import android.util.AttributeSet import android.view.LayoutInflater import android.v...
app/src/main/kotlin/taiwan/no1/app/ssfm/features/chart/ChartRankChartDetailFragment.kt
unknown_repo
kotlin
package taiwan.no1.app.ssfm.features.chart import android.os.Bundle import com.devrapid.kotlinknifer.recyclerview.WrapContentLinearLayoutManager import com.devrapid.kotlinknifer.recyclerview.itemdecorator.VerticalItemDecorator import com.hwangjr.rxbus.RxBus import com.hwangjr.rxbus.annotation.Subscribe import com.hwan...
travelmaker_android/app/src/main/java/com/gumibom/travelmaker/ui/main/findmate/meeting_post/MeetingPostViewModel.kt
unknown_repo
kotlin
package com.gumibom.travelmaker.ui.main.findmate.meeting_post import android.util.Log import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.gumibom.travelmaker.data.dto.response.Position import com.gumibom.tr...
app/src/main/java/me/hegj/wandroid/app/AppLifecyclesImpl.kt
unknown_repo
kotlin
/* * Copyright 2017 JessYan * * 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 ...
app/src/main/kotlin/me/xizzhu/android/joshua/ui/Span.kt
unknown_repo
kotlin
/* * Copyright (C) 2021 <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 ...
features/feature-details/src/main/kotlin/com/maximillianleonov/cinemax/feature/details/components/Movie.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...
EZRecipes/app/src/main/java/com/abhiek/ezrecipes/ui/MainLayout.kt
unknown_repo
kotlin
package com.abhiek.ezrecipes.ui import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.padding import androidx.compose.material.* import androidx.compose.material3.windowsizeclass.WindowWidthSizeClass import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEf...
app/src/main/java/com/prime/media/Home.kt
unknown_repo
kotlin
@file:Suppress("AnimateAsStateLabel") package com.prime.media import android.app.Activity import android.content.Intent import android.content.pm.PackageManager import androidx.activity.compose.rememberLauncherForActivityResult import androidx.activity.result.contract.ActivityResultContracts import androidx.compose.a...
app/src/main/java/com/example/android_study/jetpack/paging3/_main/ui/adapter/PagingLoadStateAdapter.kt
unknown_repo
kotlin
package com.example.android_study.jetpack.paging3._main.ui.adapter import android.view.LayoutInflater import android.view.ViewGroup import androidx.core.view.isVisible import androidx.paging.LoadState import androidx.paging.LoadStateAdapter import androidx.recyclerview.widget.RecyclerView import com.example.android_st...
app/src/main/kotlin/my/application/ecogreen/SetUpChooser.kt
unknown_repo
kotlin
package my.application.ecogreen import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.DialogFragment import com.google.android.material.bottomsheet.BottomSheetDialogFragment import kotlinx.android.synthetic.main.set_up_chooser.* ...
app/src/main/java/com/github/braillesystems/learnbraille/ui/screens/practice/CardViewModel.kt
unknown_repo
kotlin
package com.github.braillesystems.learnbraille.ui.screens.practice import android.app.Application import androidx.lifecycle.* import com.github.braillesystems.learnbraille.data.dsl.ALL_CARDS_DECK_ID import com.github.braillesystems.learnbraille.data.entities.* import com.github.braillesystems.learnbraille.data.reposit...
app/src/main/java/org/lenchan139/lightbrowser/UrlFromExternalActivity.kt
unknown_repo
kotlin
package org.lenchan139.lightbrowser import android.content.Intent import android.support.v7.app.AppCompatActivity import android.os.Bundle import android.util.Log class UrlFromExternalActivity : AppCompatActivity() { override fun onPause() { super.onPause() overridePendingTransition(0, 0) } ...
compose/foundation/foundation-newtext/src/commonMain/kotlin/androidx/compose/foundation/newtext/text/copypasta/selection/SimpleLayout.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...
app/src/main/java/com/gmail/fattazzo/meteo/app/services/WebcamService.kt
unknown_repo
kotlin
/* * Project: meteo * File: WebcamService.kt * * Created by fattazzo * Copyright © 2019 <NAME>. All rights reserved. * * MIT License * 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 ...
presentation/src/main/java/com/nisrulz/example/spacexapi/presentation/features/launch_detail/LaunchDetailScreen.kt
unknown_repo
kotlin
package com.nisrulz.example.spacexapi.presentation.features.launch_detail import androidx.compose.material3.SnackbarHostState import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect import androidx.compose.runtime.getValue import androidx.compose.runtime.remember import androidx.hilt....
app/src/main/java/jp/juggler/subwaytooter/action/Action_Follow.kt
unknown_repo
kotlin
package jp.juggler.subwaytooter.action import androidx.appcompat.app.AlertDialog import jp.juggler.subwaytooter.ActMain import jp.juggler.subwaytooter.R import jp.juggler.subwaytooter.actmain.reloadAccountSetting import jp.juggler.subwaytooter.actmain.showColumnMatchAccount import jp.juggler.subwaytooter.api.* import ...
apps/teacher/src/androidTest/java/com/instructure/teacher/ui/e2e/LoginE2ETest.kt
unknown_repo
kotlin
/* * Copyright (C) 2022 - present Instructure, 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 requ...
08. Homework Local Storage/LocalStorage/app/src/main/java/com/example/localstorage/daos/UpdateDao.kt
unknown_repo
kotlin
package com.example.localstorage.daos import androidx.room.Dao import androidx.room.Insert import androidx.room.Query import com.example.localstorage.entities.Country import com.example.localstorage.entities.Update @Dao interface UpdateDao { @Query("SELECT * FROM `update` LIMIT 1") suspend fun get(): Update ...
app/src/main/java/com/google/samples/apps/sunflower/adapters/CategoryFoodAdapter.kt
unknown_repo
kotlin
/* * Copyright 2018 Google LLC * * 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 ...
app/src/main/java/me/impa/knockonports/viewmodel/MainViewModel.kt
unknown_repo
kotlin
/* * Copyright (c) 2018 <NAME> * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Vers...
app/src/main/java/com/quoinsight/tv/PlaybackVideoFragment.kt
unknown_repo
kotlin
package com.quoinsight.tv import android.net.Uri import android.os.Bundle import androidx.leanback.app.VideoSupportFragment import androidx.leanback.app.VideoSupportFragmentGlueHost import androidx.leanback.media.MediaPlayerAdapter import androidx.leanback.media.PlaybackTransportControlGlue import androidx.leanback.wi...
appbase/src/main/java/com/pthw/appbase/utils/LocalBroadcastEventBus.kt
unknown_repo
kotlin
package com.pthw.appbase.utils import com.pthw.appbase.utils.LocalBroadcastEventBus.EventType import com.pthw.appbase.utils.LocalBroadcastEventBus.LocalEventListener import kotlinx.coroutines.ensureActive import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.asStateFlow import kotlinx.coroutin...
FloatButton/app/src/main/java/com/example/floatbutton/MainActivity.kt
unknown_repo
kotlin
package com.example.floatbutton import android.content.ComponentName import android.content.Intent import android.content.ServiceConnection import android.graphics.Color import android.graphics.Point import android.os.Bundle import android.os.IBinder import android.util.Log import android.view.View.SYSTEM_UI_FLAG_LAYO...
src/main/java/com/internshala/indiexhackathon/MainActivity.kt
unknown_repo
kotlin
package com.internshala.indiexhackathon import android.animation.ObjectAnimator import android.content.Intent import android.graphics.drawable.AnimationDrawable import android.net.Uri import android.os.Bundle import android.speech.RecognitionListener import android.speech.RecognizerIntent import android.speech.SpeechR...
feature/monster-registration/android/src/main/kotlin/br/alexandregpereira/hunter/monster/registration/ui/form/MonsterStatsForm.kt
unknown_repo
kotlin
package br.alexandregpereira.hunter.monster.registration.ui.form import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier import androidx.compose.ui.res.stringResource import br.alexandregpereira.hunter.domain.model.Monster import br.alexandregpereira.hunter.monster.registration.R import br.alexa...
app/src/main/java/com/suda/yzune/wakeupschedule/course_add/SelectWeekFragment.kt
unknown_repo
kotlin
package com.suda.yzune.wakeupschedule.course_add import android.os.Bundle import android.view.* import android.widget.LinearLayout import android.widget.TextView import androidx.core.content.ContextCompat import androidx.fragment.app.DialogFragment import androidx.lifecycle.MutableLiveData import androidx.lifecycle.Ob...
app/src/main/java/com/flixclusive/common/UiText.kt
unknown_repo
kotlin
package com.flixclusive.core.util.common.ui import android.content.Context import androidx.annotation.StringRes import androidx.compose.runtime.Composable import androidx.compose.ui.res.stringResource sealed class UiText { data class StringValue(val str: String) : UiText() class StringResource( @Stri...
app/src/main/java/net/odiak/granite/EditActivity.kt
unknown_repo
kotlin
package net.odiak.granite import android.content.ContentResolver import android.net.Uri import android.os.Bundle import android.os.ParcelFileDescriptor import android.provider.DocumentsContract import androidx.activity.ComponentActivity import androidx.activity.compose.BackHandler import androidx.activity.compose.setC...
app/src/main/java/io/horizontalsystems/bankwallet/entities/Wallet.kt
unknown_repo
kotlin
package io.horizontalsystems.bankwallet.entities import android.os.Parcelable import io.horizontalsystems.bankwallet.modules.transactions.TransactionSource import io.horizontalsystems.marketkit.models.CoinType import io.horizontalsystems.marketkit.models.PlatformCoin import kotlinx.android.parcel.Parcelize import java...
common-app/src/main/java/de/rki/covpass/commonapp/uielements/CheckContextCheckboxElement.kt
unknown_repo
kotlin
/* * (C) Copyright IBM Deutschland GmbH 2021 * (C) Copyright IBM Corp. 2021 */ package de.rki.covpass.commonapp.uielements import android.content.Context import android.util.AttributeSet import android.view.LayoutInflater import android.view.ViewGroup import android.widget.FrameLayout import androidx.core.view.isV...
app/src/main/java/com/example/android/codelabs/navigation/HomeFragment.kt
unknown_repo
kotlin
/* * Copyright (C) 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 app...
app/src/main/java/com/harera/hayat/adapter/MedicinesAdapter.kt
unknown_repo
kotlin
package com.harera.hayat.adapter import android.location.Geocoder import android.view.LayoutInflater import android.view.ViewGroup import androidx.recyclerview.widget.RecyclerView import com.harera.hayat.adapter.MedicinesAdapter.ViewHolder import com.harera.hayat.databinding.CardViewMedicineProductBinding import com.h...
base/build-system/integration-test/application/src/test/java/com/android/build/gradle/integration/application/JetifierTest.kt
unknown_repo
kotlin
/* * Copyright (C) 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 app...
app/src/androidTest/java/com/xently/ui/demo/ExampleInstrumentedTest.kt
unknown_repo
kotlin
package com.xently.ui.demo import androidx.test.ext.junit.runners.AndroidJUnit4 import androidx.test.filters.LargeTest import androidx.test.platform.app.InstrumentationRegistry import org.junit.Assert.assertEquals import org.junit.Test import org.junit.runner.RunWith /** * Instrumented test, which will execute on an...
app/src/main/java/example/jllarraz/com/passportreader/ui/fragments/CameraFragment.kt
unknown_repo
kotlin
package example.jllarraz.com.passportreader.ui.fragments import android.Manifest import android.app.AlertDialog import android.app.Dialog import android.content.Context import android.content.pm.PackageManager import android.hardware.camera2.CameraCharacteristics import android.os.Build import android.os.Bundle import...