file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
scopelib/src/main/java/org/deejdev/scopelib/internal/ScopeNameParceler.kt | unknown_repo | kotlin | package org.deejdev.scopelib.internal
import android.os.Parcel
import kotlinx.parcelize.Parceler
internal object ScopeNameParceler : Parceler<Any?> {
override fun create(parcel: Parcel): Any? {
return when (val kind = parcel.readInt()) {
0 -> return null
1 -> parcel.readString()?.l... |
mobile-ui/src/main/java/com/thomaskioko/paybillmanager/mobile/ui/adapter/CategoriesAdapter.kt | unknown_repo | kotlin | package com.thomaskioko.paybillmanager.mobile.ui.adapter
import android.view.View
import android.view.ViewGroup
import androidx.core.content.res.ResourcesCompat
import androidx.recyclerview.widget.RecyclerView
import com.thomaskioko.paybillmanager.domain.model.Category
import com.thomaskioko.paybillmanager.mobile.R
im... |
app/src/main/java/com/havriiash/dmitriy/githubbrowser/main/ui/fragments/repo/RepoDetailFilesFragment.kt | unknown_repo | kotlin | package com.havriiash.dmitriy.githubbrowser.main.ui.fragments.repo
import android.arch.lifecycle.Observer
import android.arch.lifecycle.ViewModelProviders
import android.databinding.DataBindingUtil
import android.os.Bundle
import android.support.v7.widget.LinearLayoutManager
import android.view.LayoutInflater
import a... |
app/src/main/java/com/bulletapps/candypricer/presentation/ui/widgets/CardClient.kt | unknown_repo | kotlin | package com.bulletapps.candypricer.presentation.ui.widgets
import androidx.compose.foundation.layout.*
import androidx.compose.material.Card
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.tooling.preview.Preview
im... |
app/src/main/java/ImageClassification.kt | unknown_repo | kotlin | package com.pangrel.pakaimasker
import android.content.Context
import android.graphics.*
import android.os.AsyncTask
import android.util.Log
import com.chaquo.python.PyObject
import java.io.ByteArrayOutputStream
interface OnEventListener<T> {
fun onSuccess(`object`: T)
fun onFailure(e: Exception?)
}
interfac... |
app-elgoog/src/main/kotlin/dev/bogdanzurac/marp/app/elgoog/core/auth/AuthManager.kt | unknown_repo | kotlin | package dev.bogdanzurac.marp.app.elgoog.core.auth
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.auth.FirebaseUser
import com.google.firebase.auth.ktx.auth
import com.google.firebase.ktx.Firebase
import dev.bogdanzurac.marp.app.elgoog.core.auth.AuthException.AccountCreationException
import dev... |
app/src/main/java/ru/otus/canvas/finish/BadgeView.kt | unknown_repo | kotlin | package ru.otus.canvas.finish
import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.graphics.RectF
import android.util.AttributeSet
import androidx.appcompat.widget.AppCompatTextView
import ru.otus.canvas.R
class BadgeView : AppCompatT... |
android/src/main/kotlin/com/dgsd/android/solar/send/SendCoordinator.kt | unknown_repo | kotlin | package com.dgsd.android.solar.send
import androidx.lifecycle.ViewModel
import com.dgsd.android.solar.flow.MutableEventFlow
import com.dgsd.android.solar.flow.SimpleMutableEventFlow
import com.dgsd.android.solar.flow.asEventFlow
import com.dgsd.android.solar.flow.call
import com.dgsd.ksol.core.model.Lamports
import co... |
magic/core/src/main/java/link/magic/android/modules/user/UserModule.kt | unknown_repo | kotlin | package link.magic.android.modules.user
import android.content.Context
import link.magic.android.core.provider.RpcProvider
import link.magic.android.modules.BaseModule
import link.magic.android.modules.user.requestConfiguration.GenerateIdTokenConfiguration
import link.magic.android.modules.user.requestConfiguration.Ge... |
cmp-common/src/commonMain/kotlin/ru/beryukhov/coffeegram/view/CoffeeTypeItem.kt | unknown_repo | kotlin | package ru.beryukhov.coffeegram.view
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation... |
lib/src/main/java/com/inmotionsoftware/flowkit/android/BundleUtil.kt | unknown_repo | kotlin | // MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, subli... |
app/src/main/java/com/crrl/beatplayer/ui/fragments/SongDetailFragment.kt | unknown_repo | kotlin | /*
* Copyright (c) 2020. <NAME>. All rights reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or a... |
app/src/main/java/com/anbetter/livedata/demo/MainActivity.kt | unknown_repo | kotlin | package com.anbetter.livedata.demo
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.Button
import androidx.lifecycle.Observer
import com.anbetter.bus.LiveDataBus
class MainActivity : AppCompatActivity() {
override... |
app/src/test/java/com/example/riccandmorty/data/local/db/MortyDatabaseTest.kt | unknown_repo | kotlin | package com.example.riccandmorty.data.local.db
import android.content.Context
import androidx.room.Room
import androidx.test.core.app.ApplicationProvider
import com.example.riccandmorty.data.local.dao.CharacterDao
import com.example.riccandmorty.data.local.dao.CharacterRemoteDao
import com.example.riccandmorty.resourc... |
app/src/main/java/com/example/screenrecoder/RecorderFragment.kt | unknown_repo | kotlin | package com.example.screenrecoder
import android.Manifest
import android.annotation.TargetApi
import android.app.Activity.RESULT_OK
import android.content.ComponentName
import android.content.Context
import android.content.Intent
import android.content.ServiceConnection
import android.media.projection.MediaProjectionM... |
solar/src/main/java/com/chiksmedina/solar/broken/videoaudiosound/Rewind10SecondsBack.kt | unknown_repo | kotlin | package com.chiksmedina.solar.broken.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.Round
import androidx.compose.ui.graphics.StrokeJoin
i... |
solar/src/main/java/com/chiksmedina/solar/broken/videoaudiosound/Rewind10SecondsBack.kt | unknown_repo | kotlin | package com.chiksmedina.solar.broken.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.Round
import androidx.compose.ui.graphics.StrokeJoin
i... |
app/src/main/java/com/njp/wallhaven3/ui/detail/DetailActivity.kt | unknown_repo | kotlin | package com.njp.wallhaven3.ui.detail
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.support.v4.view.ViewPager
import com.njp.wallhaven3.R
import com.njp.wallhaven3.adapter.DetailImagesAdapt... |
ethers-abigen/src/main/kotlin/io/ethers/abigen/CodeFactory.kt | unknown_repo | kotlin | package io.ethers.abigen
import com.squareup.kotlinpoet.ClassName
import com.squareup.kotlinpoet.FunSpec
import com.squareup.kotlinpoet.KModifier
import com.squareup.kotlinpoet.ParameterSpec
import com.squareup.kotlinpoet.PropertySpec
import com.squareup.kotlinpoet.TypeSpec
import com.squareup.kotlinpoet.asClassName
... |
common/src/main/java/com/iar/common/user/UserFragment.kt | unknown_repo | kotlin | package com.iar.common.user
import androidx.lifecycle.ViewModelProvider
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.EditText
import android.widget.FrameLayout
import androidx.fragment.app.viewModels
import com.iar.common.R
im... |
core/testing/src/main/java/com/githukudenis/comlib/core/testing/ComlibTestRunner.kt | unknown_repo | kotlin | package com.githukudenis.comlib.core.testing
import android.app.Application
import android.content.Context
import androidx.test.runner.AndroidJUnitRunner
import dagger.hilt.android.testing.HiltTestApplication
import junit.textui.TestRunner
/*
custom test runner to set up instrumented application class for tests
*/
... |
app/src/main/java/jp/mihailskuzmins/sugoinihongoapp/features/base/detail/detailitems/DetailItemTextView.kt | unknown_repo | kotlin | package jp.mihailskuzmins.sugoinihongoapp.features.base.detail.detailitems
import android.content.Context
import androidx.annotation.StringRes
import androidx.databinding.Bindable
import androidx.databinding.library.baseAdapters.BR
import io.reactivex.rxkotlin.Observables
import io.reactivex.rxkotlin.addTo
import io.r... |
gallerydroid/src/main/java/com/jesusd0897/gallerydroid/view/adapter/StaggeredPicturesAdapter.kt | unknown_repo | kotlin | /*
* Copyright (c) 2021 jesusd0897.
* 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... |
ui/src/test/kotlin/io/rippledown/appbar/CreateKBTest.kt | unknown_repo | kotlin | package io.rippledown.appbar
import androidx.compose.ui.test.*
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.compose.ui.window.Window
import androidx.compose.ui.window.application
import io.mockk.Called
import io.mockk.mockk
import io.mockk.verify
import io.rippledown.constants.main.*
import... |
uni-eventos/UniEventos/app/src/main/java/com/n3vers4ydie/unieventos/ui/screens/EventsScreen.kt | unknown_repo | kotlin | package com.n3vers4ydie.unieventos.ui.screens
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.grid.GridCells
import androidx.compose.foundation.lazy.grid.LazyVerticalGrid
import androidx.compose.foundation.lazy.grid.rememberLazyGridState
... |
app/src/main/java/com/topjohnwu/magisk/core/model/su/SuLog.kt | unknown_repo | kotlin | package com.brightsight.magisk.core.model.su
import androidx.room.Entity
import androidx.room.Ignore
import androidx.room.PrimaryKey
import com.brightsight.magisk.core.model.su.SuPolicy.Companion.ALLOW
import com.brightsight.magisk.ktx.now
import com.brightsight.magisk.ktx.timeFormatTime
import com.brightsight.magisk.... |
community/src/main/java/com/ekoapp/ekosdk/uikit/community/views/createpost/EkoPostComposeViewStyle.kt | unknown_repo | kotlin | package com.ekoapp.ekosdk.uikit.community.views.createpost
import android.content.Context
import android.util.AttributeSet
import androidx.annotation.StyleRes
import com.ekoapp.ekosdk.uikit.common.views.Style
import com.ekoapp.ekosdk.uikit.community.R
class EkoPostComposeViewStyle : Style {
var backgroundColor: I... |
community/src/main/java/com/ekoapp/ekosdk/uikit/community/views/createpost/EkoPostComposeViewStyle.kt | unknown_repo | kotlin | package com.ekoapp.ekosdk.uikit.community.views.createpost
import android.content.Context
import android.util.AttributeSet
import androidx.annotation.StyleRes
import com.ekoapp.ekosdk.uikit.common.views.Style
import com.ekoapp.ekosdk.uikit.community.R
class EkoPostComposeViewStyle : Style {
var backgroundColor: I... |
app/src/main/java/com/dearmyhealth/modules/exercise/fragment/ExerciseFragment.kt | unknown_repo | kotlin | package com.dearmyhealth.modules.exercise.fragment
import android.app.AlertDialog
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import ... |
app/src/main/java/br/com/connectattoo/adapter/RandomTattoosAndItemMoreViewHolder.kt | unknown_repo | kotlin | package br.com.connectattoo.adapter
import androidx.recyclerview.widget.RecyclerView
import androidx.viewbinding.ViewBinding
import br.com.connectattoo.R
import br.com.connectattoo.data.RandomTattoosAndItemMore
import br.com.connectattoo.databinding.ItemMoreHomeScreenBinding
import br.com.connectattoo.databinding.Rand... |
App News - Android + Kotlin + Retrofit + Coroutines + Room/app_news_mvvm/app/src/main/java/com/lvb/projects/app_news_mvvm/data/local/db/ArticleDao.kt | unknown_repo | kotlin | package com.lvb.projects.app_news_mvvm.data.local.db
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.lvb.projects.app_news_mvvm.data.local.model.Article
@Dao
interface Arti... |
Android/app/src/main/java/com/amrdeveloper/askme/viewmodels/QuestionAnswerViewModel.kt | unknown_repo | kotlin | package com.amrdeveloper.askme.viewmodels
import android.util.Log
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.amrdeveloper.askme.models.Answer
import com.amrdeveloper.askme.models.Reaction
import com.amrdeveloper.askme.models.Reactio... |
demo-app/src/main/java/cash/z/ecc/android/sdk/demoapp/ui/common/BindCompLocalProvider.kt | unknown_repo | kotlin | package cash.z.ecc.android.sdk.demoapp.ui.common
import android.view.WindowManager
import androidx.activity.ComponentActivity
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.lifecycle.lifecycleScope
import cash.z.ecc.android.sdk.ext.collectWith
import... |
shared/feature/licenses/src/iosMain/kotlin/ly/david/musicsearch/shared/feature/licenses/internal/Licenses.ios.kt | unknown_repo | kotlin | package ly.david.musicsearch.shared.feature.licenses.internal
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
@Composable
internal actual fun Licenses(modifier: Modifier) {
}
|
kohii-exoplayer/src/main/java/kohii/v1/exoplayer/KohiiExoPlayer.kt | unknown_repo | kotlin | /*
* Copyright (c) 2020 Nam Nguyen, nam@ene.im
*
* 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... |
kohii-exoplayer/src/main/java/kohii/v1/exoplayer/KohiiExoPlayer.kt | unknown_repo | kotlin | /*
* Copyright (c) 2020 Nam Nguyen, nam@ene.im
*
* 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... |
feature-login/src/main/java/com/agb/feature_login/ui/LoginFragment.kt | unknown_repo | kotlin | package com.agb.feature_login.ui
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.widget.addTextChangedListener
import androidx.lifecycle.lifecycleScope
import com.agb.core.common.Result
import com.agb.core.common.Stage
import com.a... |
customview/src/main/java/com/iamkamrul/utils/UtilsExtension.kt | unknown_repo | kotlin | package com.iamkamrul.utils
import android.content.Context
fun Context.displayRatioValue(value:Int):Int{
val dpRatio: Float = resources.displayMetrics.density
return (value * dpRatio).toInt()
}
fun Context.dp(value:Int):Float{
val dpRatio: Float = resources.displayMetrics.density
return (value * dpRa... |
app/src/main/java/dev/tcode/thinmp/view/playlist/PlaylistRegisterPopupView.kt | unknown_repo | kotlin | package dev.tcode.thinmp.view.playlist
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layou... |
navigation/navigation-safe-args-generator/src/test/test-data/expected/nav_generator_test/kotlin/nested_same_action/SettingsDirections.kt | unknown_repo | kotlin | package foo
import android.os.Bundle
import androidx.navigation.NavDirections
import kotlin.Int
import kotlin.String
public class SettingsDirections private constructor() {
private data class Exit(
public val exitReason: String = "DEFAULT"
) : NavDirections {
public override val actionId: Int = R.id.exit
... |
app/src/main/java/dev/tcode/thinmp/view/collapsingTopAppBar/MenuCollapsingTopAppBarView.kt | unknown_repo | kotlin | package dev.tcode.thinmp.view.collapsingTopAppBar
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.ColumnScope
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.LazyListScope
import androidx.co... |
app/src/main/kotlin/app/lawnchair/lawnicons/ui/components/home/IconPreviewGrid.kt | unknown_repo | kotlin | package app.lawnchair.lawnicons.ui.components.home
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.Image
import androidx.compose.founda... |
anvil/src/gen-sdk-17/kotlin/dev/inkremental/dsl/android/widget/CalendarView.kt | unknown_repo | kotlin | @file:Suppress("DEPRECATION", "UNCHECKED_CAST", "MemberVisibilityCanBePrivate", "unused")
package dev.inkremental.dsl.android.widget
import android.graphics.drawable.Drawable
import android.widget.CalendarView
import dev.inkremental.Inkremental
import dev.inkremental.attr
import dev.inkremental.bind
import dev.inkrem... |
app/src/main/java/com/example/belindas_closet/screen/CreatorView.kt | unknown_repo | kotlin | package com.example.belindas_closet.screen
import android.widget.Toast
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androi... |
cupertino-icons-extended/src/commonMain/kotlin/io/github/alexzhirkevich/cupertino/icons/outlined/Moon.kt | unknown_repo | kotlin | /*
* Copyright (c) 2023-2024. Compose Cupertino project and open source contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE... |
kotlinextensions/src/main/java/dev/funkymuse/kotlinextensions/cursor/CursorExtensions.kt | unknown_repo | kotlin | package com.crazylegend.kotlinextensions.cursor
import android.database.Cursor
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
/**
* Created by hristijan on 3/20/19 to long live and prosper !
*/
fun <T : Any> Cursor.mapToList(cursorPredicate: (Cursor) -> T): List<T> = generateSequence {
... |
app/src/main/java/com/eslam/efficientalarm/ui/TimePickerFragment.kt | unknown_repo | kotlin | package com.eslam.efficientalarm.ui
import android.app.Dialog
import android.app.TimePickerDialog
import android.os.Bundle
import android.widget.TimePicker
import androidx.fragment.app.DialogFragment
import com.eslam.efficientalarm.listeners.OnTimeSet
import java.util.*
class TimePickerFragment constructor(val timeLi... |
core-ui/screens/main/explore/src/main/java/com/odogwudev/example/explore/ExploreScreenState.kt | unknown_repo | kotlin | package com.odogwudev.example.explore
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.saveable.Saver
import androidx.compose.runtime.saveable.rememberSaveable
import androidx.compose.runtime.setValue
impo... |
app/src/main/java/com/poc/network/MyApplication.kt | unknown_repo | kotlin | package com.poc.network
import android.app.Application
import com.poc.network.home.data.di.HomeSetup
import org.koin.android.ext.koin.androidContext
import org.koin.android.ext.koin.androidLogger
import org.koin.core.context.startKoin
class MyApplication : Application() {
override fun onCreate() {
super.... |
app/src/main/java/com/afdhal_fa/imagesliderlibarary/WithCustomAdapterActivity.kt | unknown_repo | kotlin | package com.afdhal_fa.imagesliderlibarary
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import com.afdhal_fa.imageslider.model.SlideUIModel
import com.afdhal_fa.imagesliderlibarary.databinding.ActivityWithCustomAdapterBinding
class WithCustomAdapterActivity : App... |
app/src/main/java/com/github/wanderwise_inc/app/ui/list_itineraries/ItineraryList.kt | unknown_repo | kotlin | package com.github.wanderwise_inc.app.ui.list_itineraries
import androidx.compose.foundation.layout.Arrangement.Absolute.spacedBy
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundati... |
app/src/main/java/com/steleot/jetpackcompose/playground/compose/material/LocalContentAlphaScreen.kt | unknown_repo | kotlin | package com.steleot.jetpackcompose.playground.compose.material
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material.ContentAlpha
imp... |
toaster/src/main/java/org/nm/toaster/ToastManager.kt | unknown_repo | kotlin | package org.nm.toaster
import android.content.Context
import android.widget.Toast
object ToastManager {
fun toastItMessage(context: Context) {
Toast.makeText(context, "Toast message", Toast.LENGTH_LONG).show()
}
} |
src/main/kotlin/com/wanggaowan/tools/listener/GenL10nListener.kt | unknown_repo | kotlin | package com.wanggaowan.tools.listener
import com.intellij.ide.actionsOnSave.impl.ActionsOnSaveFileDocumentManagerListener.ActionOnSave
import com.intellij.openapi.editor.Document
import com.intellij.openapi.editor.event.DocumentEvent
import com.intellij.openapi.editor.event.DocumentListener
import com.intellij.openapi... |
filepicker/src/main/java/me/rosuh/filepicker/FilePickerActivity.kt | unknown_repo | kotlin | package me.rosuh.filepicker
import android.Manifest
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Intent
import android.content.pm.PackageManager
import android.os.*
import android.os.Environment.MEDIA_MOUNTED
import android.util.Log
import android.view.LayoutInflater
import... |
android/app/src/main/kotlin/com/v2ray/ang/util/Utility.kt | unknown_repo | kotlin | package com.v2ray.ang.util
import android.content.Context
import android.content.Intent
import android.util.Log
import androidx.core.content.ContextCompat
import java.io.File
import java.io.FileOutputStream
object Utility {
private val TAG = Utility::class.java.simpleName
fun exec(cmd: String) = try {
... |
app/src/main/kotlin/de/p72b/mocklation/di/Module.kt | unknown_repo | kotlin | package de.p72b.mocklation.di
import de.p72b.mocklation.data.FeatureRepository
import de.p72b.mocklation.data.mapper.FeatureMapper
import de.p72b.mocklation.data.room.FeatureDatabase
import de.p72b.mocklation.usecase.GetCollectionUseCase
import de.p72b.mocklation.service.ForegroundServiceInteractor
import de.p72b.mock... |
app/src/main/java/com/example/simplenavigationcompose/ui/second2screens/Friendships3.kt | unknown_repo | kotlin | package com.example.simplenavigationcompose.ui.screens
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import a... |
sample/features/shikimori/src/main/kotlin/io/github/ikarenkov/sample/shikimori/impl/data/AuthDataLocalStorage.kt | unknown_repo | kotlin | package io.github.ikarenkov.sample.shikimori.impl.data
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.stringPreferencesKey
import androidx.datastore... |
passwordvalidator/src/main/java/sergio/sastre/multiplying/quality/of/unittests/passwordvalidator/model/CreateAccountUiState.kt | unknown_repo | kotlin | package sergio.sastre.multiplying.quality.of.unittests.passwordvalidator.model
import androidx.annotation.ColorRes
import androidx.compose.material.MaterialTheme
import androidx.compose.ui.graphics.Color
data class CreateAccountUiState(
/*
val passwordColor: Int,
val passwordUnderlineColor: Int,
val p... |
app/src/main/java/com/cusufcan/mercansocial/util/Util.kt | unknown_repo | kotlin | package com.cusufcan.mercansocial.util
import android.app.Activity
import android.content.Context
import android.view.View
import android.view.inputmethod.InputMethodManager
import androidx.fragment.app.Fragment
import com.cusufcan.mercansocial.R
import com.google.android.material.snackbar.Snackbar
import com.google.f... |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/CursorFinger.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... |
common-ui/src/main/java/com/paulrybitskyi/gamedge/common/ui/theme/Theme.kt | unknown_repo | kotlin | /*
* Copyright 2022 <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 agreed... |
app/src/main/java/com/developerbreach/developerbreach/ui/authors/AuthorsFragment.kt | unknown_repo | kotlin | package com.developerbreach.developerbreach.ui.authors
//
//import android.os.Bundle
//import android.view.LayoutInflater
//import android.view.View
//import android.view.ViewGroup
//import androidx.fragment.app.Fragment
//import androidx.fragment.app.viewModels
//import androidx.navigation.fragment.findNavController
/... |
app/src/main/java/ca/hojat/gamehub/feature_news/data/datastores/gamespot/ArticlesGamespotDataSource.kt | unknown_repo | kotlin | package ca.hojat.gamehub.feature_news.data.datastores.gamespot
import android.os.Build
import androidx.annotation.RequiresApi
import ca.hojat.gamehub.core.data.api.ApiErrorMapper
import ca.hojat.gamehub.core.domain.DomainResult
import ca.hojat.gamehub.core.domain.common.DispatcherProvider
import ca.hojat.gamehub.core.... |
kotlin-android-utils/src/main/java/humazed/github/com/kotlinandroidutils/SpinnerUtils.ktUtils.kt | unknown_repo | kotlin | package humazed.github.com.kotlinandroidutils
import android.view.View
import android.widget.AdapterView
import android.widget.ArrayAdapter
import android.widget.Spinner
fun <T> Spinner.onItemSelected(
items: List<T>,
names: List<String>,
onItemSelected: (item: T, position: Int) -> Unit
) {
adapter =... |
libraries/sharedpref-delegates/src/main/java/com/app/sharedprefdelegates/SharedPrefPropertyDelegate.kt | unknown_repo | kotlin | /*
* Copyright (C) 2020 Atul Gupta.
*
* 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 agree... |
m31/src/main/java/ir/farsroidx/m31/device/DeviceImpl.kt | unknown_repo | kotlin | package ir.farsroidx.m31.device
import android.Manifest
import android.annotation.SuppressLint
import android.content.Context
import android.os.Build
import android.os.VibrationEffect
import android.os.Vibrator
import android.os.VibratorManager
import android.provider.Settings
import androidx.annotation.RequiresPermis... |
module_extension/src/main/java/com/yikwing/ykextension/view/ViewStyleExtensions.kt | unknown_repo | kotlin | package com.yikwing.extension.view
import android.graphics.drawable.GradientDrawable
import android.view.View
/**
* @Author yikwing
* @Date 13/4/2022-13:30
* @Description: 更改View 圆角 边框 描边样式
*/
/**
* 有底色圆角
* */
fun View.backGroundRadiusColor(
color: Int,
radius: Float
) {
background = (
Grad... |
app/src/main/java/com/sun/dev/activity/TitleWithContentActivity.kt | unknown_repo | kotlin | package com.sun.dev.activity
import android.graphics.Color
import android.view.View
import android.widget.PopupMenu
import com.gyf.immersionbar.ImmersionBar
import com.sun.dev.R
import com.sun.dev.base.BaseActivity
import com.sun.dev.common.Constants
import com.sun.dev.fragment.DrawFragment
import com.sun.dev.fragment... |
app-common/ui/src/commonMain/kotlin/dev/sergiobelda/todometer/app/common/ui/components/TaskItem.kt | unknown_repo | kotlin | /*
* Copyright 2021 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
app/src/main/java/science/credo/mobiledetector2/analytics/FirebaseEvent.kt | unknown_repo | kotlin | package science.credo.mobiledetector2.analytics
import android.content.Context
import android.os.Bundle
import com.google.firebase.analytics.FirebaseAnalytics
const val KEY_WIDTH = "width"
const val KEY_HEIGHT = "height"
const val KEY_IMAGE_FORMAT = "image_format"
const val KEY_API = "camera_api"
const val KEY_FPS_RA... |
app/src/main/java/edu/stanford/kylen/mymaps/CreateMapActivity.kt | unknown_repo | kotlin | package edu.stanford.kylen.mymaps
import android.app.Activity
import android.content.DialogInterface
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.Menu
import android.view.MenuItem
im... |
app/src/main/java/org/oppia/android/app/home/HomeActivityPresenter.kt | unknown_repo | kotlin | package org.oppia.android.app.home
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.Toolbar
import androidx.drawerlayout.widget.DrawerLayout
import org.oppia.android.R
import org.oppia.android.app.activity.ActivityScope
import org.oppia.android.app.drawer.Naviga... |
sample/src/main/kotlin/br/com/zup/beagle/sample/components/CustomPageIndicatorView.kt | unknown_repo | kotlin | /*
* Copyright 2020 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 required... |
DADMApp/app/src/main/java/com/example/dadmapp/ui/home/components/FloatingButton.kt | unknown_repo | kotlin | package com.example.dadmapp.ui.home.components
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.activity.result.contract.ActivityResultContracts
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fil... |
app/src/main/java/com/sample/landmarkremark/util/Extensions.kt | unknown_repo | kotlin | package com.sample.landmarkremark.util
import android.app.AlertDialog
import android.content.Context
import android.view.LayoutInflater
import androidx.core.content.ContextCompat
import com.sample.landmarkremark.R
import com.sample.landmarkremark.databinding.DialogNoteBinding
fun Context.showInputDialog(
title: S... |
sdk/src/main/kotlin/io/rover/sdk/ui/blocks/concerns/border/ViewBorder.kt | unknown_repo | kotlin | package io.rover.experiences.ui.blocks.concerns.border
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Matrix
import android.graphics.Paint
import android.graphics.PorterDuff
import android.graphics.PorterDuffXfermode
import android.graphics.RectF
imp... |
dialogs/src/main/java/com/ribsky/dialogs/base/FullScreenDialog.kt | unknown_repo | kotlin | package com.ribsky.dialogs.base
import android.content.DialogInterface
import com.ribsky.common.base.BaseSheetFullScreen
import com.ribsky.common.utils.ext.ActionExt.Companion.sendEmail
import com.ribsky.dialogs.databinding.DialogFullScreenBinding
class FullScreenDialog(
private val config: Config? = null,
) : Ba... |
app/src/androidTest/java/com/cvshealth/composeaccessibilitytechniques/TextFieldControlsTests.kt | unknown_repo | kotlin | /*
Copyright 2023-2024 CVS Health and/or one of its affiliates
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by a... |
app/src/main/java/pl/podwikagrzegorz/gardener/ui/price_list/PriceListViewModel.kt | unknown_repo | kotlin | package pl.podwikagrzegorz.gardener.ui.price_list
import androidx.hilt.lifecycle.ViewModelInject
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.laun... |
core-model/src/main/java/com/stslex/core_model/model/NoteUI.kt | unknown_repo | kotlin | package com.stslex.core_model.model
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.State
data class NoteUI(
val id: Int,
private val title: MutableState<String>,
private val content: MutableState<String>,
val timestamp: Long
) {
fun setTitle(title: String) {
t... |
MapboxSearch/sdk/src/test/java/com/mapbox/search/analytics/events/AnalyticsServiceImplTest.kt | unknown_repo | kotlin | package com.mapbox.search.analytics.events
import android.content.Context
import android.location.Location
import com.mapbox.android.core.location.LocationEngine
import com.mapbox.bindgen.Value
import com.mapbox.common.Event
import com.mapbox.common.EventsServiceInterface
import com.mapbox.geojson.Point
import com.map... |
imagepicker/src/main/java/com/esafirm/imagepicker/model/Image.kt | unknown_repo | kotlin | package com.esafirm.imagepicker.model
import android.content.ContentUris
import android.net.Uri
import android.os.Parcelable
import android.provider.MediaStore
import com.esafirm.imagepicker.helper.ImagePickerUtils
import kotlinx.parcelize.IgnoredOnParcel
import kotlinx.parcelize.Parcelize
import java.util.*
@Parceli... |
pillarbox-player/src/test/java/ch/srgssr/pillarbox/player/extension/PlayerTest.kt | unknown_repo | kotlin | /*
* Copyright (c) SRG SSR. All rights reserved.
* License information is available from the LICENSE file.
*/
package ch.srgssr.pillarbox.player.extension
import androidx.media3.common.MediaItem
import androidx.media3.common.MediaMetadata
import androidx.media3.common.PlaybackParameters
import androidx.media3.commo... |
android/src/main/kotlin/io/github/jerometseng/pdascanner/pda_type/zebra/ZebraConfig.kt | unknown_repo | kotlin | package io.github.jerometseng.pdascanner.pda_type.zebra
import android.content.Context
import com.symbol.emdk.EMDKManager
import com.symbol.emdk.EMDKResults
import com.symbol.emdk.barcode.BarcodeManager
import com.symbol.emdk.barcode.BarcodeManager.ConnectionState
import com.symbol.emdk.barcode.BarcodeManager.ScannerC... |
app/src/main/java/com/david0926/mbit/ui/main/comment/CommentBottomSheet.kt | unknown_repo | kotlin | package com.david0926.mbit.ui.main.comment
import android.app.Dialog
import android.content.DialogInterface
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.FrameLayout
import android.widget.Toast
import androidx.databinding.DataBi... |
plugins/package-search/src/com/jetbrains/packagesearch/intellij/plugin/ui/toolwindow/panels/management/modules/ModulesTree.kt | unknown_repo | kotlin | /*******************************************************************************
* Copyright 2000-2022 JetBrains s.r.o. and 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
... |
features/crash/src/main/java/com/m3u/features/crash/screen/detail/DetailViewModel.kt | unknown_repo | kotlin | package com.m3u.features.crash.screen.detail
import android.app.Application
import com.m3u.core.architecture.viewmodel.BaseViewModel
import kotlinx.coroutines.flow.update
import java.io.File
class DetailViewModel(
application: Application
) : BaseViewModel<DetailState, DetailEvent>(
application = application,... |
android/src/main/kotlin/com/linusu/flutter_web_auth/FlutterWebAuthPlugin.kt | unknown_repo | kotlin | package com.linusu.flutter_web_auth
import android.content.Context
import android.content.Intent
import android.net.Uri
import androidx.browser.customtabs.CustomTabsIntent
import io.flutter.embedding.engine.plugins.FlutterPlugin
import io.flutter.plugin.common.BinaryMessenger
import io.flutter.plugin.common.MethodCa... |
app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/feed/SourceFeedController.kt | unknown_repo | kotlin | package eu.kanade.tachiyomi.ui.browse.source.feed
import android.os.Bundle
import android.view.LayoutInflater
import android.view.Menu
import android.view.MenuInflater
import android.view.View
import androidx.core.os.bundleOf
import androidx.core.view.isVisible
import androidx.recyclerview.widget.LinearLayoutManager
i... |
feature/feed/src/iosMain/kotlin/org/michaelbel/movies/feed/FeedNavigation.ios.kt | unknown_repo | kotlin | package org.michaelbel.movies.feed
import androidx.navigation.NavGraphBuilder
import androidx.navigation.compose.composable
import org.michaelbel.movies.feed.ui.FeedRoute
fun NavGraphBuilder.feedGraph(
navigateToAccount: () -> Unit,
navigateToAuth: () -> Unit,
navigateToSettings: () -> Unit,
navigateT... |
core/design-system/src/main/java/dev/enesky/core/design_system/components/SwipeRefresh.kt | unknown_repo | kotlin | package dev.enesky.core.design_system.components
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.padding
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.material.pullrefresh.PullRefreshIndic... |
app/src/main/java/com/skydoves/needsdemo/NeedsUtils.kt | unknown_repo | kotlin | /*
* Copyright (C) 2019 skydoves
*
* 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 ... |
MediaFacer/src/main/java/com/codeboy/mediafacer/models/AudioAlbumContent.kt | unknown_repo | kotlin | package com.codeboy.mediafacer.models
import android.net.Uri
import android.os.Parcel
import android.os.Parcelable
import java.io.Serializable
class AudioAlbumContent() : Serializable, Parcelable {
/** title if this album */
var albumName: String = ""
/** id of this album on the device Mediastore */
... |
app/src/main/java/com/example/sensebox/ui/compose/boxfavList/BoxFavViewModel.kt | unknown_repo | kotlin | package com.example.sensebox.ui.compose.boxfavList
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.sensebox.data.database.FavBoxRepository
import com.example.sensebox.data.model.Box
import com.example.sensebox.data.model.BoxDetail
import com.example.sensebox.data.model.F... |
navigation/navigation-common/src/main/java/androidx/navigation/FloatingWindow.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/xquare/xquare_android/feature/allmeal/MealDetail.kt | unknown_repo | kotlin | package com.xquare.xquare_android.feature.allmeal
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.la... |
core/src/main/java/com/vinners/cube_vishwakarma/core/base/BaseActivityWViewModel.kt | unknown_repo | kotlin | package com.vinners.cube_vishwakarma.core.base
import android.os.Bundle
import androidx.annotation.LayoutRes
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModel
... |
app/src/main/java/com/github/apognu/otter/Otter.kt | unknown_repo | kotlin | package com.github.apognu.otter
import android.app.Application
import androidx.appcompat.app.AppCompatDelegate
import com.github.apognu.otter.playback.MediaSession
import com.github.apognu.otter.playback.QueueManager
import com.github.apognu.otter.utils.*
import com.google.android.exoplayer2.database.ExoDatabaseProvid... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.