file_path
stringlengths
6
261
repository
stringclasses
2 values
language
stringclasses
1 value
content
stringlengths
121
454k
libs/DocumentScanner/src/main/java/com/zynksoftware/documentscanner/ui/camerascreen/CameraScreenFragment.kt
unknown_repo
kotlin
/** Copyright 2021 Krobys Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distrib...
player/events/src/main/java/com/tidal/sdk/player/events/model/VideoPlaybackSession.kt
unknown_repo
kotlin
package com.tidal.sdk.player.events.model import androidx.annotation.Keep import com.google.gson.annotations.SerializedName import com.tidal.sdk.player.common.model.AssetPresentation import com.tidal.sdk.player.common.model.ProductType import com.tidal.sdk.player.common.model.VideoQuality import dagger.assisted.Assist...
feature/photo-api/src/main/java/com/mldz/feature/photo/PhotoEntry.kt
unknown_repo
kotlin
package com.mldz.feature.photo import androidx.compose.runtime.Composable abstract class PhotoEntry { val photoIdArg = "photoIdArg" val canNavigateToProfileArg = "canNavigateToProfileArg" val featureRoute = "photo_route/" val featureRouteArg = "photo_route/{$photoIdArg}/{$canNavigateToProfileArg}" ...
android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/expo/modules/image/ImageViewWrapperTarget.kt
unknown_repo
kotlin
package abi48_0_0.expo.modules.image import android.graphics.drawable.Drawable import android.util.Log import com.bumptech.glide.RequestManager import com.bumptech.glide.request.ThumbnailRequestCoordinator import com.bumptech.glide.request.transition.Transition import abi48_0_0.expo.modules.core.utilities.ifNull impor...
app/src/main/java/com/smarttoolfactory/composecropper/MainActivity.kt
unknown_repo
kotlin
package com.smarttoolfactory.composecropper import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.material3.MaterialTheme import andro...
app/src/main/java/com/example/shrinecompose/MainActivity.kt
unknown_repo
kotlin
package com.example.shrinecompose import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.runtime.Composable import androidx.compose.ui.tooling.preview.Preview import com.example.shrinecompose.ui.theme.ShrineComposeTheme class MainActivit...
androidlibrary/src/main/java/io/supportgenie/androidlibrary/view/main/ChatActivityFragment.kt
unknown_repo
kotlin
package io.supportgenie.androidlibrary.view.main import android.Manifest import android.app.Activity.RESULT_OK import android.app.AlertDialog import android.content.Context import android.content.Intent import android.content.pm.PackageManager import android.graphics.Color import android.graphics.LightingColorFilter i...
WorkManager/app/src/main/java/com/example/personal/ThirdActivity.kt
unknown_repo
kotlin
package com.example.personal import android.content.Context import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.util.Log import androidx.work.* import kotlinx.coroutines.delay import java.time.Duration class ThirdActivity : AppCompatActivity() { private val duration: Duration ...
compose/ui/ui/src/desktopMain/kotlin/androidx/compose/ui/awt/AwtEvents.desktop.kt
unknown_repo
kotlin
package androidx.compose.ui.awt import androidx.compose.ui.input.key.InternalKeyEvent import androidx.compose.ui.input.key.internal import androidx.compose.ui.input.pointer.PointerEvent /** * The original raw native event from AWT. * * Null if: * - the native event is sent by another framework (when Compose UI is...
app/common/src/desktopMain/kotlin/com/denchic45/studiversity/ui/profile/ProfileUI.kt
unknown_repo
kotlin
package com.denchic45.studiversity.ui.profile import androidx.compose.foundation.Image import androidx.compose.foundation.background import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.* import androidx.compose.foundation.shape.CircleShape import androidx.compose.foundation.shape.Rou...
app/src/main/java/top/jiecs/screener/ui/resolution/ResolutionViewModel.kt
unknown_repo
kotlin
package top.jiecs.screener.ui.resolution import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import android.os.Build import android.view.Display import android.util.DisplayMetrics import android.view.WindowManager // import android.content.pm.UserInfo impor...
app/src/main/kotlin/by/kirich1409/grsuschedule/schedule/viewholder/DayViewHolder.kt
unknown_repo
kotlin
package by.kirich1409.grsuschedule.schedule.viewholder import android.view.View import android.widget.TextView import by.kirich1409.grsuschedule.R import by.kirich1409.grsuschedule.app.BaseRecyclerItemViewHolder import by.kirich1409.grsuschedule.model.DaySchedule /** * Created by kirillrozov on 10/10/15. */ class ...
EasyRoom/app/src/main/java/pt/ipca/easyroom/data/DataSourceActivity.kt
unknown_repo
kotlin
package pt.ipca.easyroom.data import android.content.ContentValues.TAG import android.content.Context import android.util.Log import android.widget.Toast import com.google.android.gms.tasks.Task import com.google.firebase.firestore.FirebaseFirestore import pt.ipca.easyroom.model.Property import pt.ipca.easyroom.model....
app/src/main/java/com/zrcoding/hackertab/features/setting/master/SettingMasterScreen.kt
unknown_repo
kotlin
package com.zrcoding.hackertab.features.setting.master import android.content.res.Configuration import androidx.annotation.StringRes import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout...
compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/lazy/layout/LazyLayoutBeyondBoundsModifierLocal.kt
unknown_repo
kotlin
/* * Copyright 2023 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
app/src/main/java/com/example/AppTodoList/ui/tasks/TasksViewModel.kt
unknown_repo
kotlin
package com.example.AppTodoList.ui.tasks import androidx.hilt.lifecycle.ViewModelInject import androidx.lifecycle.ViewModel import com.example.AppTodoList.data.repository.TasksRepository /** * ViewModel Exclusivo del fragmento TaskFragment * nos permitira obtener todas las tareas desde las * fuentes de datos * @pa...
app/src/main/java/com/github/psm/jethouse/ui/widget/ProfileIcon.kt
unknown_repo
kotlin
package com.github.psm.jethouse.ui.widget 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.size import androidx.compose.runtime.Composable ...
components/bridge/impl/src/main/java/com/flipperdevices/bridge/impl/manager/overflow/FlipperSerialOverflowThrottler.kt
unknown_repo
kotlin
package com.flipperdevices.bridge.impl.manager.overflow import android.bluetooth.BluetoothGatt import android.bluetooth.BluetoothGattCharacteristic import androidx.annotation.VisibleForTesting import com.flipperdevices.bridge.api.manager.service.FlipperSerialApi import com.flipperdevices.bridge.api.utils.Constants imp...
app/src/main/java/com/example/jetpackcompose/material/FixedActionButtonActivity.kt
unknown_repo
kotlin
package com.example.jetpackcompose.material import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import androidx.compose.Composable import androidx.compose.remember import androidx.ui.core.Modifier import androidx.ui.core.setContent import androidx.ui.foundation.Icon import androidx.ui.foundation.T...
perf/app/src/main/java/com/google/firebase/quickstart/perfmon/EntryChoiceActivity.kt
unknown_repo
kotlin
package com.google.firebase.quickstart.perfmon import android.content.Intent import com.firebase.example.internal.BaseEntryChoiceActivity import com.firebase.example.internal.Choice class EntryChoiceActivity : BaseEntryChoiceActivity() { override fun getChoices(): List<Choice> { return listOf( ...
base/lint/libs/lint-tests/src/test/java/com/android/tools/lint/detector/api/CategoryTest.kt
unknown_repo
kotlin
/* * Copyright (C) 2015 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...
android/src/main/kotlin/dev/msfjarvis/claw/android/MainActivity.kt
unknown_repo
kotlin
/* * Copyright © 2021-2023 <NAME>. * Use of this source code is governed by an MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT. */ package dev.msfjarvis.claw.android import android.app.assist.AssistContent import android.net.Uri import android.os.Bundle import...
feature/changepassword/src/main/java/com/muammarahlnn/learnyscape/feature/changepassword/navigation/ChangePasswordNavigation.kt
unknown_repo
kotlin
package com.muammarahlnn.learnyscape.feature.changepassword.navigation import androidx.compose.runtime.rememberCoroutineScope import androidx.navigation.NavController import androidx.navigation.NavGraphBuilder import androidx.navigation.compose.composable import com.muammarahlnn.learnyscape.feature.changepassword.Chan...
app/src/main/java/com/mokelab/tools/shortcut/pages/create/setting/CreateSettingShortcutViewModel.kt
unknown_repo
kotlin
package com.mokelab.tools.shortcut.pages.create.setting import android.content.Context import android.content.Intent import android.graphics.Bitmap import android.graphics.Canvas import android.graphics.drawable.VectorDrawable import android.provider.Settings import androidx.core.content.ContextCompat import androidx....
app/src/main/java/com/example/leslie/carousellkotlin/ui/ProfileFragment.kt
unknown_repo
kotlin
package com.example.leslie.carousellkotlin.ui import android.os.Bundle import android.support.v4.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import com.example.leslie.carousellkotlin.ui.layout.ProfileFragmentLayout class ProfileFragment : Fragment() { pr...
12-animating-properties-using-compose/projects/starter/app/src/main/java/com/raywenderlich/android/jetreddit/screens/MyProfileScreen.kt
unknown_repo
kotlin
package com.raywenderlich.android.jetreddit.screens import androidx.compose.animation.Crossfade import androidx.compose.foundation.Image import androidx.compose.foundation.background import androidx.compose.foundation.layout.* import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.foundation.lazy.i...
liberalize/src/main/java/liberalize/kotlin/sdk/models/CardDetailsResponse.kt
unknown_repo
kotlin
package liberalize.kotlin.sdk.models import android.os.Parcelable import kotlinx.parcelize.Parcelize import org.json.JSONObject @Parcelize data class MountCardData( @JvmField val source: String?, @JvmField val securityCode: String? ) : Parcelable @Parcelize data class CardDetailsResponse( @JvmFie...
main/src/main/kotlin/us/wedemy/eggeum/android/main/viewmodel/HomeViewModel.kt
unknown_repo
kotlin
/* * Designed and developed by Wedemy 2023. * * Licensed under the MIT. * Please see full license: https://github.com/Wedemy/eggeum-android/blob/main/LICENSE */ package us.wedemy.eggeum.android.main.viewmodel import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import androidx.paging.Item...
android/src/main/kotlin/app/begaz/obd/two/plugin/obd2_plugin/Obd2Plugin.kt
unknown_repo
kotlin
package app.begaz.obd.two.plugin.obd2_plugin import android.bluetooth.BluetoothAdapter import android.content.Intent import androidx.annotation.NonNull import androidx.core.app.ActivityCompat.startActivityForResult import io.flutter.embedding.engine.plugins.FlutterPlugin import io.flutter.plugin.common.MethodCall imp...
app/src/main/java/com/aitsuki/currency/CurrencyEditText.kt
unknown_repo
kotlin
package com.aitsuki.currency import android.annotation.SuppressLint import android.content.Context import android.text.InputType import android.text.method.DigitsKeyListener import android.util.AttributeSet import android.widget.EditText import java.math.BigDecimal import java.text.DecimalFormatSymbols import java.uti...
app/src/main/java/com/coinninja/coinkeeper/view/button/HelpLinkButton.kt
unknown_repo
kotlin
package com.coinninja.coinkeeper.view.button import android.content.Context import android.content.Intent import android.net.Uri import android.util.AttributeSet import android.view.View import androidx.appcompat.content.res.AppCompatResources import androidx.appcompat.widget.AppCompatButton import androidx.core.graph...
app/src/main/java/flaskoski/rs/smartmuseum/listAdapter/SubItemListAdapter.kt
unknown_repo
kotlin
package flaskoski.rs.smartmuseum.listAdapter import android.app.Activity import androidx.recyclerview.widget.RecyclerView import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import flaskoski.rs.smartmuseum.R import flaskoski.rs.smartmuseum.model.ItemRepository import flaskoski.rs....
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/FaceConfused.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/androidTest/java/com/meslmawy/ibtkarchallenge/logic/SaveImagesTest.kt
unknown_repo
kotlin
/* * * Copyright (c) 2020 Khaled Sherif * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publ...
app/src/main/kotlin/com/sukitsuki/tsukibb/activity/LoginWebViewActivity.kt
unknown_repo
kotlin
package com.sukitsuki.tsukibb.activity import android.annotation.SuppressLint import android.content.SharedPreferences import android.graphics.Bitmap import android.os.Bundle import android.webkit.CookieManager import android.webkit.WebResourceRequest import android.webkit.WebView import android.webkit.WebViewClient i...
ui/ui-tooling/src/androidTest/java/androidx/ui/tooling/preview/ParameterProviderComposable.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/java/com/utn/appsure/fragment/MainListFragment.kt
unknown_repo
kotlin
package com.utn.appsure.fragment import android.content.Intent import android.os.Bundle import android.view.* import androidx.core.os.bundleOf import androidx.fragment.app.Fragment import androidx.lifecycle.Observer import androidx.navigation.fragment.NavHostFragment.findNavController import androidx.recyclerview.widg...
app/shared/state-machine/data/impl/src/commonMain/kotlin/build/wallet/statemachine/data/firmware/FirmwareDataStateMachineImpl.kt
unknown_repo
kotlin
package build.wallet.statemachine.data.firmware import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect import androidx.compose.runtime.collectAsState import androidx.compose.runtime.remember import build.wallet.compose.coroutines.rememberStableCoroutineScope import build.wallet.firmw...
feature-location/src/main/java/de/niklasbednarczyk/nbweather/feature/location/screens/daily/LocationDailyFragment.kt
unknown_repo
kotlin
package de.niklasbednarczyk.nbweather.feature.location.screens.daily import androidx.compose.runtime.Composable import androidx.fragment.app.viewModels import dagger.hilt.android.AndroidEntryPoint import de.niklasbednarczyk.nbweather.core.ui.fragment.NBFragmentPager import de.niklasbednarczyk.nbweather.core.ui.fragmen...
app/src/main/java/com/darienalvarez/codechallenge/ui/features/transaction/TransactionDetailsViewModel.kt
unknown_repo
kotlin
package com.darienalvarez.codechallenge.ui.features.transaction import com.darienalvarez.codechallenge.ui.core.BaseViewModel class TransactionDetailsViewModel: BaseViewModel() { }
simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Teradata.kt
unknown_repo
kotlin
package compose.icons.simpleicons 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 impor...
presentation/src/main/java/com/jota/sunshine/view/adapter/ForecastAdapter.kt
unknown_repo
kotlin
package com.jota.sunshine.view.adapter import android.support.v7.widget.RecyclerView import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import com.jota.sunshine.Constants.SYMBOL_C import com.jota.sunshine.Constants.SYMBOL_HOUR import com.jota.sunshine.R import com.jota.sunshine.m...
app/src/main/java/com/gbros/tabslite/data/IntPlaylistEntry.kt
unknown_repo
kotlin
package com.gbros.tabslite.data import android.os.Parcelable interface IntPlaylistEntry: Parcelable { val entryId: Int val playlistId: Int val tabId: Int val nextEntryId: Int? val prevEntryId: Int? val dateAdded: Long var transpose: Int }
app/src/main/java/com/hashone/media/gallery/OldCropActivity.kt
unknown_repo
kotlin
package com.hashone.media.gallery import android.app.Activity import android.content.Intent import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.widget.Toast import com.bumptech.glide.Glide import com.hashone.commons.extensions.serializable import com.hashone.media.gallery.model.Medi...
client/android/divkit-demo-app/src/main/java/com/yandex/divkit/demo/div/editor/DivEditorActivityStateKeeper.kt
unknown_repo
kotlin
package com.yandex.divkit.demo.div.editor import androidx.lifecycle.ViewModel class DivEditorActivityStateKeeper : ViewModel() { var state: DivEditorState = DivEditorState.InitialState }
app/src/main/java/dev/shorthouse/coinwatch/ui/theme/Type.kt
unknown_repo
kotlin
package dev.shorthouse.coinwatch.ui.theme import androidx.compose.material3.Typography import androidx.compose.ui.text.TextStyle import androidx.compose.ui.text.font.FontFamily import androidx.compose.ui.text.font.FontWeight import androidx.compose.ui.unit.sp val AppTypography = Typography( headlineMedium = TextS...
app/src/main/java/de/devmil/paperlaunch/model/IContextAccess.kt
unknown_repo
kotlin
package de.devmil.paperlaunch.model import android.content.Intent import android.graphics.drawable.Drawable /** * @brief interface for accessing data that gets provided via the context * this interface can be used to push the Context dependency to the edge * and keep the core (j)unit testable */ int...
app/src/main/java/xyz/klinker/messenger/utils/multi_select/ConversationsMultiSelectDelegate.kt
unknown_repo
kotlin
package xyz.klinker.messenger.utils.multi_select import android.content.res.ColorStateList import android.graphics.Color import android.os.Handler import androidx.appcompat.app.AppCompatActivity import androidx.appcompat.view.ActionMode import android.view.Menu import android.view.MenuItem import com.bignerdranch.andr...
app/src/main/java/com/weatherxm/ui/devicedetails/forecast/ForecastFragment.kt
unknown_repo
kotlin
package com.weatherxm.ui.devicedetails.forecast import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import com.google.firebase.analytics.FirebaseAnalytics import com.weatherxm.R import com.weatherxm.data.Status import com.weatherxm.databinding.FragmentDevi...
compose/material3/material3/src/androidInstrumentedTest/kotlin/androidx/compose/material3/MaterialWindowInsetsActivity.kt
unknown_repo
kotlin
/* * Copyright 2019 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
app/src/main/java/com/example/pe_assignment/cancer/TimelineinfoboardFragment.kt
unknown_repo
kotlin
package com.example.pe_assignment.cancer import android.os.Bundle import androidx.fragment.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.Button import android.widget.ImageButton import androidx.navigation.findNavController import com.exampl...
android/app/src/main/java/com/algorand/android/ui/accountoptions/AccountOptionsViewModel.kt
unknown_repo
kotlin
/* * Copyright 2019 Algorand, Inc. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, s...
android/app/src/main/java/com/algorand/android/ui/accountoptions/AccountOptionsViewModel.kt
unknown_repo
kotlin
/* * Copyright 2019 Algorand, Inc. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, s...
android/src/main/java/org/fossasia/badgemagic/bindings/EditBadgeViewBindings.kt
unknown_repo
kotlin
package org.fossasia.badgemagic.bindings import android.widget.ImageView import androidx.databinding.BindingAdapter import androidx.databinding.ObservableBoolean import androidx.databinding.ObservableField import org.fossasia.badgemagic.R import org.fossasia.badgemagic.data.draw_layout.DrawMode import org.fossasia.bad...
packages/expo-modules-core/android/src/main/java/expo/modules/kotlin/AppContext.kt
unknown_repo
kotlin
package expo.modules.kotlin import android.app.Activity import android.content.Context import android.content.Intent import com.facebook.react.bridge.ReactApplicationContext import expo.modules.core.interfaces.ActivityProvider import expo.modules.core.interfaces.services.EventEmitter import expo.modules.interfaces.bar...
android/quest/src/test/java/org/smartregister/fhircore/quest/util/mappers/MeasureReportPatientViewDataMapperTest.kt
unknown_repo
kotlin
/* * Copyright 2021-2024 Ona Systems, Inc * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
ui-sdk/src/main/java/com/ably/tracking/ui/animation/CoreLocationAnimator.kt
unknown_repo
kotlin
package com.ably.tracking.ui.animation import android.os.SystemClock import android.view.animation.LinearInterpolator import com.ably.tracking.Location import com.ably.tracking.LocationUpdate import kotlin.math.min import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers import kotlinx.coroutines...
app/src/main/java/com/kylecorry/trail_sense/shared/QuickActionType.kt
unknown_repo
kotlin
package com.kylecorry.trail_sense.shared import android.content.Context import com.kylecorry.andromeda.torch.Torch import com.kylecorry.trail_sense.R enum class QuickActionType(val id: Int) { None(-1), Backtrack(0), Flashlight(1), Clouds(2), Temperature(3), Ruler(5), Maps(7), Whistle(8...
auth/src/main/java/love/nuoyan/android/auth/AbsAuthBuildForOPPO.kt
unknown_repo
kotlin
package love.nuoyan.android.auth import android.app.Activity abstract class AbsAuthBuildForOPPO : AbsAuthBuild() { /** 程序启动后主页面调用 */ abstract fun onActivityCreate(activity: Activity) /** 程序退出时调用, 目前要求不添加 */ abstract fun exit(activity: Activity) /** * 支付 * @param orderId 订单号 * @par...
app/src/main/java/dev/ronnie/pokeapiandroidtask/fragments/PokemonListFragment.kt
unknown_repo
kotlin
package dev.ronnie.pokeapiandroidtask.fragments import android.annotation.SuppressLint import android.content.Context import android.os.Bundle import android.view.View import android.view.inputmethod.EditorInfo import android.view.inputmethod.InputMethodManager import android.widget.TextView import androidx.core.conte...
app/src/main/java/c23/ps325/communicare/viewmodel/DataStoreViewModel.kt
unknown_repo
kotlin
package c23.ps325.communicare.viewmodel import androidx.lifecycle.LiveData import androidx.lifecycle.ViewModel import androidx.lifecycle.asLiveData import androidx.lifecycle.viewModelScope import c23.ps325.communicare.repository.PrefRepository import dagger.hilt.android.lifecycle.HiltViewModel import kotlinx.coroutine...
example-extensions/src/main/java/com/zhuinden/simplestackextensionsample/features/profile/ProfileFragment.kt
unknown_repo
kotlin
package com.zhuinden.simplestackextensionsample.features.profile import android.os.Bundle import android.view.View import android.widget.Toast import com.zhuinden.simplestackextensions.fragments.KeyedFragment import com.zhuinden.simplestackextensionsample.R class ProfileFragment : KeyedFragment(R.layout.profile_fragm...
sample/src/main/java/com/example/sample/ui/MainScreen.kt
unknown_repo
kotlin
package com.example.sample.ui import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.material3.Button import androidx.compose.material3.Text import androidx.compose.runtime.Composable import androidx.c...
app/src/main/java/com/fkuper/metronome/utils/receivers/TimeChangedReceiver.kt
unknown_repo
kotlin
package com.fkuper.metronome.utils.receivers import android.content.BroadcastReceiver import android.content.Context import android.content.Intent import com.fkuper.metronome.utils.PracticeNotificationsAlarmHandler class TimeChangedReceiver : BroadcastReceiver() { override fun onReceive(context: Context?, intent...
app/src/main/java/dev/gmarques/bancodedados/presenter/fragmento_principal/DialogoEscolherInstanciaParaAdicionar.kt
unknown_repo
kotlin
package dev.gmarques.bancodedados.presenter.fragmento_principal import android.util.Log import android.widget.LinearLayout import androidx.appcompat.app.AlertDialog import androidx.core.view.setPadding import androidx.fragment.app.Fragment import com.google.android.material.dialog.MaterialAlertDialogBuilder import dev...
app/src/main/java/com/sph/sgnetworkdata/userInterface/NetworkDataDetailFragment.kt
unknown_repo
kotlin
package com.sph.sgnetworkdata.userInterface import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import com.google.android.material.bottomsheet.BottomSheetDialogFragment import com.sph.sgnetworkdata.R import com.sph.sgnetworkdata.network.model.Record import...
app/src/main/java/com/thinkdevs/cryptomarket/adapter/BitCoinAdapter.kt
unknown_repo
kotlin
package com.thinkdevs.cryptomarket.adapter import android.content.Context import android.content.Intent import android.graphics.Color import androidx.constraintlayout.widget.ConstraintLayout import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.ImageView import...
app/src/main/java/com/renaisn/reader/ui/book/import/local/ImportBookViewModel.kt
unknown_repo
kotlin
package com.renaisn.reader.ui.book.import.local import android.app.Application import android.net.Uri import androidx.documentfile.provider.DocumentFile import com.renaisn.reader.base.BaseViewModel import com.renaisn.reader.constant.AppLog import com.renaisn.reader.constant.AppPattern.bookFileRegex import com.renaisn....
app/src/main/java/jp/seo/station/ekisagasu/ui/dialog/LogOutputConfDialog.kt
unknown_repo
kotlin
package jp.seo.station.ekisagasu.ui.dialog import android.app.AlertDialog import android.app.Dialog import android.os.Bundle import androidx.databinding.DataBindingUtil import androidx.fragment.app.DialogFragment import androidx.fragment.app.viewModels import dagger.hilt.android.AndroidEntryPoint import jp.seo.station...
firestore/app/src/main/java/com/google/firebase/example/fireeats/kotlin/FilterDialogFragment.kt
unknown_repo
kotlin
package com.google.firebase.example.fireeats.kotlin import android.content.Context import android.os.Bundle import android.support.v4.app.DialogFragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import com.google.firebase.example.fireeats.R import com.google.firebase.exa...
Corona-Warn-App/src/androidTest/java/de/rki/coronawarnapp/ui/submission/SubmissionTestResultAvailableFragmentTest.kt
unknown_repo
kotlin
package de.rki.coronawarnapp.ui.submission import androidx.lifecycle.MutableLiveData import androidx.test.ext.junit.runners.AndroidJUnit4 import dagger.Module import dagger.android.ContributesAndroidInjector import de.rki.coronawarnapp.coronatest.CoronaTestProvider import de.rki.coronawarnapp.coronatest.type.BaseCoron...
CustomUiSubtitleViewKotlin/src/main/java/com/bitmovin/player/samples/custom/ui/subtitleview/MainActivity.kt
unknown_repo
kotlin
package com.bitmovin.player.samples.custom.ui.subtitleview import android.os.Bundle import android.view.ViewGroup import androidx.appcompat.app.AppCompatActivity import com.bitmovin.player.PlayerView import com.bitmovin.player.SubtitleView import com.bitmovin.player.api.Player import com.bitmovin.player.api.PlayerConf...
app/src/androidTest/java/vtsen/hashnode/dev/androidnews/ComposeTest.kt
unknown_repo
kotlin
/* * Copyright 2023 <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 writin...
saved-sites/saved-sites-impl/src/main/java/com/duckduckgo/savedsites/impl/bookmarks/BookmarksQueryListener.kt
unknown_repo
kotlin
/* * Copyright (c) 2023 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 ...
pager/src/sharedTest/kotlin/com/google/accompanist/pager/PagerTest.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 applic...
transformationlayout/src/main/kotlin/com/skydoves/transformationlayout/TransformationActivity.kt
unknown_repo
kotlin
/* * Designed and developed by 2020 weltech (weltech) * * 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...
transformationlayout/src/main/kotlin/com/skydoves/transformationlayout/TransformationActivity.kt
unknown_repo
kotlin
/* * Designed and developed by 2020 weltech (weltech) * * 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...
library/src/main/java/io/github/toyota32k/bindit/AlphaBinding.kt
unknown_repo
kotlin
@file:Suppress("unused") package io.github.toyota32k.binder import android.view.View import androidx.lifecycle.LifecycleOwner import androidx.lifecycle.LiveData class AlphaBinding( override val data:LiveData<Float> ) : BaseBinding<Float>(BindingMode.OneWay) { override fun onDataChanged(v: Float?) { i...
src/main/kotlin/notifications/framework/Platform.kt
unknown_repo
kotlin
package com.aimicor.navcompose.android /* MIT License Copyright (c) 2024 Aimicor Ltd. 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 right...
shared/src/commonMain/kotlin/com/mod/marveluniverse/domain/utils/flows/CommonMutableStateFlow.kt
unknown_repo
kotlin
package com.mod.marveluniverse.domain.utils.flows import kotlinx.coroutines.flow.MutableStateFlow expect class CommonMutableStateFlow<T>(mutableStateFlow: MutableStateFlow<T>): MutableStateFlow<T> fun <T> MutableStateFlow<T>.toCommonMutableStateFlow() = CommonMutableStateFlow(this)
composeApp/src/commonMain/kotlin/navigation/presentation/NavigationScreen.kt
unknown_repo
kotlin
package navigation.presentation import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.padding import androidx.compose.material3.Icon import androidx.compose.material3.NavigationBar import androidx.compose.material3.NavigationBarIte...
common/src/androidMain/kotlin/com/surrus/common/actual.kt
unknown_repo
kotlin
package com.surrus.common import android.content.Context lateinit var appContext: Context actual fun getApplicationFilesDirectoryPath(): String = appContext.filesDir.absolutePath
core/common/src/main/kotlin/tachiyomi/core/common/preference/Preference.kt
unknown_repo
kotlin
package tachiyomi.core.preference import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.StateFlow interface Preference<T> { fun key(): String fun get(): T fun set(value: T) fun isSet(): Boolean fun delete() fun defaultValue(): T ...
work/workmanager-testing/src/androidTest/java/androidx/work/testing/TestWorkerBuilderTest.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...
feature/feature_common/src/main/java/black/bracken/picsorter/feature_common/ext/TextEdit.kt
unknown_repo
kotlin
package black.bracken.picsorter.feature_common.ext import android.text.Editable import android.text.TextWatcher import android.widget.EditText fun EditText.setOnTextChanged(listener: (String) -> Unit) = this.addTextChangedListener( object : TextWatcher { override fun beforeTextChanged(seq: CharSequence, ...
feature/feature_common/src/main/java/black/bracken/picsorter/feature_common/ext/TextEdit.kt
unknown_repo
kotlin
package black.bracken.picsorter.feature_common.ext import android.text.Editable import android.text.TextWatcher import android.widget.EditText fun EditText.setOnTextChanged(listener: (String) -> Unit) = this.addTextChangedListener( object : TextWatcher { override fun beforeTextChanged(seq: CharSequence, ...
ui/src/main/java/com/gmail/bogumilmecel2/ui/components/base/SheetLayout.kt
unknown_repo
kotlin
package com.gmail.bogumilmecel2.ui.components.base import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material.ExperimentalMaterialApi import androidx.compose.material.ModalBottomSheetLayout import androidx.compose.material.ModalBottomSheetState import androidx.compose.material.ModalBo...
test-app/src/androidTest/java/com/avito/android/ui/test/SwipeRefreshScreen.kt
unknown_repo
kotlin
package com.avito.android.ui.test import androidx.test.espresso.matcher.ViewMatchers.withId import com.avito.android.test.page_object.ListElement import com.avito.android.test.page_object.PageObject import com.avito.android.test.page_object.SwipeRefreshElement import com.avito.android.ui.R class SwipeRefreshScreen : ...
app/src/main/java/ee/oyatl/ime/make/modifiers/ModifierKeyStateSet.kt
unknown_repo
kotlin
package ee.oyatl.ime.make.modifiers import android.view.KeyEvent data class ModifierKeyStateSet( val shift: ModifierKeyState = ModifierKeyState(), val alt: ModifierKeyState = ModifierKeyState(), val control: ModifierKeyState = ModifierKeyState(), val meta: ModifierKeyState = ModifierKeyState() ) { ...
serenity-app/src/test/kotlin/us/nineworlds/serenity/ui/video/player/ExoplayerVideoActivityTest.kt
unknown_repo
kotlin
package us.nineworlds.serenity.ui.video.player import android.net.Uri import android.view.KeyEvent import com.google.android.exoplayer2.Player import com.google.android.exoplayer2.SimpleExoPlayer import com.google.android.exoplayer2.source.MediaSource import com.google.android.exoplayer2.trackselection.TrackSelectionA...
helperlib/src/main/java/com/itachi1706/helperlib/deprecation/TextViewDep.kt
unknown_repo
kotlin
package com.itachi1706.helperlib.deprecation import android.content.Context import android.os.Build import android.widget.TextView /** * Created by Kenneth on 30/12/2019. * for com.itachi1706.helperlib.deprecation in Helper Library */ @Suppress("DEPRECATION") object TextViewDep { @JvmStatic fun setTextAppe...
app/src/main/java/com/example/androiddevchallenge/ui/components/TopCard.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...
mediakit/src/main/java/com/jadyn/mediakit/function/CodeCFunction.kt
unknown_repo
kotlin
package com.jadyn.mediakit.function import android.media.MediaCodec import android.media.MediaCodecInfo import android.media.MediaFormat import android.util.Log import android.util.Size import java.nio.ByteBuffer /** *@version: *@FileDescription:硬编码相关辅助类 *@Author:jing *@Since:2019/2/12 *@ChangeList: */ /* * 处理...
composeApp/src/commonMain/kotlin/data/Note.kt
unknown_repo
kotlin
package data import androidx.room.ColumnInfo import androidx.room.Entity import androidx.room.PrimaryKey /** * Classe representant une note */ @Entity(tableName = "notes") data class Note( @PrimaryKey(autoGenerate = true) @ColumnInfo(name = "id") var id : Long =0, @ColumnInfo(name = "title") val...
menus/AntKot/app/src/main/java/com/antkot/TopTabActivity.kt
unknown_repo
kotlin
package com.antkot import android.os.Bundle import android.support.v4.app.Fragment import android.support.v4.app.FragmentPagerAdapter import android.support.v7.app.AppCompatActivity import com.antkot.tabs.HomeFragment import com.antkot.tabs.MessageFragment import kotlinx.android.synthetic.main.activity_top_tab.* clas...
favorite/src/main/java/com/example/made/favorite/FavoriteViewModel.kt
unknown_repo
kotlin
package com.example.made.favorite import androidx.lifecycle.ViewModel import androidx.lifecycle.asLiveData import com.example.made.core.domain.usecase.MovieUseCase class FavoriteViewModel(movieUseCase: MovieUseCase) : ViewModel() { val favoriteMovie = movieUseCase.getFavoriteMovie().asLiveData() }
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/bulk/Arrowswaphorizontal.kt
unknown_repo
kotlin
package moe.tlaster.icons.vuesax.vuesaxicons.bulk 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...
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/bulk/Arrowswaphorizontal.kt
unknown_repo
kotlin
package moe.tlaster.icons.vuesax.vuesaxicons.bulk 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...
sdk/core/src/main/java/com/ownid/sdk/internal/feature/nativeflow/steps/otp/OtpAuthStepUI.kt
unknown_repo
kotlin
package com.ownid.sdk.internal.flow.steps.otp import android.animation.Animator import android.animation.AnimatorListenerAdapter import android.content.DialogInterface import android.graphics.drawable.LayerDrawable import android.os.Bundle import android.text.Editable import android.text.InputFilter import android.tex...
app/src/main/java/com/app/myarticleapp/localStorage/ArticleDatabase.kt
unknown_repo
kotlin
package com.app.myarticleapp.localStorage import androidx.room.Database import androidx.room.RoomDatabase import androidx.room.TypeConverters import com.app.myarticleapp.apiSource.converter.ArticleConverter import com.app.myarticleapp.apiSource.converter.MediaArticleConverter import com.app.myarticleapp.apiSource.conv...