file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
bitcoin/src/main/java/com/brentpanther/bitcoinwidget/ui/WarningBanner.kt | unknown_repo | kotlin | package com.brentpanther.bitcoinwidget.ui
import android.content.Intent
import android.net.Uri
import android.os.Build
import android.provider.Settings
import androidx.annotation.StringRes
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.fou... |
app/src/main/java/com/example/notesapp/data/NotesDatabase.kt | unknown_repo | kotlin | package com.example.notesapp.data
import androidx.room.Database
import androidx.room.RoomDatabase
@Database(
entities = [Note::class],
version = 1,
)
abstract class NotesDatabase : RoomDatabase() {
abstract fun noteDao(): NoteDao
companion object {
val DB_NAME = "notes_db"
}
} |
app/src/main/java/com/tyler/app/kotlinkaiyan/ui/adapter/CategoryListAdapter.kt | unknown_repo | kotlin | package com.tyler.app.kotlinkaiyan.ui.adapter
import android.widget.ImageView
import com.bumptech.glide.load.resource.bitmap.CenterCrop
import com.bumptech.glide.load.resource.bitmap.RoundedCorners
import com.bumptech.glide.request.RequestOptions
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.li... |
app/src/main/java/com/clay/covid_19tracker/BaseApplication.kt | unknown_repo | kotlin | package com.clay.covid_19tracker
import android.app.Application
import timber.log.Timber
class BaseApplication: Application() {
override fun onCreate() {
super.onCreate()
Timber.plant(Timber.DebugTree())
}
} |
app/src/main/java/rs/smobile/chucknorrisjokes/ui/JokesScreenComposable.kt | unknown_repo | kotlin | package rs.smobile.chucknorrisjokes.ui
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compo... |
sketch-compose/src/main/kotlin/com/github/panpf/sketch/compose/SingletonAsyncImagePainter.kt | unknown_repo | kotlin | /*
* Copyright (C) 2022 panpf <panpfpanpf@outlook.com>
*
* 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... |
shared/src/commonMain/kotlin/App.kt | unknown_repo | kotlin | import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import com.alpha.showcase.common.ui.MainNavHost
import com.alpha.showcase.common.ui.theme.MyApplicat... |
app/src/main/java/org/ddosolitary/okcagent/ssh/SshAgentService.kt | unknown_repo | kotlin | package org.ddosolitary.okcagent.ssh
import android.content.Intent
import android.util.Base64
import android.util.Log
import com.bugsnag.android.Bugsnag
import org.ddosolitary.okcagent.AgentService
import org.ddosolitary.okcagent.R
import org.ddosolitary.okcagent.showError
import org.openintents.ssh.authentication.Ssh... |
BaseDebug/src/main/java/com/bihe0832/android/base/debug/tab/bottom/DebugSimpleBottomTabFragment.kt | unknown_repo | kotlin | package com.bihe0832.android.base.debug.tab.bottom
import android.view.View
import com.bihe0832.android.base.debug.R
import com.bihe0832.android.base.debug.dialog.DebugDialogFragment
import com.bihe0832.android.base.debug.download.DebugDownloadFragment
import com.bihe0832.android.base.debug.file.DebugFileFragment
impo... |
app/src/main/java/com/stevesoltys/seedvault/plugins/saf/DocumentsProviderStoragePlugin.kt | unknown_repo | kotlin | /*
* SPDX-FileCopyrightText: 2020 The Calyx Institute
* SPDX-License-Identifier: Apache-2.0
*/
package com.stevesoltys.seedvault.plugins.saf
import android.content.Context
import android.content.pm.PackageManager
import android.net.Uri
import android.os.Environment
import android.os.StatFs
import android.provider.... |
app/src/main/java/com/example/rangkul/ui/createpost/CreatePostActivity.kt | unknown_repo | kotlin | package com.example.rangkul.ui.createpost
import android.app.Activity
import android.app.Dialog
import android.content.Intent
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.net.Uri
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.... |
App/app/src/main/java/com/apps/travel_app/ui/components/FullHeightBottomSheet.kt | unknown_repo | kotlin | package com.apps.travel_app.ui.components
import android.content.res.Resources
import android.util.DisplayMetrics
import androidx.compose.animation.core.tween
import androidx.compose.foundation.background
import androidx.compose.foundation.gestures.Orientation
import androidx.compose.foundation.layout.*
import android... |
core/ui_kit/lib/src/main/java/com/shevelev/wizard_camera/core/ui_kit/lib/buttons/PulseImageButton.kt | unknown_repo | kotlin | package com.shevelev.wizard_camera.main_activity.view.widgets.pulse_image_button
import android.animation.AnimatorSet
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.drawable.VectorDrawable
import android.util.AttributeSet
import android.widget.ImageView
import com.shevele... |
app/src/main/java/com/rfb/projetoapitmdb/presentation/view/fragments/UpcomingMoviesFragment.kt | unknown_repo | kotlin | package com.rfb.projetoapitmdb.presentation.view.fragments
import android.os.Bundle
import android.view.View
import androidx.core.os.bundleOf
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.navigation.fragment.findNavController
import androidx.recyclerview.widget.LinearLay... |
app/src/main/java/com/udacity/asteroidradar/data/db/AsteroidEntity.kt | unknown_repo | kotlin | package com.udacity.asteroidradar.data.db
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity
data class AsteroidEntity(
@PrimaryKey
val id: Long,
val codename: String,
val closeApproachDate: String,
val absoluteMagnitude: Double,
val estimatedDiameter: Double,
val relative... |
app/src/main/java/com/mikescamell/motionlayout/MikezoActivity.kt | unknown_repo | kotlin | package com.mikescamell.motionlayout
import android.os.Bundle
import android.util.Log
import androidx.annotation.IdRes
import androidx.appcompat.app.AppCompatActivity
import androidx.constraintlayout.motion.widget.MotionLayout
import androidx.constraintlayout.motion.widget.TransitionAdapter
import androidx.core.view.i... |
android/feature/analyze/src/main/java/com/jaino/analyze/result/AnalyzeResultFragment.kt | unknown_repo | kotlin | package com.jaino.analyze.result
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
import com.jaino.analyze.R
import com.jaino.analyze.databinding.FragmentAnalyzeResultBind... |
media/src/androidMain/kotlin/DefaultMediaManager.kt | unknown_repo | kotlin | /*
Copyright 2023 Splendo Consulting B.V. The Netherlands
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by appli... |
sharepalette/src/main/java/com/sharepalette/SharePaletteFragment.kt | unknown_repo | kotlin | package com.cureya.cure4mind.settings
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavController
import com.cureya.cure4mind.R
import com.cureya.cure4mind.databinding.OurM... |
purchases/src/main/kotlin/com/revenuecat/purchases/models/Transaction.kt | unknown_repo | kotlin | package com.revenuecat.purchases.models
import android.os.Parcelable
import com.revenuecat.purchases.utils.getDate
import kotlinx.parcelize.Parcelize
import org.json.JSONObject
import java.util.Date
@Parcelize
data class Transaction(
val transactionIdentifier: String,
@Deprecated(
"Use transactionIden... |
platform/uicomponents/src/main/java/platform/uicomponents/components/errorview/DefaultErrorView.kt | unknown_repo | kotlin | package platform.uicomponents.components.errorview
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androi... |
cartmodule/src/main/java/com/kad/cartmodule/fragment/CartFragment.kt | unknown_repo | kotlin | package com.kad.cartmodule.fragment
import android.view.View
import android.widget.Toast
import com.kad.basemodule.BaseLazyLoadFragment
import com.kad.cartmodule.R
import com.kad.routermodule.util.CoreServiceManager
import kotlinx.android.synthetic.main.cart_fragment_layout.*
class CartFragment : BaseLazyLoadFragme... |
yaj-rpc-annotation-processor/src/main/kotlin/info/laht/yajrpc/annotationprocessor/Processor.kt | unknown_repo | kotlin | package info.laht.yajrpc.annotationprocessor
import com.google.auto.service.AutoService
import com.squareup.kotlinpoet.*
import com.squareup.kotlinpoet.ParameterizedTypeName.Companion.parameterizedBy
import info.laht.yajrpc.RpcMethod
import info.laht.yajrpc.net.RpcClient
import java.io.File
import javax.annotation.pro... |
app/src/main/java/com/murano500k/dogbreeds/viewmodel/ListBreedsViewModel.kt | unknown_repo | kotlin | package com.murano500k.dogbreeds.viewmodel
import android.util.Log
import androidx.databinding.ObservableBoolean
import androidx.hilt.lifecycle.ViewModelInject
import androidx.lifecycle.*
import com.murano500k.dogbreeds.TAG
import com.murano500k.dogbreeds.model.DogBreed
import com.murano500k.dogbreeds.repository.MainR... |
app/src/main/java/io/sample/smartaccess/data/ble/GattAdvertiseFactory.kt | unknown_repo | kotlin | package io.sample.smartaccess.data.ble
import android.bluetooth.le.AdvertiseData
import android.bluetooth.le.AdvertiseSettings
interface GattAdvertiseFactory {
fun settings(): AdvertiseSettings
fun data(): AdvertiseData
}
internal class GattAdvertiseFactoryImpl : GattAdvertiseFactory {
override fun se... |
example/src/main/java/wtf/qase/datetimepicker/example/MainActivity.kt | unknown_repo | kotlin | package wtf.qase.datetimepicker.example
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_main.*
import wtf.qase.datetimepicker.DateTimePickerDialog
import java.text.SimpleDateFormat
import java.util.Date
import java.util.Locale
class MainActivity ... |
app/src/main/java/com/github/sg4yk/audioplayer/utils/MediaHunter.kt | unknown_repo | kotlin | package com.github.sg4yk.audioplayer.utils
import android.content.ContentUris
import android.content.ContentValues
import android.content.Context
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.net.Uri
import android.os.Build
import android.provider.MediaStore
import android.support... |
src/main/kotlin/dev/tmsoft/lib/query/paging/ContinuousList.kt | unknown_repo | kotlin | @file:Suppress("NestedBlockDepth", "SpreadOperator")
package dev.tmsoft.lib.query.paging
import dev.tmsoft.lib.exposed.sql.RowNumberFunction
import dev.tmsoft.lib.serialization.elementSerializer
import kotlinx.coroutines.coroutineScope
import kotlinx.serialization.KSerializer
import kotlinx.serialization.Serializatio... |
packages/amplify_datastore/android/src/main/kotlin/com/amazonaws/amplify/amplify_datastore/DataStoreObserveEventStreamHandler.kt | unknown_repo | kotlin | /*
* Copyright 2020 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" ... |
design/ui/src/main/java/com/mikhaellopez/ui/state/UiState.kt | unknown_repo | kotlin | package com.mikhaellopez.ui.state
import androidx.compose.runtime.Immutable
@Immutable
sealed class UiState {
data class Content<T>(
val data: T,
val isRefresh: Boolean = false,
val snackMessage: String? = null
) : UiState() {
companion object {
fun <T> createRefres... |
app/src/main/kotlin/io/github/plastix/kotlinboilerplate/ui/base/BaseActivity.kt | unknown_repo | kotlin | package io.github.plastix.kotlinboilerplate.ui.base
import android.os.Bundle
import android.support.annotation.CallSuper
import android.support.v7.app.AppCompatActivity
import io.github.plastix.kotlinboilerplate.ApplicationComponent
import io.github.plastix.kotlinboilerplate.KotlinBoilerplateApp
abstract class BaseAc... |
Demo/src/main/java/com/angcyo/uicore/demo/BluetoothDemo.kt | unknown_repo | kotlin | package com.angcyo.uicore.demo
import android.app.Application
import android.os.Bundle
import com.angcyo.bluetooth.BluetoothModel
import com.angcyo.core.vmApp
import com.angcyo.dsladapter.DslAdapterItem
import com.angcyo.dsladapter.addToAfter
import com.angcyo.dsladapter.removeFromAfter
import com.angcyo.library.app
i... |
mesh-exam/feature/discover/src/main/java/io/flaterlab/meshexam/presentation/discover/ui/info/ExamInfoDialogFragment.kt | unknown_repo | kotlin | package io.flaterlab.meshexam.presentation.discover.ui.info
import android.os.Bundle
import android.view.View
import androidx.core.view.isInvisible
import androidx.fragment.app.FragmentManager
import dagger.hilt.android.AndroidEntryPoint
import io.flaterlab.meshexam.androidbase.ViewBindingBottomSheetDialogFragment
imp... |
app/src/main/java/com/kar/enes/app/utils/CustomBindingAdapter.kt | unknown_repo | kotlin | package com.kar.enes.app.utils
import android.widget.ImageView
import androidx.databinding.BindingAdapter
import com.bumptech.glide.Glide
/**
* Created by M.Enes on 1/3/2020.
*/
object CustomBindingAdapter {
@JvmStatic
@BindingAdapter("bind:image_url")
fun loadImage(imageView: ImageView, url: String) {... |
frontend/screen/tools/src/commonMain/kotlin/com/mindovercnc/linuxcnc/screen/tools/root/tabs/cuttinginsert/ui/FeedsAndSpeedsTable.kt | unknown_repo | kotlin | package ui.screen.tools.root.tabs.cuttinginsert
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.itemsIndexed
import androidx.compose.foundation.lazy.rememberLazyListState
... |
app/src/admin/java/dev/forcecodes/truckme/ui/statistics/StatisticsViewModel.kt | unknown_repo | kotlin | package dev.forcecodes.truckme.ui.statistics
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import dev.forcecodes.truckme.core.data.delivery.ItemDeliveredStats
import dev.forcecodes.truckme.core.domain.statistics.DAILY
import dev.forcecod... |
mvp/sample-mvp-dialog/src/main/java/ru/surfstudio/android/mvp/dialog/sample/ui/screen/dialogs/complex/ComplexDialogFragment.kt | unknown_repo | kotlin | package ru.surfstudio.android.mvp.dialog.sample.ui.screen.dialogs.complex
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import kotlinx.android.synthetic.main.complex_dialog_layout.*
import ru.surfstudio.android.core.mvp.configurator.BaseFragmentViewC... |
app/src/main/java/thiago/dias/pokemonquiz/Screen2.kt | unknown_repo | kotlin | package thiago.dias.pokemonquiz
import android.content.Context
import android.content.Intent
import android.media.MediaPlayer
import android.os.Build
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.VibrationEffect
import android.os.Vibrator
import android.view.View
import and... |
app/src/main/java/br/com/mauker/githubapp/ghrepositories/view/MainActivity.kt | unknown_repo | kotlin | package br.com.mauker.githubapp.ghrepositories.view
import android.content.Intent
import android.content.res.Configuration
import android.os.Bundle
import android.speech.RecognizerIntent
import android.view.Menu
import android.view.MenuItem
import android.widget.Toast
import androidx.activity.viewModels
import android... |
app/src/main/java/com/github/jayteealao/pastelmusic/app/ui/icons/pastelicons.kt | unknown_repo | kotlin | package com.github.jayteealao.pastelmusic.app.ui.icons
import androidx.annotation.DrawableRes
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.rounded.ArrowBack
import androidx.compose.material.icons.rounded.Clear
import androidx.compose.material.icons.rounded.Favorite
import android... |
app/src/main/kotlin/com/example/mingkangpan/learnrx2/fragment/MorphImageFragment.kt | unknown_repo | kotlin | package com.example.mingkangpan.learnrx2.fragment
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.example.mingkangpan.learnrx2.R
import com.example.mingkangpan.learnrx2.RxFragment
import io.reactivex.Observable
import io.reactivex.android.sc... |
app/src/main/java/com/maku/easydata/ui/LoginActivityFragment.kt | unknown_repo | kotlin | package com.maku.easydata.ui
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.content.IntentSender
import android.content.SharedPreferences
import android.graphics.Color
import android.graphics.Typeface
import android.os.Bundle
import android.text.Spannable
import... |
app/src/main/java/org/tokend/template/view/util/fab/FloatingActionMenuAction.kt | unknown_repo | kotlin | package org.tokend.template.view.util.fab
import android.content.Context
import android.graphics.drawable.Drawable
import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
import androidx.annotation.StyleRes
import androidx.core.content.ContextCompat
import android.view.ContextThemeWrapper
import co... |
tarka-ui/src/main/java/com/tarkalabs/tarkaui/components/base/TUIFloatingActionButton.kt | unknown_repo | kotlin | package com.tarkalabs.tarkaui.components.base
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.defaultMinSize
import androidx.compose.foundation.layout.padding
import android... |
packages/expo-image/android/src/main/java/expo/modules/image/events/ImageLoadEventsManager.kt | unknown_repo | kotlin | package expo.modules.image.events
import android.graphics.BitmapFactory
import android.graphics.drawable.Drawable
import com.bumptech.glide.load.DataSource
import com.bumptech.glide.load.engine.GlideException
import com.bumptech.glide.request.RequestListener
import com.bumptech.glide.request.target.CustomTarget
import... |
app/src/main/java/com/minglemakers/minglemaster/ui/base/VoiceManagedViewModel.kt | unknown_repo | kotlin | package com.minglemakers.minglemaster.ui.base
import androidx.lifecycle.ViewModel
import kotlinx.coroutines.flow.Flow
import com.minglemakers.minglemaster.data.VoiceRecognitionRepository
import com.minglemakers.minglemaster.data.entity.VoiceCommandEntity
abstract class VoiceManagedViewModel(
private val voiceReco... |
app/src/main/java/eu/caraus/dynamo/application/data/local/udacity/converters/TranscodingsListTypeConverter.kt | unknown_repo | kotlin | package eu.caraus.dynamo.application.data.local.udacity.converters
import android.arch.persistence.room.TypeConverter
import com.google.common.reflect.TypeToken
import com.google.gson.Gson
import eu.caraus.dynamo.application.data.domain.udacity.Transcodings
class TranscodingsListTypeConverter {
val gson = Gson(... |
app/src/main/java/com/maku/pombe/ui/appdrawer/AppDrawer.kt | unknown_repo | kotlin | package com.maku.pombe.ui.appdrawer
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.material.*
import androidx.compose.material.MaterialTheme.colors
import androidx.co... |
app/src/main/java/com/topjohnwu/magisk/ui/settings/SettingsViewModel.kt | unknown_repo | kotlin | package com.brightsight.magisk.ui.settings
import android.os.Build
import android.view.View
import android.widget.Toast
import androidx.core.content.pm.ShortcutManagerCompat
import androidx.lifecycle.viewModelScope
import com.brightsight.magisk.BR
import com.brightsight.magisk.BuildConfig
import com.brightsight.magisk... |
common/src/commonMain/kotlin/com/artemchep/keyguard/feature/justdeleteme/directory/JustDeleteMeServicesRoute.kt | unknown_repo | kotlin | package com.artemchep.keyguard.feature.justdeleteme.directory
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.outlined.AccountBox
import androidx.compose.material.icons.outlined.Delete
import androidx.compose.runtime.Composable
import com.artemchep.keyguard.feature.navigation.Naviga... |
presentation/src/main/java/com/semicolon/walkhub/di/RoomModule.kt | unknown_repo | kotlin | package com.semicolon.walkhub.di
import android.content.Context
import androidx.room.Room
import com.semicolon.data.local.converter.*
import com.semicolon.data.local.dao.*
import com.semicolon.data.local.database.WalkHubDataBase
import com.squareup.moshi.Moshi
import com.squareup.moshi.kotlin.reflect.KotlinJsonAdapter... |
Intents/app/src/main/java/com/ybr_system/myapplication/MainActivity.kt | unknown_repo | kotlin | package com.ybr_system.myapplication
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Handler
import android.view.View
import com.bumptech.glide.Glide
import kotlinx.android.synthetic.main.activity_login.*
const val urlImage = "https://cdn.pixabay.com/photo/2015/03/26/09/47/s... |
Prototipo/app/src/main/java/com/example/prototipo/pages/Page_Ver_Mas.kt | unknown_repo | kotlin | package com.example.prototipo.pages
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.heightIn
import androidx.compose.founda... |
android/src/main/kotlin/didisoft/cast/CastPlugin.kt | unknown_repo | kotlin | package didisoft.cast
import android.app.Activity
import android.os.Bundle
import android.support.v7.media.*
import android.support.v7.media.MediaRouter.UNSELECT_REASON_STOPPED
import android.support.v7.media.RemotePlaybackClient.SessionActionCallback
import android.util.Log
import com.google.android.gms.cast.CastMedi... |
app/src/main/java/com/asemlab/quakes/utils/UIUtils.kt | unknown_repo | kotlin | package com.asemlab.quakes.utils
import android.content.Context
import android.content.res.Configuration
import android.content.res.Resources
import android.widget.Toast
fun makeToast(context: Context, m: String) {
Toast.makeText(context, m, Toast.LENGTH_SHORT).show()
}
fun makeLongToast(context: Context, m: Str... |
app/src/main/java/org/kinecosystem/kinit/viewmodel/backup/BackupModel.kt | unknown_repo | kotlin | package org.kinecosystem.kinit.viewmodel.backup
import android.databinding.ObservableBoolean
import android.text.Editable
import android.text.TextWatcher
import android.util.Log
import android.view.View
import android.widget.AdapterView
import org.kinecosystem.kinit.KinitApplication
import org.kinecosystem.kinit.analy... |
navigator-android/src/main/java/dev/funkymuse/fosho/navigator/android/NavigationDestination.kt | unknown_repo | kotlin | package dev.funkymuse.fosho.navigator.android
import androidx.navigation.NamedNavArgument
import androidx.navigation.NavDeepLink
interface NavigationDestination {
val destination: String
val arguments: List<NamedNavArgument>
get() = emptyList()
val deepLinks: List<NavDeepLink>
get() = em... |
demo/src/main/java/pyxis/uzuki/live/richutilskt/demo/set/AssetsSet.kt | unknown_repo | kotlin | package pyxis.uzuki.live.richutilskt.demo.set
import android.content.Context
import pyxis.uzuki.live.richutilskt.demo.R
import pyxis.uzuki.live.richutilskt.demo.item.CategoryItem
import pyxis.uzuki.live.richutilskt.demo.item.ExecuteItem
import pyxis.uzuki.live.richutilskt.demo.item.generateExecuteItem
fun Context.get... |
app/src/main/java/com/no5ing/bbibbi/data/model/member/Member.kt | unknown_repo | kotlin | package com.no5ing.bbibbi.data.model.member
import android.os.Parcelable
import com.no5ing.bbibbi.data.model.BaseModel
import com.no5ing.bbibbi.util.isBirthdayNow
import kotlinx.parcelize.IgnoredOnParcel
import kotlinx.parcelize.Parcelize
import java.time.LocalDate
@Parcelize
data class Member(
val memberId: Stri... |
app/src/main/kotlin/com/peecock/ymusic/ui/screens/settings/QuickPicsSettings.kt | unknown_repo | kotlin | package com.peecock.ymusic.ui.screens.settings
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.animation.core.tween
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.foundati... |
android/versioned-abis/expoview-abi43_0_0/src/main/java/abi43_0_0/expo/modules/sms/SMSPackage.kt | unknown_repo | kotlin | package abi43_0_0.expo.modules.sms
import android.content.Context
import abi43_0_0.expo.modules.core.BasePackage
import abi43_0_0.expo.modules.core.ExportedModule
class SMSPackage : BasePackage() {
override fun createExportedModules(reactContext: Context): List<ExportedModule> {
return listOf(SMSModule(reactCon... |
basick/src/main/java/com/mozhimen/basick/utilk/java/io/UtilKFileFormat.kt | unknown_repo | kotlin | package com.mozhimen.basick.utilk.java.io
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.net.Uri
import android.util.Log
import androidx.core.content.FileProvider
import com.mozhimen.basick.elemk.android.content.cons.CIntent
import com.mozhimen.basick.lintk.annors.ADescription
impo... |
features/settings/impl/src/main/java/ru/aleshin/features/settings/impl/presentation/ui/settings/views/ColorsTypeChooser.kt | unknown_repo | kotlin | /*
* Copyright 2023 Stanislav Aleshin
*
* 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 t... |
remix/src/commonMain/kotlin/com/woowla/compose/icon/collections/remix/remix/map/ParkingFill.kt | unknown_repo | kotlin | package com.woowla.compose.icon.collections.remix.remix.map
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.Stroke... |
app/src/main/java/com/developersbreach/composeactors/ui/screens/actorDetails/composables/ActorBiography.kt | unknown_repo | kotlin | package com.developersbreach.composeactors.ui.screens.actorDetails.composables
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.*
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.... |
app/src/main/java/com/example/santanderdevweek/ui/MainViewModel.kt | unknown_repo | kotlin | package com.example.santanderdevweek.ui
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.example.santanderdevweek.data.Conta
import com.example.santanderdevweek.data.local.FakeData
class MainViewModel : ViewModel(){
private val mutableLiv... |
app/src/main/java/id/adeds/started/view/MainViewModel.kt | unknown_repo | kotlin | package id.adeds.started.view
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import id.adeds.started.data.model.BaseModel
import id.adeds.started.data.model.User
import id.adeds.started.data.repository.ApiCallback
import id.adeds.started.data.repo... |
auth/src/main/kotlin/com/tidal/sdk/auth/login/CodeChallengeBuilder.kt | unknown_repo | kotlin | package com.tidal.sdk.auth.login
import android.util.Base64
import java.security.MessageDigest
import java.security.SecureRandom
internal class CodeChallengeBuilder {
fun createCodeVerifier(): String {
val code = ByteArray(CODE_VERIFIER_BYTE_ARRAY_SIZE)
SecureRandom().nextBytes(code)
retu... |
messaginginapp/src/main/java/io/customer/messaginginapp/gist/data/listeners/Queue.kt | unknown_repo | kotlin | package io.customer.messaginginapp.gist.data.listeners
import android.content.Context
import android.util.Base64
import android.util.Log
import io.customer.messaginginapp.gist.data.NetworkUtilities
import io.customer.messaginginapp.gist.data.model.GistMessageProperties
import io.customer.messaginginapp.gist.data.model... |
presentation/src/main/java/com/redcatgames/movies/presentation/settings/SettingsFragment.kt | unknown_repo | kotlin | package com.redcatgames.movies.presentation.settings
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.AutoCompleteTextView
import androidx.appcompat.app.AppCompatDelegate.*
import androidx.fragment.app.viewModels
import com.redcatg... |
jvideo/src/main/java/com/jplus/jvideoview/view/VideoLoadingView.kt | unknown_repo | kotlin | package com.jplus.jvideoview.view
import android.animation.AnimatorSet
import android.animation.ValueAnimator
import android.content.Context
import android.graphics.Canvas
import android.graphics.Paint
import android.util.AttributeSet
import android.view.View
import android.view.animation.LinearInterpolator
import and... |
lens_launcher/src/main/java/com/google/android/apps/googlecamera/fishfood/MainActivity.kt | unknown_repo | kotlin | /*
* SPDX-FileCopyrightText: 2023 The LineageOS Project
* SPDX-License-Identifier: Apache-2.0
*/
package com.google.android.apps.googlecamera.fishfood
import android.app.Activity
import android.content.Intent
import android.net.Uri
import android.os.Bundle
class MainActivity : Activity() {
override fun onCrea... |
plugins/groovy/src/org/jetbrains/plugins/groovy/annotator/intentions/elements/annotation/MapConstructorAttributesFix.kt | unknown_repo | kotlin | // Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package org.jetbrains.plugins.groovy.annotator.intentions.elements.annotation
import com.intellij.psi.*
import com.intellij.psi.util.parentOfType
import org.jetbrains.plugins.gro... |
app/src/main/java/com/example/mastertask/Fragments/WorkerEvaluationFragment.kt | unknown_repo | kotlin | package com.example.mastertask.Fragments
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.EditText
import android.widget.RatingBar
import android.widget.TextView
im... |
mulConverter/app/src/main/java/com/ambersun1234/mulconverter/MainActivity.kt | unknown_repo | kotlin | package com.ambersun1234.mulconverter
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.KeyEvent
import android.view.KeyEvent.KEYCODE_ENTER
import android.view.View
import android.widget.*
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatAc... |
app/src/main/java/org/rfcx/incidents/view/guardian/checklist/site/GuardianSiteSetViewModel.kt | unknown_repo | kotlin | package org.rfcx.incidents.view.guardian.checklist.site
import android.location.Location
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.flow.collectLatest
import kotlinx.co... |
remix/src/commonMain/kotlin/com/woowla/compose/icon/collections/remix/remix/design/AlignItemVerticalCenterLine.kt | unknown_repo | kotlin | package com.woowla.compose.icon.collections.remix.remix.design
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.Str... |
bboxview/src/main/java/com/nex3z/bboxview/box/BBoxView.kt | unknown_repo | kotlin | package com.nex3z.bboxview.box
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.widget.FrameLayout
import com.nex3z.bboxview.R
import kotlinx.android.synthetic.main.view_bbox.view.*
class BBoxView(
context: Context,
attrs: AttributeSet? = null
)... |
common-compose/src/commonMain/kotlin/com/cmgapps/common/curriculumvitae/components/StarChip.kt | unknown_repo | kotlin | /*
* Copyright (c) 2023. <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.cmgapps.common.curriculumvitae.components
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.found... |
app/src/main/java/com/skydevices/marketcalc/model/Compra.kt | unknown_repo | kotlin | package com.skydevices.marketcalc.model
import android.os.Parcelable
import androidx.room.Entity
import androidx.room.PrimaryKey
import kotlinx.parcelize.Parcelize
import java.sql.Date
import java.time.LocalDate
@Parcelize
class Compra(
var id_compra: Int,
var status_compra: Int,
var data_compra: LocalDat... |
app/src/main/kotlin/com/dtz/netservice/ui/activities/mainchild/MainChildActivity.kt | unknown_repo | kotlin | package com.dtz.netservice.ui.activities.mainchild
import android.Manifest.permission.SYSTEM_ALERT_WINDOW
import android.app.AppOpsManager
import android.content.BroadcastReceiver
import android.content.Context
import android.content.IntentFilter
import android.media.AudioManager
import android.media.MediaRecorder
imp... |
easyroutes/src/main/java/com/tonyakitori/inc/easyroutes/rest/DirectionsRestImp.kt | unknown_repo | kotlin | package com.tonyakitori.inc.easyroutes.rest
import com.google.android.gms.maps.model.LatLng
import com.google.gson.GsonBuilder
import com.tonyakitori.inc.easyroutes.EasyRoutesDirections
import com.tonyakitori.inc.easyroutes.model.Directions
import okhttp3.OkHttpClient
import okhttp3.Request
import java.util.ArrayList
... |
app/src/main/java/com/tiagohs/hqr/database/repository/HistoryRepository.kt | unknown_repo | kotlin | package com.tiagohs.hqr.database.repository
import com.tiagohs.hqr.database.IHistoryRepository
import com.tiagohs.hqr.factory.HistoryFactory
import com.tiagohs.hqr.models.database.comics.ComicHistory
import com.tiagohs.hqr.models.view_models.ComicHistoryViewModel
import io.reactivex.Observable
import io.realm.Realm
im... |
model/src/main/java/com/adityaamolbavadekar/messenger/model/ConversationRecordRecipientCrossRef.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 l... |
automation/espresso/src/main/kotlin/com/instructure/canvas/espresso/common/interaction/ToDoDetailsInteractionTest.kt | unknown_repo | kotlin | /*
* Copyright (C) 2024 - present Instructure, 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 requ... |
app/src/main/java/dev/logickoder/qrpay/app/widgets/Icon.kt | unknown_repo | kotlin | package dev.logickoder.qrpay.app.widgets
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.co... |
app/src/main/java/com/kasuminotes/ui/components/BadgedDiffBox.kt | unknown_repo | kotlin | package com.kasuminotes.ui.components
import androidx.compose.foundation.layout.BoxScope
import androidx.compose.foundation.layout.RowScope
import androidx.compose.foundation.layout.offset
import androidx.compose.material3.Badge
import androidx.compose.material3.BadgedBox
import androidx.compose.material3.MaterialThem... |
src/main/kotlin/com/x256n/regexapplier/desktop/dialog/regex/RegexViewModel.kt | unknown_repo | kotlin | package com.x256n.regexapplier.desktop.dialog.regex
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import com.x256n.regexapplier.desktop.common.DispatcherProvider
import com.x256n.regexapplier.desktop.common.StandardDispatcherProvider
im... |
mobile/src/main/java/rs/readahead/washington/mobile/views/settings/CamouflageNameAndLogo.kt | unknown_repo | kotlin | package rs.readahead.washington.mobile.views.activity.onboarding
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.Recycl... |
map_google/src/main/java/com/murphy/client/google/GoogleMapClient.kt | unknown_repo | kotlin | package com.murphy.client.google
import android.content.Context
import android.support.v4.app.Fragment
import com.murphy.map.client.LocationLisetner
import com.murphy.map.client.MapClient
import com.murphy.map.client.OnMapLoadedCallback
import com.murphy.map.client.domain.GCJ02LatLng
class GoogleMapClient: MapClient ... |
app/src/main/java/com/chrislicoder/foodrecipes_dbcache/adapters/SearchExhaustedViewHolder.kt | unknown_repo | kotlin | package com.chrislicoder.foodrecipes_dbcache.adapters
import android.view.View
import androidx.recyclerview.widget.RecyclerView
class SearchExhaustedViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView)
|
app/src/main/java/com/example/android/politicalpreparedness/election/VoterInfoViewModel.kt | unknown_repo | kotlin | package com.example.android.politicalpreparedness.election
import android.util.Log
import androidx.lifecycle.*
import com.example.android.politicalpreparedness.database.ElectionDao
import com.example.android.politicalpreparedness.network.CivicsApi
import com.example.android.politicalpreparedness.network.models.Divisio... |
kit/src/main/java/healthstack/kit/ui/ExerciseCard.kt | unknown_repo | kotlin | package healthstack.kit.ui
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.fillMaxHeight
import androidx.compose.foundation.lay... |
QuickUtil/src/main/java/com/wpf/app/quickutil/ability/helper/BackgroundHelper.kt | unknown_repo | kotlin | package com.wpf.app.base.ability.helper
import android.content.res.ColorStateList
import android.graphics.drawable.Drawable
import android.graphics.drawable.GradientDrawable
import android.graphics.drawable.GradientDrawable.Orientation
import android.view.View
import android.view.ViewGroup
import androidx.annotation.C... |
QuickUtil/src/main/java/com/wpf/app/quickutil/ability/helper/BackgroundHelper.kt | unknown_repo | kotlin | package com.wpf.app.base.ability.helper
import android.content.res.ColorStateList
import android.graphics.drawable.Drawable
import android.graphics.drawable.GradientDrawable
import android.graphics.drawable.GradientDrawable.Orientation
import android.view.View
import android.view.ViewGroup
import androidx.annotation.C... |
app/src/main/java/com/lahsuak/apps/geminiai/ui/model/states/ChatUiState.kt | unknown_repo | kotlin | package com.lahsuak.apps.geminiai.ui.model.states
import androidx.compose.runtime.toMutableStateList
import com.lahsuak.apps.geminiai.ui.model.ChatMessage
class ChatUiState(
messages: List<ChatMessage> = emptyList()
) {
private val _messages: MutableList<ChatMessage> = messages.toMutableStateList()
val me... |
app/src/main/java/be/mygod/reactmap/follower/BackgroundLocationReceiver.kt | unknown_repo | kotlin | package be.mygod.reactmap.follower
import android.Manifest
import android.app.PendingIntent
import android.content.BroadcastReceiver
import android.content.ComponentName
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.content.pm.PackageManager
import andr... |
app/src/main/java/spam/blocker/util/Util.kt | unknown_repo | kotlin | package spam.blocker.util
import android.Manifest
import android.annotation.SuppressLint
import android.app.AlertDialog
import android.content.Context
import android.content.Intent
import android.content.pm.ApplicationInfo
import android.content.pm.PackageManager.PERMISSION_GRANTED
import android.net.Uri
import androi... |
OnlinePK-Android/lib-live-room-service/src/main/java/com/netease/yunxin/lib_live_room_service/impl/VideoOption.kt | unknown_repo | kotlin | /*
* Copyright (c) 2021 NetEase, Inc. All rights reserved.
* Use of this source code is governed by a MIT license that can be found in the LICENSE file
*/
package com.netease.yunxin.lib_live_room_service.impl
import android.view.View
import com.netease.lava.nertc.sdk.NERtcConstants
import com.netease.lava.nertc... |
core/src/main/java/uk/co/joepalmer/core/type/Address.kt | unknown_repo | kotlin | package uk.co.joepalmer.core.type
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
@Parcelize
data class Address(
val street: String,
val suite: String,
val city: String,
val zipcode: String,
val geo: Geo
): Parcelable |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.