file_path
stringlengths
6
261
repository
stringclasses
2 values
language
stringclasses
1 value
content
stringlengths
121
454k
compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/focus/OneDimensionalFocusSearch.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/de/droidcon/berlin2018/ui/search/SearchViewNavigator.kt
unknown_repo
kotlin
package de.droidcon.berlin2018.ui.search import android.content.Intent import android.net.Uri import com.bluelinelabs.conductor.Controller import com.bluelinelabs.conductor.RouterTransaction import com.bluelinelabs.conductor.changehandler.HorizontalChangeHandler import de.droidcon.berlin2018.R import de.droidcon.berli...
example/src/main/java/io/sellmair/example/fragment/ChatFragment.kt
unknown_repo
kotlin
package io.sellmair.example.fragment import android.os.Bundle import android.support.v4.app.Fragment import android.support.v7.app.AppCompatActivity import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import io.sellmair.example.R import io.sellmair.example.destination.ChatDestinat...
common/src/commonMain/kotlin/com/greenmiststudios/common/presenters/HomePresenter.kt
unknown_repo
kotlin
package com.greenmiststudios.common.presenters import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect import com.greenmiststudios.common.viewmodels.HomeViewEvent import com.greenmiststudios.common.viewmodels.HomeViewModel import kotlinx.coroutines.flow.Flow public class HomePresente...
app/src/main/java/com/kgurgul/cpuinfo/utils/SingleLiveEvent.kt
unknown_repo
kotlin
package com.kgurgul.cpuinfo.utils import androidx.annotation.MainThread import androidx.lifecycle.LifecycleOwner import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.Observer import timber.log.Timber import java.util.concurrent.atomic.AtomicBoolean /** * A lifecycle-...
compose/common/src/dev/programadorthi/routing/compose/ComposeRoutingExt.kt
unknown_repo
kotlin
package dev.programadorthi.routing.compose import androidx.compose.runtime.CompositionLocalProvider import androidx.compose.runtime.ProvidableCompositionLocal import androidx.compose.runtime.staticCompositionLocalOf import dev.programadorthi.routing.core.Routing public val LocalPopResult: ProvidableCompositionLocal<C...
app/src/main/java/me/hegj/wandroid/mvp/presenter/main/tree/treeinfo/TreeinfoPresenter.kt
unknown_repo
kotlin
package me.hegj.wandroid.mvp.presenter.main.publicNumber import android.app.Application import com.jess.arms.di.scope.FragmentScope import com.jess.arms.http.imageloader.ImageLoader import com.jess.arms.integration.AppManager import com.jess.arms.mvp.BasePresenter import com.jess.arms.utils.RxLifecycleUtils import com...
library/src/main/java/com/github/skgmn/startactivityx/FragmentApplicationSupplier.kt
unknown_repo
kotlin
package com.github.skgmn.startactivityx import android.app.Application import androidx.fragment.app.Fragment internal class FragmentApplicationSupplier(private val fragment: Fragment): ApplicationSupplier { private var app: Application? = null override fun getApplication(): Application? { return app ...
ads/src/main/java/com/hms/lib/commonmobileservices/ads/rewarded/implementation/GoogleRewardedAd.kt
unknown_repo
kotlin
// Copyright 2020. Explore in HMS. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable la...
androidutilskt/src/main/java/com/lindroid/androidutilskt/extension/logcat/LogLevel.kt
unknown_repo
kotlin
package com.lindroid.androidutilskt.extension.logcat import android.support.annotation.IntDef import android.util.Log /** * @author Lin * @date 2019/3/19 * @function 日志等级 * @Description */ const val VERBOSE = Log.VERBOSE const val DEBUG = Log.DEBUG const val INFO = Log.INFO const val WARN = Log.WARN const val E...
app/src/main/java/com/udacity/shoestore/screens/shoe_list/ShopViewModelFactory.kt
unknown_repo
kotlin
package com.udacity.shoestore.screens.shoe_list import androidx.lifecycle.ViewModel import androidx.lifecycle.ViewModelProvider import com.udacity.shoestore.models.Shoe // factory to create a ShopViewModel with an argument as it is initialized class ShopViewModelFactory(private val shoe: Shoe?...
app/src/main/java/com/peruapps/christopher_elias/ui/holder/MasterViewHolder.kt
unknown_repo
kotlin
package com.peruapps.christopher_elias.ui.holder import androidx.databinding.ViewDataBinding import androidx.recyclerview.widget.RecyclerView /** * Created by <NAME> on 29-may-2019 * <EMAIL> * Lima, Perú * Copyright (c) 2019 All rights reserved. */ class MasterViewHolder<out V : ViewDataBinding>(val binding: V...
ui/ui-core/src/androidMain/kotlin/androidx/compose/ui/platform/AndroidComposeView.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...
SceytChatUiKit/src/main/java/com/sceyt/chatuikit/presentation/uicomponents/conversationinfo/media/viewmodel/ChannelAttachmentsViewModel.kt
unknown_repo
kotlin
package com.sceyt.chatuikit.presentation.components.channel_info.media.viewmodel import android.app.Application import androidx.fragment.app.Fragment import androidx.lifecycle.Lifecycle import androidx.lifecycle.MutableLiveData import androidx.lifecycle.asFlow import androidx.lifecycle.repeatOnLifecycle import android...
app/src/main/java/com/github2136/base/model/HttpModel.kt
unknown_repo
kotlin
package com.github2136.base.model import android.content.Context import com.github2136.basemvvm.BaseWebModel /** * Created by yb on 2019/10/7 */ class HttpModel private constructor(context: Context) : BaseWebModel(context) { var api: HttpService init { baseUrl = "http://www.weather.com.cn/" ...
app/src/main/java/edu/mum/mumwhere/MainActivity.kt
unknown_repo
kotlin
package edu.mum.mumwhere import android.Manifest import android.app.Activity import android.app.ProgressDialog.show import android.content.Context import android.content.Intent import android.content.SharedPreferences import android.content.pm.PackageManager import android.content.res.Configuration import android.gr...
app/src/main/java/com/github/muellerma/tabletoptools/ui/fragments/CounterFragment.kt
unknown_repo
kotlin
package com.github.muellerma.tabletoptools.ui.fragments import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.core.widget.doOnTextChanged import com.github.muellerma.tabletoptools.databinding.CounterBinding import com.github.muellerma.tableto...
pluto/lib/src/main/java/com/pluto/tool/modules/ruler/internal/RulerFragment.kt
unknown_repo
kotlin
package com.pluto.tool.modules.ruler.internal import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.Fragment internal class RulerFragment : Fragment() { override fun onCreateView(inflater: LayoutInflater, container: ViewGro...
app/src/main/java/com/vitorpamplona/amethyst/ui/actions/NewPollPrimaryDescription.kt
unknown_repo
kotlin
package com.vitorpamplona.amethyst.ui.components import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.compose.foundation.text.KeyboardOptions import androidx.compose.material.* import androidx.compose.runtime.* import androidx.compose.ui.ExperimentalC...
app/src/main/java/com/pixaby/arpan/arch/mvi/IModel.kt
unknown_repo
kotlin
package com.pixaby.arpan.arch.mvi import androidx.lifecycle.LiveData import kotlinx.coroutines.channels.Channel interface IModel<S: IState, I: IAction> { val actions: Channel<I> val state: LiveData<S> }
ultron/src/main/java/com/atiurin/ultron/extensions/PerfomOnViewExt.kt
unknown_repo
kotlin
package com.atiurin.ultron.extensions import android.view.View import androidx.test.espresso.DataInteraction import androidx.test.espresso.Espresso.onView import androidx.test.espresso.ViewInteraction import com.atiurin.ultron.core.espresso.UltronEspressoInteraction import com.atiurin.ultron.custom.espresso.action.Cus...
app/src/main/java/com/weesnerdevelopment/serialcabinet/components/BasicListItem.kt
unknown_repo
kotlin
package com.weesnerdevelopment.serialcabinet.components import androidx.compose.foundation.background import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.co...
androidDesignSystem/src/test/java/by/game/binumbers/design/system/components/button/PauseButtonTest.kt
unknown_repo
kotlin
package by.game.binumbers.design.system.components.button import androidx.compose.runtime.Composable import by.game.binumbers.screenshot.test.tool.BaseComponentTest class PauseButtonTest : BaseComponentTest() { override val content: @Composable () -> Unit = { PauseButton() } }
shared/src/commonMain/kotlin/ml/dev/kotlin/openotp/ui/screen/AddProviderScreen.kt
unknown_repo
kotlin
package ml.dev.kotlin.openotp.ui.screen import androidx.compose.animation.core.animateDpAsState import androidx.compose.foundation.layout.* import androidx.compose.foundation.rememberScrollState import androidx.compose.foundation.verticalScroll import androidx.compose.material.icons.Icons import androidx.compose.mater...
app/src/main/java/com/duckduckgo/app/fire/fireproofwebsite/data/FireproofWebsiteRepositoryImpl.kt
unknown_repo
kotlin
/* * Copyright (c) 2020 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 by applicable law or agreed ...
app/src/main/java/com/scriptsquad/unitalk/Socials_Page/activities/Socials_Gallery_Activity.kt
unknown_repo
kotlin
package com.scriptsquad.unitalk.Socials_Page.activities import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import com.scriptsquad.unitalk.databinding.ActivityGalleryBinding import com.scriptsquad.unitalk.Socials_Page.fragments.PictureFragment import com.scriptsquad.unitalk.Socials_Page.fragments....
app/src/main/java/com/example/wordsmemory/di/DbModule.kt
unknown_repo
kotlin
package com.example.wordsmemory.di import android.content.Context import com.example.wordsmemory.framework.room.WMDatabase import com.google.firebase.firestore.ktx.firestore import com.google.firebase.ktx.Firebase import dagger.Module import dagger.Provides import dagger.hilt.InstallIn import dagger.hilt.android.quali...
core/designsystem/src/main/java/com/eshc/goonersapp/core/designsystem/iconpack/IcPeople.kt
unknown_repo
kotlin
package com.eshc.goonersapp.core.designsystem.iconpack 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....
CallofProjectAndroid/app/src/main/java/callofproject/dev/androidapp/presentation/project/project_details/ProjectDetailViewModel.kt
unknown_repo
kotlin
package callofproject.dev.androidapp.presentation.project.project_details import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.setValue import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import callofproject.dev.androidapp.R i...
app/src/main/java/com/bcassar/nbafantasy/playerstatslist/PlayerGameStatsListFragment.kt
unknown_repo
kotlin
package com.bcassar.nbafantasy.playerstatslist 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 import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclervie...
app/src/main/java/com/example/matchmentor/view/CardStackAdapter.kt
unknown_repo
kotlin
package com.example.matchmentor.view import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.ImageView import android.widget.TextView import androidx.recyclerview.widget.RecyclerView import com.example.matchmentor.R import com.example.matchmentor.model.Item clas...
compose/src/main/java/com/neeplayer/compose/ArtistsScreen.kt
unknown_repo
kotlin
package com.neeplayer.compose import androidx.compose.foundation.Image import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.* import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items import androidx.compose.material.MaterialTheme import androidx...
compose_material3/src/main/java/dev/vengateshm/compose_material3/side_effects/ProduceStateSample.kt
unknown_repo
kotlin
package dev.vengateshm.compose_material3.side_effects import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.material3.CircularProgressIndicator import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compo...
app/src/main/java/com/ng/ui/show/view/CtbFragment.kt
unknown_repo
kotlin
package com.ng.ui.show.frag import android.view.View import com.ng.ui.R import kotlinx.android.synthetic.main.fragment_ctb.* /** * 描述: * @author Jzn * @date 2020-06-12 */ class CtbFragment : BaseFragment() { override fun initViewsAndEvents(v: View) { btn1_mcv.setOnClickListener { ctt_mcv.i...
components/src/androidMain/kotlin/com/alexrdclement/uiplayground/components/TextField.android.kt
unknown_repo
kotlin
package com.alexrdclement.uiplayground.components import androidx.compose.foundation.text.input.rememberTextFieldState import androidx.compose.runtime.Composable import androidx.compose.ui.tooling.preview.Preview import com.alexrdclement.uiplayground.theme.PlaygroundTheme @Preview @Composable private fun Preview() { ...
sample/src/main/java/com/chicco/sample/MainActivity.kt
unknown_repo
kotlin
package com.chicco.sample import android.os.Bundle import androidx.activity.viewModels import androidx.appcompat.app.AppCompatActivity import com.chicco.sample.databinding.ActivityMainBinding import kotlinx.android.synthetic.main.activity_main.* class MainActivity : AppCompatActivity() { private val model: MainV...
longan/src/main/java/com/dylanc/longan/Keyboard.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 i...
app/src/main/java/com/iamageo/weather/app/WeatherApp.kt
unknown_repo
kotlin
package com.plcoding.weatherapp import android.app.Application import dagger.hilt.android.HiltAndroidApp @HiltAndroidApp class WeatherApp: Application()
app/src/main/java/com/example/fragment/project/ui/my_demo/DatePickerScreen.kt
unknown_repo
kotlin
package com.example.fragment.project.ui.my_demo import androidx.compose.foundation.BorderStroke import androidx.compose.foundation.background import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.PaddingValues import androidx.co...
app/src/main/java/com/an/trailers_compose/data/local/TvDatabase.kt
unknown_repo
kotlin
package com.an.trailers_compose.data.local import androidx.room.Database import androidx.room.RoomDatabase import androidx.room.TypeConverters import com.an.trailers_compose.data.local.converter.CreditResponseTypeConverter import com.an.trailers_compose.data.local.converter.GenreListTypeConverter import com.an.trailer...
app/src/main/java/com/movicom/informativeapplicationcovid19/views/AboutFragment.kt
unknown_repo
kotlin
package com.movicom.informativeapplicationcovid19.views import android.content.Intent import android.net.Uri import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.ImageView import androidx.fragment.app.Fragment import com.movicom.inform...
hybridAndroid/app/src/main/java/com/liuhc/myapplication/PageFlutterFragmentActivity.kt
unknown_repo
kotlin
package com.liuhc.myapplication import android.os.Bundle import android.util.Log import io.flutter.app.FlutterFragmentActivity import io.flutter.plugin.common.MethodChannel import io.flutter.view.FlutterMain import org.json.JSONObject /** * 描述: * 作者:liuhc * 创建日期:2019-09-04 on 21:07 */ class PageFlutterFragmentAct...
litho-widget-kotlin/src/test/kotlin/com/facebook/litho/sections/widget/CollectionIdTest.kt
unknown_repo
kotlin
/* * Copyright (c) Facebook, Inc. and its affiliates. * * 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/ru/tech/imageresizershrinker/presentation/main_screen/components/settings/ChangeLanguageSettingItem.kt
unknown_repo
kotlin
package ru.tech.imageresizershrinker.presentation.main_screen.components import android.content.Context import android.content.Intent import android.net.Uri import android.os.Build import android.provider.Settings import androidx.appcompat.app.AppCompatDelegate import androidx.compose.animation.animateContentSize impo...
arrow-libs/core/arrow-core/src/jvmTest/kotlin/examples/example-effect-guide-12.kt
unknown_repo
kotlin
// This file was automatically generated from Effect.kt by Knit tool. Do not edit. package arrow.core.examples.exampleEffectGuide12 import arrow.core.continuations.effect import io.kotest.assertions.fail import io.kotest.matchers.shouldBe import kotlinx.coroutines.coroutineScope import kotlinx.coroutines.launch suspe...
app/src/main/java/com/allat/mboychenko/silverthread/presentation/views/dialogs/BaseEventsCalendarDialog.kt
unknown_repo
kotlin
package com.allat.mboychenko.silverthread.presentation.views.dialogs import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.view.Window import android.widget.TextView import android.widget.Toast import androidx.annotation.LayoutRes import andro...
Corona-Warn-App/src/test/java/de/rki/coronawarnapp/appconfig/sources/fallback/DefaultAppConfigTest.kt
unknown_repo
kotlin
package de.rki.coronawarnapp.appconfig.sources.fallback import android.content.Context import android.os.Build import androidx.test.core.app.ApplicationProvider import com.google.protobuf.UnknownFieldSetLite import de.rki.coronawarnapp.server.protocols.internal.v2.AppConfigAndroid import de.rki.coronawarnapp.util.Hash...
data/src/main/java/com/apiguave/tinderclonedata/match/MatchRemoteDataSource.kt
unknown_repo
kotlin
package com.apiguave.tinderclonedata.match import com.apiguave.tinderclonedata.api.match.FirestoreMatch import com.apiguave.tinderclonedata.api.match.MatchApi import com.apiguave.tinderclonedata.api.picture.PictureApi import com.apiguave.tinderclonedata.api.user.UserApi import com.apiguave.tinderclonedata.api.auth.exc...
player/app/src/main/java/uk/co/bbc/perceptivepodcasts/useractivity/UserActivityManager.kt
unknown_repo
kotlin
package uk.co.bbc.perceptivepodcasts.useractivity import android.annotation.SuppressLint import android.app.PendingIntent import android.app.PendingIntent.FLAG_MUTABLE import android.app.PendingIntent.FLAG_UPDATE_CURRENT import android.content.BroadcastReceiver import android.content.Context import android.content.Int...
app/src/main/java/com/example/huaweiproject/assistant/AssistantViewModel.kt
unknown_repo
kotlin
package com.example.huaweiproject.assistant import android.app.Application import androidx.lifecycle.AndroidViewModel import androidx.lifecycle.MutableLiveData import com.example.huaweiproject.data.Assistant import com.example.huaweiproject.data.AssistantDao import kotlinx.coroutines.* class AssistantViewModel(privat...
features/dd-sdk-android-session-replay/src/test/kotlin/com/datadog/android/sessionreplay/internal/recorder/mapper/BaseRadioButtonMapperTest.kt
unknown_repo
kotlin
/* * Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2016-Present Datadog, Inc. */ package com.datadog.android.sessionreplay.internal.recorder.mapper i...
app/src/main/kotlin/com/quittle/a11yally/view/CheckableCustomCardView.kt
unknown_repo
kotlin
package com.quittle.a11yally.view import android.content.Context import android.util.AttributeSet import android.widget.Checkable import androidx.annotation.ColorInt import androidx.annotation.DrawableRes import androidx.preference.PreferenceManager import com.quittle.a11yally.R import com.quittle.a11yally.base.isNotN...
app/src/main/java/com/movicom/informativeapplicationcovid19/viewmodel/CountryViewModel.kt
unknown_repo
kotlin
package com.movicom.informativeapplicationcovid19.viewmodel import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import com.movicom.informativeapplicationcovid19.models.Country import com.movicom.informativeapplicationcovid19.network.repositories.CountryRepository class CountryViewModel : Vie...
core/src/main/kotlin/com/ferelin/core/adapter/base/BaseRecyclerAdapter.kt
unknown_repo
kotlin
/* * Copyright 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
app/src/main/java/com/cats_app/cats/CatsActivity.kt
unknown_repo
kotlin
package com.cats_app.cats import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.material3.MaterialTheme import androidx.compose.material3.Surface import androidx.compose.ui.Modifier i...
plugins/github/src/org/jetbrains/plugins/github/pullrequest/ui/details/model/GHPRDetailsViewModel.kt
unknown_repo
kotlin
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package org.jetbrains.plugins.github.pullrequest.ui.details.model import kotlinx.coroutines.flow.StateFlow import org.jetbrains.plugins.github.api.data.pullrequest.GHPullRequestState import org.jetb...
app/src/main/java/com/zaneschepke/wireguardautotunnel/service/notification/NotificationService.kt
unknown_repo
kotlin
package com.zaneschepke.wireguardautotunnel.service.notification import android.app.Notification import android.app.NotificationManager import android.app.PendingIntent interface NotificationService { fun createNotification( channelId: String, channelName: String, title: String = "", ...
app/src/main/java/com/mb/hunters/ui/base/BaseViewHolder.kt
unknown_repo
kotlin
/* * Copyright 2017-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 ...
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/ScrollOld.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/kotlin/com/goodwy/keyboard/app/settings/theme/FineTuneDialog.kt
unknown_repo
kotlin
/* * Copyright (C) 2022 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
app/src/main/java/com/vultisig/wallet/ui/models/keysign/KeysignFlowViewModel.kt
unknown_repo
kotlin
@file:OptIn(ExperimentalSerializationApi::class) package com.vultisig.wallet.ui.models.keysign import android.annotation.SuppressLint import android.content.BroadcastReceiver import android.content.Context import android.content.Intent import android.content.IntentFilter import android.os.Build import androidx.compos...
app/src/main/java/com/vultisig/wallet/ui/components/BoxWithSwipeRefresh.kt
unknown_repo
kotlin
package com.vultisig.wallet.ui.components import androidx.compose.foundation.layout.BoxScope import androidx.compose.material3.ExperimentalMaterial3Api import androidx.compose.material3.pulltorefresh.PullToRefreshBox import androidx.compose.material3.pulltorefresh.rememberPullToRefreshState import androidx.compose.run...
app/src/main/java/cucerdariancatalin/sms_messenger/activities/SettingsActivity.kt
unknown_repo
kotlin
package cucerdariancatalin.sms_messenger.activities import android.annotation.TargetApi import android.content.Intent import android.os.Build import android.os.Bundle import com.simplemobiletools.commons.activities.ManageBlockedNumbersActivity import com.simplemobiletools.commons.dialogs.ChangeDateTimeFormatDialog imp...
demo/app/src/main/java/com/alessandro/claymore/demo/ClaymoreDemoApplication.kt
unknown_repo
kotlin
package com.alessandro.claymore.demo import android.app.Application import dagger.hilt.android.HiltAndroidApp @HiltAndroidApp class ClaymoreDemoApplication: Application()
ui/src/main/java/com/youhajun/ui/utils/GoogleBillingUtil.kt
unknown_repo
kotlin
package com.youhajun.ui.utils import android.app.Activity import android.content.Context import android.util.Log import com.android.billingclient.api.AcknowledgePurchaseParams import com.android.billingclient.api.BillingClient import com.android.billingclient.api.BillingClient.ProductType import com.android.billingcli...
shared/src/commonMain/kotlin/com/example/voyager_screens_delegation_sample/App.kt
unknown_repo
kotlin
package com.example.voyager_screens_delegation_sample import androidx.compose.foundation.shape.AbsoluteCutCornerShape import androidx.compose.material3.MaterialTheme import androidx.compose.material3.lightColorScheme import androidx.compose.runtime.Composable import androidx.compose.ui.unit.dp import cafe.adriel.voyag...
lib.core/src/main/java/com/coding/zxm/lib_core/base/FragmentLazyLifecycleOwner.kt
unknown_repo
kotlin
package com.coding.zxm.lib_core.base import androidx.lifecycle.* /** * Created by ZhangXinmin on 2021/06/10. * Copyright (c) 2021/6/10 . All rights reserved. */ class FragmentLazyLifecycleOwner(private val mCallback: Callback) : LifecycleObserver, LifecycleOwner { private var mLifecycleRegistry: Lifecycle...
card/src/main/java/com/adyen/checkout/card/internal/ui/view/CardView.kt
unknown_repo
kotlin
/* * Copyright (c) 2022 Adyen N.V. * * This file is open source and available under the MIT license. See the LICENSE file for more info. * * Created by josephj on 16/9/2022. */ package com.adyen.checkout.card.internal.ui.view import android.app.Activity import android.content.Context import android.content.Conte...
health/connect/connect-client/src/main/java/androidx/health/connect/client/PermissionController.kt
unknown_repo
kotlin
/* * Copyright (C) 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 app...
app/src/main/java/com/example/pavan/galleryview/Utils/Extensions.kt
unknown_repo
kotlin
package com.example.pavan.galleryview.Utils /* ********************************************************************* * Copyright [<NAME>](https://github.com/pavan555) 2020 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License...
app/src/main/java/com/stfalcon/new_uaroads_android/common/injection/modules/ActivityInjectionModule.kt
unknown_repo
kotlin
/* * Copyright (c) 2017 stfalcon.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/linear/Cloudnotif.kt
unknown_repo
kotlin
package moe.tlaster.icons.vuesax.vuesaxicons.linear 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/com/hypertrack/android/ui/screens/add_integration/AddIntegrationViewModel.kt
unknown_repo
kotlin
package com.hypertrack.android.ui.screens.add_integration import android.view.View import androidx.lifecycle.* import com.hypertrack.android.interactors.app.AppEffectAction import com.hypertrack.android.interactors.app.ReportAppErrorEffect import com.hypertrack.android.interactors.app.ShowAndReportAppErrorEffect impor...
app/src/main/java/com/yamanf/shoppingapp/ui/adapter/SearchAdapter.kt
unknown_repo
kotlin
package com.yamanf.shoppingapp.ui.adapter import android.annotation.SuppressLint import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.* import androidx.constraintlayout.widget.ConstraintLayout import androidx.navigation.findNavController import androidx.recycl...
app/src/main/java/com/yamanf/shoppingapp/ui/adapter/SearchAdapter.kt
unknown_repo
kotlin
package com.yamanf.shoppingapp.ui.adapter import android.annotation.SuppressLint import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.* import androidx.constraintlayout.widget.ConstraintLayout import androidx.navigation.findNavController import androidx.recycl...
app/src/main/java/work/yeshu/demo/andserverdemo/MainActivity.kt
unknown_repo
kotlin
/* * * * Copyright (c) 2018 yeshu. All Rights Reserved. * */ package work.yeshu.demo.andserverdemo import android.os.Bundle import android.view.View import androidx.appcompat.app.AppCompatActivity import com.yanzhenjie.andserver.AndServer import com.yanzhenjie.andserver.Server import com.yanzhenjie.andserver.Ser...
vector/src/main/java/im/vector/riotx/features/settings/VectorSettingsSecurityPrivacyFragment.kt
unknown_repo
kotlin
/* * Copyright 2019 New Vector Ltd * Copyright 2020 New Vector Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requ...
app/src/main/java/com/vcheck/sdk/core/presentation/country_stage/ChooseCountryFragment.kt
unknown_repo
kotlin
package com.vcheck.sdk.core.presentation.country_stage import android.graphics.Color import android.graphics.drawable.ColorDrawable import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.Toast import androidx.activity.addCallback import ...
app/src/main/java/com/music/player/bhandari/m/trackInfo/FetchTrackInfo.kt
unknown_repo
kotlin
package com.music.player.wakili.cool.trackInfo.models import android.os.Handler import android.os.Looper import android.util.Log import java.lang.Exception /* Thread to fetch track info */ class FetchTrackInfo(var artist: String, var track: String, val callback: TrackInfo.Callback) : Thread() { var handler: Ha...
cupertino-adaptive/src/nonAndroidMain/kotlin/io/github/alexzhirkevich/cupertino/adaptive/SystemTheme.kt
unknown_repo
kotlin
/* * Copyright (c) 2023 Compose Cupertino project and open source contributors. * * 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 * *...
app/src/main/java/com/food/ordering/zinger/ui/order/OrderViewModel.kt
unknown_repo
kotlin
package com.food.ordering.zinger.ui.order import androidx.lifecycle.* import com.food.ordering.zinger.data.local.Resource import com.food.ordering.zinger.data.model.* import com.food.ordering.zinger.data.retrofit.OrderRepository import kotlinx.coroutines.launch import java.net.UnknownHostException class OrderViewMod...
screen/core/src/main/java/kasem/sm/ui_core/UiText.kt
unknown_repo
kotlin
/* * Copyright (C) 2022, Kasem S.M * All rights reserved. */ package kasem.sm.ui_core import android.content.Context import androidx.annotation.StringRes import androidx.compose.runtime.Composable import androidx.compose.ui.platform.LocalContext sealed class UiText { data class StringText(val value: String) : ...
app/src/main/java/com/mrkaz/tokoin/presentation/ui/main/MainVM.kt
unknown_repo
kotlin
package com.mrkaz.tokoin.presentation.ui.main import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import com.mrkaz.tokoin.data.database.entity.ReferenceEntity import com.mrkaz.tokoin.usecase.reference.ReferenceUseCase import kotlinx.coroutines.* import org.koin.core.KoinComponent class MainV...
CadastroPet/app/src/main/java/com/example/cadastropet/repository/AppDatabase.kt
unknown_repo
kotlin
package com.example.cadastropet.repository import android.content.Context import androidx.room.Database import androidx.room.Room import androidx.room.RoomDatabase import androidx.room.migration.Migration import androidx.sqlite.db.SupportSQLiteDatabase import com.example.cadastropet.model.PetModel import com.example.c...
app/src/main/java/com/androidproject/githubuserapp/activity/DetailsActivity.kt
unknown_repo
kotlin
package com.androidproject.githubuserapp.activity import android.annotation.SuppressLint import android.content.Intent import android.graphics.Color import android.graphics.drawable.ColorDrawable import android.net.Uri import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.widget.Image...
feature/player/src/main/kotlin/dev/dexsr/klio/player/android/presentation/root/main/PlaybackControlScreen.kt
unknown_repo
kotlin
package dev.dexsr.klio.player.android.presentation.root.main import androidx.compose.animation.core.* import androidx.compose.foundation.layout.BoxWithConstraints import androidx.compose.foundation.layout.offset import androidx.compose.runtime.* import androidx.compose.ui.Modifier import androidx.compose.ui.layout.Sub...
mewwalletbl/src/main/java/com/myetherwallet/mewwalletbl/key/util/AES.kt
unknown_repo
kotlin
package com.myetherwallet.mewwalletbl.key.util import android.security.keystore.KeyProperties import javax.crypto.Cipher import javax.crypto.spec.SecretKeySpec /** * Created by BArtWell on 15.07.2019. */ private const val ALGORITHM = KeyProperties.KEY_ALGORITHM_AES private const val TRANSFORMATION = "${KeyPropert...
library/src/main/java/com/trendyol/showcase/ui/showcase/ShowcaseView.kt
unknown_repo
kotlin
package com.trendyol.showcase.ui.showcase import android.content.Context import android.graphics.Canvas import android.util.AttributeSet import android.view.LayoutInflater import androidx.annotation.LayoutRes import androidx.constraintlayout.widget.ConstraintLayout import androidx.databinding.DataBindingUtil import co...
lib/src/integrationTest/kotlin/com/lemonappdev/konsist/core/declaration/kofunction/forkomodifier/KoFunctionDeclarationForKoModifierProviderTest.kt
unknown_repo
kotlin
package com.lemonappdev.konsist.core.declaration.kofunction.forkomodifier import com.lemonappdev.konsist.TestSnippetProvider.getSnippetKoScope import com.lemonappdev.konsist.api.KoModifier import com.lemonappdev.konsist.api.KoModifier.DATA import com.lemonappdev.konsist.api.KoModifier.OPEN import com.lemonappdev.konsi...
VivaCoronia/app/src/main/java/de/tudarmstadt/iptk/foxtrot/vivacoronia/trading/models/ProductSearchQuery.kt
unknown_repo
kotlin
package de.tudarmstadt.iptk.foxtrot.vivacoronia.trading.models import android.net.Uri import android.os.Parcel import android.os.Parcelable import com.google.android.gms.maps.model.LatLng class ProductSearchQuery ( var productName: String, var category: String, ...
app/src/main/java/dev/spikeysanju/expensetracker/view/details/TransactionDetailsFragment.kt
unknown_repo
kotlin
package dev.spikeysanju.expensetracker.view.details import android.Manifest import android.annotation.SuppressLint import android.content.Intent import android.content.pm.PackageManager import android.os.Bundle import android.view.LayoutInflater import android.view.Menu import android.view.MenuInflater import android....
PeakTest/app/src/main/java/com/che/peaktask/ui/fragments/HomeFragment.kt
unknown_repo
kotlin
package com.che.peaktask.ui.fragments import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.Fragment import androidx.fragment.app.activityViewModels import com.che.peaktask.R import com.che.peaktask.databinding.FragmentHomeBindin...
sample/src/main/java/indi/yume/tools/sample/ComposeActivity.kt
unknown_repo
kotlin
package indi.yume.tools.sample import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.view.View import android.widget.TextView import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.RecyclerView import indi.yume.tools.dsladapter.* import indi.yume.t...
app/src/main/java/com/example/android/asteroidsradar/backgroundwork/RefreshDataWorker.kt
unknown_repo
kotlin
/* Copyright 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 in writing, software distribute...
app/src/main/java/host/stjin/anonaddy/widget/AliasWidget1RemoteViewsService.kt
unknown_repo
kotlin
package host.stjin.anonaddy.widget import android.content.Intent import android.widget.RemoteViewsService class AliasWidget1RemoteViewsService : RemoteViewsService() { override fun onGetViewFactory(intent: Intent): RemoteViewsFactory { return AliasWidget1RemoteViewsFactory(this) } }
app/src/main/java/com/example/slabber/ChatApp.kt
unknown_repo
kotlin
package com.example.slabber import android.app.Application import io.socket.client.IO import io.socket.client.Socket import java.net.URISyntaxException class ChatApp : Application() { val socket: Socket init { try { socket = IO.socket("ws://192.168.2.216:3000/") } catch (e: URISyn...
int-ui/int-ui-standalone/src/main/kotlin/org/jetbrains/jewel/intui/standalone/styling/IntUiDropdownStyling.kt
unknown_repo
kotlin
package org.jetbrains.jewel.intui.standalone.styling import androidx.compose.foundation.layout.PaddingValues import androidx.compose.foundation.shape.CornerSize import androidx.compose.runtime.Composable import androidx.compose.ui.graphics.Color import androidx.compose.ui.text.TextStyle import androidx.compose.ui.unit...
compose/ui/ui/integration-tests/ui-demos/src/main/java/androidx/compose/ui/demos/MultipleCollect.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...
android/src/main/java/com/samelody/samples/android/features/main/MainFragment.kt
unknown_repo
kotlin
package com.samelody.samples.android.features.main import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.Fragment import androidx.fragment.app.viewModels import com.samelody.samples.android.R class MainFragment : Fragment() { ...
app/src/main/java/com/taro/aimentor/onboarding/OnboardingActivity.kt
unknown_repo
kotlin
package com.taro.aimentor.onboarding import android.content.Intent import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import com.taro.aimentor.R import com.taro.aimentor.databinding.OnboardingPageBinding import com.taro.aimentor.home.MainActivity import com.taro.aimentor.persistence.PreferencesMa...