file_path
stringlengths
6
261
repository
stringclasses
2 values
language
stringclasses
1 value
content
stringlengths
121
454k
media/audio-ui/src/test/kotlin/com/google/android/horologist/audio/ui/components/actions/SetVolumeButtonTest.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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
app/src/main/java/com/fourteenrows/p2pcs/activities/quest/QuestRecyclerAdapter.kt
unknown_repo
kotlin
package com.fourteenrows.p2pcs.activities.quest import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.appcompat.widget.AppCompatTextView import androidx.recyclerview.widget.RecyclerView import com.fourteenrows.p2pcs.R import com.fourteenrows.p2pcs.objects.quests.Acti...
app/src/main/java/net/osdn/ja/gokigen/wearos/timerapp/presentation/ui/ViewRoot.kt
unknown_repo
kotlin
package net.osdn.ja.gokigen.wearos.timerapp.presentation.ui import android.content.Context import android.util.AttributeSet import android.util.Log import androidx.compose.runtime.Composable import androidx.compose.runtime.remember import androidx.compose.ui.platform.AbstractComposeView import androidx.wear.compose.na...
haze/src/androidMain/kotlin/dev/chrisbanes/haze/Platform.kt
unknown_repo
kotlin
// Copyright 2023, Christopher Banes and the Haze project contributors // SPDX-License-Identifier: Apache-2.0 package dev.chrisbanes.haze import androidx.compose.ui.geometry.Offset import androidx.compose.ui.node.CompositionLocalConsumerModifierNode import androidx.compose.ui.node.currentValueOf import androidx.compo...
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/EyeDropperHalf.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...
app/src/main/java/com/tec/mvvm_notesapp/models/Notes.kt
unknown_repo
kotlin
package com.tec.mvvm_notesapp.models import androidx.room.ColumnInfo import androidx.room.Entity import androidx.room.PrimaryKey import java.io.Serializable @Entity(tableName = "notes_table") data class Notes( @PrimaryKey(autoGenerate = true) val id: Int?, @ColumnInfo(name = "title") val title: String?, @...
sharedUi/src/main/java/com/example/sharedui/x/Shared.kt
unknown_repo
kotlin
package com.example.sharedui.x import androidx.compose.foundation.Image import androidx.compose.foundation.background import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Spacer import...
feature-staking-impl/src/main/java/jp/co/soramitsu/staking/impl/presentation/staking/rebond/confirm/ConfirmRebondPayload.kt
unknown_repo
kotlin
package jp.co.soramitsu.staking.impl.presentation.staking.rebond.confirm import android.os.Parcelable import kotlinx.parcelize.Parcelize import java.math.BigDecimal @Parcelize class ConfirmRebondPayload( val amount: BigDecimal, val collatorAddress: String? ) : Parcelable
kotlin/app/src/main/java/com/huawei/iap/adapters/ProductsListAdapter.kt
unknown_repo
kotlin
/** * Copyright 2020. Huawei Technologies Co., Ltd. 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 req...
app/src/main/java/com/oguzdogdu/wallieshd/presentation/favorites/FavoritesListAdapter.kt
unknown_repo
kotlin
package com.oguzdogdu.wallieshd.presentation.favorites import android.annotation.SuppressLint import android.view.LayoutInflater import android.view.ViewGroup import androidx.recyclerview.widget.DiffUtil import androidx.recyclerview.widget.ListAdapter import androidx.recyclerview.widget.RecyclerView import com.oguzdog...
app/src/main/java/cn/settile/fanboxviewer/Adapters/RecyclerView/Supporting/SupportingRecycleViewAdapter.kt
unknown_repo
kotlin
package cn.settile.fanboxviewer.Adapters.RecyclerView.Supporting import android.content.res.ColorStateList 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 cn....
3_semester/coursework/mobile_app/app/src/main/java/coursework/mobile_app/App.kt
unknown_repo
kotlin
package coursework.mobile_app import android.app.Application import android.content.Intent import android.content.SharedPreferences import coursework.mobile_app.model.HttpClientService import coursework.mobile_app.model.HttpSettings import coursework.mobile_app.model.TasksService class App:Application() { val htt...
app/src/main/java/com/draw2form/ai/presentation/screens/LoginScreen.kt
unknown_repo
kotlin
package com.draw2form.ai.presentation.screens import android.content.Intent import android.net.Uri import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Spacer import androidx.compos...
JOOX_SDK_Demo_Android/app/src/main/java/com/tencent/joox/sdk/utils/ui/ResourceUtil.kt
unknown_repo
kotlin
package com.tencent.joox.sdk.utils.ui import android.content.ContentResolver import android.content.Context import android.content.res.Resources import android.net.Uri object ResourceUtil { fun resIdToUrl(context: Context, resId: Int): String { val resources = context.resources return try { ...
app/src/main/java/org/redbyte/animatron/pascal/PascalActivity.kt
unknown_repo
kotlin
package org.redbyte.animatron.pascal import android.content.Context import android.content.Intent import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.widget.Toast import org.redbyte.animatron.R class PascalActivity : AppCompatActivity() { override fun onCreate(savedInstanceStat...
composeApp/src/desktopMain/kotlin/io/github/snd_r/komelia/settings/FilesystemSettingsRepository.kt
unknown_repo
kotlin
package io.github.snd_r.komelia.settings import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.dp import io.github.snd_r.komelia.platform.DownscaleOption import io.github.snd_r.komelia.platform.PlatformDecoderSettings import io.github.snd_r.komelia.platform.UpscaleOption import io.github.snd_r.komelia.ui....
composeApp/src/desktopMain/kotlin/io/github/snd_r/komelia/settings/FilesystemSettingsRepository.kt
unknown_repo
kotlin
package io.github.snd_r.komelia.settings import androidx.compose.ui.unit.Dp import androidx.compose.ui.unit.dp import io.github.snd_r.komelia.platform.DownscaleOption import io.github.snd_r.komelia.platform.PlatformDecoderSettings import io.github.snd_r.komelia.platform.UpscaleOption import io.github.snd_r.komelia.ui....
app/src/main/java/com/mikhailgrigorev/quickpass/NewPasswordActivity.kt
unknown_repo
kotlin
package com.mikhailgrigorev.quickpass import android.Manifest import android.annotation.SuppressLint import android.app.Activity import android.content.* import android.content.pm.PackageManager import android.content.res.Configuration import android.database.Cursor import android.graphics.Point import android.net.Uri...
javatests/com/google/android/libraries/pcc/chronicle/codegen/processor/testdata/annotatedtypes/ExampleKotlinTypeReader.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 ...
app/src/main/java/com/example/compasswithangelinkotlin/MainActivity.kt
unknown_repo
kotlin
package com.example.compasswithangelinkotlin import android.animation.ObjectAnimator import android.content.Context import android.hardware.* import android.os.Build import android.os.Bundle import androidx.annotation.RequiresApi import androidx.appcompat.app.AppCompatActivity import kotlinx.android.synthetic.main.act...
app/src/main/java/com/suihan74/satena/scenes/authentication/MastodonAuthenticationActivity.kt
unknown_repo
kotlin
package com.suihan74.satena.scenes.authentication import android.content.Intent import android.net.Uri import android.os.Bundle import android.util.Log import android.view.View import androidx.appcompat.app.AppCompatActivity import androidx.browser.customtabs.CustomTabColorSchemeParams import androidx.browser.customta...
app/src/main/java/com/simbiri/equityjamii/ui/main_activity/my_profile/NetworkFragment.kt
unknown_repo
kotlin
package com.simbiri.equityjamii.ui.main_activity.my_profile import android.app.Dialog import android.content.Context import androidx.fragment.app.viewModels import android.os.Bundle import android.util.DisplayMetrics import androidx.fragment.app.Fragment import android.view.LayoutInflater import android.view.View impo...
app/src/main/java/ru/awawa/clockutils/MainActivity.kt
unknown_repo
kotlin
package ru.awawa.clockutils import android.os.Bundle import android.util.Log import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.activity.viewModels import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.padding import androidx...
scoping/src/main/java/com/dropbox/kaiken/scoping/AuthAwareScopeOwnerActivity.kt
unknown_repo
kotlin
package com.dropbox.kaiken.scoping import androidx.activity.ComponentActivity import androidx.lifecycle.ViewModelStoreOwner import com.dropbox.kaiken.scoping.internal.AuthHelper import com.dropbox.kaiken.scoping.internal.locateAuthHelperStore /** * An activity that is authentication aware (i.e. the activity is runni...
app/src/main/java/com/rifqimfahmi/foorballapps/util/Ext.kt
unknown_repo
kotlin
package com.rifqimfahmi.foorballapps.util import android.content.Context import com.rifqimfahmi.foorballapps.R /* * Created by Rifqi Mulya Fahmi on 29/11/18. */ fun Context.getLeaguesName(position: Int) : String { return resources.getStringArray(R.array.leagues)[position] } fun Context.getLeaguesId(position:...
app/src/main/java/com/example/zmci/SplashFragment.kt
unknown_repo
kotlin
package com.example.zmci import android.content.Intent import android.os.Bundle import android.os.Handler import androidx.appcompat.app.AppCompatActivity class SplashFragment : AppCompatActivity() { /* SplashFragment Methods: - onCreate (savedInstanceState: Bundle?) */ override ...
app/src/main/java/com/gals/prayertimes/utils/Helpers.kt
unknown_repo
kotlin
package com.gals.prayertimes.utils import androidx.compose.foundation.isSystemInDarkTheme import androidx.compose.runtime.Composable import androidx.compose.ui.graphics.Color import androidx.compose.ui.platform.LocalDensity import androidx.compose.ui.res.colorResource import androidx.compose.ui.res.stringResource impo...
app/src/main/java/com/example/movie_world_kotlin_best_practices/ui/component/SearchUI.kt
unknown_repo
kotlin
package com.example.movie_world_kotlin_best_practices.ui.component import androidx.compose.foundation.background import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.* import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.items import androidx.comp...
viewlegacy/src/androidMain/kotlin/tech/skot/core/components/presented/SKAlertView.kt
unknown_repo
kotlin
package tech.skot.core.components.presented import android.content.DialogInterface import android.text.Editable import android.text.TextWatcher import android.widget.EditText import androidx.appcompat.app.AlertDialog import androidx.fragment.app.Fragment import tech.skot.core.components.SKActivity import tech.skot.cor...
app/src/main/java/com/lambdaschool/hackathon_portal/ui/fragments/detail/DescriptionFragment.kt
unknown_repo
kotlin
package com.lambdaschool.hackathon_portal.ui.fragments.detail import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.lifecycle.Observer import androidx.lifecycle.ViewModelProvider import com.lambdaschool.hackathon_portal.R import com.lambdas...
app/src/main/java/cash/z/ecc/android/ui/setup/BackupFragment.kt
unknown_repo
kotlin
package cash.z.ecc.android.ui.setup import android.content.Context import android.os.Bundle import android.text.SpannableString import android.text.Spanned import android.view.LayoutInflater import android.view.View import android.widget.TextView import android.widget.Toast import androidx.activity.addCallback import ...
app-tracking-protection/vpn-impl/src/main/java/com/duckduckgo/mobile/android/vpn/ui/newtab/AppTrackingProtectionNewTabSettingView.kt
unknown_repo
kotlin
package com.duckduckgo.mobile.android.vpn.ui.newtab import android.annotation.SuppressLint import android.content.Context import android.util.AttributeSet import android.view.View import android.widget.LinearLayout import androidx.lifecycle.ViewModelProvider import androidx.lifecycle.findViewTreeLifecycleOwner import ...
app/src/main/kotlin/com/blacksquircle/ui/application/viewmodel/MainViewModel.kt
unknown_repo
kotlin
/* * Copyright 2021 Squircle IDE 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 * * Unless required by applicable la...
module/src/main/java/com/ke/hs_tracker/module/entity/FormatType.kt
unknown_repo
kotlin
package com.ke.hs_tracker.module.entity import androidx.annotation.StringRes import com.ke.hs_tracker.module.R enum class FormatType(@StringRes val title: Int) { Unknown(R.string.module_unknown), /** * 标准 */ Standard(R.string.module_standard), /** * 狂野 */ Wild(R.string.module...
flutterapp/android/app/src/main/kotlin/de/kneke/flutterapp/MainActivity.kt
unknown_repo
kotlin
package de.kneke.flutterapp import android.util.Log import androidx.annotation.NonNull import io.flutter.embedding.android.FlutterActivity import io.flutter.embedding.engine.FlutterEngine import io.flutter.plugins.GeneratedPluginRegistrant import de.kneke.flutterapp.channel.config.QuoteViewModelChannel import de.kneke...
humingbirdgraphlib/src/main/java/com/humingbirdgraphlib/bargraph/VerticalValueIndicatorAdapter.kt
unknown_repo
kotlin
package com.butterflybarchart import android.app.Activity import android.support.v7.widget.RecyclerView import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.TextView import com.humingbirdgraphlib.R /** * Created by aurigait on 17/1/17. */ class VerticalVa...
android/app/src/main/java/app/covidshield/receiver/worker/NotificationWorker.kt
unknown_repo
kotlin
package app.covidshield.receiver.worker import android.annotation.TargetApi import android.app.NotificationChannel import android.app.NotificationManager import android.app.PendingIntent import android.content.Context import android.content.Intent import android.os.Build import android.text.Html import android.text.Ht...
app/src/main/java/com/kgurgul/cpuinfo/features/information/gpu/GpuInfoViewModel.kt
unknown_repo
kotlin
/* * Copyright 2017 KG Soft * * 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 w...
sample/shared/compose/src/commonMain/kotlin/com/arkivanov/sample/shared/customnavigation/KittenContent.kt
unknown_repo
kotlin
package com.arkivanov.sample.shared.customnavigation import androidx.compose.foundation.Image import androidx.compose.foundation.background import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose....
beagle/src/main/kotlin/br/com/zup/beagle/android/view/custom/BeaglePageView.kt
unknown_repo
kotlin
/* * Copyright 2020, 2022 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA * * 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 re...
presentation/src/main/java/com/jyproject/presentation/ui/feature/common/util/TopBar.kt
unknown_repo
kotlin
package com.jyproject.presentation.ui.feature.common.util import androidx.compose.foundation.Image import androidx.compose.foundation.background import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.fillMaxWidth import androidx.com...
app/src/main/java/com/example/rifsa_mobile/model/entity/remote/finance/FinanceResultResponse.kt
unknown_repo
kotlin
package com.example.rifsa_mobile.model.entity.remote.finance import android.os.Parcelable import com.example.rifsa_mobile.model.entity.remote.harvestresult.HarvestResponData import com.google.gson.annotations.SerializedName import kotlinx.parcelize.Parcelize data class FinanceResultResponse( @field:SerializedName("...
app/src/main/java/com/stylingandroid/muselee/MuseleeAppGlideModule.kt
unknown_repo
kotlin
package com.stylingandroid.muselee import android.content.Context import android.util.Log import com.bumptech.glide.BuildConfig import com.bumptech.glide.GlideBuilder import com.bumptech.glide.annotation.GlideModule import com.bumptech.glide.module.AppGlideModule @GlideModule class MuseleeAppGlideModule : AppGlideMod...
app/src/main/java/com/xeniac/fifaultimateteamcoin_dsfut_sell_fut/feature_pick_up_player/presentation/picked_up_player_info/components/PickedUpPlayerInfoComponents.kt
unknown_repo
kotlin
package com.xeniac.fifaultimateteamcoin_dsfut_sell_fut.feature_pick_up_player.presentation.picked_up_player_info.components import androidx.compose.animation.AnimatedContent import androidx.compose.animation.animateContentSize import androidx.compose.animation.slideInVertically import androidx.compose.animation.slideO...
CustomizeKeyBoard/app/src/main/java/com/aqrlei/customizekeyboard/MainActivity.kt
unknown_repo
kotlin
package com.aqrlei.customizekeyboard import android.os.Bundle import android.util.Log import android.view.View import android.widget.EditText import android.widget.Toast import androidx.appcompat.app.AppCompatActivity class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) {...
androidApp/src/main/java/com/example/movieskmm/android/ui/components/MovieList.kt
unknown_repo
kotlin
package com.example.movieskmm.android.ui.components import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.padding import androidx.compose.foundation.lazy.grid.GridCells import androidx.compose.foundation.lazy.grid.LazyVerticalGrid import androidx.compose.foundation.lazy.grid.items ...
sentry-android-core/src/test/java/io/sentry/android/core/DefaultAndroidEventProcessorTest.kt
unknown_repo
kotlin
package io.sentry.android.core import android.content.Context import android.os.Looper import androidx.test.core.app.ApplicationProvider import androidx.test.ext.junit.runners.AndroidJUnit4 import com.nhaarman.mockitokotlin2.any import com.nhaarman.mockitokotlin2.eq import com.nhaarman.mockitokotlin2.mock import com.n...
demo/src/main/java/ovh/plrapps/mapcompose/demo/viewmodels/CalloutVM.kt
unknown_repo
kotlin
package ovh.plrapps.mapcompose.demo.viewmodels import android.app.Application import android.content.Context import androidx.compose.foundation.layout.size import androidx.compose.material.Icon import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.setVa...
app/src/main/java/com/mozhimen/app/abilityk/opencvk/OpenCVKMatchActivity.kt
unknown_repo
kotlin
package com.mozhimen.app.abilityk.opencvk import android.Manifest import android.annotation.SuppressLint import android.graphics.Bitmap import android.graphics.ImageFormat import android.os.Bundle import androidx.camera.core.CameraSelector import androidx.camera.core.ImageAnalysis import androidx.camera.core.ImageProx...
ui-app/src/androidMain/kotlin/com/alexvanyo/composelife/ui/app/entrypoints/PreviewEntryPoint.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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
app/src/main/java/com/karna/mycards/presentation/login_with_pin/LoginWithPinScreen.kt
unknown_repo
kotlin
package com.karna.mycards.presentation.login_with_pin import androidx.compose.foundation.background import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.fillMaxSize import androidx.compo...
compose/ui/ui/src/androidAndroidTest/kotlin/androidx/compose/ui/window/DialogScreenshotTest.kt
unknown_repo
kotlin
/* * Copyright 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
app/src/main/kotlin/it/vfsfitvnm/vimusic/service/PlaybackExceptions.kt
unknown_repo
kotlin
package it.vfsfitvnm.vimusic.service import androidx.media3.common.PlaybackException class PlayableFormatNotFoundException : PlaybackException(null, null, ERROR_CODE_REMOTE_ERROR) class UnplayableException : PlaybackException(null, null, ERROR_CODE_REMOTE_ERROR) class LoginRequiredException : PlaybackException(null...
app/src/main/java/com/example/sook/fragment/Sook9Fragment.kt
unknown_repo
kotlin
package com.example.sook.fragment import android.os.Bundle import androidx.fragment.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import com.example.sook.PageChangeCallback import com.example.sook.databinding.ActivitySook9Binding class Sook9Fragment : Fragment(...
UsingPocketSphinxForVoiceRecognition/app/src/main/java/github/nisrulz/example/usingpocketsphinxforvoicerecognition/GoogleRecognitionListener.kt
unknown_repo
kotlin
package github.nisrulz.example.usingpocketsphinxforvoicerecognition import android.os.Bundle import android.speech.RecognitionListener import android.speech.SpeechRecognizer import android.util.Log import edu.cmu.pocketsphinx.SpeechRecognizer as PocketSpeechRecognizer class GoogleRecognitionListener( private val ...
app/src/main/kotlin/io/github/wykopmobilny/ui/modules/profile/ProfilePagerAdapter.kt
unknown_repo
kotlin
package io.github.wykopmobilny.ui.modules.profile import android.content.res.Resources import android.util.SparseArray import android.view.ViewGroup import androidx.fragment.app.Fragment import io.github.wykopmobilny.R import io.github.wykopmobilny.ui.modules.profile.actions.ActionsFragment import io.github.wykopmobil...
analysis/symbol-light-classes/src/org/jetbrains/kotlin/light/classes/symbol/methods/SymbolLightConstructor.kt
unknown_repo
kotlin
/* * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ package org.jetbrains.kotlin.light.classes.symbol.methods import com.intellij.psi.* import org.jetbrains.kotl...
app/src/main/java/tartho/example/vetdrugs/adapter/MedicineAdapter.kt
unknown_repo
kotlin
package tartho.example.vetdrugs.adapter import android.net.Uri 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.bumptech.glide.Glide import tartho.example....
bridgesample/src/main/java/com/livefront/bridgesample/scenario/activity/NonBridgeLargeDataActivity.kt
unknown_repo
kotlin
package com.livefront.bridgesample.scenario.activity import android.content.Context import android.content.Intent import android.graphics.Bitmap import android.os.Bundle import android.os.Parcelable import android.view.MenuItem import com.evernote.android.state.State import com.livefront.bridgesample.R import com.live...
app/src/main/java/com/wechantloup/gamelistoptimization/ui/game/EditGameScreen.kt
unknown_repo
kotlin
package com.wechantloup.gamelistoptimization.game import androidx.activity.compose.BackHandler import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.comp...
libraries/core/src/main/java/app/chamich/library/core/extensions/EditTextExt.kt
unknown_repo
kotlin
/* * Copyright (c) 2020 Chamich Apps. All rights reserved. */ package app.chamich.library.core.extensions import android.widget.EditText /** * Returns the {@see EditText} text as Long if conversion succeed; otherwise 0 */ val EditText.asLong get() = try { if (!this.hasText) 0L else this.text.toString...
example/src/main/java/com/bohregard/example/ui/AnimatedTextFieldUi.kt
unknown_repo
kotlin
package com.bohregard.example.ui import androidx.compose.foundation.layout.Box 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.compose.material3.Text import ...
app/src/main/java/com/orange/ods/app/ui/modules/emptystate/EmptyStateDemoScreen.kt
unknown_repo
kotlin
/* * Software Name: Orange Design System * SPDX-FileCopyrightText: Copyright (c) Orange SA * SPDX-License-Identifier: MIT * * This software is distributed under the MIT license, * the text of which is available at https://opensource.org/license/MIT/ * or see the "LICENSE" file for more details. * * Software de...
architecture/src/androidMain/kotlin/observable/Subject.kt
unknown_repo
kotlin
/* Copyright 2022 Splendo Consulting B.V. The Netherlands Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appli...
app/src/main/java/com/example/ayurveda/Map.kt
unknown_repo
kotlin
package com.example.ayurveda import android.graphics.Bitmap import android.graphics.BitmapFactory import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.view.View import android.widget.ImageView import android.widget.TextView import com.google.android.gms.maps.CameraUpdateFactory impo...
kotlin-analysis-api/src/main/kotlin/com/google/devtools/ksp/impl/symbol/kotlin/resolved/KSTypeReferenceResolvedImpl.kt
unknown_repo
kotlin
/* * Copyright 2022 Google LLC * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language 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.apac...
app/src/main/java/com/example/androiddevchallenge/model/Dog.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...
app/src/main/java/com/julive/adapter_demo/video/VideoListActivity.kt
unknown_repo
kotlin
package com.julive.adapter_demo.video import android.annotation.SuppressLint import android.os.Build import android.os.Bundle import android.util.Log import android.widget.ImageView import android.widget.TextView import androidx.annotation.RequiresApi import androidx.appcompat.app.AppCompatActivity import androidx.cor...
app/src/main/java/dev/debaleen/foodrunner/adapter/FAQAdapter.kt
unknown_repo
kotlin
package dev.debaleen.foodrunner.adapter import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.TextView import androidx.recyclerview.widget.RecyclerView import dev.debaleen.foodrunner.R import dev.debaleen.foodrunner.model.FAQModel class FAQAdapter( privat...
compose/runtime/runtime/integration-tests/src/androidAndroidTest/kotlin/androidx/compose/runtime/AndroidSnapshotTests.kt
unknown_repo
kotlin
/* * Copyright 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
precompose/src/macosMain/kotlin/moe/tlaster/precompose/PreComposeWindow.kt
unknown_repo
kotlin
package moe.tlaster.precompose import androidx.compose.runtime.Composable import androidx.compose.runtime.CompositionLocalProvider import androidx.compose.runtime.ExperimentalComposeApi import androidx.compose.runtime.remember import androidx.compose.ui.window.Window import moe.tlaster.precompose.lifecycle.LifecycleOw...
app/src/main/java/com/jetpack/composemotionlayout/MotionLayoutHeader.kt
unknown_repo
kotlin
package com.jetpack.composemotionlayout import androidx.compose.foundation.Image import androidx.compose.foundation.background import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.wrapContentHeight import androidx.compose.materia...
app/src/main/java/com/gvkorea/gvktune/view/view/data/presenter/DataPresenter.kt
unknown_repo
kotlin
package com.gvkorea.gvktune.view.view.data.presenter import android.content.SharedPreferences import android.os.Handler import android.widget.Toast import com.gvkorea.gvktune.MainActivity.Companion.isSelected_CH1 import com.gvkorea.gvktune.MainActivity.Companion.isSelected_CH2 import com.gvkorea.gvktune.MainActivity.C...
app/src/main/java/com/example/affirmations/MainActivity.kt
unknown_repo
kotlin
/* * Copyright (C) 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 app...
app/src/main/kotlin/com/deviseworks/mcc/frontend/component/content/PlayerListTab.kt
unknown_repo
kotlin
package com.deviseworks.mcc.frontend.component.content import com.deviseworks.mcc.frontend.common.API import com.deviseworks.mcc.frontend.entity.Player import csstype.Display import csstype.FlexWrap import kotlinx.browser.window import kotlinx.coroutines.MainScope import kotlinx.coroutines.await import kotlinx.corouti...
console/src/main/java/com/jraska/console/ConsoleController.kt
unknown_repo
kotlin
package com.jraska.console import android.os.Handler import android.os.Looper import android.os.Message import android.text.SpannableString import android.widget.TextView import java.lang.ref.WeakReference import java.util.ArrayList internal class ConsoleController { val consoles: MutableList<WeakReference<Consol...
androidApp/src/main/java/gcu/production/stavlenta/android/domain/models/base/HomeModel.kt
unknown_repo
kotlin
package gcu.production.stavlenta.android.domain.models.base import androidx.annotation.StringRes import gcu.production.stavlenta.repository.model.TapeModel internal sealed class HomeModel { object DefaultState: HomeModel() object LoadingState: HomeModel() data class SuccessLoadState(val data: List<Tap...
kotest-framework/kotest-framework-engine/src/commonMain/kotlin/io/kotest/engine/ConcurrentTestSuiteScheduler.kt
unknown_repo
kotlin
package io.kotest.engine import io.kotest.common.ExperimentalKotest import io.kotest.core.annotation.DoNotParallelize import io.kotest.core.annotation.Isolate import io.kotest.core.project.TestSuite import io.kotest.core.spec.SpecRef import io.kotest.engine.concurrency.defaultCoroutineDispatcherFactory import io.kotes...
inputview-transform/src/main/kotlin/com/xiaocydx/inputview/transform/transformer/TransformerOwner.kt
unknown_repo
kotlin
/* * Copyright 2023 xiaocydx * * 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 w...
voice/src/main/kotlin/com/algolia/instantsearch/voice/VoiceSpeechRecognizer.kt
unknown_repo
kotlin
package com.algolia.instantsearch.voice import android.content.Context import android.content.Intent import android.speech.RecognitionListener import android.speech.RecognizerIntent import android.speech.SpeechRecognizer class VoiceSpeechRecognizer( context: Context, private val maxResults: Int = 1, priv...
media/audio-ui/src/main/java/com/google/android/horologist/audio/ui/VolumePositionIndicator.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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
app/src/main/java/com/kylix/submissionbfaa_2/activities/SplashActivity.kt
unknown_repo
kotlin
package com.kylix.submissionbfaa_2.activities import android.content.Intent import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.os.Handler import com.kylix.submissionbfaa_2.databinding.ActivitySplashBinding class SplashActivity : AppCompatActivity() { private lateinit var splas...
allure-android/src/espresso/kotlin/ru/tinkoff/allure/CrashTestActivity.kt
unknown_repo
kotlin
package ru.tinkoff.allure import android.os.Bundle import android.support.v7.app.AppCompatActivity import android.widget.Button import rx.Observable import rx.schedulers.Schedulers class CrashTestActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedIns...
app/src/main/java/com/babylon/wallet/android/presentation/wallet/WalletViewModel.kt
unknown_repo
kotlin
package com.babylon.wallet.android.presentation.wallet import androidx.lifecycle.viewModelScope import com.babylon.wallet.android.domain.common.onError import com.babylon.wallet.android.domain.common.onValue import com.babylon.wallet.android.domain.model.assets.AccountWithAssets import com.babylon.wallet.android.domai...
app/src/main/java/com/dscoding/awesomeuidesign/ui/theme/Color.kt
unknown_repo
kotlin
package com.dscoding.awesomeuidesign.ui.theme import androidx.compose.ui.graphics.Color val Purple200 = Color(0xFFBB86FC) val Purple500 = Color(0xFF6200EE) val Purple700 = Color(0xFF3700B3) val Teal200 = Color(0xFF03DAC5) val GreyDark = Color(0xFF333333) val GreyLight = Color(0xFFEEEEEE) val WhiteDirty = Color(0xFFF...
rxmedia/src/main/java/com/featzima/rxmedia/video/RxVideoCodec.kt
unknown_repo
kotlin
package com.featzima.rxmedia.video import android.annotation.SuppressLint import android.graphics.Bitmap import android.graphics.Rect import android.media.MediaCodec import android.media.MediaCodecInfo import android.media.MediaFormat import android.media.MediaFormat.* import android.util.Log import com.featzima.rxmed...
app/src/main/java/org/wikipedia/suggestededits/SuggestedEditsTasksFragment.kt
unknown_repo
kotlin
package org.wikipedia.suggestededits import android.content.Intent import android.os.Bundle import android.view.* import android.view.View.GONE import android.view.View.VISIBLE import android.widget.Toast import androidx.core.widget.NestedScrollView import androidx.fragment.app.Fragment import androidx.recyclerview.wi...
compose-mds/src/main/java/ch/sbb/compose_mds/sbbicons/medium/SeatAisleReservationMedium.kt
unknown_repo
kotlin
package ch.sbb.compose_mds.sbbicons.medium import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap.Companion.Butt import androidx.compose.ui.graphics.StrokeJoin.Companion.Mi...
compose-mds/src/main/java/ch/sbb/compose_mds/sbbicons/medium/SeatAisleReservationMedium.kt
unknown_repo
kotlin
package ch.sbb.compose_mds.sbbicons.medium import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap.Companion.Butt import androidx.compose.ui.graphics.StrokeJoin.Companion.Mi...
aboutlibraries/src/main/java/com/mikepenz/aboutlibraries/ui/LibsSupportFragment.kt
unknown_repo
kotlin
package com.mikepenz.aboutlibraries.ui import android.os.Bundle import android.util.Log import android.view.Gravity import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.Filter import android.widget.Filterable import androidx.fragment.app.Fragment import androi...
feature/system/src/main/java/io/github/droidkaigi/confsched2020/system/ui/viewmodel/SystemViewModel.kt
unknown_repo
kotlin
package io.github.droidkaigi.confsched2020.system.ui.viewmodel import android.app.Activity import android.content.ActivityNotFoundException import android.content.Intent import android.net.Uri import android.provider.CalendarContract import androidx.core.app.ShareCompat import androidx.lifecycle.LiveData import androi...
app/src/main/java/com/gaurav/budgetplanner/features/expensetracker/presentation/Adapters/RecordAdapter.kt
unknown_repo
kotlin
package com.gaurav.budgetplanner.features.expensetracker.presentation.Adapters import android.annotation.SuppressLint import android.view.LayoutInflater import android.view.ViewGroup import androidx.recyclerview.widget.RecyclerView import com.bumptech.glide.Glide import com.gaurav.budgetplanner.R import com.gaurav.bud...
app/src/main/java/com/android_algo/presentation/randomwalk/RandomWalkViewModel.kt
unknown_repo
kotlin
package com.android_algo.presentation.randomwalk import androidx.lifecycle.ViewModel class RandomWalkViewModel : ViewModel() { // TODO: Implement the ViewModel }
library/src/main/java/com/magical/location/MagicalLocationManager.kt
unknown_repo
kotlin
package com.magical.location import android.annotation.SuppressLint import android.content.Context import android.location.Location import android.location.LocationManager import com.magical.location.LocationPermission.isPermissionGranted import com.magical.location.internal.Log /** * 位置信息上下文 * @author RAE * @date...
app/src/main/java/com/codepath/apps/twitterclone/ScrollAwareFABBehavior.kt
unknown_repo
kotlin
package com.codepath.apps.twitterclone import android.content.Context import android.util.AttributeSet import android.view.View import androidx.coordinatorlayout.widget.CoordinatorLayout import androidx.core.view.ViewCompat import com.google.android.material.floatingactionbutton.FloatingActionButton import com.google....
snapshots/sample/app/src/main/kotlin/com/emergetools/snapshots/sample/MainActivity.kt
unknown_repo
kotlin
package com.emergetools.snapshots.sample import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.foundation.layout.Column import com.emergetools.snapshots.sample.ui.Greeting import com.emergetools.snapshots.sample.ui.TextRowWithIcon class...
appholder/src/androidTest/java/com/android/mdl/app/selfsigned/SelfSignedScreenStateTest.kt
unknown_repo
kotlin
package com.android.mdl.app.selfsigned import androidx.lifecycle.SavedStateHandle import androidx.test.ext.junit.runners.AndroidJUnit4 import androidx.test.platform.app.InstrumentationRegistry import com.android.identity.android.securearea.AndroidKeystoreSecureArea import com.android.identity.android.storage.AndroidSt...
app/src/main/java/com/masterplus/trdictionary/features/category/presentation/components/SubCategoryItem.kt
unknown_repo
kotlin
package com.masterplus.trdictionary.features.category.presentation.components import androidx.annotation.DrawableRes import androidx.compose.foundation.BorderStroke import androidx.compose.foundation.Image import androidx.compose.foundation.background import androidx.compose.foundation.border import androidx.compose.f...
widgets-ktx/src/main/java/com/corphish/widgets/ktx/dialogs/MessageAlertDialog.kt
unknown_repo
kotlin
/* * * Copyright (C) 2020 <NAME> <<EMAIL>> * * 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...
app/src/main/java/dev/patrickgold/florisboard/setup/SetupActivity.kt
unknown_repo
kotlin
package dev.patrickgold.florisboard.setup import android.content.Context import android.content.Intent import android.os.Bundle import android.view.View import android.view.inputmethod.InputMethodManager import androidx.appcompat.app.AppCompatActivity import androidx.appcompat.app.AppCompatDelegate import androidx.ap...