file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/com/ando/file/sample/ui/selector/FileSelectMultiImageActivity.kt | unknown_repo | kotlin | package com.ando.file.sample.ui.selector
import android.annotation.SuppressLint
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import ando.file.core.*
import ando.file.core.FileGlobal.OVER_LIMIT_EXCEPT_ALL
import ando.file.core.FileGlobal.O... |
app/src/main/java/ru/tinkoff/news/orm/NewsDatabase.kt | unknown_repo | kotlin | package ru.tinkoff.news.orm
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import ru.tinkoff.news.model.CacheMarker
import ru.tinkoff.news.model.FavouriteMarker
import ru.tinkoff.news.model.NewsItemDetails
import ru.tinkoff.news.model.NewsItemTitle
import ru.tinkoff... |
app/src/main/java/com/example/projetfinal/data/LocalPreferences.kt | unknown_repo | kotlin | package com.example.projetfinal.data
import android.content.Context
import android.content.SharedPreferences
// LocalPreferences allow to save data in the smartphone with persistence
class LocalPreferences private constructor(context: Context) {
// Instantiate a sharedpreferences object
private val sharedPre... |
compose/ui-layout/src/commonMain/kotlin/com/bselzer/ktx/compose/ui/layout/project/Interactable.kt | unknown_repo | kotlin | package com.bselzer.ktx.compose.ui.layout.project
import androidx.compose.ui.Modifier
import com.bselzer.ktx.compose.ui.layout.modifier.interactable.InteractableModifier
interface Interactable {
/**
* The [Modifier]s.
*/
val modifier: InteractableModifier
} |
app/src/main/java/com/haznedar/myvocabularynotebook/presentation/navigation/bottombar/ScaffoldBottomNavGraph.kt | unknown_repo | kotlin | package com.haznedar.myvocabularynotebook.presentation.navigation.bottombar
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.runtime.remember
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.hilt.navigation.co... |
libraries/swipeLayout/src/main/java/com/yjpapp/swipelayout/adapters/PagingSwipeAdapter.kt | unknown_repo | kotlin | package com.yjpapp.swipelayout.adapters
import androidx.paging.PagingDataAdapter
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView
import com.yjpapp.swipelayout.SwipeLayout
import com.yjpapp.swipelayout.implments.SwipeItemMangerImpl
import com.yjpapp.swipelayout.implments.Sw... |
feature/movies/src/robolectricTest/kotlin/io/petros/movies/movies/list/MoviesPagingAdapterRobolectricTest.kt | unknown_repo | kotlin | package io.petros.movies.movies.list
import androidx.recyclerview.widget.RecyclerView
import io.mockk.every
import io.mockk.mockk
import io.mockk.spyk
import io.mockk.verify
import io.petros.movies.androidtest.context.TestContextProvider.context
import io.petros.movies.androidtest.runner.CustomRobolectricTestRunner
im... |
app/src/main/java/com/jumptuck/recipebrowser2/recipelist/RecipeTitleAdapter.kt | unknown_repo | kotlin | package com.jumptuck.recipebrowser2.recipelist
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.jumptuck.recipebrowser2.database.Recipe
import com.jum... |
soil-query-compose/src/commonMain/kotlin/soil/query/compose/InfiniteQueryObject.kt | unknown_repo | kotlin | // Copyright 2024 Soil Contributors
// SPDX-License-Identifier: Apache-2.0
package soil.query.compose
import androidx.compose.runtime.Immutable
import androidx.compose.runtime.Stable
import soil.query.QueryFetchStatus
import soil.query.QueryModel
import soil.query.QueryStatus
import soil.query.core.Reply
import soil.... |
app/src/main/java/com/example/android_study/performance_optimization/memory/POMemoryFragment.kt | unknown_repo | kotlin | package com.example.android_study.performance_optimization.memory
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.example.android_study.R
import com.example.android_study._base.BaseFragment
/**
* Author:create by RhythmCoder
* Date:2021/... |
plugins-android/src/main/kotlin/com/github/kereis/medit/ui/components/TextActionButton.kt | unknown_repo | kotlin | package com.github.kereis.medit.ui.components
import android.content.Context
import android.util.AttributeSet
class TextActionButton : androidx.appcompat.widget.AppCompatImageButton {
constructor(context: Context) : super(context)
constructor(context: Context, attrs: AttributeSet?) : super(context, attrs)
... |
app/src/main/java/com/smartdevservice/mystudiofactory/ui/MyUserRecyclerViewAdapter.kt | unknown_repo | kotlin | package com.smartdevservice.mystudiofactory.ui
import android.content.Context
import androidx.recyclerview.widget.RecyclerView
import androidx.swiperefreshlayout.widget.CircularProgressDrawable
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
imp... |
image-loader/src/androidMain/kotlin/com/seiko/imageloader/component/decoder/SvgDecoder.kt | unknown_repo | kotlin | package com.seiko.imageloader.component.decoder
import androidx.compose.ui.unit.Density
import com.caverock.androidsvg.SVG
import com.seiko.imageloader.model.mimeType
import com.seiko.imageloader.option.Options
import com.seiko.imageloader.option.androidContext
import com.seiko.imageloader.util.SVGPainter
import com.s... |
packages/expo-notifications/android/src/main/java/expo/modules/notifications/service/delegates/ExpoHandlingDelegate.kt | unknown_repo | kotlin | package expo.modules.notifications.service.delegates
import android.content.Context
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.ProcessLifecycleOwner
import expo.modules.notifications.notifications.NotificationManager
import expo.modules.notifications.notifications.model.Notification
import expo.modu... |
sample/src/main/kotlin/dev/olshevski/navigation/reimagined/sample/ui/demo/BottomNavigationScreen.kt | unknown_repo | kotlin | package dev.olshevski.navigation.reimagined.sample.ui.demo
import androidx.activity.compose.BackHandler
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.material.BottomNavigation
import androidx.compose.material.BottomNavigationItem
import androidx.... |
app/src/main/java/college/wyk/app/ui/feed/sns/SnsFeedFragment.kt | unknown_repo | kotlin | package college.wyk.app.ui.feed.sns
import android.os.Bundle
import android.os.Handler
import android.support.design.widget.Snackbar
import android.support.v7.widget.LinearLayoutManager
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import college.wyk.... |
app/src/main/java/com/wangyiheng/vcamsx/utils/VideoPlayer.kt | unknown_repo | kotlin | package com.wangyiheng.vcamsx.utils
import androidx.media3.datasource.DefaultDataSource
import androidx.media3.exoplayer.ExoPlayer
class VideoPlayer {
var dataSourceFactory: DefaultDataSource.Factory? = null
var player_exoplayer: ExoPlayer? = null
} |
ui-extension/src/main/java/com/highcapable/betterandroid/ui/extension/component/base/Dimension.kt | unknown_repo | kotlin | /*
* Better Android - Create more useful tool extensions for Android.
* Copyright (C) 2019-2024 HighCapable
* https://github.com/BetterAndroid/BetterAndroid
*
* Apache License Version 2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with th... |
app/src/main/java/com/simbiri/equityjamii/adapters/TaskAdapter.kt | unknown_repo | kotlin | package com.simbiri.equityjamii.adapters
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.simbiri.equityjamii.R
class TaskDataAdapter(
var context: Con... |
app/src/main/java/com/liorhass/android/usbterminal/free/main/UserInputHandler.kt | unknown_repo | kotlin | // Copyright 2022 Lior Hass
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writin... |
app/src/main/java/im/fdx/v2ex/ui/member/DiffReply.kt | unknown_repo | kotlin | package im.fdx.v2ex.ui.member
import androidx.recyclerview.widget.DiffUtil
/**
* Created by fdx on 2017/7/31.
*
*/
class DiffReply(val oldList: List<MemberReplyModel>, val newList: List<MemberReplyModel>) : DiffUtil.Callback() {
override fun areItemsTheSame(oldItemPosition: Int, newItemPosition: Int)
... |
app/src/main/java/com/dluvian/voyage/data/preferences/RelayPreferences.kt | unknown_repo | kotlin | package com.dluvian.voyage.data.preferences
import android.content.Context
import com.dluvian.voyage.core.DEFAULT_AUTOPILOT_RELAYS
import com.dluvian.voyage.core.MAX_AUTOPILOT_RELAYS
import com.dluvian.voyage.core.MIN_AUTOPILOT_RELAYS
private const val SEND_AUTH = "send_auth"
private const val SEND_BOOKMARKED_TO_LOCA... |
appcompat/appcompat/src/test/java/androidx/appcompat/app/AppCompatResourcesRobolectricTest.kt | unknown_repo | kotlin | /*
* Copyright 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
app/src/main/java/com/google/mlkit/vision/demo/viewmodel/HospitalViewModel.kt | unknown_repo | kotlin | package com.google.mlkit.vision.demo.viewmodel
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.google.mlkit.vision.demo.dataclass.Hospitals
import com.google.mlkit.vision.demo.network.MainRepository
import kotlinx.coroutines.launch
clas... |
Source/packages/apps/ThemePicker/src/com/android/customization/picker/preview/ui/section/PreviewWithThemeSectionController.kt | unknown_repo | kotlin | /*
* Copyright (C) 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
solar/src/main/java/com/chiksmedina/solar/outline/arrows/DoubleAltArrowLeft.kt | unknown_repo | kotlin | package com.chiksmedina.solar.outline.arrows
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.... |
app/src/main/java/com/moataz/afternoonhadeeth/data/model/videos/top/Data.kt | unknown_repo | kotlin | package com.moataz.afternoonhadeeth.data.model.videos.top
import android.os.Parcel
import android.os.Parcelable
import androidx.annotation.Keep
@Keep
data class Data(
val details: String?,
val image: String?,
val text: String?,
val times: String?,
val url: String?
) : Parcelable {
constructor(... |
authentication/src/main/kotlin/com/uber/sdk2/auth/ui/UberAuthButton.kt | unknown_repo | kotlin | /*
* Copyright (C) 2024. Uber Technologies
*
* 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 o... |
app/src/main/java/com/desrumaux/androidtoolbox/activity/UserInfoActivity.kt | unknown_repo | kotlin | package com.desrumaux.androidtoolbox.activity
import android.app.DatePickerDialog
import android.content.Context
import android.os.Bundle
import android.support.v7.app.AlertDialog
import android.support.v7.app.AppCompatActivity
import android.util.Log
import android.widget.DatePicker
import android.widget.Toast
import... |
server/app/src/main/kotlin/jp/tinyport/androidcommander/server/KeyCode.kt | unknown_repo | kotlin | /*
* Copyright 2021 sukawasatoru
*
* 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... |
basicview/src/main/java/xc/common/viewlib/view/CommonHintDialog.kt | unknown_repo | kotlin | package xc.common.viewlib.view
import android.app.Activity
import android.view.View
import xc.common.viewlib.R
import kotlinx.android.synthetic.main.bv_dialog_common_hint.*
import xc.common.viewlib.view.customview.FullScreenDialog
abstract class CommonHintDialog(activity: Activity) : FullScreenDialog(activity) {
... |
app/src/main/java/com/tfandkusu/ga913android/analytics/AnalyticsEventSender.kt | unknown_repo | kotlin | package com.tfandkusu.ga913android.analytics
import android.os.Bundle
import com.google.firebase.analytics.FirebaseAnalytics
import javax.inject.Inject
interface AnalyticsEventSender {
fun sendScreen(screen: AnalyticsEvent.Screen)
fun sendAction(action: AnalyticsEvent.Action)
}
class AnalyticsEventSenderImp... |
straight/src/commonMain/kotlin/me/localx/icons/straight/filled/FileCloud.kt | unknown_repo | kotlin | package me.localx.icons.straight.filled
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... |
AOS/BottleLight/app/src/main/java/kr/co/cavedwellers/bottlelight/Constant.kt | unknown_repo | kotlin | package kr.co.cavedwellers.bottlelight
import android.Manifest
object Constant {
const val LIGHT_MIN = 1
const val LIGHT_MAX = 5
val PERMISSION_BUNDLE = arrayOf(
Manifest.permission.WRITE_SETTINGS,
)
const val PERMISSION_REQUEST_CODE = 721
const val DELAY_FAST = 250L
const val D... |
data/src/main/java/eu/benayoun/androidmoviedatabase/data/source/local/movies/room/internal/TmdbRoomDataBase.kt | unknown_repo | kotlin | package eu.benayoun.androidmoviedatabase.data.source.local.movies.room.internal
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
@Database(entities = [TmdbRoomMovieEntity::class], version = 1)
internal abstract class TmdbRoomDataBase : RoomDatab... |
feature/resourcecreate/src/main/java/com/muammarahlnn/learnyscape/feature/resourcecreate/composable/QuizQuestionsState.kt | unknown_repo | kotlin | package com.muammarahlnn.learnyscape.feature.resourcecreate.composable
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Stable
import androidx.compose.runtime.mutableStateListOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import com.muammarahlnn.lea... |
navigation/src/main/java/xyz/ahndwon/navigation/NavExtensions.kt | unknown_repo | kotlin | package xyz.ahndwon.navigation
import androidx.core.net.toUri
import androidx.navigation.NavController
import androidx.navigation.NavDeepLinkRequest
import androidx.navigation.NavOptions
fun buildDeepLink(destination: DeepLinkDestination) =
NavDeepLinkRequest.Builder
.fromUri(destination.address.toUri())
... |
app/src/main/java/com/shentu/paper/app/GlobalConfiguration.kt | unknown_repo | kotlin | package com.shentu.paper.app
import android.app.Application
import android.content.Context
import android.os.Bundle
import android.text.TextUtils
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import com.blankj.utilcode.constant.MemoryConstants
import com.blankj.utilcode.util.Networ... |
app/src/main/java/com/example/noteit/ui/note/NoteViewModel.kt | unknown_repo | kotlin | package com.example.noteit.ui.note
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.noteit.models.NoteRequest
import com.example.noteit.models.NoteResponse
import com.example.noteit.repository.NoteRepository
import com.example.noteit.uti... |
app/src/main/java/de/lukasneugebauer/nextcloudcookbook/recipe/presentation/list/RecipeListScreen.kt | unknown_repo | kotlin | package de.lukasneugebauer.nextcloudcookbook.recipe.presentation.list
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.lazy.LazyColumn
im... |
app/src/main/java/com/example/newsshorts/newsList/presentation/NewsListViewModel.kt | unknown_repo | kotlin | package com.example.newsshorts.newsList.presentation
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.newsshorts.core.data.entity.Articles
import com.example.newsshorts.core.domain.NewsRepository
import com.example.newsshorts.core.util.ResultWrapper
import dagger.hilt.and... |
app/src/main/java/com/botigocontigo/alfred/foda/FodaFragment.kt | unknown_repo | kotlin | package com.botigocontigo.alfred.foda
import android.content.Context
import android.net.Uri
import android.os.Bundle
import android.support.v4.app.Fragment
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.util.Log
import android.view.LayoutInflater
impor... |
app/src/main/java/com/brilliancesoft/mushaf/utils/extensions/OnPreferencesClick.kt | unknown_repo | kotlin | package com.brilliancesoft.mushaf.utils.extensions
import androidx.annotation.StringRes
import androidx.preference.Preference
import androidx.preference.PreferenceFragmentCompat
import com.abed.magentaX.standard.lambda.unitFun
inline fun PreferenceFragmentCompat.onPreferencesClick(
@StringRes key: Int,
crossi... |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/submission/ui/homecards/TestNegativeCard.kt | unknown_repo | kotlin | package de.rki.coronawarnapp.submission.ui.homecards
import android.view.ViewGroup
import de.rki.coronawarnapp.R
import de.rki.coronawarnapp.databinding.HomeSubmissionStatusCardNegativeBinding
import de.rki.coronawarnapp.submission.ui.homecards.TestNegativeCard.Item
import de.rki.coronawarnapp.ui.main.home.HomeAdapter... |
app/src/main/java/com/io/gazette/common/ui/components/NewsList.kt | unknown_repo | kotlin | package com.io.gazette.common.ui.components
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.LazyListState
import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.lazy.rememberLazyListState
import andro... |
app/src/main/java/ru/sulgik/remotearduino/modules/bluetooth/livedatas/DiscoveredDevices.kt | unknown_repo | kotlin | package ru.sulgik.remotearduino.modules.bluetooth.livedatas
import android.bluetooth.BluetoothAdapter
import android.bluetooth.BluetoothDevice
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import androidx.lifecycle.LiveData
cl... |
glide/src/main/java/com/angcyo/glide/progress/OkHttpProgressLibraryGlideModule.kt | unknown_repo | kotlin | package com.angcyo.glide.progress
import android.content.Context
import com.angcyo.library.L
import com.bumptech.glide.Glide
import com.bumptech.glide.Registry
import com.bumptech.glide.annotation.GlideModule
import com.bumptech.glide.integration.okhttp3.OkHttpUrlLoader
import com.bumptech.glide.load.model.GlideUrl
im... |
app/src/main/java/com/osmansekman/foodapp/ui/mealadd/MealAddViewModel.kt | unknown_repo | kotlin | package com.osmansekman.foodapp.ui.mealadd
import androidx.lifecycle.LiveData
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import com.osmansekman.foodapp.model.ApiRepository
import com.osmansekman.foodapp.model.entity.mealadd.MealAddRequest
import com.osmansekman.foodapp.model.entity.... |
Retrofit/app/src/androidTest/java/com/goiz/retrofit/MainActivityTest.kt | unknown_repo | kotlin | package com.goiz.retrofit
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.ViewActions.click
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMatchers.isDisplayed
import androidx.test.espresso.matcher.ViewMatchers.withId
import a... |
app/src/main/java/com/jerry/wuwen/ui/gesture/GestureViewModel.kt | unknown_repo | kotlin | package com.jerry.wuwen.ui.gesture
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Transformations
import androidx.lifecycle.ViewModel
import com.jerry.wuwen.logic.Repository
import com.jerry.wuwen.logic.model.LoginRequest
class GestureViewModel:ViewModel() {
var ifbox_run= MutableLiveData<Boo... |
app/src/main/java/com/iffly/compose/mvi/MVIActivity.kt | unknown_repo | kotlin | package com.iffly.compose.mvi
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
class MVIActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContent {
M... |
composeApp/src/commonMain/kotlin/org/example/todos/viewModels/TodoViewModel.kt | unknown_repo | kotlin | package org.example.todos.viewModels
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import org.example.todos.db.TodoItem
import org.example.todos.repo.TaskRepository
import kotlinx.coroutines.channels.BufferOverflow
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutine... |
app/src/main/java/com/example/sunnyweather/ui/weather/WeatherBottomSheet.kt | unknown_repo | kotlin | package com.example.sunnyweather.ui.weather
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.ImageView
import android.widget.TextView
import com.example.sunnyweather.R
import com.example.sunnyweather.logic.model.Place
import co... |
app/src/test/java/com/meuus90/booksearcher/model/mock/FakeRepository.kt | unknown_repo | kotlin | package com.meuus90.booksearcher.model.mock
import androidx.paging.ExperimentalPagingApi
import androidx.paging.PagingData
import com.meuus90.booksearcher.model.data.source.repository.book.BooksRepository
import com.meuus90.booksearcher.model.mock.FakeModel.mockPagingData
import com.meuus90.booksearcher.model.schema.b... |
app/src/main/java/com/vultisig/wallet/presenter/welcome/WelcomeViewModel.kt | unknown_repo | kotlin | package com.vultisig.wallet.presenter.welcome
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.vultisig.wallet.data.repositories.OnBoardRepository
impo... |
link/src/main/java/com/stripe/android/link/ui/wallet/WalletScreen.kt | unknown_repo | kotlin | package com.stripe.android.link.ui.wallet
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Co... |
app/src/main/java/com/actively/home/ui/HomeScreen.kt | unknown_repo | kotlin | package com.actively.home.ui
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.lay... |
app/src/main/java/com/ubaidmerchant/findamatch/data/repo/ResultsRepository.kt | unknown_repo | kotlin | package com.ubaidmerchant.findamatch.data.repo
import android.util.Log
import androidx.lifecycle.MutableLiveData
import com.ubaidmerchant.findamatch.data.local.dao.ResultsDao
import com.ubaidmerchant.findamatch.data.remote.api.FamService
import com.ubaidmerchant.findamatch.data.remote.api.FamService.Companion.RESULTS_... |
samples/communication-between-nodes-1/src/main/java/com/badoo/ribs/samples/comms_nodes_1/rib/container/routing/ContainerRouter.kt | unknown_repo | kotlin | package com.badoo.ribs.samples.comms_nodes_1.rib.container.routing
import android.os.Parcelable
import com.badoo.ribs.core.modality.BuildParams
import com.badoo.ribs.routing.Routing
import com.badoo.ribs.routing.resolution.ChildResolution.Companion.child
import com.badoo.ribs.routing.resolution.Resolution
import com.b... |
audio-cast-android/app/src/main/java/com/scythe/audiocast/ui/component/ComposeComponents.kt | unknown_repo | kotlin | package com.scythe.audiocast.ui.component
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.material.ListItem
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
@OptIn(ExperimentalMaterialApi::class)
@Composable
fun EmptyRowComponent(text: String) {
Lis... |
LearnBook/CriminalIntent/src/main/java/com/by5388/learn/v4/kotlin/criminalintent/CrimeListViewModel.kt | unknown_repo | kotlin | package com.by5388.learn.v4.kotlin.criminalintent
import androidx.lifecycle.ViewModel
/**
* @author admin on 2021/6/5.
*/
class CrimeListViewModel : ViewModel() {
private val mCrimeRepository = CrimeRepository.get()
val mCrimesListLiveData = mCrimeRepository.getCrimes()
fun addCrime(crime: Crime) {
... |
cropper/src/main/java/com/canhub/cropper/PickImageContract.kt | unknown_repo | kotlin | package com.canhub.cropper
import android.content.Context
import android.content.Intent
import android.net.Uri
import androidx.activity.result.contract.ActivityResultContract
import com.canhub.cropper.CropImage.getPickImageResultUriContent
/**
* An ActivityResultContract to prompt the user to pick an image, receivin... |
app/src/main/java/com/example/rocketreserver/LoginFragment.kt | unknown_repo | kotlin | package com.example.rocketreserver
import android.os.Bundle
import android.util.Patterns
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavController
import com.apollographql.apollo.api.Input
import... |
app/src/main/java/com/zorro/kotlin/samples/widgets/ZorroGoogleWebView.kt | unknown_repo | kotlin | package com.zorro.kotlin.samples.widgets
import android.content.Context
import android.webkit.JavascriptInterface
import android.widget.FrameLayout
import android.widget.ImageView
import com.bumptech.glide.request.RequestOptions
import com.bumptech.glide.request.target.Target
import com.lxj.xpopup.XPopup
import com... |
app/src/main/java/com/xgimi/filemanager/utils/MediaOpenUtil.kt | unknown_repo | kotlin | package com.xgimi.filemanager.utils
import android.app.Activity
import android.content.ComponentName
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Bundle
import android.os.Environment
import android.util.Log
import android.widget.Toast
import co... |
app/src/main/java/jp/cordea/mackerelclient/activity/MetricsEditActivity.kt | unknown_repo | kotlin | package jp.cordea.mackerelclient.activity
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.app.AppCompatActivity
import androidx.dat... |
stream-chat-android-compose/src/main/java/io/getstream/chat/android/compose/ui/attachments/AttachmentFactory.kt | unknown_repo | kotlin | /*
* Copyright (c) 2014-2022 Stream.io Inc. All rights reserved.
*
* Licensed under the Stream License;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://github.com/GetStream/stream-chat-android/blob/main/LICENSE
*
* Unless required by a... |
simple-stack-example-kotlin/src/main/kotlin/com/zhuinden/simplestackexamplekotlin/NotificationFragment.kt | unknown_repo | kotlin | package com.zhuinden.simplestackexamplekotlin
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import butterknife.ButterKnife
/**
* Created by Owner on 2017.11.13.
*/
class NotificationFragment : BaseFragment() {
override fun onCreateView(infla... |
app/src/main/java/com/sergeyrodin/matchesboxes/history/HistoryActionModeController.kt | unknown_repo | kotlin | package com.sergeyrodin.matchesboxes.history
import android.app.Activity
import android.view.ActionMode
import android.view.Menu
import android.view.MenuInflater
import android.view.MenuItem
import com.sergeyrodin.matchesboxes.R
class HistoryActionModeController(
private val activity: Activity,
private val vi... |
component/compose-stylesheet-surface/src/commonMain/kotlin/com.moriatsushi.compose.stylesheet.surface/Surface.kt | unknown_repo | kotlin | package com.moriatsushi.compose.stylesheet.surface
import androidx.compose.foundation.layout.Box
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.Shape
import androidx.compose.ui.graphics.isSpecified
import com.... |
sample/kotlin/src/main/kotlin/com/datadog/android/sample/viewpager/FragmentA.kt | unknown_repo | kotlin | /*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2016-Present Datadog, Inc.
*/
package com.datadog.android.sample.viewpager
import androidx.core.os... |
app/src/main/java/com/lagradost/shiro/ui/library/LibraryFragment.kt | unknown_repo | kotlin | package com.lagradost.shiro.ui.library
import ANILIST_SHOULD_UPDATE_LIST
import ANILIST_TOKEN_KEY
import DataStore.getKey
import DataStore.setKey
import LIBRARY_IS_MAL
import MAL_SHOULD_UPDATE_LIST
import MAL_TOKEN_KEY
import android.content.Context
import android.content.res.ColorStateList
import android.content.res.... |
app/src/main/java/com/mainxml/visualgo/MainVM.kt | unknown_repo | kotlin | package com.mainxml.visualgo
import com.mainxml.visualgo.base.BaseViewModel
/**
* @author zcp
*/
class MainVM : BaseViewModel() {
} |
PettCareAndroidApp/app/src/main/java/com/pettcare/app/core/BaseViewModel.kt | unknown_repo | kotlin | package com.pettcare.app.core
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.pettcare.app.navigation.Router
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.asStateFlow
... |
next/kmp/browser/src/androidMain/kotlin/org/dweb_browser/browser/desk/TaskbarActivity.android.kt | unknown_repo | kotlin | package org.dweb_browser.browser.desk
import android.annotation.SuppressLint
import android.graphics.drawable.Drawable
import android.view.Gravity
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.runtime.remem... |
app/src/main/java/io/github/emaccaull/sweetnothings/ui/MainActivity.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 ... |
src/main/kotlin/ui/TopBar.kt | unknown_repo | kotlin | package ui
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.padding
import androidx.compose.m... |
app/src/main/java/com/words/storageapp/MyApplication.kt | unknown_repo | kotlin | package com.words.storageapp
import android.app.Application
import android.content.Context
import android.os.Build
import androidx.annotation.RequiresApi
import androidx.multidex.MultiDex
import androidx.work.*
import com.words.storageapp.di.dagger.AppLevelComponent
import com.words.storageapp.di.dagger.DaggerAppLevel... |
app/src/main/java/com/nullpointer/runningcompose/presentation/AuthViewModel.kt | unknown_repo | kotlin | package com.nullpointer.runningcompose.presentation
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.nullpointer.runningcompose.core.states.Resource
im... |
app/src/main/kotlin/com/akinci/projectfinder/ui/features/projects/ProjectListViewModel.kt | unknown_repo | kotlin | package com.akinci.projectfinder.ui.features.projects
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.akinci.projectfinder.core.compose.reduce
import com.akinci.projectfinder.core.coroutine.ContextProvider
import com.akinci.projectfinder.core.network.exception.NotFound
import co... |
app/src/main/java/ru/tech/imageresizershrinker/resize_screen/SingeResizeScreen.kt | unknown_repo | kotlin | package ru.tech.imageresizershrinker.resize_screen
import android.content.Context
import android.content.res.Configuration
import android.net.Uri
import androidx.activity.ComponentActivity
import androidx.activity.compose.BackHandler
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.ac... |
mobile/shared/src/main/java/dev/trotrohailer/shared/database/PassengerDao.kt | unknown_repo | kotlin | package dev.trotrohailer.shared.database
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Query
import dev.trotrohailer.shared.data.Passenger
@Dao
interface PassengerDao : BaseDao<Passenger> {
@Query("SELECT * FROM passengers WHERE id = :id")
fun getPassenger(id: String): Live... |
app/src/main/java/com/hitanshudhawan/mccompose/ui/theme/Type.kt | unknown_repo | kotlin | package com.hitanshudhawan.mccompose.ui.theme
import androidx.compose.material.Typography
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.sp
val typography = Typography(
h1 = TextStyle(
fontSize = 96.sp,
fontWeight = FontWei... |
app/src/main/java/com/example/thirdsunnyweather/ui/place/PlaceAdapter.kt | unknown_repo | kotlin | package com.example.thirdsunnyweather.ui.place
import android.annotation.SuppressLint
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.RecyclerView
import com.example.thirds... |
app/src/main/java/dev/abhaycloud/imagegallerycompose/ui/navigation/NavGraph.kt | unknown_repo | kotlin | package dev.abhaycloud.imagegallerycompose.ui.navigation
import androidx.compose.runtime.Composable
import androidx.navigation.NavHostController
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import dev.abhaycloud.imagegallerycompose.ui.create.CreateScreen
import dev.abhayclou... |
app/src/main/java/com/zjh/ktwanandroid/presentation/mine/login/LoginVM.kt | unknown_repo | kotlin | package com.zjh.ktwanandroid.presentation.mine.login
import com.zjh.ktwanandroid.app.base.BaseMVIVM
import com.zjh.ktwanandroid.domain.usecase.MineUseCase
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.corout... |
app/src/main/java/com/zobaer53/starwars/app/character/domain/repository/CharacterRepository.kt | unknown_repo | kotlin | package com.zobaer53.starwars.app.character.domain.repository
import androidx.paging.PagingData
import com.zobaer53.starwars.app.character.domain.entity.Character
import kotlinx.coroutines.flow.Flow
interface CharacterRepository {
suspend fun getCharacters(): Flow<PagingData<Character>>
} |
app/src/main/java/com/gcect/gcectapp/ui/fragments/ExamScheduleFragment.kt | unknown_repo | kotlin | package com.gcect.gcectapp.ui.fragments
import android.content.Context
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.FragmentManager
import... |
common/src/main/java/me/wcy/common/utils/VibrateUtils.kt | unknown_repo | kotlin | package me.wcy.common.utils
import android.content.Context
import android.os.Vibrator
import me.wcy.common.CommonApp
/**
* Created by wangchenyan.top on 2021/9/28.
*/
object VibrateUtils {
fun vibrate(time: Long = 300L) {
val vibratorService =
CommonApp.app.getSystemService(Context.VIBRATOR... |
feature-StoryDetail/src/main/java/droidkaigi/github/io/challenge2019/story/detail/StoryDetailActivity.kt | unknown_repo | kotlin | package droidkaigi.github.io.challenge2019.story.detail
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import android.webkit.WebResourceError
import android.webkit.WebResourceRequest
import android.webkit.WebView
import android.webkit.WebViewClient
import androidx.appcompat.app.AppCompa... |
app/src/main/java/com/rafay/notes/NotesApplication.kt | unknown_repo | kotlin | package com.rafay.notes
import android.app.Application
import org.koin.android.ext.koin.androidContext
import org.koin.core.context.startKoin
import timber.log.Timber
class NotesApplication : Application() {
override fun onCreate() {
super.onCreate()
if (BuildConfig.DEBUG) {
Timber.p... |
app/src/main/java/org/teslasoft/assistant/ui/activities/LogitBiasConfigListActivity.kt | unknown_repo | kotlin | /**************************************************************************
* Copyright (c) 2023-2024 <NAME>. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/TrashCheck.kt | unknown_repo | kotlin | package me.localx.icons.straight.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
i... |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/Circle6.kt | unknown_repo | kotlin | package me.localx.icons.rounded.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/BrandGoogleOne.kt | unknown_repo | kotlin | package com.woowla.compose.icon.collections.tabler.tabler.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector... |
app/src/main/java/com/gobinda/accountwise/feature/accountlist/AccountListActivity.kt | unknown_repo | kotlin | package com.gobinda.accountwise.feature.accountlist
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import andr... |
app/src/main/java/org/nekomanga/presentation/components/Chip.kt | unknown_repo | kotlin | package org.nekomanga.presentation
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import androidx.compose.material3.Text... |
app/src/main/java/com/tr4n/moviedb/data/entity/MovieEntity.kt | unknown_repo | kotlin | package com.tr4n.moviedb.data.entity
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.tr4n.moviedb.domain.mapper.MapAbleToModel
import com.tr4n.moviedb.domain.model.Movie
@Entity(tableName = "movies")
data class MovieEntity(
@PrimaryKey(autoGenerate = false)
... |
app/src/main/java/com/hms/referenceapp/hmsmotioncapturedemo/skeleton/HmsMotionProcessorBase.kt | unknown_repo | kotlin | /*
* Copyright 2022. Huawei Technologies Co., Ltd. All rights reserved.
* <p>
* 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
* <p>
* https://www.apache.org/licenses/LICENSE-2.0
* <p>
... |
example-style-transfer/src/main/java/com/dailystudio/tflite/example/image/styletransfer/StyleTransferPrefs.kt | unknown_repo | kotlin | package com.dailystudio.tflite.example.image.styletransfer
import android.content.Context
import com.dailystudio.devbricksx.preference.AbsPrefs
object StyleTransferPrefs : AbsPrefs() {
const val KEY_SELECTED_STYLE = "selected-style"
const val DEFAULT_SELECTION = "style0.jpg"
override val prefName: Strin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.