file_path
stringlengths
6
261
repository
stringclasses
2 values
language
stringclasses
1 value
content
stringlengths
121
454k
platform/wizard/template-impl/src/main/kotlin/com/rivan/androlabs/wizard/template/impl/activities/basicActivity/src/secondFragmentKt.kt
unknown_repo
kotlin
/* * Copyright (C) 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
app/src/main/java/io/particle/android/sdk/controlpanel/MeshManagerAccessModel.kt
unknown_repo
kotlin
package io.particle.android.sdk.controlpanel import android.app.Application import androidx.fragment.app.Fragment import androidx.fragment.app.FragmentActivity import androidx.lifecycle.AndroidViewModel import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModelProv...
ui/ui-common/src/main/java/com/breadwallet/ui/flowbind/TextViewEvents.kt
unknown_repo
kotlin
/** * BreadWallet * * Created by Drew Carlson <drew.carlson@breadwallet.com> on 12/3/19. * Copyright (c) 2019 breadwallet LLC * * 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...
app/src/main/java/vn/loitp/app/activity/customviews/actionbar/collapsingtoolbarlayoutwithtablayout/CollapsingToolbarWithTabLayoutActivity.kt
unknown_repo
kotlin
package vn.loitp.a.cv.ab.collapsingToolbarLayoutWithTabLayout import android.graphics.Color import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.View.OnClickListener import android.view.ViewGroup import android.widget.TextView import androidx.fragment.app.Fragment im...
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/bold/Building.kt
unknown_repo
kotlin
package moe.tlaster.icons.vuesax.vuesaxicons.bold 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...
mvi_rhine/src/main/java/com/github/qingmei2/mvi/base/viewmodel/BaseViewModel.kt
unknown_repo
kotlin
package com.github.qingmei2.mvi.base.viewmodel import com.github.qingmei2.mvi.base.intent.IIntent import com.github.qingmei2.mvi.base.viewstate.IViewState abstract class BaseViewModel<I : IIntent, S : IViewState> : AutoDisposeViewModel(), IViewModel<I, S>
app/src/main/java/me/ipsum_amet/bikeplace/navigation/destinations/HomeComposable.kt
unknown_repo
kotlin
package me.ipsum_amet.bikeplace.navigation.destinations import androidx.compose.runtime.LaunchedEffect import androidx.compose.runtime.collectAsState import androidx.compose.runtime.getValue import androidx.navigation.NavGraphBuilder import androidx.navigation.NavType import androidx.navigation.compose.composable impo...
app/src/main/java/com/sedsoftware/yaptalker/presentation/extensions/RecyclerViewExt.kt
unknown_repo
kotlin
package com.sedsoftware.yaptalker.presentation.extensions import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.RecyclerView fun RecyclerView.visibleItemPosition(): Int { val layoutManager = this.layoutManager as? LinearLayoutManager return layoutManager?.findFirstVisible...
app/src/main/java/io/wookey/dash/feature/asset/AssetDetailActivity.kt
unknown_repo
kotlin
package io.wookey.dash.feature.asset import android.arch.lifecycle.Observer import android.arch.lifecycle.ViewModelProviders import android.content.Intent import android.os.Bundle import android.support.v4.app.Fragment import android.support.v4.app.FragmentPagerAdapter import android.support.v4.content.ContextCompat i...
Chapter04/Activity4.01/app/src/main/java/com/example/navigationactivity/MySportsFragment.kt
unknown_repo
kotlin
package com.example.navigationactivity 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.navigation.Navigation class MySportsFragment : Fragment() { override fun onC...
app/src/test/kotlin/com/sawrose/movielist/AndroidAssertions.kt
unknown_repo
kotlin
@file:JvmName("AndroidAssertions") @file:JvmMultifileClass package com.sawrose.movielist import android.support.v7.app.AppCompatActivity import org.amshove.kluent.shouldEqual import org.robolectric.Robolectric import org.robolectric.Shadows import kotlin.reflect.KClass infix fun KClass<out AppCompatActivity>.`should...
compose/src/main/java/com/yourssu/design/system/compose/component/toast/ToastHost.kt
unknown_repo
kotlin
package com.yourssu.design.system.compose.component.toast import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect import androidx.compose.runtime.Stable import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.remember imp...
Wechat_chatroom_helper_android/app/src/main/kotlin/com/zdy/project/wechat_chatroom_helper/helper/manager/PermissionHelper.kt
unknown_repo
kotlin
package com.zdy.project.wechat_chatroom_helper.helper.manager import android.Manifest import android.annotation.SuppressLint import android.app.Activity import android.app.AlertDialog import android.content.Intent import android.content.pm.PackageManager import android.net.Uri import android.os.Build import android.os...
app/src/main/java/com/a10miaomiao/bilimiao/comm/BiliNavigation.kt
unknown_repo
kotlin
package com.a10miaomiao.bilimiao.comm import android.net.Uri import android.view.View import androidx.core.os.bundleOf import androidx.navigation.NavOptions import androidx.navigation.Navigation import com.a10miaomiao.bilimiao.MainNavGraph import com.a10miaomiao.bilimiao.R import com.a10miaomiao.bilimiao.comm.navigati...
android-app/src/main/java/com/lukevanoort/cellarman/app/AppModule.kt
unknown_repo
kotlin
package com.lukevanoort.cellarman.app import android.app.Application import android.content.Context import com.lukevanoort.cellarman.dagger.* import com.lukevanoort.cellarman.stuntman.* import com.lukevanoort.cellarman.tasks.RootTask import com.lukevanoort.stuntman.SMMapTaskWad import com.lukevanoort.stuntman.SMTaskDa...
common/src/main/java/com/beok/common/ext/BindingAdapterExt.kt
unknown_repo
kotlin
package com.beok.common.ext import android.widget.ImageView import androidx.databinding.BindingAdapter import androidx.recyclerview.widget.RecyclerView import com.beok.common.base.BaseAdapter import com.bumptech.glide.Glide @BindingAdapter("bind_replaceItem") fun replaceItem(recyclerView: RecyclerView, item: List<Any...
dataforge-data/src/commonMain/kotlin/space/kscience/dataforge/data/Goal.kt
unknown_repo
kotlin
package space.kscience.dataforge.data import kotlinx.coroutines.* import space.kscience.dataforge.misc.DFExperimental import kotlin.coroutines.CoroutineContext import kotlin.coroutines.EmptyCoroutineContext /** * Lazy computation result with its dependencies to allowing to stat computing dependencies ahead of time ...
utilcode/pkg/src/main/java/com/blankj/utilcode/pkg/feature/CoreUtilActivity.kt
unknown_repo
kotlin
package com.blankj.utilcode.pkg.feature import android.content.Context import android.content.Intent import android.os.Bundle import android.view.View import com.blankj.common.CommonTitleActivity import com.blankj.utilcode.pkg.R import com.blankj.utilcode.pkg.feature.activity.ActivityActivity import com.blankj.utilcod...
app/src/main/java/com/test/restaurant/presentation/fragments/DetailFragment.kt
unknown_repo
kotlin
package com.test.restaurant.presentation.fragments import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.Toast import androidx.fragment.app.Fragment import androidx.fragment.app.viewModels import androidx.lifecycle.Observer import andro...
plugins/github/src/org/jetbrains/plugins/github/pullrequest/ui/details/model/GHPRStatusViewModel.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.plugins.github.pullrequest.ui.details.model import com.intellij.collaboration.async.launchNow import com.intellij.collaboration.async.modelFlow import com.intellij.collaboratio...
client/PathFinder/app/src/main/java/com/dijkstra/pathfinder/UnityHolderActivity.kt
unknown_repo
kotlin
package com.dijkstra.pathfinder import android.hardware.Sensor import android.hardware.SensorEvent import android.hardware.SensorEventListener import android.hardware.SensorManager import android.os.Build import android.os.Bundle import android.speech.tts.TextToSpeech import android.util.Log import android.view.Layout...
remix/src/commonMain/kotlin/com/woowla/compose/icon/collections/remix/remix/others/DoorClosedLine.kt
unknown_repo
kotlin
package com.woowla.compose.icon.collections.remix.remix.others 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.Str...
app/src/main/java/br/com/fiap/locawebmailapp/screens/email/EditaRespostaEmailScreen.kt
unknown_repo
kotlin
package br.com.fiap.locawebmailapp.screens.email import android.graphics.Bitmap import android.net.Uri import android.widget.Toast import androidx.activity.compose.rememberLauncherForActivityResult import androidx.activity.result.contract.ActivityResultContracts import androidx.compose.foundation.layout.Column import ...
presentation/src/main/kotlin/com/popularmovies/vpaliy/popularmoviesapp/ui/home/HomeFragment.kt
unknown_repo
kotlin
package com.popularmovies.vpaliy.popularmoviesapp.ui.home import android.os.Bundle import android.support.v4.app.Fragment import android.support.v7.widget.DefaultItemAnimator import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import com.popularmovies.vpaliy.domain.entity.MediaTyp...
sample/src/main/java/ru/debajo/reduktor/sample/domain/command/LoadLocationCommandProcessor.kt
unknown_repo
kotlin
package ru.debajo.reduktor.sample.domain.command import android.Manifest import android.annotation.SuppressLint import android.content.Context import android.content.pm.PackageManager import android.os.Looper import androidx.annotation.RequiresPermission import androidx.core.content.ContextCompat import com.google.and...
camerax-sdk/src/main/kotlin/com/leovp/camerax/adapter/Media.kt
unknown_repo
kotlin
package com.leovp.camerax.adapter import android.net.Uri data class Media( val uri: Uri, val isVideo: Boolean, val date: Long, )
example/android/src/main/java/com/splendo/kaluga/example/architecture/compose/ArchitectureLayout.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 applicable...
showkase-browser-testing-submodule/src/main/java/com/vinaygaba/showkase_browser_testing_submodule/CustomSizePreviews.kt
unknown_repo
kotlin
@file:Suppress("PackageNaming") package com.vinaygaba.showkase_browser_testing_submodule import androidx.compose.ui.tooling.preview.Preview @Preview(name = "CustomSize 100 * 100", widthDp = 100, heightDp = 100, group = "CustomSubmodulePreview") @Preview(name = "CustomSize 200 * 200", widthDp = 200, heightDp = 200, g...
community-family-component/src/main/java/com/kotlin/android/community/family/component/ui/manage/FamilyPermissionActivity.kt
unknown_repo
kotlin
package com.kotlin.android.community.family.component.ui.manage import android.app.Activity import android.content.Intent import android.widget.TextView import androidx.core.content.ContextCompat import com.alibaba.android.arouter.facade.annotation.Route import com.kotlin.android.app.router.path.RouterActivityPath imp...
app/src/main/java/com/kotlin/mvvm/ui/countries/CountriesViewModel.kt
unknown_repo
kotlin
package com.kotlin.mvvm.ui.countries import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.kotlin.mvvm.repository.model.countries.Country import com.kotlin.mvvm.repository.repo.countries.CountriesRepository i...
app/src/main/java/com/mgpersia/androidbox/data/model/Gallery.kt
unknown_repo
kotlin
package com.brouken.player.data.model import android.os.Parcelable import kotlinx.android.parcel.Parcelize @Parcelize data class Gallery( val film: Int?, val height_field: Int?, val id: Int?, val image: String?, val width_field: Int? ):Parcelable
myonnaise/src/test/java/com/ncorti/myonnaise/MyoTest.kt
unknown_repo
kotlin
package com.ncorti.myonnaise import android.bluetooth.BluetoothDevice import android.bluetooth.BluetoothGatt import android.bluetooth.BluetoothGattCharacteristic import android.bluetooth.BluetoothGattDescriptor import android.content.Context import com.nhaarman.mockitokotlin2.any import com.nhaarman.mockitokotlin2.doR...
app/src/main/java/com/peruapps/christopher_elias/services/LocationService.kt
unknown_repo
kotlin
package com.peruapps.christopher_elias.services import android.annotation.SuppressLint import android.app.* import android.content.Context import android.content.Intent import android.graphics.Bitmap import android.graphics.BitmapFactory import android.graphics.Color import android.location.Location import android.os....
app/src/main/java/cz/dmn/cpska/mvp/PresenterState.kt
unknown_repo
kotlin
package cz.dmn.cpska.mvp import android.os.Parcelable import org.parceler.Parcels abstract class PresenterState<SH> { protected var stateHolder: SH = newStateHolder() abstract fun newStateHolder(): SH fun save(): Parcelable = Parcels.wrap(stateHolder) fun restore(parcelable: Parcelable) { st...
app/src/main/java/xyz/junerver/composehooks/example/UseCreationExample.kt
unknown_repo
kotlin
package xyz.junerver.composehooks.example import android.util.Log import androidx.compose.foundation.layout.Column import androidx.compose.material3.Surface import androidx.compose.material3.Text import androidx.compose.runtime.Composable import xyz.junerver.compose.hooks.useCreation import xyz.junerver.compose.hooks....
app/src/main/java/com/github/alunicus/cinemalist/feature/movie/data/PopularMoviesDataSource.kt
unknown_repo
kotlin
package com.github.alunicus.cinemalist.feature.movie.data import androidx.paging.PageKeyedDataSource import com.github.alunicus.cinemalist.core.Result.Failure import com.github.alunicus.cinemalist.core.Result.Success import com.github.alunicus.cinemalist.feature.movie.domain.model.PopularMovie import kotlinx.coroutine...
features/settings/api/src/main/kotlin/com/javernaut/whatthecodec/feature/settings/api/content/VideoStreamFeature.kt
unknown_repo
kotlin
package com.javernaut.whatthecodec.feature.settings.api.content import androidx.annotation.Keep @Keep enum class VideoStreamFeature { Codec, Bitrate, FrameRate, FrameWidth, FrameHeight, Language, Disposition }
SquareBoatApplication/app/src/main/java/com/priyam/squareboatapplication/di/AppComponent.kt
unknown_repo
kotlin
package com.priyam.squareboatapplication.di import android.app.Application import com.priyam.squareboatapplication.BaseApplication import dagger.BindsInstance import dagger.Component import dagger.android.AndroidInjectionModule import dagger.android.AndroidInjector import javax.inject.Singleton @Component( ...
app/src/main/java/es/kix2902/santoral/helpers/VerticalDivider.kt
unknown_repo
kotlin
package es.kix2902.santoral.common.helpers import android.content.Context import android.graphics.Canvas import android.graphics.Rect import android.graphics.drawable.Drawable import android.view.View import androidx.recyclerview.widget.RecyclerView import es.kix2902.santoral.px internal class VerticalDivider(contex...
api_viewing/src/main/kotlin/com/madness/collision/unit/api_viewing/main/MainListLoader.kt
unknown_repo
kotlin
/* * Copyright 2021 Clifford Liu * * 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...
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/BoxUp.kt
unknown_repo
kotlin
package me.localx.icons.straight.bold 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 i...
library/src/main/java/com/santalu/maskara/MaskResult.kt
unknown_repo
kotlin
package com.santalu.maskara import android.text.Editable import android.text.Selection /** * Created by fatih.santalu on 7/7/2020. */ internal data class MaskResult( val selection: Int, val masked: String, val unMasked: String, val isDone: Boolean ) /** * Applies mask result to given text without...
app/src/main/java/com/trustathanas/journalapp/activities/EditJournalActivity.kt
unknown_repo
kotlin
package com.trustathanas.journalapp.activities import android.content.DialogInterface import android.content.Intent import android.support.v7.app.AppCompatActivity import android.os.Bundle import android.view.View import android.widget.Toast import com.trustathanas.journalapp.R import com.trustathanas.journalapp.Rooms...
library/src/test/java/io/github/anderscheow/validator/rules/common/NotEmptyRuleTest.kt
unknown_repo
kotlin
package io.github.anderscheow.validator.rules.common import androidx.annotation.StringRes import org.junit.After import org.junit.Assert.* import org.junit.Before import org.junit.Test class NotEmptyRuleTest { private lateinit var notEmptyRule: NotEmptyRule @Before @Throws(Exception::class) fun setU...
crouter-api/src/main/java/me/wcy/router/FragmentFinder.kt
unknown_repo
kotlin
package me.wcy.router import androidx.fragment.app.Fragment import me.wcy.router.annotation.RouteInfo import kotlin.reflect.KClass /** * Created by wangchenyan.top on 2022/6/8. */ internal object FragmentFinder { fun findFragmentX(request: Request): KClass<out Fragment>? { val uri = request.uri() ?: re...
maps/src/main/java/org/odk/collect/maps/layers/OfflineMapLayersPickerAdapter.kt
unknown_repo
kotlin
package org.odk.collect.maps.layers import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.core.content.ContextCompat import androidx.core.view.isVisible import androidx.recyclerview.widget.AsyncListDiffer import androidx.recyclerview.widget.DiffUtil import androidx.r...
support-refs_heads_androidx-master-dev-ui.tar/ui-framework/src/test/java/androidx/ui/core/gesture/LongPressGestureDetectorTest.kt
unknown_repo
kotlin
/* * Copyright 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
app/src/main/java/com/oguzdogdu/wallies/presentation/main/MainFragment.kt
unknown_repo
kotlin
package com.oguzdogdu.wallies.presentation.main import androidx.fragment.app.viewModels import androidx.lifecycle.lifecycleScope import coil.load import coil.request.CachePolicy import coil.transform.CircleCropTransformation import com.google.android.material.tabs.TabLayoutMediator import com.oguzdogdu.wallies.R impor...
shared/src/main/java/xyz/heart/sms/shared/data/model/DatabaseTable.kt
unknown_repo
kotlin
package xyz.heart.sms.shared.data.model import android.database.Cursor import xyz.heart.sms.encryption.EncryptionUtils interface DatabaseTable { fun getCreateStatement(): String fun getTableName(): String fun getIndexStatements(): Array<String> fun fillFromCursor(cursor: Cursor) fun encrypt(...
JetStreamCompose/jetstream/src/main/java/com/google/jetstream/presentation/utils/Padding.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 in w...
app/src/main/java/com/wololo/hulkify/ui/contacts/ContactsFragment.kt
unknown_repo
kotlin
package com.wololo.hulkify.ui.contacts import android.arch.lifecycle.Observer import android.content.Intent import android.net.Uri import android.os.Bundle import android.support.v7.widget.SearchView import android.view.View import com.wololo.hulkify.R import com.wololo.hulkify.core.BaseAdapter import com.wololo.hulk...
sword/src/main/kotlin/androidx/swift/sword/interceptor/BaseRequestInterceptor.kt
unknown_repo
kotlin
package androidx.swift.sword.interceptor import android.os.Build import androidx.swift.sword.http.JsonBody import androidx.swift.sword.utils.RequestSignUtils import androidx.swift.util.AppUtils import okhttp3.FormBody import okhttp3.Interceptor import okhttp3.Request import okhttp3.Response /** * 请求拦截器 * @author RA...
app/src/main/java/com/example/dailyhunt_clone/Fragment/ForYouFragment.kt
unknown_repo
kotlin
package com.example.dailyhunt_clone.Fragment import android.os.Bundle import android.util.Log import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.annotation.Nullable import androidx.fragment.app.Fragment import androidx.recyclerview.widget.LinearLayoutManager impo...
designsystem/src/main/kotlin/br/pedroso/citieslist/designsystem/components/LoadingState.kt
unknown_repo
kotlin
package br.pedroso.citieslist.ui.components import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.padding import androidx.compose.material3.CircularProgressIndicator import androidx.compose.material3.MaterialTheme import android...
client/src/test/java/org/phoenixframework/liveview/test/ui/view/SpacerShotTest.kt
unknown_repo
kotlin
package org.phoenixframework.liveview.test.ui.view import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.size import androidx.compose.material3.Text import androidx.compose.ui.Alignment i...
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/Bahai.kt
unknown_repo
kotlin
package me.localx.icons.rounded.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.Miter...
app/src/main/java/com/istu/schedule/ui/components/calendar/HorizontalCalendar.kt
unknown_repo
kotlin
package com.istu.schedule.ui.components.calendar import androidx.compose.foundation.gestures.detectHorizontalDragGestures import androidx.compose.foundation.gestures.scrollBy import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Co...
precompose/src/commonMain/kotlin/moe/tlaster/precompose/navigation/RouteBuilder.kt
unknown_repo
kotlin
package moe.tlaster.precompose.navigation import androidx.compose.runtime.Composable import moe.tlaster.precompose.navigation.route.DialogRoute import moe.tlaster.precompose.navigation.route.Route import moe.tlaster.precompose.navigation.route.SceneRoute import moe.tlaster.precompose.navigation.transition.NavTransitio...
app/src/main/java/com/sgc/speedometer/ui/history/HistoryAdapter.kt
unknown_repo
kotlin
package com.sgc.speedometer.ui.history import android.annotation.SuppressLint import android.content.Context import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.recyclerview.widget.RecyclerView import com.sgc.speedometer.R import com.sgc.speedometer.data.DataManage...
boilerplate2020/src/main/java/pro/tlrs/boilerplate2020/lifecycle/ViewModel.kt
unknown_repo
kotlin
package pro.tlrs.boilerplate2020.lifecycle import androidx.lifecycle.LiveData import pro.tlrs.boilerplate2020.lives.SingleLiveEvent /** * Viewmodel parametrized by state class or superclass. */ open class ViewModel<STATE> : androidx.lifecycle.ViewModel() { /** * Back field for state. * Use _state.valu...
sample-android/src/main/java/com/sample/analytics/MainActivity.kt
unknown_repo
kotlin
package com.sample.analytics import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import com.yandex.metrica.YandexMetrica import com.yandex.metrica.YandexMetricaConfig class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanc...
ackpine-splits/src/main/kotlin/ru/solrudev/ackpine/splits/Abi.kt
unknown_repo
kotlin
package ru.solrudev.ackpine import android.os.Build import ru.solrudev.ackpine.helpers.splitTypePart public enum class Abi { ARMEABI, ARMEABI_V7A, ARM64_V8A, X86, X86_64, MIPS, MIPS64; public companion object { private val abis = Abi.values().map { it.name.lowercase() }.toSet() @JvmStatic public val devic...
androidApp/src/main/java/com/flepper/therapeutic/android/util/PlayerUtil.kt
unknown_repo
kotlin
package com.flepper.therapeutic.android.util import android.content.Context import android.media.MediaPlayer import androidx.compose.ui.platform.LocalContext import androidx.media3.common.MediaItem import androidx.media3.exoplayer.ExoPlayer object PlayerUtil { var player: ExoPlayer? = null private var playWh...
app/src/main/java/me/xianglun/blinkblinkbeachadmin/data/repository/createEvent/CreateEventRepositoryImpl.kt
unknown_repo
kotlin
package me.xianglun.blinkblinkbeachadmin.data.repository.createEvent import android.net.Uri import com.google.firebase.firestore.FirebaseFirestore import com.google.firebase.storage.StorageReference import kotlinx.coroutines.tasks.await import me.xianglun.blinkblinkbeachadmin.data.model.Event import me.xianglun.blinkb...
app/src/main/java/com/sunueric/prototype1/ui/composables/RippleLoadingAnimation.kt
unknown_repo
kotlin
package com.sunueric.prototype1.ui.composables import androidx.compose.animation.core.animateFloatAsState import androidx.compose.animation.core.infiniteRepeatable import androidx.compose.animation.core.tween import androidx.compose.foundation.border import androidx.compose.foundation.layout.Box import androidx.compos...
basick/src/main/java/com/mozhimen/basick/utilk/android/graphics/UtilKStateListDrawable.kt
unknown_repo
kotlin
package com.mozhimen.basick.utilk.android.graphics import android.graphics.drawable.Drawable import android.graphics.drawable.StateListDrawable import androidx.annotation.DrawableRes import androidx.annotation.RequiresApi import androidx.annotation.RequiresPermission import com.mozhimen.basick.elemk.android.os.cons.CV...
app/src/main/java/com/ufpb/meuguia/view/FindOptionsView.kt
unknown_repo
kotlin
package com.ufpb.meuguia.view import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.layout.padding import androidx.compose.foundation.lazy.grid.GridCells import androidx.compose.foundation.lazy.grid.LazyVerticalGrid import andro...
straight/src/commonMain/kotlin/me/localx/icons/straight/filled/HandBackPointDown.kt
unknown_repo
kotlin
package me.localx.icons.straight.filled import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.Companion.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap.Companion.Butt import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter...
xkcd/src/main/java/xyz/jienan/xkcd/whatif/fragment/WhatIfMainFragment.kt
unknown_repo
kotlin
package xyz.jienan.xkcd.whatif.fragment import android.app.SearchManager import android.content.Intent import android.database.MatrixCursor import android.graphics.Color import android.os.Bundle import android.provider.BaseColumns import android.view.HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING import android.vi...
common/src/main/java/co/app/common/common/PhotoRecord.kt
unknown_repo
kotlin
/* * Copyright 2020, {{App}} * Licensed under the Apache License, Version 2.0, "{{App}} Inc". * 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...
authlibrary/src/test/java/com/koma/authlibrary/login/LoginViewModelTest.kt
unknown_repo
kotlin
package com.koma.authlibrary.login import androidx.arch.core.executor.testing.InstantTaskExecutorRule import com.google.common.truth.Truth.assertThat import com.koma.authlibrary.data.source.AuthRepository import com.koma.testlibrary.LiveDataTestUtil import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.co...
shared/src/commonMain/kotlin/com.jettaskboard.multiplatform/ui/components/drawer/DrawerHeader.kt
unknown_repo
kotlin
package com.jetapps.jettaskboard.drawer import androidx.compose.animation.core.animateFloatAsState import androidx.compose.animation.core.tween import androidx.compose.foundation.background import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box import androidx.compose.found...
YoutubeKotlin/app/src/main/java/com/example/rajatmonga/youtubekotlin/MainAdapter.kt
unknown_repo
kotlin
package com.example.rajatmonga.kotlinyouttubelbta import android.content.Intent import android.support.v7.widget.RecyclerView import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import com.example.rajatmonga.youtubekotlin.CourseDetailActivity import com.example.rajatmonga.youtubek...
src/main/kotlin/screen/MainView.kt
unknown_repo
kotlin
package screen import androidx.compose.foundation.background import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.material.MaterialTheme import androidx.compose.runtime.* import androidx.compose.ui.Modifier import children import screen.common.A...
app/src/main/java/com/hongbeomi/findtaek/view/util/IntroUtil.kt
unknown_repo
kotlin
package com.hongbeomi.findtaek.view.util import android.app.Activity import android.view.View import co.mobiwise.materialintro.shape.Focus import co.mobiwise.materialintro.shape.FocusGravity import co.mobiwise.materialintro.shape.ShapeType import co.mobiwise.materialintro.view.MaterialIntroView /** * @author hongbeo...
sharedUI/src/commonMain/kotlin/com/prof18/feedflow/shared/ui/home/components/NoFeedsSourceView.kt
unknown_repo
kotlin
package com.prof18.feedflow.shared.ui.home.components import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.padding import androidx.compose.material3.Button import androidx.c...
app/src/main/kotlin/me/zhiyao/waterever/ui/widgets/GridSpacingItemDecoration.kt
unknown_repo
kotlin
package me.zhiyao.waterever.ui.widgets import android.graphics.Rect import android.view.View import androidx.recyclerview.widget.RecyclerView /** * * @author WangZhiYao * @date 2020/9/14 */ class GridSpacingItemDecoration( private val spacing: Int, private val spanCount: Int ) : RecyclerView.ItemDecoratio...
web/src/main/java/top/xuqingquan/web/nokernel/WebUtils.kt
unknown_repo
kotlin
package top.xuqingquan.web.nokernel import android.annotation.SuppressLint import android.app.Activity import android.content.Context import android.content.Intent import android.net.Uri import android.os.Build import android.os.Environment import android.os.Handler import android.os.Looper import android.provider.Med...
web/src/main/java/top/xuqingquan/web/nokernel/WebUtils.kt
unknown_repo
kotlin
package top.xuqingquan.web.nokernel import android.annotation.SuppressLint import android.app.Activity import android.content.Context import android.content.Intent import android.net.Uri import android.os.Build import android.os.Environment import android.os.Handler import android.os.Looper import android.provider.Med...
app/src/main/java/com/example/taskmanagement/ui/fragments/onMainActivity/ShowAllTasksFragment.kt
unknown_repo
kotlin
package com.example.taskmanagement.ui.fragments.onMainActivity import android.content.Context import android.os.Bundle import android.text.TextWatcher import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.databinding.DataBindingUtil import androidx.fragment.app.Fragm...
src/main/kotlin/io/openfuture/api/domain/scaffold/EthereumScaffoldDto.kt
unknown_repo
kotlin
package io.openfuture.api.domain.scaffold import io.openfuture.api.entity.scaffold.Currency import io.openfuture.api.entity.scaffold.EthereumScaffold import io.openfuture.api.entity.scaffold.ScaffoldVersion data class EthereumScaffoldDto( val address: String, val abi: String, val description: ...
android/app/src/main/java/com/algorand/android/modules/asb/createbackup/fileready/ui/model/AsbFileReadyPreview.kt
unknown_repo
kotlin
/* * Copyright 2022 Pera Wallet, LDA * 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,...
app/src/main/java/eu/kanade/tachiyomi/widget/materialdialogs/MaterialAlertDialogBuilderExtensions.kt
unknown_repo
kotlin
package eu.kanade.tachiyomi.widget.materialdialogs import android.content.Context import android.content.res.ColorStateList import android.graphics.Canvas import android.graphics.ColorFilter import android.graphics.Paint import android.graphics.PixelFormat import android.graphics.RectF import android.graphics.drawable...
app/src/main/java/com/example/linma9/mytechcruncharticlelistapplication/DI/module/PresentorModule.kt
unknown_repo
kotlin
package com.example.linma9.mytechcruncharticlelistapplication.DI.module import android.app.Application import android.content.Context import android.support.v7.widget.LinearLayoutManager import android.util.Log import com.example.linma9.mytechcruncharticlelistapplication.DI.scope.ViewScope import com.example.linma9.my...
app/src/main/kotlin/me/miguelos/sample/MainApplication.kt
unknown_repo
kotlin
package me.miguelos.sample import android.app.Application import android.os.StrictMode import dagger.hilt.android.HiltAndroidApp import timber.log.Timber import javax.inject.Inject @HiltAndroidApp class CoreApplication : Application() { @Inject lateinit var loggingTree: Timber.Tree override fun onCreat...
okta-idx-kotlin/src/test/java/com/okta/idx/kotlin/dto/IdxPollCapabilityTest.kt
unknown_repo
kotlin
/* * Copyright 2021-Present Okta, 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 agr...
app/common/src/main/kotlin/me/zhanghai/android/files/provider/root/RootFileService.kt
unknown_repo
kotlin
package me.zhanghai.android.files.provider.root import android.annotation.SuppressLint import android.content.Context import android.os.Process import android.util.Log import tech.nagual.common.BuildConfig import me.zhanghai.android.files.provider.FileSystemProviders import me.zhanghai.android.files.provider.remote.Re...
fintechplatform-api/src/androidTest/java/com/fintechplatform/api/integration/CashInApiIntegrationTest.kt
unknown_repo
kotlin
package com.fintechplatform.api.integration import android.support.test.InstrumentationRegistry import android.support.test.runner.AndroidJUnit4 import com.fintechplatform.api.FintechPlatformAPI import com.fintechplatform.api.card.models.PaymentCardItem import com.fintechplatform.api.money.Money import com.fintechplat...
app/wear/src/main/java/com/victorrubia/tfg/presentation/status_menu/StatusMenuActivity.kt
unknown_repo
kotlin
package com.victorrubia.tfg.presentation.status_menu import android.os.Bundle import android.os.Environment import android.view.WindowManager import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.foundation.layout.* import androidx.compose.material.icons.Icons i...
app/src/main/kotlin/dev/jianastrero/qr_delivery/component/BottomNav.kt
unknown_repo
kotlin
package dev.jianastrero.qr_delivery.component import androidx.compose.foundation.background import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundatio...
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/Shop.kt
unknown_repo
kotlin
package me.localx.icons.rounded.filled 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.compose.ui.gr...
MatchFilter/app/src/main/java/com/github/jaydeepw/matchfilter/models/datasource/repositories/MatchesRepository.kt
unknown_repo
kotlin
package com.github.jaydeepw.matchfilter.models.datasource.repositories import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import com.github.jaydeepw.matchfilter.models.datasource.MatchesDataSource import com.github.jaydeepw.matchfilter.models.datasource.remote.NetworkMatches import com.github...
app/src/main/java/com/example/jetpackcompose/state/livedata/LiveDataActivity.kt
unknown_repo
kotlin
package com.example.jetpackcompose.state.livedata import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import androidx.compose.foundation.Box import androidx.compose.foundation.ContentGravity import androidx.compose.foundation.Text import androidx.compose.foundation.layout.fillMaxSize import androi...
src/main/java/pl/edu/zut/mad/schedule/widget/ScheduleWidgetProvider.kt
unknown_repo
kotlin
package pl.edu.zut.mad.schedule.widget import android.appwidget.AppWidgetManager import android.appwidget.AppWidgetProvider import android.content.Context import android.content.Intent import android.widget.RemoteViews import org.joda.time.LocalDate import pl.edu.zut.mad.schedule.R import pl.edu.zut.mad.schedule.Sched...
model/src/main/java/org/stepik/android/model/user/Profile.kt
unknown_repo
kotlin
package org.stepik.android.model.user import android.os.Parcel import android.os.Parcelable import com.google.gson.annotations.SerializedName import org.stepik.android.model.util.readBoolean import org.stepik.android.model.util.writeBoolean data class Profile( @SerializedName("id") val id: Long = 0, @Ser...
wear/watchface/watchface-complications/src/androidTest/java/androidx/wear/watchface/complications/ComplicationSlotBoundsTest.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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
extensions/vp9/src/main/java/com/google/android/exoplayer2/ext/vp9/VpxDecoder.kt
unknown_repo
kotlin
/* * Copyright (C) 2016 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/kotlin/io/github/nuhkoca/vivy/domain/repository/DoctorsRepository.kt
unknown_repo
kotlin
/* * Copyright (C) 2020. <NAME>. 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 applic...
app/src/main/java/com/learn/lockopensystem/ui/newalarm/NewAlarmFragment.kt
unknown_repo
kotlin
package com.learn.lockopensystem.ui.newalarm import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.Toast import androidx.fragment.app.Fragment import androidx.recyclerview.widget.LinearLayoutManager import com.learn.lockopensystem.R imp...
app/src/main/java/org/wikipedia/readinglist/database/ReadingListDbHelper.kt
unknown_repo
kotlin
package org.wikipedia.readinglist.database import android.content.ContentValues import android.database.sqlite.SQLiteDatabase import org.apache.commons.lang3.StringUtils import org.wikipedia.R import org.wikipedia.WikipediaApp import org.wikipedia.database.contract.ReadingListContract import org.wikipedia.database.con...