file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
tuiutils/src/main/java/com/tans/tuiutils/multimedia/MultiMediaRx3.kt | unknown_repo | kotlin | package com.tans.tuiutils.multimedia
import android.net.Uri
import android.os.Looper
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import io.reactivex.rxjava3.core.Maybe
import io.reactivex.rxjava3.core.Single
fun FragmentActivity.pickVisualMediaRx3(mimeType: String): Maybe<Uri> ... |
app/src/main/java/com/example/musikquiz/DuelActivity.kt | unknown_repo | kotlin | package com.example.musikquiz
import android.animation.Animator
import android.animation.AnimatorListenerAdapter
import android.animation.AnimatorSet
import android.animation.ObjectAnimator
import android.graphics.Color
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import androi... |
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/subsystems/Passthrough.kt | unknown_repo | kotlin | package org.firstinspires.ftc.teamcode.subsystems
import android.util.Log
import com.acmerobotics.dashboard.config.Config
import com.acmerobotics.dashboard.telemetry.TelemetryPacket
import com.acmerobotics.roadrunner.*
import com.arcrobotics.ftclib.command.SubsystemBase
import com.arcrobotics.ftclib.hardware.ServoEx
i... |
app/src/main/java/com/boringdroid/systemui/AllAppsWindow.kt | unknown_repo | kotlin | /**
* 1. show all app in this layout
* 2. right click to more action(uninstall/open/shortcut)
* 3. lock/restart/logout/poweroff computer
* 4. search app
*/
package com.boringdroid.systemui
import android.annotation.SuppressLint
import android.content.ComponentName
import android.content.Context
import android.con... |
core/src/main/java/com/gigih/awarealert/core/di/CoreModule.kt | unknown_repo | kotlin | package com.gigih.awarealert.core.di
import androidx.room.Room
import com.gigih.awarealert.core.data.MainRepository
import com.gigih.awarealert.core.data.source.local.LocalDataSource
import com.gigih.awarealert.core.data.source.local.room.MainDatabase
import com.gigih.awarealert.core.data.source.remote.RemoteDataSourc... |
iteration4/musically/app/src/test/java/com/odesa/musicMatters/services/media/library/AbstractMusicSourceTest.kt | unknown_repo | kotlin | package com.odesa.musicMatters.services.media.library
import android.os.Bundle
import android.provider.MediaStore
import androidx.media3.common.MediaItem
import androidx.media3.common.MediaMetadata
import com.odesa.musicMatters.fakes.FakeMusicSource
import junit.framework.TestCase.assertEquals
import junit.framework.T... |
octicons/src/commonMain/kotlin/com/woowla/compose/icon/collections/octicons/octicons/Trophy24.kt | unknown_repo | kotlin | package com.woowla.compose.icon.collections.octicons.octicons
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.Stro... |
app/src/main/java/com/toast/android/gamebase/sample/ui/settings/idpmap/IdpMappingViewModel.kt | unknown_repo | kotlin | package com.toast.android.gamebase.sample.ui.settings.idpmap
import android.app.Activity
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateMapOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.compose.runtime.snapshots.SnapshotS... |
wearApp/src/main/java/dev/johnoreilly/confetti/wear/bookmarks/BookmarksComponent.kt | unknown_repo | kotlin | package dev.johnoreilly.confetti.wear.bookmarks
import com.apollographql.apollo.cache.normalized.FetchPolicy
import com.arkivanov.decompose.ComponentContext
import dev.johnoreilly.confetti.ConfettiRepository
import dev.johnoreilly.confetti.GetBookmarkedSessionsQuery
import dev.johnoreilly.confetti.auth.User
import dev... |
Stopwatch App/app/src/main/java/com/example/stopwatchapp/StopwatchApplication.kt | unknown_repo | kotlin | package com.example.stopwatchapp;
import android.app.Application
import dagger.hilt.android.HiltAndroidApp;
@HiltAndroidApp
class StopwatchApplication: Application() |
app/src/main/java/com/nandra/myschool/ui/main/chat/ChatViewModel.kt | unknown_repo | kotlin | package com.nandra.myschool.ui.main.chat
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.ale.infra.contact.IRainbowContact
import com.ale.infra.proxy.conversation.IRainbowConversation
import com.ale.rainbo... |
lib/src/main/java/com/zuluft/lib/universalAdapter/adapters/ItemCallback.kt | unknown_repo | kotlin | package com.zuluft.lib.universalAdapter.adapters
import androidx.recyclerview.widget.DiffUtil
import com.zuluft.lib.universalAdapter.models.ItemDrawer
class ItemCallback<T : ItemDrawer>
constructor(
private val areItemsTheSameCallback: (item1: T, item2: T) -> (Boolean),
private val areContentsTheSameCallback:... |
app/src/main/java/com/grela/clean/components/RestaurantCardView.kt | unknown_repo | kotlin | package com.grela.clean.components
import android.content.Context
import android.util.AttributeSet
import android.view.View
import android.widget.FrameLayout
import android.widget.ImageView
import android.widget.TextView
import com.airbnb.lottie.LottieAnimationView
import com.google.android.material.button.MaterialBut... |
app/src/main/java/com/steve_md/nftapp/utils/ExtensionFunctions.kt | unknown_repo | kotlin | /*
* Copyright (c) <NAME> @2023
*/
package com.steve_md.nftapp.utils
import android.app.Activity
import android.graphics.Color
import android.view.View
import androidx.constraintlayout.motion.widget.MotionLayout
import androidx.core.view.WindowCompat
object ExtensionFunctions {
fun Activity.setTransparentStat... |
app/src/main/java/com/dearmyhealth/modules/Diet/ui/FoodItem.kt | unknown_repo | kotlin | package com.dearmyhealth.activities.ui
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import androidx.constraintlayout.widget.ConstraintLayout
import com.dearmyhealth.databinding.ItemFoodBinding
class FoodItem(
@get:JvmName("getAdapterContext") val context: Cont... |
app/src/main/java/com/shankarlohar/pedopt_adoptapet/ui/activities/MainActivity.kt | unknown_repo | kotlin | package com.shankarlohar.pedopt_adoptapet.ui.activities
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.material.Su... |
sentry-android-replay/src/main/java/io/sentry/android/replay/ReplayIntegration.kt | unknown_repo | kotlin | package io.sentry.android.replay
import android.content.ComponentCallbacks
import android.content.Context
import android.content.res.Configuration
import android.graphics.Bitmap
import android.os.Build
import android.view.MotionEvent
import io.sentry.Hint
import io.sentry.IHub
import io.sentry.Integration
import io.se... |
android/app/src/main/java/com/algorand/android/customviews/collectibleimageview/ZoomableCollectibleImageView.kt | unknown_repo | kotlin | /*
* Copyright 2022 Pera Wallet, LDA
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing,... |
app/src/main/java/de/htwdd/htwdresden/utils/extensions/NavControllerExtension.kt | unknown_repo | kotlin | package de.htwdd.htwdresden.utils.extensions
import android.os.Bundle
import androidx.annotation.IdRes
import androidx.navigation.NavController
import androidx.navigation.NavOptions
import androidx.navigation.Navigator
fun NavController.navigateSafe(@IdRes resId: Int, args: Bundle? = null, navOptions: NavOptions? = n... |
app/src/main/java/com/animestudios/animeapp/ui/screen/profile/adapter/SourceHeaderAdapter.kt | unknown_repo | kotlin | package com.animestudios.animeapp.ui.screen.profile.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.animestudios.animeapp.databinding.SourcePageHeaderItemBinding
import com.animestudios.animeapp.model.SourceDt
import com.animestudios.... |
wordle/src/main/java/com/infinitepower/newquiz/wordle/list/WordleListScreen.kt | unknown_repo | kotlin | package com.infinitepower.newquiz.wordle.list
import androidx.annotation.Keep
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.height
import androidx.compose.foun... |
ui/src/main/java/es/fnmtrcm/ceres/certificadoDigitalFNMT/ui/MetaDataManager.kt | unknown_repo | kotlin | package es.fnmtrcm.ceres.certificadoDigitalFNMT.ui
import android.content.Context
import android.content.pm.PackageManager
import android.os.Build
class MetaDataManager(
val context: Context
) {
private fun getApplicationInfo() = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
context.pac... |
libnavui-maps/src/test/java/com/mapbox/navigation/ui/maps/internal/route/line/MapboxRouteLineUtilsTest.kt | unknown_repo | kotlin | package com.mapbox.navigation.ui.maps.internal.route.line
import android.content.Context
import android.graphics.Bitmap
import android.graphics.Color
import androidx.test.core.app.ApplicationProvider
import com.mapbox.api.directions.v5.models.DirectionsRoute
import com.mapbox.bindgen.Expected
import com.mapbox.bindgen... |
SearchBook/app/src/main/java/ec/com/pmyb/searchbook/screens/login/ReaderLoginScreen.kt | unknown_repo | kotlin | package ec.com.pmyb.searchbook.screens.login
import androidx.compose.runtime.Composable
@Composable
fun ReaderLoginScreen(){
} |
sample/common/src/commonMain/kotlin/com/mohamedrejeb/richeditor/sample/common/slack/SlackDemoLinkDialog.kt | unknown_repo | kotlin | package com.mohamedrejeb.richeditor.sample.common.slack
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.icons.Icons
import androidx.comp... |
app/src/main/java/com/qihaocai/flixsterv2/OnListFragmentInteractionListener.kt | unknown_repo | kotlin | package com.qihaocai.flixsterv2
import android.content.ContentValues.TAG
import android.content.Intent
import android.util.Log
import androidx.core.content.ContextCompat.startActivity
interface OnListFragmentInteractionListener {
fun onItemClick(item: Movies){
}
} |
core/src/main/java/dev/marcellogalhardo/retained/core/RetainedEntry.kt | unknown_repo | kotlin | package dev.marcellogalhardo.retained.core
import androidx.lifecycle.SavedStateHandle
import kotlinx.coroutines.CoroutineScope
import kotlin.reflect.KClass
/**
* Representation of an retained object entry in a [androidx.lifecycle.LifecycleOwner] and hosted
* in a [androidx.lifecycle.ViewModel].
*
* If the host is... |
shared/src/commonMain/kotlin/feature_detail/presentation/components/TvDetailSuccessView.kt | unknown_repo | kotlin | package feature_detail.presentation.components
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.SpanStyle
import androidx.compose.ui.text.buildAnnotatedString
import andr... |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/filled/TextFirstLine.kt | unknown_repo | kotlin |
package com.konyaco.fluent.icons.filled
import androidx.compose.ui.graphics.vector.ImageVector
import com.konyaco.fluent.icons.Icons
import com.konyaco.fluent.icons.fluentIcon
import com.konyaco.fluent.icons.fluentPath
public val Icons.Filled.TextFirstLine: ImageVector
get() {
if (_textFirstLine != null... |
benchmark/src/androidTest/java/com/vitorpamplona/amethyst/benchmark/GiftWrapSigningBenchmark.kt | unknown_repo | kotlin | package com.vitorpamplona.amethyst.benchmark
import androidx.benchmark.junit4.BenchmarkRule
import androidx.benchmark.junit4.measureRepeated
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.vitorpamplona.quartz.crypto.CryptoUtils
import com.vitorpamplona.quartz.encoders.toHexKey
import com.vitorpamplona... |
app/src/main/java/com/wavesplatform/wallet/v2/data/model/remote/request/CreateLeasingRequest.kt | unknown_repo | kotlin | package com.wavesplatform.wallet.v2.data.model.remote.request
import android.util.Log
import com.google.common.primitives.Bytes
import com.google.common.primitives.Longs
import com.google.gson.annotations.SerializedName
import com.wavesplatform.wallet.v1.crypto.Base58
import com.wavesplatform.wallet.v1.crypto.CryptoPr... |
sample/src/main/java/com/github/guilhe/sample/adapters/MahjongItemAdapter.kt | unknown_repo | kotlin | package com.github.guilhe.sample.adapters
import android.view.LayoutInflater
import android.view.ViewGroup
import com.github.guilhe.views.sample.databinding.MahjongItemBinding
class MahjongItemAdapter : BaseAdapter<Item, MahjongItemBinding>() {
init {
items.addAll(
listOf(
Ite... |
app/src/main/java/is/xyz/mpv/SpeedPickerDialog.kt | unknown_repo | kotlin | package `is`.xyz.mpv
import `is`.xyz.mpv.databinding.DialogSliderBinding
import android.view.LayoutInflater
import android.view.View
import android.widget.SeekBar
import kotlin.math.max
internal class SpeedPickerDialog : PickerDialog {
companion object {
// Middle point of bar (in progress units)
... |
app/src/main/java/is/xyz/mpv/SpeedPickerDialog.kt | unknown_repo | kotlin | package `is`.xyz.mpv
import `is`.xyz.mpv.databinding.DialogSliderBinding
import android.view.LayoutInflater
import android.view.View
import android.widget.SeekBar
import kotlin.math.max
internal class SpeedPickerDialog : PickerDialog {
companion object {
// Middle point of bar (in progress units)
... |
app-aqi/src/main/java/com/android/app_aqi/home/HomeFragment.kt | unknown_repo | kotlin | package com.android.app_aqi.home
import android.content.Context
import android.os.Bundle
import android.transition.TransitionInflater
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.app.SharedElementCallback
import androidx.fragment.app.Fragment
import an... |
app/src/main/java/br/com/connectattoo/adapter/NearbyTattooArtistsAndItemMoreViewHolder.kt | unknown_repo | kotlin | package br.com.connectattoo.adapter
import androidx.recyclerview.widget.RecyclerView
import androidx.viewbinding.ViewBinding
import br.com.connectattoo.data.NearbyTattooArtistsAndItemMore
import br.com.connectattoo.databinding.ItemMoreHomeScreenBinding
import br.com.connectattoo.databinding.NearbyTattooArtistsItemBind... |
matrix-sdk-android/src/main/java/im/vector/matrix/android/api/session/room/send/DraftService.kt | unknown_repo | kotlin | /*
* Copyright 2019 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 required by applicable law or agreed ... |
mobile/src/main/java/be/mygod/vpnhotspot/root/RepeaterCommands.kt | unknown_repo | kotlin | package be.mygod.vpnhotspot.root
import android.net.wifi.p2p.WifiP2pManager
import android.os.Looper
import android.os.Parcelable
import android.system.Os
import android.system.OsConstants
import android.text.TextUtils
import androidx.annotation.RequiresApi
import be.mygod.librootkotlinx.*
import be.mygod.vpnhotspot.n... |
ApiDemos/kotlin/app/src/main/java/com/example/kotlindemos/OptionsDemoActivity.kt | unknown_repo | kotlin | // Copyright 2020 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 in ... |
Android/app/src/androidTest/java/com/lunesu/pengchauferry/HolidayRepositoryTest.kt | unknown_repo | kotlin | package com.lunesu.pengchauferry
import androidx.test.ext.junit.runners.AndroidJUnit4
import kotlinx.coroutines.runBlocking
import org.joda.time.LocalDate
import org.junit.After
import org.junit.Assert.assertFalse
import org.junit.Assert.assertTrue
import org.junit.Test
import org.junit.runner.RunWith
@RunWith(Androi... |
AtomykPlay/app/src/main/java/com/atomykcoder/atomykplay/helperFunctions/Logger.kt | unknown_repo | kotlin | package com.atomykcoder.atomykplay.helperFunctions
import android.util.Log
object Logger {
/**
* Tag is "DebugTag"
*
* @param s
*/
fun normalLog(s: String?) {
Log.d("DebugTag", s!!)
}
}
|
app/src/main/java/com/example/passwordmanager/ProfileFragment.kt | unknown_repo | kotlin | package com.example.passwordmanager
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.navigation.fragment.findNavController
import com.example.passwordmanager.databinding.FragmentPasswordBinding
impor... |
app/src/main/java/com/rskopyl/shake/ui/custom/ShakeTabRow.kt | unknown_repo | kotlin | package com.rskopyl.shake.ui.custom
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.material3.*
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.ui.Alignment
import androidx.compo... |
library/src/main/java/ru/mintrocket/lib/mintpermissions/internal/requests/PermissionsRequestConsumer.kt | unknown_repo | kotlin | package ru.mintrocket.lib.mintpermissions.internal.requests
import androidx.activity.ComponentActivity
import androidx.activity.result.contract.ActivityResultContracts
import ru.mintrocket.lib.mintpermissions.ext.isDenied
import ru.mintrocket.lib.mintpermissions.ext.isGranted
import ru.mintrocket.lib.mintpermissions.e... |
library/src/main/java/ru/mintrocket/lib/mintpermissions/internal/requests/PermissionsRequestConsumer.kt | unknown_repo | kotlin | package ru.mintrocket.lib.mintpermissions.internal.requests
import androidx.activity.ComponentActivity
import androidx.activity.result.contract.ActivityResultContracts
import ru.mintrocket.lib.mintpermissions.ext.isDenied
import ru.mintrocket.lib.mintpermissions.ext.isGranted
import ru.mintrocket.lib.mintpermissions.e... |
compose/src/commonMain/kotlin/com/taetae98/codelab/compose/icon/ClearIcon.kt | unknown_repo | kotlin | package com.taetae98.codelab.compose.icon
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.rounded.Clear
import androidx.compose.material3.Icon
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
@Composable
public fun ClearIcon(modifier: Modifier = Modifi... |
compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/Tooltip.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... |
compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/Tooltip.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... |
may/src/main/java/io/github/ashutoshgngwr/may/May.kt | unknown_repo | kotlin | package io.github.ashutoshgngwr.may
import android.content.ContentValues
import android.content.Context
import android.database.Cursor
import android.database.DatabaseErrorHandler
import android.database.sqlite.SQLiteDatabase
import android.util.Log
import com.esotericsoftware.kryo.Kryo
import com.esotericsoftware.kry... |
app/src/main/java/com/yousufsyed/nycschools/dao/NycSchoolsDao.kt | unknown_repo | kotlin | package com.yousufsyed.nycschools.dao
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.yousufsyed.nycschools.dao.data.NYC_SCHOOL_TABLE_NAME
import com.yousufsyed.nycschools.dao.data.NycSchool
import kotlinx.coroutines.flow.Flow
@Dao
int... |
src/kotlin/src/tutorial/coroutine/concurrency/SharingVariable.kt | unknown_repo | kotlin | package tutorial.coroutine.concurrency
import kotlinx.coroutines.*
import kotlin.system.measureTimeMillis
suspend fun massiveRun(action: suspend () -> Unit) {
val n = 100 // 启动的协程数量
val k = 1000 // 每个协程重复执行同一动作的次数
val time = measureTimeMillis {
coroutineScope {
// 协程的作用域
re... |
app/src/main/java/com/example/to_docompose/data/repositories/DataStoreRepository.kt | unknown_repo | kotlin | package com.example.to_docompose.data.repositories
import android.content.Context
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.core.edit
import androidx.datastore.preferences.core.emptyPreferences
import androidx.datastore.prefere... |
app/src/main/java/com/example/newbagshop/PlaceYourOrder.kt | unknown_repo | kotlin | package com.example.newbagshop
import android.content.Intent
import android.location.Address
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.text.TextUtils
import android.view.MenuItem
import android.view.View
import android.widget.Toast
import androidx.appcompat.app.ActionBar
i... |
imagepicker/src/main/java/com/esafirm/imagepicker/features/ImagePickerFragment.kt | unknown_repo | kotlin | package com.esafirm.imagepicker.features
import android.Manifest
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.content.res.Configuration
import android.net.Uri
import android.os.Build
import android.os.Bundle
import andr... |
android/src/main/kotlin/io/piano/flutter/piano_analytics/PianoConsentsPlugin.kt | unknown_repo | kotlin | package io.piano.flutter.piano_analytics
import android.content.Context
import io.flutter.embedding.engine.plugins.FlutterPlugin
import io.flutter.embedding.engine.plugins.activity.ActivityAware
import io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding
import io.flutter.plugin.common.MethodCall
import ... |
app/src/main/java/com/example/snplc/ui/main/viewmodels/HomeViewModel.kt | unknown_repo | kotlin | package com.example.snplc.ui.main.viewmodels
import androidx.hilt.lifecycle.ViewModelInject
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.snplc.data.entities.Post
import com.example.snplc.othe... |
core/auth/impl/src/main/kotlin/flow/auth/impl/AuthServiceImpl.kt | unknown_repo | kotlin | package flow.auth.impl
import flow.auth.api.AuthService
import flow.auth.api.TokenProvider
import flow.models.auth.AuthResult
import flow.models.auth.AuthState
import flow.models.auth.Captcha
import flow.network.api.NetworkApi
import flow.network.dto.auth.AuthResponseDto
import flow.network.dto.auth.CaptchaDto
import ... |
app/src/main/java/com/example/rove/utils/Lists.kt | unknown_repo | kotlin | package com.example.rove.utils
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Context
import android.view.Menu
import android.view.MenuItem
import android.widget.Toast
import com.example.rove.RoveConstants
import com.example.rove.RovePreferences
import com.example.rove.R
impo... |
solwave/src/main/java/com/saganize/solwave/core/presentation/theme/SolwaveTheme.kt | unknown_repo | kotlin | package com.saganize.solwave.core.presentation.theme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.ReadOnlyComposable
object SolwaveTheme {
val colors: SolwaveColors
@ReadOnlyComposable
@Composable
get() = LocalSolwaveColors.current
val dimensions: Solwav... |
app/src/main/java/net/lomeli/bah/util/BootUtil.kt | unknown_repo | kotlin | package net.lomeli.bah.util
import android.content.res.Resources
import android.view.View
import com.topjohnwu.superuser.Shell
import net.lomeli.bah.R
import org.jetbrains.anko.AnkoLogger
import org.jetbrains.anko.design.longSnackbar
import org.jetbrains.anko.design.snackbar
import org.jetbrains.anko.error
import org.... |
simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Steam.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... |
app/src/main/java/com/rcgonzalezf/databindingissueapp/MainActivity.kt | unknown_repo | kotlin | package com.rcgonzalezf.databindingissueapp
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.databinding.DataBindingUtil
import androidx.databinding.DataBindingUtil.inflate
import com.rcgonzalezf.databindingissueapp.component.SomeViewComponent
import com.rcgonzalezf.databindingi... |
app/src/main/java/com/davipviana/usingroom/entities/Exam.kt | unknown_repo | kotlin | package com.davipviana.usingroom.entities
import android.arch.persistence.room.Entity
import android.arch.persistence.room.PrimaryKey
import java.io.Serializable
import java.util.*
@Entity
class Exam : Serializable {
@PrimaryKey(autoGenerate = true)
var id: Long = 0
var subject: String = ""
var exa... |
Development/app/src/main/java/com/spendsages/walletwatch/Main/RecyclerAdapter.kt | unknown_repo | kotlin | package com.spendsages.walletwatch
import android.icu.text.SimpleDateFormat
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.appcompat.widget.AppCompatCheckBox
import androidx.appcompat.widget.AppCompatImageButton
import androidx.r... |
app/src/main/java/com/example/myweather/presentation/viewmodel/WeatherViewModel.kt | unknown_repo | kotlin | package com.example.myweather.presentation.viewmodel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.myweather.data.network.responses.*
import com.example.myweather.data.preferences.WeatherPrefe... |
BaseModule/src/main/java/net/geeksempire/experimental/demonstration/PhysicsAnimation/PhysicsAnimationActivity.kt | unknown_repo | kotlin | package net.geeksempire.experimental.demonstration.PhysicsAnimation
import android.content.Intent
import android.graphics.*
import android.os.Build
import android.os.Bundle
import android.os.Handler
import android.view.GestureDetector
import android.view.MotionEvent
import androidx.appcompat.app.AppCompatActivity
impo... |
vector/src/main/java/im/vector/riotx/features/settings/VectorSettingsBaseFragment.kt | unknown_repo | kotlin | /*
* Copyright 2019 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 required by applicable law or agreed ... |
app/src/main/java/ru/tanec/siderakt/presentation/catalog/components/CatalogSearchBar.kt | unknown_repo | kotlin | package ru.tanec.siderakt.presentation.catalog.components
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundati... |
codegen-compiler/src/main/kotlin/com/freeletics/khonshu/codegen/codegen/common/ComposeGenerator.kt | unknown_repo | kotlin | package com.freeletics.khonshu.codegen.codegen.common
import com.freeletics.khonshu.codegen.BaseData
import com.freeletics.khonshu.codegen.ComposeData
import com.freeletics.khonshu.codegen.codegen.Generator
import com.freeletics.khonshu.codegen.codegen.util.asComposeState
import com.freeletics.khonshu.codegen.codegen.... |
azure-communication-ui/demo-app/src/calling-test/java/com/azure/android/communication/ui/callingcompositedemoapp/BaseUiTest.kt | unknown_repo | kotlin | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.android.communication.ui.callingcompositedemoapp
import android.os.Build
import androidx.test.rule.ActivityTestRule
import androidx.test.rule.GrantPermissionRule
import com.microsoft.appcenter.espresso.Fa... |
app/src/main/java/com/example/demoapp/movie_list/data/local/movie/MovieDao.kt | unknown_repo | kotlin | package com.example.demoapp.movie_list.data.local.movie
import androidx.room.Dao
import androidx.room.Query
import androidx.room.Upsert
/**
* @author <NAME>
*/
@Dao
interface MovieDao {
/**
* Insert or update a list of movies.
*
* @param movieList [List] of [MovieEntity] that will be inserted or ... |
app/src/main/java/com/antonioleiva/weatherapp/ui/activities/MainActivity.kt | unknown_repo | kotlin | package com.antonioleiva.weatherapp.ui.activities
import android.os.Bundle
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.Toolbar
import com.antonioleiva.weatherapp.R
import com.antonioleiva.weatherapp.domain.commands.RequestForecastCommand
import com.antonioleiva.weatherapp.exte... |
app/src/main/java/vn/finance/app/pages/onBoarding/OnBoardingItemFragment.kt | unknown_repo | kotlin | package vn.finance.app.pages.onBoarding
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import vn.finance.app.databinding.ItemOnboardingBinding
import vn.finance.app.utils.Constants
class OnBoardingItemFragment : ... |
app/src/main/java/com/thesohelshaikh/ytanalyser/ui/home/HomeScreen.kt | unknown_repo | kotlin | package com.thesohelshaikh.ytanalyser.ui.home
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Scaffold
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.navigation.NavGraph.Companion... |
fingerprint-protection/fingerprint-protection-impl/src/test/java/com/duckduckgo/fingerprintprotection/FingerprintProtectionSeedWorkerTest.kt | unknown_repo | kotlin | /*
* Copyright (c) 2022 DuckDuckGo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
app/src/main/java/com/example/android/roomwordssample/view/RecyclerViewActivity.kt | unknown_repo | kotlin | package com.example.android.roomwordssample.view
import android.os.Bundle
import android.view.View
import android.widget.ProgressBar
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProviders
import android... |
app/src/main/java/com/example/attractions/adapter/AttractionsAdapter.kt | unknown_repo | kotlin | package com.example.attractions.adapter
import android.annotation.SuppressLint
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.webkit.WebView
import android.widget.Button
import android.widget.ImageView
import android.widget.TextView
import androidx.constraintla... |
app/src/main/java/site/panda2134/thssforum/ui/profile/draft/DraftListRecyclerViewAdapter.kt | unknown_repo | kotlin | package site.panda2134.thssforum.ui.profile.draft
import android.app.AlertDialog
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.core.view.isVisible
import androidx.recyclerview.widget.RecyclerView
impo... |
app/src/main/java/com/thorhelgen/rickandmortyinfoapp/presentation/details/episodes/EpisodeDetailsViewModel.kt | unknown_repo | kotlin | package com.thorhelgen.rickandmortyinfoapp.presentation.details.episodes
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.thorhelgen.rickandmortyinfoapp.domain.entities.Episode
import com.thorhelgen.rick... |
app/src/main/java/me/rosuh/jianews/adapter/SearchListAdapter.kt | unknown_repo | kotlin | package me.rosuh.jianews.adapter
import android.app.Activity
import android.content.Intent
import android.net.Uri
import android.support.v7.widget.RecyclerView
import android.support.v7.widget.RecyclerView.ViewHolder
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import andro... |
android/src/main/kotlin/com/cjx/x5_webview/X5WebViewActivity.kt | unknown_repo | kotlin | package com.cjx.x5_webview
import android.app.Activity
import android.content.Intent
import android.graphics.PixelFormat
import android.net.Uri
import android.os.Bundle
import android.util.Log
import android.view.MenuItem
import android.view.View
import android.view.Window
import android.widget.FrameLayout
import com.... |
app/src/main/java/com/example/monylover/viewmodels/CategoriesViewModel.kt | unknown_repo | kotlin | package com.example.monylover.viewmodels
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.toArgb
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.monylover.data.db.RoomDb
import com.example.monylover.models.Category
import kotlinx.coroutines.D... |
PRACTICE_JETPACK/app/src/main/java/nlab/practice/jetpack/util/recyclerview/selection/DefaultItemDetails.kt | unknown_repo | kotlin | /*
* Copyright (C) 2007 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 a... |
nibel-runtime/src/main/kotlin/nibel/runtime/ComposeNavigationSpec.kt | unknown_repo | kotlin | package nibel.runtime
import android.os.Parcelable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.navigation.NavArgument
import androidx.navigation.NavController
import androidx.navigation.compose.ComposeNavigator
/**
* A holder for classes required to navigate with compose navigation libra... |
basick/src/main/java/com/mozhimen/basick/utilk/bitmap/UtilKBitmapDeal.kt | unknown_repo | kotlin | package com.mozhimen.basick.utilk.graphics.bitmap
import android.graphics.*
import com.mozhimen.basick.utilk.bases.BaseUtilK
import com.mozhimen.basick.utilk.log.et
import java.lang.Integer.min
/**
* @ClassName UtilKBitmapDeal
* @Description Bitmap 处理类
* @Author mozhimen / <NAME>
* @Date 2022/2/27 22:49
* @Versi... |
AndroidApp/app/src/main/java/com/example/artmaster/adminTutorials/DetailTutorialActivity.kt | unknown_repo | kotlin | package com.example.artmaster.adminTutorials
import android.annotation.SuppressLint
import android.content.Intent
import android.os.Bundle
import android.util.Log
import androidx.activity.compose.setContent
import androidx.activity.viewModels
import androidx.compose.animation.AnimatedVisibility
import androidx.compose... |
native/android/app/src/main/java/work/calmato/prestopay/ui/resetPassLogin/UpdatePassLoginFragment.kt | unknown_repo | kotlin | package work.calmato.prestopay.ui.resetPassLogin
import android.graphics.Color
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.ProgressBa... |
app/src/main/java/com/hbzhou/open/camera/WelcomeActivity.kt | unknown_repo | kotlin | package com.hbzhou.open.camera
import android.content.Intent
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import com.blankj.utilcode.constant.PermissionConstants
import com.blankj.utilcode.util.PermissionUtils
import com.blankj.utilcode.util.PermissionUtils.FullCall... |
feature/search-bar/core/src/main/java/ru/maksonic/beresta/feature/search_bar/core/presentation/ui/SearchBarExpandedContent.kt | unknown_repo | kotlin | package ru.maksonic.beresta.feature.search_bar.core.presentation.ui
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
imp... |
dbinspector/src/main/kotlin/com/infinum/dbinspector/ui/shared/contracts/EditContract.kt | unknown_repo | kotlin | package com.infinum.dbinspector.ui.shared.contracts
import android.content.Context
import android.content.Intent
import com.infinum.dbinspector.ui.Presentation
import com.infinum.dbinspector.ui.edit.EditActivity
import com.infinum.dbinspector.ui.shared.base.BaseContract
internal class EditContract : BaseContract<Edit... |
app/src/main/java/com/taru/ui/pages/nav/cure/NavCureViewModel.kt | unknown_repo | kotlin | package com.taru.ui.pages.nav.cure
import android.view.View
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.taru.R
import com.taru.data.local.db.plant.PlantRecentSearchEntity
import com.taru.tools.livedata.LiveDataEvent
import com.taru.ui.base.ViewModelBase
import dagger.hilt.an... |
shared/compose/src/commonMain/kotlin/com/sedsoftware/tackle/compose/ui/editor/child/warning/EditorWarningContent.kt | unknown_repo | kotlin | package com.sedsoftware.tackle.compose.ui.editor.child.warning
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.animation.scaleIn
import androidx.compose.animation.scaleOut
import androidx.compose.desktop.ui.... |
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/Snowflake.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/java/com/donfreddy/troona/ui/MainViewModel.kt | unknown_repo | kotlin | /*
=============
Author: <NAME>
Github: https://github.com/donfreddy
Website: https://donfreddy.com
=============
Application: Troona - Music Player
Homepage: https://github.com/donfreddy/troona
License: https://github.com/donfreddy/troona/blob/main/LICENSE
Copyright: © 2023, <NAME>. All rights reserved.
=============
... |
solar/src/main/java/com/chiksmedina/solar/lineduotone/videoaudiosound/VideoFramePlayHorizontal.kt | unknown_repo | kotlin | package com.chiksmedina.solar.lineduotone.videoaudiosound
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.StrokeCa... |
camera/src/main/java/com/ke/cameralibrary/util/FileUtil.kt | unknown_repo | kotlin | package com.ke.cameralibrary.util
import android.graphics.Bitmap
import android.os.Environment
import java.io.BufferedOutputStream
import java.io.File
import java.io.FileOutputStream
import java.io.IOException
object FileUtil {
private val parentPath = Environment.getExternalStorageDirectory()
private var storag... |
app/src/main/java/com/udeshcoffee/android/ui/MiniPlayerActivity.kt | unknown_repo | kotlin | package com.udeshcoffee.android.ui
import android.content.IntentFilter
import android.os.Build
import android.os.Bundle
import android.support.v4.view.ViewCompat
import android.transition.Fade
import android.util.Log
import android.view.View
import com.cantrowitz.rxbroadcast.RxBroadcast
import com.sothree.slidinguppan... |
app/src/main/java/xyz/manolos/cubos/movie/MovieListAdapter.kt | unknown_repo | kotlin | package xyz.manolos.cubos.movie
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import com.squareup.picasso.Picasso
import kotlinx.android.synthetic.main... |
src/main/kotin/com/hewking/kotlin/coroutines/basics/Test.kt | unknown_repo | kotlin | package com.hewking.kotlin.coroutines.basics
import kotlinx.coroutines.*
import kotlin.concurrent.thread
/**
* @Classname Test
* @Description TODO
* @Date 2020-06-04 14:16
* @Created by jianhao
*/
fun baz() {
GlobalScope.launch {
doWorld()
}
print("hello ")
Thread.sleep(2000L)
}
fun foo... |
app/src/main/java/me/ztiany/ui/state/example/TestViewModel.kt | unknown_repo | kotlin | package me.ztiany.ui.state.example
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.android.base.foundation.data.Resource
import com.android.base.foundation.data.ResourceD
import com.android.base.foundation.data.Uninitialized
import kotlinx.cor... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.