file_path
stringlengths
6
261
repository
stringclasses
2 values
language
stringclasses
1 value
content
stringlengths
121
454k
app/src/main/kotlin/io/eugenethedev/taigamobile/ui/screens/commontask/components/CommonTaskWatchers.kt
unknown_repo
kotlin
package io.eugenethedev.taigamobile.ui.screens.commontask.components import androidx.annotation.DrawableRes import androidx.annotation.StringRes import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Spacer import androidx.compose.f...
app/src/main/java/ac/uk/hope/osmviewerjetpack/displayables/search/ArtistSearchViewModel.kt
unknown_repo
kotlin
package ac.uk.hope.osmviewerjetpack.displayables.search import ac.uk.hope.osmviewerjetpack.domain.musicbrainz.model.Artist import ac.uk.hope.osmviewerjetpack.repository.fanarttv.FanartTvRepository import ac.uk.hope.osmviewerjetpack.repository.musicbrainz.MusicBrainzRepository import ac.uk.hope.osmviewerjetpack.util.TA...
ceres-extensions/src/main/kotlin/dev/teogor/ceres/extensions/FragmentManagerExt.kt
unknown_repo
kotlin
/* * Copyright 2022 teogor (Teodor Grigor) 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 ...
app/src/main/java/org/simple/clinic/registration/pin/RegistrationPinScreen.kt
unknown_repo
kotlin
package org.simple.clinic.registration.pin import android.content.Context import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.view.inputmethod.EditorInfo import com.jakewharton.rxbinding3.widget.editorActions import com.spotify.mobius.functi...
ui/feature/search/src/main/kotlin/com/francescsoftware/weathersample/ui/feature/search/weather/ui/WeatherStateWrapperProvider.kt
unknown_repo
kotlin
@file: Suppress("MagicNumber") package com.francescsoftware.weathersample.ui.feature.search.weather.ui import androidx.compose.ui.tooling.preview.PreviewParameterProvider import com.francescsoftware.weathersample.core.type.weather.AverageVisibility import com.francescsoftware.weathersample.core.type.weather.Humidity ...
app/src/main/java/dev/mryp/drawerdemo/MainActivity.kt
unknown_repo
kotlin
package dev.mryp.drawerdemo import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.foundation.background import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.* import androidx.compose.material.* import an...
app/src/main/java/com/arreis/brightnessswitcher/configuration/LevelListAdapter.kt
unknown_repo
kotlin
package com.arreis.brightnessswitcher.configuration import android.content.Context import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.BaseAdapter import com.arreis.brightnessswitcher.R import com.arreis.brightnessswitcher.domain.entity.BrightnessLevel class...
app/src/main/java/eu/pkgsoftware/babybuddywidgets/timers/TimerControllersV2.kt
unknown_repo
kotlin
package eu.pkgsoftware.babybuddywidgets.timers import android.os.Handler import android.view.View import android.view.ViewGroup import android.widget.AdapterView import android.widget.ArrayAdapter import android.widget.Button import android.widget.ImageButton import android.widget.LinearLayout import android.widget.Sp...
composeApp/src/iosMain/kotlin/org/chaintech/app/utility/util.ios.kt
unknown_repo
kotlin
package org.chaintech.app.utility import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect import kotlinx.cinterop.ExperimentalForeignApi import kotlinx.cinterop.memScoped import kotlinx.cinterop.pointed import platform.Foundation.NSBundle import platform.UIKit.UIApplication import pla...
plugins/radar-android-phone/src/main/java/org/radarbase/passive/phone/PhoneSensorManager.kt
unknown_repo
kotlin
/* * Copyright 2017 The Hyve * * 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 writ...
sampleapp/src/main/java/co/nimblehq/loyalty/sdk/poc/ui/screen/history/RewardHistoryScreen.kt
unknown_repo
kotlin
package co.nimblehq.loyalty.sdk.poc.ui.screen.history import android.app.Activity import android.widget.Toast import androidx.compose.foundation.layout.* import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.itemsIndexed import androidx.compose.material.icons.Icons import androidx....
app/src/main/java/com/wings/kotlinweather/WeatherApp.kt
unknown_repo
kotlin
package com.wings.kotlinweather import android.annotation.SuppressLint import android.app.Application import android.content.Context /** * @author -> Wings * @date -> 2020/8/17 * @email -> <EMAIL> <EMAIL> * @phone -> 18983790146 * @blog -> https://ruanyandong.github.io -> https://blog.csdn.net/qq_34681580 ...
app/src/main/java/com/danielefavaro/waround/base/BaseBottomSheetDialogFragment.kt
unknown_repo
kotlin
package com.danielefavaro.waround.base import com.danielefavaro.waround.base.util.ViewModelsFactory import com.google.android.material.bottomsheet.BottomSheetDialogFragment import javax.inject.Inject abstract class BaseBottomSheetDialogFragment : BottomSheetDialogFragment() { @Inject lateinit var viewModelsF...
app/src/main/java/com/danielefavaro/waround/base/BaseBottomSheetDialogFragment.kt
unknown_repo
kotlin
package com.danielefavaro.waround.base import com.danielefavaro.waround.base.util.ViewModelsFactory import com.google.android.material.bottomsheet.BottomSheetDialogFragment import javax.inject.Inject abstract class BaseBottomSheetDialogFragment : BottomSheetDialogFragment() { @Inject lateinit var viewModelsF...
AnimationCodelab/start/src/main/java/com/example/android/codelab/animation/ui/Color.kt
unknown_repo
kotlin
/* * Copyright 2021 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
library/src/main/java/androidx/kotlin/expand/version/VersionX.kt
unknown_repo
kotlin
@file:JvmName("VersionUtils") package androidx.kotlin.expand.version import android.os.Build @JvmName("isMinVersion") fun Int.minVersionExpand(): Boolean = Build.VERSION.SDK_INT >= this @JvmName("isMaxVersion") fun Int.maxVersionExpand(): Boolean = Build.VERSION.SDK_INT <= this @JvmName("isK") fun hasKExpand(): Bo...
tools/tungsten/core/src/com/google/android/filament/tungsten/ui/preview/CameraManipulator.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/example/newsappcompose/domain/repository/NewsRepository.kt
unknown_repo
kotlin
package com.example.newsappcompose.domain.repository import androidx.paging.PagingData import com.example.newsappcompose.data.remote.dto.GetNewsResponse import com.example.newsappcompose.domain.model.Result import kotlinx.coroutines.flow.Flow interface NewsRepository { fun getNews(page: String?, category: List<Str...
app/src/main/kotlin/com/wiley/fordummies/androidsdk/tictactoe/ui/activity/HelpWebViewActivity.kt
unknown_repo
kotlin
package com.wiley.fordummies.androidsdk.tictactoe.ui.activity import androidx.annotation.Keep import androidx.fragment.app.Fragment import com.wiley.fordummies.androidsdk.tictactoe.ui.SingleFragmentActivity import com.wiley.fordummies.androidsdk.tictactoe.ui.fragment.HelpWebViewFragment /** * Activity to show a WebV...
Src/app/src/main/java/com/example/inventory/FollowActivity.kt
unknown_repo
kotlin
package com.example.inventory import android.content.Intent import android.os.Bundle import android.widget.Button import android.widget.EditText import androidx.appcompat.app.AppCompatActivity import android.widget.Toast class FollowActivity : AppCompatActivity() { private lateinit var followUpSession1Text: Edit...
app/src/main/java/jp/juggler/subwaytooter/view/CountImageButton.kt
unknown_repo
kotlin
package jp.juggler.subwaytooter.view import android.content.Context import android.graphics.Canvas import android.graphics.Paint import android.graphics.Rect import android.graphics.Typeface import android.util.AttributeSet import android.view.ViewGroup import androidx.appcompat.widget.AppCompatImageButton class Coun...
app/src/main/java/com/pengxh/autodingding/utils/Constant.kt
unknown_repo
kotlin
package com.pengxh.autodingding.utils import android.Manifest import android.os.Build /** * @author: Pengxh * @email: 290677893@qq.com * @date: 2019/12/29 12:42 */ object Constant { val USER_PERMISSIONS = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) { arrayOf( Manifest.permission.QU...
app/src/main/java/com/krootl/beetlens/ui/common/InfinitePagerAdapter.kt
unknown_repo
kotlin
package com.krootl.beetlens.ui.common import androidx.recyclerview.widget.RecyclerView abstract class InfinitePagerAdapter<T, VH : RecyclerView.ViewHolder>(private val data: List<T>) : RecyclerView.Adapter<VH>() { override fun getItemCount(): Int = if (data.isEmpty()) 0 else data.size + 2 fun getRealCount(...
mobilepayments/src/main/java/com/begateway/mobilepayments/ui/intefaces/OnActionbarSetup.kt
unknown_repo
kotlin
package com.begateway.mobilepayments.ui.intefaces import androidx.appcompat.widget.Toolbar interface OnActionbarSetup { fun addToolBar( toolbar: Toolbar, title: String?, onBackPressedAction: (() -> Unit)? ) }
app/src/full/java/me/tagavari/airmessage/flavor/PlaySecurityBridge.kt
unknown_repo
kotlin
package me.tagavari.airmessage.flavor import android.app.Activity import android.content.Context import android.content.Intent import com.google.android.gms.common.GoogleApiAvailability import com.google.android.gms.security.ProviderInstaller import com.google.android.gms.security.ProviderInstaller.ProviderInstallList...
view/src/main/java/com/tunjid/androidx/view/util/SpringProperties.kt
unknown_repo
kotlin
package com.tunjid.androidx.view.util import android.annotation.SuppressLint import android.view.Gravity import android.view.View import android.view.ViewGroup import androidx.core.view.marginBottom import androidx.core.view.marginLeft import androidx.core.view.marginRight import androidx.core.view.marginTop import an...
app/src/main/java/org/wikipedia/analytics/DailyStatsFunnel.kt
unknown_repo
kotlin
package org.wikipedia.analytics import android.content.Context import android.content.pm.PackageManager import org.json.JSONObject import org.wikipedia.WikipediaApp import org.wikipedia.auth.AccountUtil import org.wikipedia.json.JsonUtil import java.util.concurrent.TimeUnit class DailyStatsFunnel(app: WikipediaApp) :...
app/src/main/java/com/celzero/bravedns/database/ODoHEndpointRepository.kt
unknown_repo
kotlin
/* * Copyright 2023 RethinkDNS and its authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
android-kotlin/idea-android/testData/android/resourceIntention/kotlinAndroidAddStringResource/innerClassInActivity/expected/main.kt
unknown_repo
kotlin
package com.myapp import android.app.Activity class MyActivity: Activity() { inner class Helper { fun a(): String = "q" inner class HelperOfHelper { fun b(): String = getString(R.string.resource_id) } } }
app/src/main/java/com/google/ar/core/codelabs/scenesemantics/helpers/CodelabView.kt
unknown_repo
kotlin
/* * Copyright 2022 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
feature_autofill_impl/src/main/kotlin/com/eakurnikov/autoque/autofill/impl/internal/ui/update/UpdatePromptUi.kt
unknown_repo
kotlin
package com.eakurnikov.autoque.autofill.impl.internal.ui.update import android.app.Activity /** * Created by eakurnikov on 2019-09-14 */ interface UpdatePromptUi { val activityContext: Activity fun finish() }
feature_autofill_impl/src/main/kotlin/com/eakurnikov/autoque/autofill/impl/internal/ui/update/UpdatePromptUi.kt
unknown_repo
kotlin
package com.eakurnikov.autoque.autofill.impl.internal.ui.update import android.app.Activity /** * Created by eakurnikov on 2019-09-14 */ interface UpdatePromptUi { val activityContext: Activity fun finish() }
library/src/main/java/com/pedro/library/srt/SrtStream.kt
unknown_repo
kotlin
/* * Copyright (C) 2023 pedroSG94. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
app/src/main/java/me/hufman/androidautoidrive/phoneui/NavIntentActivity.kt
unknown_repo
kotlin
package me.hufman.androidautoidrive.phoneui import android.animation.ObjectAnimator import android.graphics.Point import android.os.Bundle import android.view.View import android.view.WindowManager import android.view.animation.DecelerateInterpolator import androidx.activity.viewModels import androidx.appcompat.app.Ap...
app/src/main/java/com/yechaoa/wanandroid_kotlin/adapter/ArticleAdapter.kt
unknown_repo
kotlin
package com.yechaoa.wanandroid_kotlin.adapter import android.text.Html import com.chad.library.adapter.base.BaseQuickAdapter import com.chad.library.adapter.base.viewholder.BaseViewHolder import com.yechaoa.wanandroid_kotlin.R import com.yechaoa.wanandroid_kotlin.bean.ArticleDetail /** * Created by yechao on 2020/1/...
app/src/main/java/kittoku/osc/preference/custom/common.kt
unknown_repo
kotlin
package kittoku.osc.preference.custom import androidx.preference.Preference import kittoku.osc.preference.OscPrefKey internal interface OscPreference { val oscPrefKey: OscPrefKey val parentKey: OscPrefKey? val preferenceTitle: String fun updateView() } internal fun <T> T.initialize() where T : Prefe...
library_base/src/main/java/com/knight/kotlin/library_base/network/NetworkManager.kt
unknown_repo
kotlin
package com.knight.kotlin.library_base.network import android.app.Application import android.content.BroadcastReceiver import android.content.Context import android.content.Intent import android.net.ConnectivityManager import android.net.Network import android.net.NetworkRequest import android.os.Build import android....
app/src/main/java/com/prosabdev/fluidmusic/ui/activities/settings/StorageAccessSettingsActivity.kt
unknown_repo
kotlin
package com.prosabdev.fluidmusic.ui.activities.settings import android.content.Intent import android.os.Bundle import android.util.Log import android.widget.Toast import android.window.OnBackInvokedDispatcher import androidx.activity.OnBackPressedCallback import androidx.activity.result.contract.ActivityResultContract...
app/src/main/java/jp/kaleidot725/orbit/ui/components/pages/init/InitViewModel.kt
unknown_repo
kotlin
package jp.kaleidot725.orbit.ui.components.pages.init import androidx.lifecycle.ViewModel import jp.kaleidot725.orbit.domain.usecase.FetchAllPokemonUseCase import jp.kaleidot725.orbit.ui.common.UiStatus import org.orbitmvi.orbit.ContainerHost import org.orbitmvi.orbit.syntax.simple.intent import org.orbitmvi.orbit.syn...
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/bold/Grideraser.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...
app/src/main/java/com/example/connected_bluetooth_devices_sample/MainActivity.kt
unknown_repo
kotlin
package com.example.connected_bluetooth_devices_sample import android.Manifest import android.os.* import android.util.Log import android.view.View import androidx.appcompat.app.AppCompatActivity import androidx.lifecycle.* class MainActivity : AppCompatActivity() { private lateinit var viewModel: MainActivityVi...
Compose-My-Pohang-App/app/src/main/java/com/example/mypohangapp/component/MyPohangTopAppBar.kt
unknown_repo
kotlin
package com.example.mypohangapp.component import androidx.compose.foundation.layout.Box import androidx.compose.material.icons.Icons import androidx.compose.material.icons.filled.ArrowBack import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.material3.Icon import androidx.compose.material...
LayoutsCodelab/app/src/main/java/com/example/layoutscodelab/MultithreadedLearning/CoroutineTest.kt
unknown_repo
kotlin
package com.example.layoutscodelab.MultithreadedLearning import android.app.DownloadManager import android.net.Uri import android.view.ViewGroup import kotlinx.coroutines.* suspend fun main() { GlobalScope.launch { //全局Scope val a = add(1, 2)//挂起 val b = add(4, 5)//挂起 print(a + b) ...
app/src/main/java/com/armandodarienzo/k9board/ui/screens/LanguageSelectionScreen.kt
unknown_repo
kotlin
package com.armandodarienzo.k9board.ui.screens import android.content.Context import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.compose.foundation.select...
RoomDbFlow/app/src/main/java/com/example/roomdbflow/database/dao/ProductDao.kt
unknown_repo
kotlin
package com.example.roomdbflow.database.dao import androidx.lifecycle.LiveData import androidx.room.* import com.example.roomdbflow.models.Product @Dao interface ProductDao { @Query("SELECT * FROM products where id = :id") fun get(id: Int): LiveData<Product> @Insert suspend fun add(mode: Product) ...
iteration1/musically/app/src/main/java/com/odesa/musically/services/media/connection/MusicServiceConnectionImpl.kt
unknown_repo
kotlin
package com.odesa.musically.services.media.connection import android.content.ComponentName import android.content.Context import android.support.v4.media.MediaBrowserCompat import android.support.v4.media.session.MediaControllerCompat import com.odesa.musically.services.media.connection.MusicServiceConnectionImpl.Medi...
app/src/main/java/com/sanjeevyadavit/magecart/presentation/products/components/ProductList.kt
unknown_repo
kotlin
package com.sanjeevyadavit.magecart.ui.products import android.util.Log import androidx.compose.foundation.border import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.heightIn import androidx.compose.foundation.lazy.grid.GridCells i...
app/src/main/java/com/github/odaridavid/weatherapp/designsystem/molecule/Buttons.kt
unknown_repo
kotlin
package com.github.odaridavid.weatherapp.designsystem.molecule import androidx.compose.foundation.background import androidx.compose.material3.Button import androidx.compose.material3.ButtonDefaults import androidx.compose.material3.MaterialTheme import androidx.compose.runtime.Composable import androidx.compose.ui.Mo...
easyfirebaselist/src/main/java/com/mobymagic/easyfirebaselist/EmptyStyle.kt
unknown_repo
kotlin
package com.mobymagic.easyfirebaselist import android.graphics.Color import android.support.annotation.ColorInt import android.support.annotation.DrawableRes data class EmptyStyle( @DrawableRes val emptyIconRes: Int, val emptyMessage: String, @ColorInt val emptyIconTintColor: Int = Color.parse...
app/src/main/java/com/eatssu/android/util/MySharedPreferences.kt
unknown_repo
kotlin
package com.eatssu.android.util import android.content.Context import android.content.SharedPreferences //자동 로그인을 위한 SharedPreferences object MySharedPreferences { private val MY_ACCOUNT: String = "account" fun setUserEmail(context: Context, input: String) { val prefs: SharedPreferences = ...
core/design-system/src/main/java/com/yawl/vermont/designsystem/theme/Color.kt
unknown_repo
kotlin
package com.yawl.vermont.designsystem.theme import androidx.compose.ui.graphics.Color internal val primaryLight = Color(0xFF2F628C) internal val onPrimaryLight = Color(0xFFFFFFFF) internal val primaryContainerLight = Color(0xFFCEE5FF) internal val onPrimaryContainerLight = Color(0xFF001D33) internal val secondaryLigh...
app/src/main/java/com/prush/justanotherplayer/ui/main/MainActivity.kt
unknown_repo
kotlin
package com.prush.justanotherplayer.ui.main import android.Manifest import android.content.Intent import android.content.pm.PackageManager import android.os.Bundle import android.util.Log import android.view.Menu import android.view.MenuItem import com.google.android.material.snackbar.Snackbar import com.prush.justano...
app/src/main/java/com/hfut/schedule/ui/ComposeUI/Settings/Test/Debug.kt
unknown_repo
kotlin
package com.hfut.schedule.ui.ComposeUI.Settings import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.padding import androidx.compose.material3.ExperimentalMaterial3Api import android...
app/src/main/java/org/oppia/android/app/devoptions/markchapterscompleted/StorySummaryViewModel.kt
unknown_repo
kotlin
package org.oppia.android.app.devoptions.markchapterscompleted /** [MarkChaptersCompletedItemViewModel] for displaying a story. */ class StorySummaryViewModel(val storyTitle: String) : MarkChaptersCompletedItemViewModel()
app/src/main/java/com/ferrariofilippo/saveapp/util/CloudStorageUtil.kt
unknown_repo
kotlin
// Copyright (c) 2024 <NAME> // Licensed under the MIT License. See the LICENSE. package com.ferrariofilippo.saveapp.util import android.app.Activity import android.os.Handler import android.os.Looper import androidx.activity.result.IntentSenderRequest import androidx.work.OneTimeWorkRequestBuilder import androidx.wo...
app/src/main/java/com/clcmo/marvelchallenge/adapters/LoadingStateAdapter.kt
unknown_repo
kotlin
package com.clcmo.marvelchallenge.adapters import android.view.LayoutInflater import android.view.ViewGroup import androidx.paging.LoadState import androidx.paging.LoadStateAdapter import androidx.recyclerview.widget.RecyclerView import com.clcmo.marvelchallenge.databinding.ViewLoadingStateBinding class LoadingState...
app/src/main/java/com/timebudget/data/RepoBoundaryCallback.kt
unknown_repo
kotlin
package com.timebudget.data import android.arch.paging.PagedList import android.util.Log import com.timebudget.data.database.LocalDataSource import com.timebudget.entities.TimeTrackEntry /** * Created by emil.ivanov on 9/19/18. * Reference https://codelabs.developers.google.com/codelabs/android-paging/index.html?in...
commons/src/main/kotlin/com/simplemobiletools/commons/receivers/SharedThemeReceiver.kt
unknown_repo
kotlin
package com.simplemobiletools.commons.receivers import android.content.BroadcastReceiver import android.content.Context import android.content.Intent import com.simplemobiletools.commons.extensions.baseConfig import com.simplemobiletools.commons.extensions.getSharedTheme import com.simplemobiletools.commons.helpers.My...
navigator-compose/samples/basic-sample/src/main/java/com/kpstv/navigation/compose/sample/MainActivity.kt
unknown_repo
kotlin
package com.kpstv.navigation.compose.sample import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.material.MaterialTheme import androidx.compose.material.Surface import com.kpstv.navigation.compose.ComposeNavigator import com.kpstv.navig...
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/MapLocationTrack.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/mohcoder/demoapp/ui/base/BaseFragment.kt
unknown_repo
kotlin
package com.mohcoder.demoapp.ui.base /** * Copyright (c) 2024 MohLovesCode * 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...
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/MathXDivide2.kt
unknown_repo
kotlin
package com.woowla.compose.icon.collections.tabler.tabler.outline import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.Companion.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.vector.ImageVector import androidx.compose.ui.graphics.vector...
app/src/main/java/com/wavesplatform/wallet/v2/ui/home/quick_action/receive/ReceivePageAdapter.kt
unknown_repo
kotlin
/* * Created by Eduard Zaydel on 1/4/2019 * Copyright © 2019 Waves Platform. All rights reserved. */ package com.wavesplatform.wallet.v2.ui.home.quick_action.receive import androidx.fragment.app.Fragment import androidx.fragment.app.FragmentManager import androidx.fragment.app.FragmentStatePagerAdapter import com....
straight/src/commonMain/kotlin/me/localx/icons/straight/filled/DiagramNext.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...
app/src/main/kotlin/kr/ac/snu/hcil/omnitrack/core/visualization/models/TimelineComparisonLineChartModel.kt
unknown_repo
kotlin
package kr.ac.snu.hcil.omnitrack.core.visualization.models import android.content.Context import io.reactivex.Single import io.realm.Realm import io.realm.Sort import kr.ac.snu.hcil.android.common.isNumericPrimitive import kr.ac.snu.hcil.android.common.toBigDecimal import kr.ac.snu.hcil.omnitrack.OTAndroidApp import k...
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/Armchair.kt
unknown_repo
kotlin
package com.woowla.compose.icon.collections.tabler.tabler.outline import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.Companion.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.vector.ImageVector import androidx.compose.ui.graphics.vector...
widgets/src/androidMain/kotlin/dev/icerock/moko/widgets/buttonWidgetViewFactory.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.widgets import android.widget.Button import androidx.lifecycle.Observer import dev.icerock.moko.widgets.core.VFC import dev.icerock.moko.widgets.core.ViewFactoryContext import dev.icerock....
widgets/src/androidMain/kotlin/dev/icerock/moko/widgets/buttonWidgetViewFactory.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.widgets import android.widget.Button import androidx.lifecycle.Observer import dev.icerock.moko.widgets.core.VFC import dev.icerock.moko.widgets.core.ViewFactoryContext import dev.icerock....
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/filled/ArrowDownSquare.kt
unknown_repo
kotlin
package com.woowla.compose.icon.collections.tabler.tabler.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.S...
app/src/main/java/com/patrolin/qplayer/components/Dialog.kt
unknown_repo
kotlin
package com.patrolin.qplayer.components import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.neverEqualPolicy import androidx.compose.runtime.saveable.Saver import androidx.compose.runtime.saveable.listSaver i...
SimpleFlashCard/app/src/main/java/com/greimul/simpleflashcard/viewmodel/CardViewModel.kt
unknown_repo
kotlin
package com.greimul.simpleflashcard.viewmodel import android.app.Application import androidx.lifecycle.AndroidViewModel import androidx.lifecycle.LiveData import androidx.lifecycle.viewModelScope import com.greimul.simpleflashcard.db.Card import com.greimul.simpleflashcard.db.CardRepo import com.greimul.simpleflashcar...
quote/src/main/java/com/pyamsoft/tickertape/quote/dig/chart/DigChart.kt
unknown_repo
kotlin
/* * Copyright 2023 pyamsoft * * 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 ...
dailytags/src/main/java/com/dmytroshuba/dailytags/core/simple/Node.kt
unknown_repo
kotlin
package com.dmytroshuba.dailytags.core.simple import androidx.compose.ui.text.AnnotatedString import com.dmytroshuba.dailytags.core.base.BaseNode /** * Node contains information about matching content that was found during parsing. * @param source the string that matched a particular pattern. * @param children co...
hyperion-core/src/main/java/com/cintory/hyperion/core/internal/ActivityResultsSupportFragment.kt
unknown_repo
kotlin
package com.cintory.hyperion.core.internal import android.support.v4.app.Fragment import android.content.Intent import android.os.Bundle import com.cintory.hyperion.plugin.v1.ActivityResults import java.util.ArrayList /** * Created by Cintory on 2018/9/4 10:41 * Email:<EMAIL> */ class ActivityResultsSupportFragmen...
android/app/src/main/java/com/algorand/android/modules/assets/action/unsupportedasset/UnsupportedAssetInfoActionViewModel.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/com/neuralbit/letsnote/ui/signIn/PrivacyPolicy.kt
unknown_repo
kotlin
package com.neuralbit.letsnote.ui.signIn import android.os.Bundle import android.webkit.WebView import android.webkit.WebViewClient import androidx.appcompat.app.AppCompatActivity import com.neuralbit.letsnote.R class PrivacyPolicy : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { ...
cookies/cookies-store/src/main/java/com/duckduckgo/cookies/store/CookiesDatabaseModels.kt
unknown_repo
kotlin
// ktlint-disable filename /* * Copyright (c) 2022 DuckDuckGo * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required b...
app/src/main/java/com/vultisig/wallet/ui/models/reshare/ReshareStartViewModel.kt
unknown_repo
kotlin
package com.vultisig.wallet.ui.models.reshare import androidx.lifecycle.SavedStateHandle import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.vultisig.wallet.ui.models.keygen.VaultSetupType import com.vultisig.wallet.ui.navigation.Destination import com.vultisig.wallet.ui.navigation....
kotlinx-coroutines-core/concurrent/test/flow/StateFlowUpdateCommonTest.kt
unknown_repo
kotlin
/* * Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. */ package kotlinx.coroutines.flow import kotlinx.coroutines.* import kotlinx.coroutines.flow.* import kotlin.test.* // A simplified version of StateFlowUpdateStressTest class StateFlowUpdateCommonTest : TestBa...
ui-core/src/main/java/com/adyen/checkout/ui/core/internal/data/api/DefaultAddressRepository.kt
unknown_repo
kotlin
/* * Copyright (c) 2023 Adyen N.V. * * This file is open source and available under the MIT license. See the LICENSE file for more info. * * Created by atef on 21/2/2023. */ package com.adyen.checkout.ui.core.internal.data.api import androidx.annotation.RestrictTo import com.adyen.checkout.components.core.inter...
app/src/main/java/com/ccorrads/kotlinfun/network/MealPrepBackendService.kt
unknown_repo
kotlin
package com.ccorrads.kotlinfun.network import android.util.Log import com.ccorrads.kotlinfun.MainApp import com.ccorrads.kotlinfun.events.AbstractServerEvent import com.ccorrads.kotlinfun.events.MealsAvailableEvent import com.ccorrads.kotlinfun.models.MealPrep import com.ccorrads.kotlinfun.models.ParentModel import io...
app/src/main/kotlin/com/foreverht/workplus/module/contact/utlis/DepartmentUtils.kt
unknown_repo
kotlin
package com.foreverht.workplus.module.contact.utlis import android.text.TextUtils import com.foreveross.atwork.infrastructure.model.orgization.DepartmentPath import com.foreveross.atwork.infrastructure.utils.ListUtil fun splitPathToList(fullPath: String, prefix: String): List<String> { var fullNamePath = fullPath...
ndkcrashes/src/main/kotlin/io/appmetrica/analytics/ndkcrashes/impl/utils/AbiResolver.kt
unknown_repo
kotlin
package io.appmetrica.analytics.ndkcrashes.impl.utils import android.os.Build open class AbiResolver(private val supportedAbi: Set<String>) { fun getAbi(): String? { return lookupAbi(Build.SUPPORTED_64_BIT_ABIS) ?: lookupAbi(Build.SUPPORTED_32_BIT_ABIS) } private fun lookupAbi(from: Array<String>...
CustomListViewStudy/app/src/main/java/com/example/hahaj/customlistviewstudy/MainActivity.kt
unknown_repo
kotlin
package com.example.hahaj.customlistviewstudy import android.support.v7.app.AppCompatActivity import android.os.Bundle import android.util.Log import android.view.View import android.view.ViewGroup import android.widget.* import kotlinx.android.synthetic.main.activity_main.* class MainActivity : AppCompatActivity() {...
app/src/main/java/com/michaelpohl/loopyplayer2/ui/licenses/Libraries.kt
unknown_repo
kotlin
package com.michaelpohl.loopyplayer2.ui.licenses import android.os.Parcelable import com.squareup.moshi.JsonClass import kotlinx.android.parcel.Parcelize @Parcelize @JsonClass(generateAdapter = true) data class Libraries(val libraries: List<Library>) : Parcelable { @Parcelize @JsonClass(generateAdapter = tru...
library/src/com/frientrip/calendarview/CustomCalendarView.kt
unknown_repo
kotlin
package com.frientrip.calendarview import android.annotation.SuppressLint import android.content.Context import android.graphics.Typeface import android.util.AttributeSet import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.ImageView import android.widget.Line...
android/apolloui/src/main/java/io/muun/apollo/presentation/ui/signup/unverified_rc/UnverifiedRcWarningFragment.kt
unknown_repo
kotlin
package io.muun.apollo.presentation.ui.signup.unverified_rc import android.view.View import butterknife.BindView import io.muun.apollo.R import io.muun.apollo.presentation.ui.base.SingleFragment import io.muun.apollo.presentation.ui.view.MuunButton class UnverifiedRcWarningFragment : SingleFragment<UnverifiedRcWarnin...
app/src/main/java/com/forcetower/uefs/core/util/ColorUtils.kt
unknown_repo
kotlin
/* * Copyright (c) 2018. * <NAME> <<EMAIL>> * * This file is part of the UNES Open Source Project. * * UNES is licensed under the 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 th...
app/src/androidTest/kotlin/com/moonpi/swiftnotes/test/MainMenu.kt
unknown_repo
kotlin
package com.moonpi.swiftnotes.test import android.support.test.uiautomator.By import android.support.test.uiautomator.UiDevice import org.hamcrest.CoreMatchers import org.junit.Assert open class MainMenu constructor(device : UiDevice) : BaseScreen(device) { private val backUp = By.text("Backup notes") private...
appreader/src/main/java/com/ul/ims/gmdl/reader/fragment/NfcScanFragment.kt
unknown_repo
kotlin
/* * Copyright (C) 2019 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
app/src/main/java/com/example/auth/Authenticator.kt
unknown_repo
kotlin
package com.example.auth import android.accounts.AbstractAccountAuthenticator import android.accounts.Account import android.accounts.AccountAuthenticatorResponse import android.accounts.AccountManager import android.content.Context import android.content.Intent import android.os.Bundle class Authenticator(private va...
Front-End/app/src/main/java/com/example/syncsapp/MainActivity.kt
unknown_repo
kotlin
package com.example.syncsapp import android.content.Intent import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.util.Log import android.widget.Button class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInsta...
app/src/main/java/com/vivekupasani/single/MainActivity.kt
unknown_repo
kotlin
package com.vivekupasani.single import android.os.Bundle import android.util.Log import androidx.activity.enableEdgeToEdge import androidx.appcompat.app.AppCompatActivity import androidx.core.view.ViewCompat import androidx.core.view.WindowInsetsCompat import androidx.navigation.Navigation import androidx.navigation.u...
xposed/src/main/java/moe/fuqiuluo/xposed/hooks/LocationManagerHook.kt
unknown_repo
kotlin
package moe.fuqiuluo.xposed.hooks import android.location.Location import de.robv.android.xposed.XC_MethodHook import de.robv.android.xposed.XposedBridge import de.robv.android.xposed.XposedHelpers import moe.fuqiuluo.xposed.BaseLocationHook import moe.fuqiuluo.xposed.utils.FakeLoc import moe.fuqiuluo.xposed.utils.Log...
src/yieldprobe/src/main/java/com/yieldlab/yieldprobe/data/DeviceMetaData.kt
unknown_repo
kotlin
package com.yieldlab.yieldprobe.data import android.location.Location /** * Data class to hold device meta data. * Non valid entries are encoded as null values. */ data class DeviceMetaData( var mGooglePlayServiceAvailable: Boolean? = null, var mIDFA: String? = null, var mDeviceType: String? = null, ...
app/src/main/java/com/koma/movie/data/source/local/MovieDatabase.kt
unknown_repo
kotlin
/* * Copyright 2019 komamj * * 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...
gb android project/app/src/main/java/org/firezenk/goldenbleetle/features/btspp/BTSPPAction.kt
unknown_repo
kotlin
package org.firezenk.goldenbleetle.features.btspp import android.content.Intent import org.firezenk.goldenbleetle.features.common.Action sealed class BTSPPAction : Action() class Connect(val data: Intent) : BTSPPAction() object StartService : BTSPPAction() object StopService : BTSPPAction() class AccelerationChanged(...
RecyclerCard/app/src/main/java/com/example/recyclercard/adapters/ClientAdapter.kt
unknown_repo
kotlin
package com.example.recyclercard.adapters import android.content.Context import android.util.Log import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.core.content.ContextCompat.getColor import androidx.recyclerview.widget.RecyclerView import com.example.recyclercard...
app/src/main/java/com/pr0gramm/app/ui/fragments/FeedFragment.kt
unknown_repo
kotlin
package com.pr0gramm.app.ui.fragments import android.app.Dialog import android.content.Context import android.os.Bundle import android.view.* import android.view.animation.DecelerateInterpolator import android.widget.ImageView import android.widget.ScrollView import androidx.recyclerview.widget.GridLayoutManager impor...
app/src/main/kotlin/com/vgaidarji/github/app/ui/repositories/RepositoriesViewModel.kt
unknown_repo
kotlin
package com.vgaidarji.github.app.ui.repositories import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel class RepositoriesViewModel : ViewModel() { private val _text = MutableLiveData<String>().apply { value = "This is repositories Fragment" }...