file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/com/jeanloth/project/android/kotlin/feedme/features/command/data/local/dao/BasketDao.kt | unknown_repo | kotlin | package com.jeanloth.project.android.kotlin.feedme.features.command.data.local.dao
import androidx.room.*
import com.jeanloth.project.android.kotlin.feedme.features.command.data.local.entities.simple.BasketEntity
import com.jeanloth.project.android.kotlin.feedme.features.command.data.local.relations.PopulatedBasket
im... |
app/src/main/java/mx/itesm/ddg/equationsolvermvvm/viewmodel/EquationSolverViewModel.kt | unknown_repo | kotlin | package mx.itesm.ddg.equationsolvermvvm.viewmodel
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import mx.itesm.ddg.equationsolvermvvm.model.QuadraticEquationSolution
import mx.itesm.ddg.equationsolvermvvm.model.QuadraticEquationSolver
/**
* Author: <NAME>
* The ViewModel for the Equ... |
src/main/kotlin/di/AppModule.kt | unknown_repo | kotlin | package di
import app.cash.sqldelight.db.SqlDriver
import app.cash.sqldelight.driver.jdbc.sqlite.JdbcSqliteDriver
import data.repositories.AutocompleteSettingsRepositoryImpl
import data.repositories.SyntaxHighlightSettingsRepositoryImpl
import domain.repositories.AutocompleteSettingsRepository
import domain.repositori... |
app/src/main/java/hackon/lifetime/shopon/MainActivity2.kt | unknown_repo | kotlin | package hackon.lifetime.shopon;
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
class MainActivity2 : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
... |
presentation/src/main/java/com/simple/mvi/common/BaseActivity.kt | unknown_repo | kotlin | package com.know.reminder.common
import android.os.Bundle
import androidx.annotation.LayoutRes
abstract class BaseActivity<INTENT : ViewIntent, ACTION : ViewAction, STATE : ViewState,
VM : BaseViewModel<INTENT, ACTION, STATE>>(private val modelClass: Class<VM>) :
RootBaseActivity(), IViewRenderer<STATE> {... |
TableTest/app/src/main/java/com/example/tabletest/MainActivity.kt | unknown_repo | kotlin | package com.example.tabletest
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.RecyclerView
import com.evrencoskun.tableview.TableView
import com.evrencoskun.tableview.listener.ITableViewListener
import com.evrencoskun.tableview.sort.SortState
import com.exam... |
app/src/main/java/com/example/movieapp/views/home/news/NewsActivity.kt | unknown_repo | kotlin | package com.example.movieapp.views.home.news
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import androidx.activity.viewModels
import androidx.recyclerview.widget.LinearLayoutManager
import com.example.movieapp.R
import com.example.movieapp.databinding.ActivityNew... |
common/ui/src/main/java/tech/antee/compose_multimodule_template/ui/BaseViewModel.kt | unknown_repo | kotlin | package tech.antee.products.ui.common
import android.util.Log
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.CoroutineStart
import kotlinx.coroutines.Job
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines... |
shared/src/commonMain/kotlin/com/presta/customer/ui/components/rootBottomStack/DefaultRootBottomComponent.kt | unknown_repo | kotlin | package com.presta.customer.ui.components.rootBottomStack
import com.arkivanov.decompose.ComponentContext
import com.arkivanov.decompose.router.stack.ChildStack
import com.arkivanov.decompose.router.stack.StackNavigation
import com.arkivanov.decompose.router.stack.bringToFront
import com.arkivanov.decompose.router.sta... |
app/src/main/java/com/favoratti/harmonicashortcut/composable/TitleComposable.kt | unknown_repo | kotlin | package com.favoratti.harmonicashortcut.composable
import android.content.res.Configuration
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.MaterialTheme
import androidx.compose.mate... |
BasicDemo/src/main/java/org/alee/demo/skin/basic/ability/basic/recycler/BaseHolder.kt | unknown_repo | kotlin | package org.alee.demo.skin.basic.ability.basic.recycler
import android.content.Context
import android.util.SparseArray
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.IdRes
import androidx.annotation.LayoutRes
import androidx.recyclerview.widget.Recy... |
app/src/main/java/com/glaucus/bilibilidownloader/ui/ShareActivity.kt | unknown_repo | kotlin | package com.glaucus.bilibilidownloader.ui
import VideoHandle.EpVideo
import android.Manifest
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Bundle
import android.support.v4.app.ActivityCompat
import android.support.v4.content.ContextCompat
import android.support.v7.app.AlertDi... |
src/main/java/com/common/widgets/dialog/TwoButtonSelectionDialog.kt | unknown_repo | kotlin | package com.common.widgets.dialog
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.DrawableRes
import androidx.core.os.bundleOf
import androidx.fragment.app.DialogFragment
import com.common.widgets.R
import com.common.widgets.... |
room/compiler-xprocessing/src/test/java/androidx/room/processing/XProcessingEnvTest.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/dev/dorssers/materialsync/ui/components/ColorSelector.kt | unknown_repo | kotlin | package dev.dorssers.materialsync.ui.components
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundatio... |
app/src/main/java/com/commit451/gitlab/activity/AddIssueActivity.kt | unknown_repo | kotlin | package com.commit451.gitlab.activity
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Bundle
import com.google.android.material.snackbar.Snackbar
import com.google.android.material.textfield.TextInputLayout
import androidx.appcompat.app.AlertDialog
import andr... |
app/src/main/java/com/vipulasri/jetdelivery/ui/Themes.kt | unknown_repo | kotlin | package com.vipulasri.jetdelivery.ui
import androidx.compose.material.MaterialTheme
import androidx.compose.material.lightColors
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
private val lightThemeColors = lightColors(
primary = Color(0xFFFF8C29),
primaryVariant = Color(... |
app/src/main/java/br/com/braspag/cieloecommerceoauthexample/MainActivity.kt | unknown_repo | kotlin | package br.com.braspag.cieloecommerceoauthexample
import android.app.Activity
import android.os.Bundle
import br.com.braspag.cieloecommerceoauth.network.Environment
import br.com.braspag.cieloecommerceoauth.network.HttpCredentialsClient
import kotlinx.android.synthetic.main.activity_main.textView
class MainActivity :... |
app/src/main/java/io/horizontalsystems/bankwallet/modules/ratelist/RateListModule.kt | unknown_repo | kotlin | package io.horizontalsystems.bankwallet.modules.ratelist
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import io.horizontalsystems.bankwallet.core.App
import io.horizontalsystems.bankwallet.entities.Coin
import io.horizontalsystems.core.entities.Currency
import io.horizontalsystems.xr... |
app/src/main/java/de/seniorlaguna/qrcodescanner/feature/tabs/create/barcode/CreateUpcAFragment.kt | unknown_repo | kotlin | package de.seniorlaguna.qrcodescanner.feature.tabs.create.barcode
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.widget.addTextChangedListener
import de.seniorlaguna.qrcodescanner.databinding.FragmentCreateUpcABinding
import de.se... |
app/src/test/java/ch/bfh/mad/homeScreenWidget/WidgetProviderUtilsTest.kt | unknown_repo | kotlin | package ch.bfh.mad.homeScreenWidget
import android.appwidget.AppWidgetManager
import android.os.Bundle
import ch.bfh.mad.eazytime.util.WidgetProviderUtils
import com.nhaarman.mockito_kotlin.given
import com.nhaarman.mockito_kotlin.mock
import org.hamcrest.MatcherAssert.assertThat
import org.junit.Test
import org.hamcr... |
libraries/matrix/test/src/main/kotlin/io/element/android/libraries/matrix/test/timeline/LiveTimelineProvider.kt | unknown_repo | kotlin | /*
* Copyright (c) 2024 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
Acornote_Kotlin/app/src/main/java/tonnysunm/com/acornote/extensions/IntEx.kt | unknown_repo | kotlin | package tonnysunm.com.acornote.extensions
import android.content.res.Resources
val Int.dp: Int
get() = if (this == 0) 0 else (this * Resources.getSystem().displayMetrics.density).toInt() |
components/widget/impl/src/main/java/com/flipperdevices/widget/impl/tasks/invalidate/renderer/InProgressWidgetStateRenderer.kt | unknown_repo | kotlin | package com.flipperdevices.widget.impl.tasks.invalidate.renderer
import android.content.Context
import android.view.View
import android.widget.RemoteViews
import com.flipperdevices.bridge.dao.api.model.FlipperKeyPath
import com.flipperdevices.bridge.dao.api.model.FlipperKeyType
import com.flipperdevices.core.di.AppGra... |
shared/src/commonMain/kotlin/com/example/moveeapp_compose_kmm/domain/account/AccountRepository.kt | unknown_repo | kotlin | package com.example.moveeapp_compose_kmm.domain.account
import com.example.moveeapp_compose_kmm.data.account.LoginState
import com.example.moveeapp_compose_kmm.data.account.login.LoginResponseModel
import kotlinx.coroutines.flow.StateFlow
interface AccountRepository {
suspend fun getAccountDetail(): Result<Accoun... |
boxicons/src/commonMain/kotlin/com/woowla/compose/icon/collections/boxicons/boxicons/solid/BxsMessageAltDetail.kt | unknown_repo | kotlin | package com.woowla.compose.icon.collections.boxicons.boxicons.solid
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.graphic... |
app/src/main/java/com/mainduelo/marcadordetruco/activity/HistoricActivity.kt | unknown_repo | kotlin | package com.mainduelo.marcadordetruco.activity
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.widget.ListView
import com.mainduelo.marcadordetruco.adapter.HistoricAdapter
import com.mainduelo.marcadordetruco.model.HistoricModel
import com.mainduelo.marcadordetruco.R
import kotl... |
app/src/main/java/com/sakethh/linkora/screens/home/HomeScreenVM.kt | unknown_repo | kotlin | package com.sakethh.linkora.ui.viewmodels.home
import android.content.Context
import android.widget.Toast
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.mutableStateListOf
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.viewModelScope
import com.sakethh.linkora.da... |
app/src/main/java/com/example/musicplayer/networkModule/NetworkMusicListAdapter.kt | unknown_repo | kotlin | package com.example.musicplayer.networkModule
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.constraintlayout.utils.widget.ImageFilterView
import androidx.recyclerview.widget.RecyclerView
import com.example.musicplayer.GlideApp
i... |
shared-ui/src/commonMain/kotlin/co.touchlab.droidcon/ui/BottomNavigationView.kt | unknown_repo | kotlin | package co.touchlab.droidcon.ui
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.padding
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.CalendarMonth
import androidx.compose.material.icons.filled.LocalFireDepartment
import androidx.comp... |
app/src/main/java/com/example/svbookmarket/activities/ForgotPassword.kt | unknown_repo | kotlin | package com.example.svbookmarket.activities
import android.content.Intent
import android.os.Bundle
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.AppCompatImageView
import com.example.svbookmarket.R
import com.example.svbookmarket.activities.viewmodel.LoadD... |
kdb/src/main/kotlin/tk/mallumo/kdb/sqlite/SqliteDB.kt | unknown_repo | kotlin | package tk.mallumo.kdb.sqlite
import android.database.sqlite.SQLiteDatabase
import tk.mallumo.kdb.log
import tk.mallumo.kdb.tryIgnore
@Suppress("unused", "UNUSED_PARAMETER")
actual class SqliteDB(private val isDebug: Boolean, dbPath: String) {
actual val path: String = dbPath
var conn: SQLiteDatabase? = nul... |
app/src/main/java/com/example/memorygame/activity/AnimatorActivity.kt | unknown_repo | kotlin | package com.example.memorygame.activity
import android.animation.AnimatorInflater
import android.animation.AnimatorSet
import android.annotation.SuppressLint
import android.content.Intent
import android.graphics.Color
import android.os.Bundle
import android.util.Log
import android.view.Gravity
import android.view.View... |
app/src/main/java/net/roughdesign/swms/swmsandroid/utilities/web/requests/RequestQueueFactory.kt | unknown_repo | kotlin | package net.roughdesign.swms.swmsandroid.utilities.web.requests
import android.content.Context
import com.android.volley.RequestQueue
import com.android.volley.toolbox.Volley
object RequestQueueFactory {
private var requestQueue: RequestQueue? = null
fun getOrCreate(context: Context): RequestQueue {
return req... |
core-ui/src/main/java/app/books/tanga/coreui/previews/Texts.kt | unknown_repo | kotlin | package app.books.tanga.coreui.previews
import androidx.compose.runtime.Composable
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.tooling.preview.Preview
import app.books.tanga.coreui.common.ExcludeFromJacocoGeneratedReport
import app.books.tanga.coreui.components.TangaDescriptionText
@Pre... |
delegationadapter-extras/src/main/java/com/kevin/delegationadapter/extras/ClickableAdapterDelegate.kt | unknown_repo | kotlin | /*
* Copyright (c) 2018 <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 ... |
sampleApp/src/main/kotlin/com/github/codandotv/sampleapp/components/SelectionSheet.kt | unknown_repo | kotlin | package com.github.codandotv.sampleapp.components
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.... |
app/src/main/kotlin/com/flxrs/dankchat/utils/IntRangeParceler.kt | unknown_repo | kotlin | package com.flxrs.dankchat.utils
import android.os.Parcel
import kotlinx.parcelize.Parceler
object IntRangeParceler : Parceler<IntRange> {
override fun create(parcel: Parcel): IntRange = IntRange(parcel.readInt(), parcel.readInt())
override fun IntRange.write(parcel: Parcel, flags: Int) {
parcel.wri... |
Android/app/src/main/java/moe/tlaster/weipo/viewmodel/status/HotflowChildViewModel.kt | unknown_repo | kotlin | package moe.tlaster.weipo.viewmodel.status
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import moe.tlaster.weipo.common.collection.IncrementalLoadingCollection
import moe.tlaster.weipo.datasource.FuncDataSource
import moe.tlaster.weipo.services.Api
import moe.tlaster.weipo.services.mode... |
ultron-allure/src/main/java/com/atiurin/ultron/allure/attachment/AllureDirectoryUtil.kt | unknown_repo | kotlin | package com.atiurin.ultron.allure.attachment
import androidx.test.platform.app.InstrumentationRegistry
import io.qameta.allure.kotlin.util.PropertiesUtils
import java.io.File
object AllureDirectoryUtil {
fun getResultsDirectoryName(): String = PropertiesUtils.resultsDirectoryPath
/**
* From Allure sour... |
app/src/main/java/com/guru/composecookbook/ui/animation/TransitionsAnimations.kt | unknown_repo | kotlin | package com.guru.composecookbook.ui.animation
import MyAnimationState
import androidx.compose.animation.animateColor
import androidx.compose.animation.core.*
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.offset
import android... |
app/src/main/java/com/muhammadazri/githubuser/User.kt | unknown_repo | kotlin | package com.muhammadazri.githubuser
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
@Parcelize
data class User (
var name: String ="",
var username: String = "",
var location: String = "",
var repository: String = "",
var company : String ="",
var followers: String = "",
... |
app/src/main/java/com/dawinder/adaptiveui_jetpackcompose/nav/NavItem.kt | unknown_repo | kotlin | package com.dawinder.adaptiveui_jetpackcompose.nav
import androidx.compose.ui.graphics.vector.ImageVector
open class NavItem(val path: String, val title: String, val icon: ImageVector) |
app/src/main/java/hr/josip/facebook/ui/common/Input.kt | unknown_repo | kotlin | package hr.josip.facebook.ui.common
import androidx.compose.foundation.layout.*
import androidx.compose.material.*
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.res.vectorResource
import an... |
componentk/src/main/java/com/mozhimen/componentk/statusbark/annors/StatusBarKType.kt | unknown_repo | kotlin | package com.mozhimen.componentk.statusbark.annors
import androidx.annotation.IntDef
/**
* @ClassName StatusBarKType
* @Description TODO
* @Author mozhimen / <NAME>
* @Date 2022/7/17 17:41
* @Version 1.0
*/
@IntDef(value = [StatusBarKType.FULL_SCREEN, StatusBarKType.IMMERSED, StatusBarKType.CUSTOM])
annotation c... |
ApplicationCases/CrazyRocketKotlin/app/src/main/java/com/huawei/crazyrocketkotlin/ui/fragment/HomeFragment.kt | unknown_repo | kotlin | package com.huawei.crazyrocketkotlin.ui.fragment
import android.os.Bundle
import android.view.Gravity
import android.view.LayoutInflater
import android.view.View
import android.widget.RadioGroup
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.widget.AppCompatButton
import androidx.navigation.fragme... |
harmony/src/androidTest/java/com/frybits/harmony/test/HarmonyTestServices.kt | unknown_repo | kotlin | package com.frybits.harmony.test
import android.app.ActivityManager
import android.app.Service
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
import android.os.Binder
import android.os.IBinder
import android.os.Message
import android.os.Messenger
import android.os... |
app/src/main/java/com/bawp/jettrivia/component/Questions.kt | unknown_repo | kotlin | package com.bawp.jettrivia.component
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.*
import androidx.compose.material.ButtonDefaults.buttonC... |
compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/gestures/snapping/SnapLayoutInfoProvider.kt | unknown_repo | kotlin | /*
* Copyright 2022 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... |
komapper-processor/src/main/kotlin/org/komapper/processor/ProcessorUtility.kt | unknown_repo | kotlin | package org.komapper.processor
import com.google.devtools.ksp.symbol.KSAnnotated
import com.google.devtools.ksp.symbol.KSAnnotation
import com.google.devtools.ksp.symbol.KSClassDeclaration
import com.google.devtools.ksp.symbol.Modifier
import java.nio.CharBuffer
import kotlin.reflect.KClass
internal fun <T> Sequence<... |
komapper-processor/src/main/kotlin/org/komapper/processor/ProcessorUtility.kt | unknown_repo | kotlin | package org.komapper.processor
import com.google.devtools.ksp.symbol.KSAnnotated
import com.google.devtools.ksp.symbol.KSAnnotation
import com.google.devtools.ksp.symbol.KSClassDeclaration
import com.google.devtools.ksp.symbol.Modifier
import java.nio.CharBuffer
import kotlin.reflect.KClass
internal fun <T> Sequence<... |
EasyStoring/app/src/main/java/com/example/easystoring/MainActivity.kt | unknown_repo | kotlin | package com.example.easystoring
import ViewPager2Adapter
import android.annotation.SuppressLint
import android.app.AlertDialog
import android.content.ContentValues
import android.content.Intent
import android.content.pm.PackageManager
import android.database.Cursor
import android.net.Uri
import android.os.Build
import... |
app/src/main/java/com/lianyi/paimonsnotebook/common/database/cultivate/dao/CultivateItemsDao.kt | unknown_repo | kotlin | package com.lianyi.paimonsnotebook.common.database.cultivate.dao
import androidx.room.Dao
import androidx.room.MapColumn
import androidx.room.Query
import androidx.room.Update
import androidx.room.Upsert
import com.lianyi.paimonsnotebook.common.database.cultivate.entity.CultivateItemMaterials
import com.lianyi.paimons... |
debug/src/main/kotlin/app/playground/ui/debug/data/DebugDataStoreInitializer.kt | unknown_repo | kotlin | package app.playground.ui.debug.data
import android.app.Application
import app.playground.core.AppInitializer
import coil.Coil
import coil.imageLoader
import coil.util.Logger
import core.playground.ApplicationScope
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.flow.launchIn
import kotlinx.coroutin... |
app/src/main/java/com/fastaccess/pokilist/db/AppDatabase.kt | unknown_repo | kotlin | package com.fastaccess.pokilist.db
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import com.fastaccess.data.local.converter.AbilityTypeConverter
import com.fastaccess.data.local.converter.StatTypeConverter
import com.fastaccess.data.local.converter.TypesTypeConvert... |
app/src/main/java/com/fibelatti/photowidget/platform/DialogKtx.kt | unknown_repo | kotlin | package com.fibelatti.photowidget.platform
import androidx.appcompat.app.AppCompatDialog
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.ViewModelStoreOwner
import androidx.lifecycle.setViewTreeLifecycleOwner
import androidx.lifecycle.setViewTreeViewModelStoreOwner
import androidx.savedstate.SavedSt... |
modules/mainthread/src/androidUnitTest/kotlin/splitties/mainthread/MainThreadCheckFunctionalTest.kt | unknown_repo | kotlin | /*
* Copyright 2019 <NAME>. Use of this source code is governed by the Apache 2.0 license.
*/
package splitties.mainthread
import android.os.Looper
import androidx.test.ext.junit.runners.AndroidJUnit4
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.runBlocking
import org.junit.runner.RunWith
import ... |
src/main/kotlin/ui/App.kt | unknown_repo | kotlin | import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.expandHorizontally
import androidx.compose.desktop.ui.tooling.preview.Preview
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import android... |
QuickWork/src/main/java/com/wpf/app/quickwork/widget/QuickThemeDialog.kt | unknown_repo | kotlin | package com.wpf.app.quickwork.widget
import android.content.Context
import com.wpf.app.base.ability.base.QuickAbility
import com.wpf.app.quick.ability.QuickDialog
import com.wpf.app.quickwork.widget.theme.QuickDialogThemeBase
import com.wpf.app.quickwork.widget.theme.QuickDialogThemeI
open class QuickThemeDialog(
... |
recipe_list/src/androidTest/java/com/artkachenko/recipe_list/RecipeListFragmentScreen.kt | unknown_repo | kotlin | package com.artkachenko.recipe_list
import android.view.View
import com.agoda.kakao.recycler.KRecyclerItem
import com.agoda.kakao.recycler.KRecyclerView
import com.artkachenko.recipe_list.recipe_list.RecipeListFragment
import com.kaspersky.kaspresso.screens.KScreen
import org.hamcrest.Matcher
object RecipeListFragmen... |
benchmarks/performance-poetry/complex-poetry/src/main/java/com/squareup/benchmarks/performance/complex/poetry/PerformancePoemWorkflow.kt | unknown_repo | kotlin | package com.squareup.benchmarks.performance.complex.poetry
import com.squareup.benchmarks.performance.complex.poetry.PerformancePoemWorkflow.Action.ClearSelection
import com.squareup.benchmarks.performance.complex.poetry.PerformancePoemWorkflow.Action.HandleStanzaListOutput
import com.squareup.benchmarks.performance.c... |
room/room-compiler/src/main/kotlin/androidx/room/solver/types/CustomTypeConverterWrapper.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... |
imageviewer/src/main/java/com/stfalcon/imageviewer/common/extensions/View.kt | unknown_repo | kotlin | /*
* Copyright 2018 SOUP
*
* 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 applicable law or agreed to in wri... |
core/ui/src/main/kotlin/com/kevlina/budgetplus/core/ui/Surface.kt | unknown_repo | kotlin | package com.kevlina.budgetplus.core.ui
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.BoxScope
import androidx.compose.foundation.layout.heightIn
import andro... |
shared/src/commonMain/kotlin/ui/detail/RenderNotification.kt | unknown_repo | kotlin | import analytics.AnalyticLogger
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
impo... |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/outline/Teacher.kt | unknown_repo | kotlin | package moe.tlaster.icons.vuesax.vuesaxicons.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx... |
app/src/main/java/com/android/goally/ui/viewmodels/GeneralViewModel.kt | unknown_repo | kotlin | package com.android.goally.ui.viewmodels
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.android.goally.data.db.entities.token.Authentication
import com.android.goally.data.model.api.response.copilot.Checklists
import com.android.goally.data.model.api.response.copilot.Routine
im... |
privacysandbox/ads/ads-adservices-java/src/androidTest/java/androidx/privacysandbox/ads/adservices/java/measurement/MeasurementManagerFuturesTest.kt | unknown_repo | kotlin | /*
* Copyright 2022 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/paulrybitskyi/docskanner/ui/splash/SplashActivity.kt | unknown_repo | kotlin | package com.paulrybitskyi.docskanner.ui.splash
import android.Manifest
import androidx.activity.viewModels
import com.karumi.dexter.Dexter
import com.paulrybitskyi.commons.utils.viewBinding
import com.paulrybitskyi.docskanner.core.utils.withListener
import com.paulrybitskyi.docskanner.databinding.ActivitySplashBinding... |
app/src/main/java/com/kusamaru/standroid/tool/DisplaySizeTool.kt | unknown_repo | kotlin | package com.kusamaru.standroid.tool
import android.content.Context
import android.graphics.Insets
import android.graphics.Point
import android.os.Build
import android.util.Size
import android.view.WindowInsets
import android.view.WindowManager
import androidx.annotation.RequiresApi
/**
* 画面の大きさを取得する関数。
*
* Androi... |
app/src/main/java/com/codelab/basiclayouts/ui/components/navigation/SootheBottomNavigation.kt | unknown_repo | kotlin | package com.codelab.basiclayouts.ui.components.navigation
import androidx.compose.foundation.layout.padding
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.AccountCircle
import androidx.compose.material.icons.filled.Spa
import androidx.compose.material3.Icon
import androidx.c... |
app/app/src/main/kotlin/tech/nagual/phoenix/tools/organizer/data/DatabaseConverters.kt | unknown_repo | kotlin | package tech.nagual.phoenix.tools.organizer.data
import androidx.room.TypeConverter
import kotlinx.serialization.decodeFromString
import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.Json
import tech.nagual.phoenix.tools.organizer.data.model.*
import java.util.*
object DatabaseConverters {
... |
app/src/main/kotlin/de/markusfisch/android/binaryeye/adapter/ScansAdapter.kt | unknown_repo | kotlin | package de.markusfisch.android.binaryeye.adapter
import android.content.Context
import android.database.Cursor
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.CursorAdapter
import android.widget.TextView
import de.markusfisch.android.binaryeye.R
import de... |
packages/cordova-plugin-notificare/src/android/NotificarePluginReceiver.kt | unknown_repo | kotlin | package re.notifica.cordova
import android.content.Context
import re.notifica.NotificareIntentReceiver
import re.notifica.internal.NotificareLogger
import re.notifica.models.NotificareApplication
import re.notifica.models.NotificareDevice
class NotificarePluginReceiver : NotificareIntentReceiver() {
override fun... |
uikit/uikit/src/main/java/com/hl/uikit/UIKitDividerView.kt | unknown_repo | kotlin | package com.hl.uikit
import android.content.Context
import android.content.res.Resources
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.DashPathEffect
import android.graphics.Paint
import android.util.AttributeSet
import android.view.View
import androidx.annotation.ColorInt
clas... |
app/src/main/java/com/ddiehl/rgsc/itg/ITGView.kt | unknown_repo | kotlin | package com.ddiehl.rgsc.itg
import android.widget.EditText
import butterknife.bindView
import com.ddiehl.rgsc.R
import com.ddiehl.rgsc.ScorePresenter
import com.ddiehl.rgsc.ScoreViewFragment
import com.ddiehl.rgsc.data.Score
class ITGView : ScoreViewFragment() {
private val _fantastics: EditText by bindView(R.id.... |
tasks/src/androidMain/kotlin/com/gnoemes/shimori/tasks/WorkerPayload.kt | unknown_repo | kotlin | package com.gnoemes.shimori.tasks
import android.content.Context
import androidx.work.WorkerParameters
internal data class WorkerPayload(
val context: Context,
val params : WorkerParameters
) |
pillarbox-core-business/src/main/java/ch/srgssr/pillarbox/core/business/source/SRGAssetLoader.kt | unknown_repo | kotlin | /*
* Copyright (c) SRG SSR. All rights reserved.
* License information is available from the LICENSE file.
*/
package ch.srgssr.pillarbox.core.business.source
import android.content.Context
import android.net.Uri
import androidx.media3.common.C
import androidx.media3.common.MediaItem
import androidx.media3.common.M... |
miniapp/src/main/java/com/rakuten/tech/mobile/miniapp/storage/util/MiniAppDatabaseEncryptionUtil.kt | unknown_repo | kotlin | package com.rakuten.tech.mobile.miniapp.storage.util
import android.content.Context
import android.os.Build
import android.util.Base64
import androidx.annotation.Keep
import androidx.annotation.VisibleForTesting
import com.google.gson.Gson
import com.google.gson.JsonSyntaxException
import com.google.gson.reflect.TypeT... |
web3/modal/src/main/kotlin/com/walletconnect/web3/modal/utils/UriExtensions.kt | unknown_repo | kotlin | package com.walletconnect.web3.modal.utils
import androidx.compose.ui.platform.UriHandler
import com.walletconnect.web3.modal.domain.model.Wallet
import timber.log.Timber
import java.net.URLEncoder
private const val WC_URI_QUERY = "wc?uri="
internal fun UriHandler.goToNativeWallet(uri: String, wallet: Wallet) {
... |
library/src/main/java/com/itxca/spannablex/ReplaceRule.kt | unknown_repo | kotlin | /*
* Copyright (C) 2022 TxcA, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... |
design/src/main/kotlin/uk/govuk/app/design/ui/component/Header.kt | unknown_repo | kotlin | package uk.govuk.app.design.ui.component
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundatio... |
duplicates-android/app/src/main/java/com/github/duplicates/Helper.kt | unknown_repo | kotlin | package com.github.duplicates
import android.text.format.DateUtils
import java.util.*
fun Calendar.setToMax(field: Int) {
set(field, getMaximum(field))
}
fun String?.toTimeZone(): TimeZone? {
return if (this == null) null else TimeZone.getTimeZone(this)
}
const val SHOW_DATE_TIME = DateUtils.FORMAT_SHOW_DAT... |
app/src/main/java/com/jetpack/composetheme/ComposeThemeApp.kt | unknown_repo | kotlin | package com.jetpack.composetheme
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class ComposeThemeApp: Application() {
} |
sample/wallet/src/main/kotlin/com/reown/sample/wallet/ui/common/blue/BlueLabelRow.kt | unknown_repo | kotlin | package com.walletconnect.sample.wallet.ui.common.blue
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.padding
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
... |
app/src/main/java/com/mataku/snippets/ui/viewmodel/LazyRowViewModel.kt | unknown_repo | kotlin | package com.mataku.snippets.ui.viewmodel
import androidx.compose.ui.tooling.preview.datasource.LoremIpsum
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.collections.immutable.ImmutableList
import kotlinx.collections.immutable.toImmutableList
import kotlinx.coroutines.delay
... |
YRWidget/src/main/java/com/apemans/quickui/label/LabelTextConfigure.kt | unknown_repo | kotlin | /*
* Copyright (c) 2021 独角鲸 Inc. All rights reserved.
*/
package com.apemans.quickui.label
import android.view.View
import com.apemans.quickui.R
/***********************************************************
* 作者: <EMAIL>
* 日期: 2021/9/22 3:01 下午
* 说明:
*
* 备注:
*
************************************************... |
Feed/src/main/java/com/j/jface/org/todo/TodoProviderMatcher.kt | unknown_repo | kotlin | package com.j.jface.org.todo
import android.content.UriMatcher
// URI matcher for the Todo provider.
internal class TodoProviderMatcher private constructor() : UriMatcher(UriMatcher.NO_MATCH)
{
companion object
{
val Matcher = TodoProviderMatcher()
const val INDIVIDUAL_TODO_METADATA = 1
init
{
... |
common/src/commonMain/kotlin/com/artemchep/keyguard/feature/attachments/util/CreateAttachmentItem.kt | unknown_repo | kotlin | package com.artemchep.keyguard.feature.attachments.util
import arrow.core.partially1
import com.artemchep.keyguard.android.downloader.journal.room.DownloadInfoEntity2
import com.artemchep.keyguard.common.io.IO
import com.artemchep.keyguard.common.model.DSend
import com.artemchep.keyguard.common.service.download.Downlo... |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/outline/Watchstatus.kt | unknown_repo | kotlin | package moe.tlaster.icons.vuesax.vuesaxicons.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx... |
swapi-sample-components/src/main/java/com/prembros/swapi/sample_components/adapter/BaseRecyclerViewAdapter.kt | unknown_repo | kotlin | package com.prembros.swapi.sample_components.adapter
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.prembros.swapi.sample_components.R
/**
* Prem's crea... |
app/src/main/java/com/nuruysal/harrypoterdemo/base/BaseViewModel.kt | unknown_repo | kotlin | package com.nuruysal.harrypoterdemo.base
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.nuruysal.harrypoterdemo.extensions.SingleLiveData
/**
* Created by serifenuruysal on 8/1/21 .
*/
abstract class BaseViewModel<ViewState : BaseViewStat... |
app/src/main/java/com/jarvis/weatherj/presentation/common/DataUtils.kt | unknown_repo | kotlin | @file:Suppress("MemberVisibilityCanBePrivate")
package com.jarvis.weatherj.presentation.common
import android.content.Context
import com.jarvis.weatherj.R
import java.text.SimpleDateFormat
import java.util.*
object DataUtils {
const val ISO_8601_DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm"
private fun getDateUpdat... |
app/src/main/java/com/example/newscast/ui/newspaper/NewsPaperViewModel.kt | unknown_repo | kotlin | package com.example.newscast.ui.newspaper
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.newscast.R
import com.example.newscast.data.room.Articles
import com.example.newscast.di.ResourceHelper
... |
compose95/src/main/kotlin/com/louis993546/compose95/components/Divider95.kt | unknown_repo | kotlin | package com.louis993546.compose95.components
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.runti... |
app/src/main/kotlin/io/github/wykopmobilny/ui/adapters/viewholders/UpvoterViewHolder.kt | unknown_repo | kotlin | package io.github.wykopmobilny.ui.adapters.viewholders
import androidx.recyclerview.widget.RecyclerView
import io.github.wykopmobilny.databinding.ConversationListItemBinding
import io.github.wykopmobilny.models.dataclass.Upvoter
import io.github.wykopmobilny.ui.modules.profile.ProfileActivity
import io.github.wykopmob... |
app/src/main/java/hu/speeder/huroutes/MainActivity.kt | unknown_repo | kotlin | package hu.speeder.huroutes
import android.content.pm.PackageManager.PERMISSION_GRANTED
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.lifecycle.lifecycleScope
import hu.speeder.huroutes.databinding.ActivityMainBinding
import hu.speeder.huroutes.utils.PermissionTask
import hu.... |
app/src/main/java/com/example/clonethreads/Screens/Search.kt | unknown_repo | kotlin | package com.example.clonethreads.Screens
import android.graphics.drawable.shapes.Shape
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.fo... |
app/src/main/java/com/commit451/gitlab/fragment/ProjectMembersFragment.kt | unknown_repo | kotlin | package com.commit451.gitlab.fragment
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.commit451.gitlab... |
app/src/main/java/com/rphmelo/routeapp/util/DialogUtil.kt | unknown_repo | kotlin | package com.rphmelo.routeapp.util
import android.app.AlertDialog
import android.app.ProgressDialog
import android.content.Context
import android.content.DialogInterface
import com.rphmelo.routeapp.R
object DialogUtil {
var loadingDialog: ProgressDialog? = null
fun getLoading(context: Context): ProgressDialo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.