file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/fr/bipi/template/domain/usecase/logs/LogProvider.kt | unknown_repo | kotlin | package fr.bipi.template.domain.usecase.logs
import android.content.Context
import java.io.File
interface LogProvider {
fun getLogFiles(): Collection<File>
fun clearFileLog()
fun plant(context: Context)
}
|
library/src/main/java/com/example/lib/RootDetector.kt | unknown_repo | kotlin | package com.example.lib
import android.content.Context
import android.util.Log
import java.io.File
import java.io.IOException
import kotlin.system.measureTimeMillis
/**
* Author : Administrator
* Time : 2023/09/17
* Desc :
*/
class RootDetector : IDetection {
private val detectedResults = mutableListOf<String... |
AppRefil/app/src/main/java/es/refil/ui/theme/Color.kt | unknown_repo | kotlin | package es.refil.ui.theme
import androidx.compose.ui.graphics.Color
/*
BLUE LIGHT PALETTE
*/
val Blue500 = Color(0xFF2196f3) // Primary
val BLUE800 = Color(0xFF0277BD) // PrimaryVariant
val CYAN500 = Color(0xFF00bcd4) // Secondary
val CYAN700 = Color(0xff008ba3) // SecondaryVariant
val LIGHTBLUE50 = Color(0... |
app/src/main/kotlin/com/franckrj/noelupload/history/HistoryListAdapter.kt | unknown_repo | kotlin | package com.franckrj.noelupload.history
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.ProgressBar
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.... |
app/src/main/java/com/cornellappdev/scoop/ui/ScoopApplication.kt | unknown_repo | kotlin | package com.cornellappdev.scoop.ui
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class ScoopApplication : Application() |
sphinx/screens-detail/new-contact/new-contact/src/main/java/chat/sphinx/new_contact/ui/NewContactSideEffect.kt | unknown_repo | kotlin | package chat.sphinx.new_contact.ui
import android.content.Context
import androidx.annotation.StringRes
import chat.sphinx.new_contact.R
import chat.sphinx.resources.SphinxToastUtils
import chat.sphinx.scanner_view_model_coordinator.response.ScannerResponse
import chat.sphinx.wrapper_common.lightning.LightningNodePubKe... |
app/src/main/java/com/xdmpx/normscount/settings/Settings.kt | unknown_repo | kotlin | package com.xdmpx.normscount.settings
import androidx.datastore.core.CorruptionException
import androidx.datastore.core.Serializer
import androidx.datastore.preferences.protobuf.InvalidProtocolBufferException
import com.xdmpx.normscount.datastore.SettingsProto
import java.io.InputStream
import java.io.OutputStream
ab... |
app/src/main/java/com/iamageo/plantae/camera/CameraView.kt | unknown_repo | kotlin | package hr.illuminative.mixscape.ui.composables
import android.content.Context
import android.net.Uri
import android.util.Log
import androidx.camera.core.CameraSelector
import androidx.camera.core.ImageCapture
import androidx.camera.core.ImageCaptureException
import androidx.camera.core.Preview
import androidx.camera.... |
gadgets/compile/src/main/kotlin/zhupf/gadgets/GadgetNameProcessor.kt | unknown_repo | kotlin | package zhupf.gadget
import com.squareup.kotlinpoet.ClassName
import com.squareup.kotlinpoet.FileSpec
import com.squareup.kotlinpoet.FunSpec
import com.squareup.kotlinpoet.KModifier
import com.squareup.kotlinpoet.LambdaTypeName
import com.squareup.kotlinpoet.ParameterSpec
import com.squareup.kotlinpoet.PropertySpec
im... |
app/src/main/java/com/pixellore/checklist/AdapterUtility/ChecklistRecycleAdapter.kt | unknown_repo | kotlin | package com.pixellore.checklist.AdapterUtility
import android.content.Context
import android.graphics.Typeface
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageButton
import android.widget.TextView
import androidx.appcompat.widget.PopupMenu
import and... |
sample/src/main/java/com/sensorfields/horizon/android/license/list/LicenseListFragment.kt | unknown_repo | kotlin | package com.sensorfields.horizon.android.license.list
import android.os.Bundle
import android.view.View
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.lifecycle.observe
import androidx.navigation.fragment.findNavController
import androidx.recyclerview.widget.LinearLayoutM... |
composeApp/src/androidMain/kotlin/com/xacalet/minesweeper/extensions/ContextExtensions.kt | unknown_repo | kotlin | package com.xacalet.minesweeper.common.extensions
import android.content.Context
import android.os.Build
import android.os.VibrationEffect
import android.os.Vibrator
fun Context.vibrate() {
val vibrator = getSystemService(Context.VIBRATOR_SERVICE) as? Vibrator
val duration = 100L
if (Build.VERSION.SDK_INT... |
app/src/main/java/com/pri/architecture_boilerplate/util/CommonUtils.kt | unknown_repo | kotlin | package com.pri.architecture_boilerplate.util
import android.app.Activity
import android.app.KeyguardManager
import android.content.Context
import android.content.Intent
import android.graphics.Bitmap
import android.os.Build
import android.os.Environment
import android.text.TextUtils
import android.util.Base64
import ... |
code-editor/src/main/java/io/scer/codeeditor/components/InteractiveScrollView.kt | unknown_repo | kotlin | package io.scer.codeeditor.components
import android.content.Context
import android.util.AttributeSet
import android.widget.ScrollView
import io.scer.codeeditor.listeners.OnScrollListener
import io.scer.codeeditor.listeners.OnScrollReachedListener
/**
* Custom scrollView with top & bottom reached listeners
*/
class... |
app/src/main/java/com/codingWithUmair/app/notify/data/AppContainer.kt | unknown_repo | kotlin | package com.codingWithUmair.app.notify.data
import android.content.Context
import com.codingWithUmair.app.notify.data.dataBase.NotifyDataBase
import com.codingWithUmair.app.notify.fileSystem.DefaultNotifyFileProviderRepository
import com.codingWithUmair.app.notify.fileSystem.LocalFileStorageRepository
import com.codin... |
app/src/main/java/surcharge/ui/home/HomeScreen.kt | unknown_repo | kotlin | package surcharge.ui.home
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout... |
demo/src/debug/java/com/nextfaze/devfun/demo/devfun/Debugging.kt | unknown_repo | kotlin | package com.nextfaze.devfun.demo.devfun
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Context
import android.os.Build
import android.os.Process
import android.support.annotation.RequiresApi
import android.support.v7.app.AlertDialog
import android.util.DisplayMetrics
import c... |
demo/src/debug/java/com/nextfaze/devfun/demo/devfun/Debugging.kt | unknown_repo | kotlin | package com.nextfaze.devfun.demo.devfun
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Context
import android.os.Build
import android.os.Process
import android.support.annotation.RequiresApi
import android.support.v7.app.AlertDialog
import android.util.DisplayMetrics
import c... |
packages/health/android/src/main/kotlin/cachet/plugins/health/HealthPlugin.kt | unknown_repo | kotlin | package cachet.plugins.health
import android.app.Activity
import com.google.android.gms.auth.api.signin.GoogleSignIn
import com.google.android.gms.fitness.Fitness
import com.google.android.gms.fitness.FitnessOptions
import com.google.android.gms.fitness.request.DataReadRequest
import com.google.android.gms.fitness.res... |
app/src/main/java/com/asos/recipes/presentation/ui/home/views/ItemOffsetDecorator.kt | unknown_repo | kotlin | /*
* By <NAME> for ASOS
* Copyright 2018 <NAME> (@martinchamarro)
*/
package com.asos.recipes.presentation.ui.home.views
import android.graphics.Rect
import android.support.v7.widget.RecyclerView
import android.view.View
class ItemOffsetDecorator(private val offset: Int) : RecyclerView.ItemDecoration() {
ove... |
singleactivitynavigation/src/main/kotlin/com/vojtkovszky/singleactivitynavigation/BaseSingleDialogFragment.kt | unknown_repo | kotlin | package com.vojtkovszky.singleactivitynavigation
import android.os.Bundle
import android.view.*
import android.widget.FrameLayout
import androidx.appcompat.app.AppCompatDialogFragment
import androidx.fragment.app.FragmentManager
/**
* A dialog fragment acting as a container for our [BaseSingleFragment], created when... |
app/src/main/java/it/unibs/mp/horace/ui/home/selectactivity/SelectActivityDialog.kt | unknown_repo | kotlin | package it.unibs.mp.horace.ui.home.selectactivity
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.lifecycle.lifecycleScope
import androidx.navigation.fragment.findNavController
import com.google.andro... |
app/src/main/java/com/pachatary/presentation/common/edition/PickAndCropImagePresenter.kt | unknown_repo | kotlin | package com.pachatary.presentation.common.edition
import android.arch.lifecycle.Lifecycle
import android.arch.lifecycle.LifecycleObserver
import android.arch.lifecycle.OnLifecycleEvent
import javax.inject.Inject
class PickAndCropImagePresenter @Inject constructor(): LifecycleObserver {
lateinit var view: PickAnd... |
packages/core/RNSentryAndroidTester/app/src/androidTest/java/io/sentry/rnsentryandroidtester/RNSentryMapConverterTest.kt | unknown_repo | kotlin | package io.sentry.rnsentryandroidtester
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
import com.facebook.react.bridge.Arguments
import com.facebook.soloader.SoLoader
import io.sentry.react.MapConverter
import org.junit.Assert.*
import org.junit.Test
imp... |
libs/pandautils/src/main/java/com/instructure/pandautils/room/offline/daos/CourseSettingsDao.kt | unknown_repo | kotlin | package com.instructure.pandautils.room.offline.daos
import androidx.room.*
import com.instructure.pandautils.room.offline.entities.CourseSettingsEntity
@Dao
interface CourseSettingsDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
suspend fun insert(entity: CourseSettingsEntity)
@Delete
suspen... |
app/src/main/java/com/afi/minby/home/homemenu/HomeViewModel.kt | unknown_repo | kotlin | package com.afi.minby.home.homemenu
import androidx.hilt.lifecycle.ViewModelInject
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.afi.minby.repository.RemoteRepository
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.disposables.CompositeDisposable
... |
app/src/main/java/com/rogertalk/roger/audio/RecordAudioTask.kt | unknown_repo | kotlin | package com.rogertalk.roger.audio
import android.media.AudioFormat
import android.media.AudioRecord
import android.media.MediaRecorder
import android.media.audiofx.AcousticEchoCanceler
import android.media.audiofx.NoiseSuppressor
import android.os.Process
import android.os.Process.setThreadPriority
import android.os.S... |
db/src/main/java/com/example/db/dao/PostDao.kt | unknown_repo | kotlin | package com.example.db.dao
import androidx.room.Dao
import androidx.room.Query
import androidx.room.Transaction
import com.example.db.entity.DbPost
import com.example.db.entity.PostWithUser
import com.example.framework.BaseDao
@Dao
internal interface PostDao : BaseDao<DbPost> {
@Transaction
@Query("SELECT * F... |
publisher-sdk/src/main/java/com/criteo/publisher/csm/SendingQueueLogMessage.kt | unknown_repo | kotlin | /*
* Copyright 2020 Criteo
*
* 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 ... |
Kotlin/App.Compose.CryptoCrazy/app/src/main/java/com/atilsamancioglu/cryptocrazycompose/view/CryptoListScreen.kt | unknown_repo | kotlin | package com.sercan.cryptocrazycompose.view
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.shape.Cir... |
Kotlin/App.Compose.CryptoCrazy/app/src/main/java/com/atilsamancioglu/cryptocrazycompose/view/CryptoListScreen.kt | unknown_repo | kotlin | package com.sercan.cryptocrazycompose.view
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.shape.Cir... |
app/src/main/java/ir/softap/mefit/ui/main/search/SearchView.kt | unknown_repo | kotlin | package ir.softap.mefit.ui.main.search
import androidx.lifecycle.MutableLiveData
import com.etiennelenhart.eiffel.state.ViewEvent
import com.etiennelenhart.eiffel.state.ViewState
import io.reactivex.Completable
import io.reactivex.disposables.CompositeDisposable
import io.reactivex.functions.Action
import ir.softap.me... |
app/src/main/java/com/eighthours/flow/presenter/fragment/ReconcileFragment.kt | unknown_repo | kotlin | package com.eighthours.flow.presenter.fragment
import android.app.Dialog
import android.arch.lifecycle.ViewModelProviders
import android.os.Bundle
import android.support.v4.app.DialogFragment
import android.support.v7.app.AlertDialog
import com.eighthours.flow.R
import com.eighthours.flow.databinding.FragmentReoncileB... |
datalayer/sample/phone/src/main/java/com/google/android/horologist/datalayer/sample/screens/inappprompts/installtile/InstallTilePromptDemoScreen.kt | unknown_repo | kotlin | /*
* Copyright 2024 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... |
feature_settings/src/main/java/com/adwi/feature_settings/presentation/components/DurationPicker.kt | unknown_repo | kotlin | package com.adwi.feature_settings.ui.components
import androidx.compose.animation.*
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.*
im... |
app/src/main/java/de/oljg/glac/core/navigation/common/Utils.kt | unknown_repo | kotlin | package de.oljg.glac.core.navigation.common
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.unit.dp
enum class GlacRoute {
CLOCK,
FULLSCREEN_CLOCK,
ALARMS,
SETTINGS,
CLOCK_SETTINGS,
ALARM_SETTINGS,
INFO,
INFO_HELP,
INFO_ABOUT
}
object GlacDefault {... |
idcard-formatter/src/main/java/me/bytebeats/idcard/formatter/IdentifyCardEditText.kt | unknown_repo | kotlin | package me.bytebeats.idcard.formatter
import android.content.Context
import android.text.InputType
import android.text.method.DigitsKeyListener
import android.util.AttributeSet
import androidx.appcompat.widget.AppCompatEditText
/**
* @Author bytebeats
* @Email <<EMAIL>>
* @Github https://github.com/bytebeats
* @C... |
app/src/main/java/com/onurbarman/gittigidiyorcase/ui/MainViewModel.kt | unknown_repo | kotlin | package com.onurbarman.gittigidiyorcase.ui
import androidx.lifecycle.ViewModel
class MainViewModel: ViewModel() {
var accessToken: String = ""
} |
compiler/src/main/kotlin/motif/compiler/ComponentBuilder.kt | unknown_repo | kotlin | /*
* Copyright (c) 2018-2019 Uber Technologies, 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 applic... |
sampleapp/src/main/java/com/kirkbushman/sampleapp/activities/ObjectsActivity.kt | unknown_repo | kotlin | package com.kirkbushman.sampleapp.activities
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.kirkbushman.sampleapp.R
import com.kirkbushman.sampleapp.SampleApplication
import com.kirkbushman.sampleapp.controllers.ObjectsController
import com.kirkbushman.sampleapp.controllers.OnClick... |
app/src/main/java/br/com/movieapp/seach_movie_feature/domain/repository/MovieSearchRepository.kt | unknown_repo | kotlin | package br.com.movieapp.seach_movie_feature.domain.repository
import androidx.paging.PagingConfig
import androidx.paging.PagingData
import br.com.movieapp.core.domain.model.MovieSearch
import kotlinx.coroutines.flow.Flow
interface MovieSearchRepository {
fun getSearchMovies(query: String, pagingConfig: PagingCon... |
tripart/src/main/java/com/jn/kiku/ttp/analysis/BaiduMobManage.kt | unknown_repo | kotlin | package com.jn.kiku.ttp.analysis;
import android.content.Context;
import com.baidu.mobstat.StatService;
/**
* Author:Stevie.Chen Time:2020/09/08 10:48
* Class Comment:百度统计
*/
object BaiduMobManage {
/**
* 由于多进程等可能造成Application多次执行,建议此代码不要埋点在Application中,否则可能造成启动次数偏高
* 建议此代码埋点在统计路径触发的第一个页面中,若可能存在多个则... |
room/room-compiler-processing/src/main/java/androidx/room/compiler/processing/ksp/KspExecutableType.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/bsuir/bsuirschedule/presentation/fragments/scheduleSettings/ScheduleSettingsFragment.kt | unknown_repo | kotlin | package com.bsuir.bsuirschedule.presentation.fragments.scheduleSettings
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.navigation.Navigation
import com.bsuir.bsuirschedu... |
app/src/main/java/com/efesen/messangerapp/adapter/ChatsAdapter.kt | unknown_repo | kotlin | package com.efesen.messangerapp.adapter
import android.app.AlertDialog
import android.content.DialogInterface
import android.content.Intent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.RelativeLayout
import android.widge... |
widget/src/main/java/com/angcyo/behavior/effect/TransitionBehavior.kt | unknown_repo | kotlin | package com.angcyo.behavior.effect
import android.content.Context
import android.util.AttributeSet
import android.view.MotionEvent
import android.view.View
import androidx.coordinatorlayout.widget.CoordinatorLayout
import androidx.core.view.ViewCompat
import com.angcyo.behavior.BaseGestureBehavior
import com.angcyo.li... |
app/src/main/java/com/beok/daumimagesearch/common/TextWatcher.kt | unknown_repo | kotlin | package com.beok.daumimagesearch.common
import android.text.Editable
import android.text.TextWatcher
open class TextWatcher : TextWatcher {
override fun afterTextChanged(editable: Editable?) {
// NO OP
}
override fun beforeTextChanged(
char: CharSequence?,
start: Int,
coun... |
app/src/main/java/com/bapplications/maplemobile/ui/view_models/EquippedViewModel.kt | unknown_repo | kotlin | package com.bapplications.maplemobile.ui.view_models
import java.util.*
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.MutableLiveData
import com.bapplications.maplemobile.gameplay.player.inventory.EquipSlot
import com.bapplications.maplemobile.gameplay.player.inventor... |
jetpack/src/main/java/me/destro/android/playground/jetpack/databinding/ArchitectureApplication.kt | unknown_repo | kotlin | package me.destro.android.playground.jetpack.databinding
import android.app.Application
import me.destro.android.core.api.RetrofitModule
import me.destro.android.core.api.typicode.TypicodeApi
import me.destro.android.core.api.typicode.TypicodeService
import retrofit2.Retrofit
class ArchitectureApplication : Applicati... |
app/src/main/kotlin/visualizer/menu/loader/TreeList.kt | unknown_repo | kotlin | package visualizer.menu.loader
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.outlined.Close
im... |
feature/home/view/api/src/main/kotlin/com/savvasdalkitsis/uhuruphotos/feature/home/view/api/ui/HomeNavigationBar.kt | unknown_repo | kotlin | /*
Copyright 2022 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distribu... |
app/src/main/java/com/example/kotlinSub2Ara/presenter/SearchPresenter.kt | unknown_repo | kotlin | package com.example.kotlinSub2Ara.presenter
import android.util.Log
import com.example.kotlinSub2Ara.CoroutineContextProvider
import com.example.kotlinSub2Ara.EventView
import com.example.kotlinSub2Ara.api.SearchRepository
import com.example.kotlinSub2Ara.api.TheSportDbApi
import com.example.kotlinSub2Ara.model.EventL... |
components-core/src/test/java/com/airwallex/android/core/ClientSecretRepositoryTest.kt | unknown_repo | kotlin | package com.airwallex.android.core
import android.util.Log
import com.airwallex.android.core.log.AnalyticsLogger
import com.airwallex.android.core.model.ClientSecret
import com.airwallex.risk.AirwallexRisk
import io.mockk.every
import io.mockk.mockk
import io.mockk.mockkConstructor
import io.mockk.mockkObject
import i... |
rss-reader/app/src/main/java/com/github/jonforshort/rssreader/ui/settings/SettingsFragment.kt | unknown_repo | kotlin | //
// MIT License
//
// Copyright (c) 2021
//
// 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, p... |
app/src/main/java/com/ausichenko/test/perception/view/MainActivity.kt | unknown_repo | kotlin | package com.ausichenko.test.perception.view
import android.arch.lifecycle.ViewModelProviders
import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import com.ausichenko.test.perception.view.intro.IntroActivity
import com.ausichenko.test.perception.R
class MainActivity ... |
app/src/main/java/io/github/wulkanowy/data/db/dao/RecipientDao.kt | unknown_repo | kotlin | package io.github.wulkanowy.data.db.dao
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query
import io.github.wulkanowy.data.db.entities.Recipient
import io.reactivex.Maybe
import javax.inject.Singleton
@Singleton
@Dao
interface RecipientDao {
@Insert
fu... |
app/src/main/java/com/example/mykotlinapp/ui/screens/chats/history/group/posts/PostDrawers.kt | unknown_repo | kotlin | package com.example.mykotlinapp.ui.screens.chats.history.group.posts
import android.content.Context
import android.os.Bundle
import com.example.mykotlinapp.R
import com.example.mykotlinapp.ui.components.drawer.BottomDrawerMenu
import com.google.android.material.dialog.MaterialAlertDialogBuilder
object PostDrawers {
... |
template/app/src/commonMain/kotlin/kotli/app/presentation/template/screen_with_args/TemplateScreen.kt | unknown_repo | kotlin | package kotli.app.presentation.template.screen_with_args
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import shared.design.component.AppText
import ... |
app/src/main/java/it/codingjam/github/ui/user/UserViewModel.kt | unknown_repo | kotlin | /*
* Copyright (C) 2017 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... |
common-base/src/main/java/com/bbgo/common_base/ext/Toast.kt | unknown_repo | kotlin | package com.bbgo.common_base.ext
import android.content.Context
import android.widget.Toast
import androidx.fragment.app.Fragment
import com.bbgo.common_base.RootApplication
/**
* Created by xuhao on 2017/11/14.
*/
fun Fragment.showToast(content: String): Toast {
val toast = Toast.makeText(this.activity?.appli... |
app/src/main/java/com/m3rc/beerbox/app/beer/adapter/BeerListAdapter.kt | unknown_repo | kotlin | package com.m3rc.beerbox.app.beer.adapter
import android.view.ViewGroup
import androidx.lifecycle.MutableLiveData
import androidx.paging.PagedListAdapter
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView
import com.m3rc.beerbox.R
import com.m3rc.beerbox.app.beer.viewholder.B... |
android/app/src/androidTest/java/com/epimorphics/android/myrivers/SearchFragmentTest.kt | unknown_repo | kotlin | package com.epimorphics.android.myrivers
import android.os.SystemClock
import android.support.test.filters.LargeTest
import android.support.test.rule.ActivityTestRule
import android.support.test.runner.AndroidJUnit4
import android.support.test.uiautomator.UiDevice
import org.junit.Before
import org.junit.Rule
import ... |
data/src/main/java/com/canopas/yourspace/data/utils/LocationConverters.kt | unknown_repo | kotlin | package com.canopas.yourspace.data.utils
import androidx.room.TypeConverter
import com.canopas.yourspace.data.models.location.ApiLocation
import com.canopas.yourspace.data.models.location.LocationJourney
import com.squareup.moshi.Moshi
import com.squareup.moshi.Types
import com.squareup.moshi.kotlin.reflect.KotlinJson... |
app/src/main/java/com/tbdeveloper/warikanapp/feature_roulette/presentation/warikans/components/WarikanItem.kt | unknown_repo | kotlin | package com.tbdeveloper.warikanapp.feature_roulette.presentation.warikans.components
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableIntera... |
feature/player/src/main/kotlin/com/flammky/musicplayer/player/presentation/root/main/queue/QueueTransition.kt | unknown_repo | kotlin | package com.flammky.musicplayer.player.presentation.root.main.queue
import android.os.Bundle
import androidx.compose.animation.core.*
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compos... |
core/ui/src/main/java/com/example/ui/mvi/presenter/Presenter.kt | unknown_repo | kotlin | package com.example.ui.mvi.presenter
import androidx.lifecycle.ViewModel
import com.example.ui.viewmodel.statereducer.StateReducer
import io.reactivex.rxjava3.core.Observable
/**
* Presenter interface
*/
interface Presenter {
/**
* Calls when initialize presenter
*/
fun onCreate(vm: ViewModel)
... |
SovrinAgentApp/app/src/main/java/com/luxoft/supplychain/sovrinagentapp/utils/DateTimeUtils.kt | unknown_repo | kotlin | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribut... |
app/src/main/java/com/github/kuya32/chitchat/core/presentation/components/Navigation.kt | unknown_repo | kotlin | package com.github.kuya32.chitchat.core.presentation.components
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.material.ScaffoldState
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.na... |
appKotlin/src/main/java/com/pvryan/easycryptsample/main/MainActivity.kt | unknown_repo | kotlin | /*
* Copyright 2018 Priyank Vasa
* 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 wri... |
sample/src/main/java/com/kiven/sample/service/MyGLWallpaperService.kt | unknown_repo | kotlin | package com.kiven.sample.service
import com.kiven.sample.service.gl.GLWallpaperService
import com.kiven.sample.service.gl.GLWallpaperService.GLEngine
import com.kiven.sample.service.gl.EglConfigChooser
import com.kiven.sample.service.MyGLWallpaperService.MyRenderer
import android.opengl.GLSurfaceView
import javax.micr... |
src/com/android/deskclock/TimerCircleFrameLayout.kt | unknown_repo | kotlin | /*
* Copyright (C) 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 app... |
app/src/main/kotlin/org/andstatus/todoagenda/prefs/KeywordsFilter.kt | unknown_repo | kotlin | package org.andstatus.todoagenda.prefs
import android.text.TextUtils
/**
* Filter String by keywords or phrases, enclosed in single or double quotes
*
* @author yvolk@yurivolkov.com
*/
class KeywordsFilter(private val matchOnNoKeywords: Boolean, text: String?) {
val keywords: MutableList<String> = ArrayList()... |
firebase-sessions/src/main/kotlin/com/google/firebase/sessions/api/FirebaseSessionsDependencies.kt | unknown_repo | kotlin | /*
* Copyright 2023 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 i... |
app/src/main/java/com/example/everis/android/introduccionaandroid/kotin/MainKotlinActivity.kt | unknown_repo | kotlin | package com.example.everis.android.introduccionaandroid.kotin
import android.os.Bundle
import android.app.Activity
import android.content.Intent
import android.util.Log
import android.view.View
import android.widget.Button
import android.widget.ImageView
import android.widget.TextView
import com.example.everis.android... |
org.librarysimplified.audiobook.api/src/main/java/org/librarysimplified/audiobook/api/PlayerAudioBookProviderType.kt | unknown_repo | kotlin | package org.librarysimplified.audiobook.api
import android.content.Context
import org.librarysimplified.audiobook.api.extensions.PlayerExtensionType
/**
* The interface exposed by audio book providers.
*/
interface PlayerAudioBookProviderType {
/**
* Create a new instance of an audio book.
*
* @param c... |
app/src/main/java/com/example/feedo/MainActivity.kt | unknown_repo | kotlin | package com.example.feedo
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.View
import android.widget.AdapterView
import android.widget.ArrayAdapter
import android.widget.Spinner
import android.widget.Toast
impor... |
example-viewbinding/src/main/java/com/xwray/groupie/example/viewbinding/item/CardItem.kt | unknown_repo | kotlin | package com.xwray.groupie.example.viewbinding.item
import android.view.View
import androidx.annotation.ColorInt
import com.xwray.groupie.example.viewbinding.INSET
import com.xwray.groupie.example.viewbinding.INSET_TYPE_KEY
import com.xwray.groupie.example.viewbinding.R
import com.xwray.groupie.example.viewbinding.data... |
app/src/main/java/com/madreain/aachulk/module/list/ListAdapter.kt | unknown_repo | kotlin | package com.madreain.aachulk.module.list
import androidx.databinding.DataBindingUtil
import com.madreain.aachulk.R
import com.madreain.aachulk.databinding.ItemListBinding
import com.madreain.libhulk.base.BaseAdapter
import com.madreain.libhulk.view.baseviewholder.HulkViewHolder
import java.util.*
/**
* @author madre... |
src/main/kotlin/com/kraktun/kutils/coroutines/optimizators/Orchestrator.kt | unknown_repo | kotlin | package com.kraktun.kutils.coroutines.optimizators
import kotlinx.coroutines.*
import kotlinx.coroutines.channels.Channel
import java.util.concurrent.ConcurrentHashMap
/**
* Instantiate the coroutines and assign functions according to the chosen optimizer.
*/
class Orchestrator {
/**
* @param optimizer op... |
app/src/main/java/jp/mydns/kokoichi0206/countdowntimer/module/main/view/components/TitleTextField.kt | unknown_repo | kotlin | package jp.mydns.kokoichi0206.countdowntimer.module.main.view.components
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.text.KeyboardActions
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material.Mater... |
zipline-loader/src/androidMain/kotlin/app/cash/zipline/loader/internal/cache/databaseAndroid.kt | unknown_repo | kotlin | /*
* Copyright (C) 2022 Block, 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 agree... |
insets-systembar/src/test/kotlin/com.xiaocydx.insets.systembar/TestDialogFragment.kt | unknown_repo | kotlin | /*
* Copyright 2022 xiaocydx
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... |
app/src/main/java/com/radixdlt/android/apps/wallet/ui/main/settings/pin/AuthenticatePinViewModel.kt | unknown_repo | kotlin | package com.radixdlt.android.apps.wallet.ui.main.settings.pin
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.radixdlt.android.apps.wallet.util.VAULT_PIN
import com.radixdlt.android.apps.wallet.util.Vau... |
app/src/main/java/com/radixdlt/android/apps/wallet/ui/main/settings/pin/AuthenticatePinViewModel.kt | unknown_repo | kotlin | package com.radixdlt.android.apps.wallet.ui.main.settings.pin
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.radixdlt.android.apps.wallet.util.VAULT_PIN
import com.radixdlt.android.apps.wallet.util.Vau... |
app/src/main/java/cn/wthee/pcrtool/data/db/view/SpSkillLabelData.kt | unknown_repo | kotlin | package cn.wthee.pcrtool.data.db.view
import androidx.room.ColumnInfo
import androidx.room.PrimaryKey
/**
* 角色特殊技能标签
*/
data class SpSkillLabelData(
@PrimaryKey
@ColumnInfo(name = "unit_id") val unitId: Int,
@ColumnInfo(name = "normal_label_text") val normalLabelText: String,
@ColumnInfo(name = "sp_... |
app/src/main/java/com/steleot/jetpackcompose/playground/compose/foundation/TransformableScreen.kt | unknown_repo | kotlin | package com.steleot.jetpackcompose.playground.compose.foundation
import androidx.compose.foundation.background
import androidx.compose.foundation.gestures.rememberTransformableState
import androidx.compose.foundation.gestures.transformable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundatio... |
app/src/main/java/extensions/RetrofitExtensions.kt | unknown_repo | kotlin | package extensions
import android.util.Log
import kotlinx.coroutines.experimental.suspendCancellableCoroutine
import retrofit2.Call
import retrofit2.Callback
import retrofit2.Response
suspend fun <T> Call<T>.executeAsync(): T {
return suspendCancellableCoroutine { continuation ->
this.enqueue(object : Ca... |
library/src/main/java/com/spendesk/grapes/extensions/ContextCompatExtensions.kt | unknown_repo | kotlin | package com.spendesk.grapes.extensions
import android.content.Context
import androidx.core.content.ContextCompat
/**
* Extension functions for [ContextCompat] class.
* @author danyboucanova
* @since 14/09/2020
*/
/**
* @see <a href="https://developer.android.com/reference/androidx/core/content/ContextCompat#get... |
app/src/androidTest/java/com/steleot/jetpackcompose/playground/compose/customexamples/AnimatedTextScreenTest.kt | unknown_repo | kotlin | package com.steleot.jetpackcompose.playground.compose.customexamples
import androidx.compose.ui.test.junit4.createComposeRule
import com.steleot.jetpackcompose.playground.compose.theme.TestTheme
import org.junit.Rule
import org.junit.Test
class AnimatedTextScreenTest {
@get:Rule
val composeTestRule = createC... |
app/src/main/java/com/example/inventory/data/Item.kt | unknown_repo | kotlin | package com.example.inventory.data
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.text.NumberFormat
//1) Create an item Entity
@Entity (tableName = "item")
data class Item (
@PrimaryKey(autoGenerate = true)
val id: Int = 0,
@ColumnInfo (name = "na... |
src/main/java/tml/cuajet/fragments/FragmentD.kt | unknown_repo | kotlin | package tml.cuajet.fragments
import android.util.Log
import androidx.fragment.app.Fragment
open class FragmentD : Fragment() {
fun d(msg:String) {
Log.d("-DBG-", "${this.javaClass.simpleName}: $msg")
}
} |
frontend/screen/status/src/commonMain/kotlin/com/mindovercnc/linuxcnc/screen/status/root/ui/StatusRootScreenUi.kt | unknown_repo | kotlin | package com.mindovercnc.linuxcnc.screen.status.root.ui
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.... |
presentation/src/main/java/com/timgortworst/cleanarchitecture/presentation/features/movie/MovieUseCaseModule.kt | unknown_repo | kotlin | package com.timgortworst.cleanarchitecture.presentation.features.movie
import androidx.paging.PagingData
import com.timgortworst.cleanarchitecture.domain.model.movie.Movie
import com.timgortworst.cleanarchitecture.domain.model.movie.MovieDetails
import com.timgortworst.cleanarchitecture.domain.model.state.Result
impor... |
src/tasks/Request5Concurrent.kt | unknown_repo | kotlin | package tasks
import contributors.GitHubService
import contributors.RequestData
import contributors.User
import contributors.logRepos
import contributors.logUsers
import kotlinx.coroutines.async
import kotlinx.coroutines.awaitAll
import kotlinx.coroutines.coroutineScope
suspend fun loadContributorsConcurrent(service:... |
app/src/test/java/fi/kroon/vadret/presentation/aboutapp/AboutAppViewModelTest.kt | unknown_repo | kotlin | package fi.kroon.vadret.presentation.aboutapp
import io.reactivex.Observable
import org.junit.Before
import org.junit.Test
class AboutAppViewModelTest {
private lateinit var testAboutAppViewModel: AboutAppViewModel
private val initialState = AboutAppView.State()
private val position: Int = 0
@Befo... |
lib/src/main/java/com/github/eklipse2k8/charting/renderer/LegendRenderer.kt | unknown_repo | kotlin | package com.github.eklipse2k8.charting.renderer
import android.graphics.*
import android.graphics.Paint.Align
import com.github.eklipse2k8.charting.components.Legend
import com.github.eklipse2k8.charting.components.Legend.LegendDirection
import com.github.eklipse2k8.charting.components.Legend.LegendForm
import com.git... |
tabler-icons/src/commonMain/kotlin/compose/icons/tablericons/LetterV.kt | unknown_repo | kotlin | package compose.icons.tablericons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Round
import androidx.compose.ui.graphics.StrokeJoin
import androidx.compose.ui.graphics.vect... |
presentation/src/main/java/com/moizest89/roche/presentation/common/Extensions.kt | unknown_repo | kotlin | package com.moizest89.roche.presentation.common
import android.content.Context
import android.view.View
import android.widget.AdapterView
import android.widget.Spinner
import android.widget.Toast
import androidx.annotation.StringRes
import androidx.fragment.app.Fragment
import java.math.RoundingMode
import java.text.S... |
app/src/main/java/com/yjh/fishdrawable/MainActivity.kt | unknown_repo | kotlin | package com.yjh.fishdrawable
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.ImageView
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_... |
ICT4DNews/app/src/main/kotlin/at/ict4d/ict4dnews/screens/base/BaseFragment.kt | unknown_repo | kotlin | package at.ict4d.ict4dnews.screens.base
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.LayoutRes
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
impo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.