file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/com/draw2form/ai/presentation/screens/PublishedFormScreen.kt | unknown_repo | kotlin | package com.draw2form.ai.presentation.screens
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import android... |
app/src/main/java/com/yy/mobile/slidablelayout/DemoForCrossScroll.kt | unknown_repo | kotlin | package com.yy.mobile.slidablelayout
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.yy.mobile.widget.SlidableLayout
import com.yy.mobile.widget.SlidableLayout.Companion.HORIZONTAL
import com.yy.mobile.widget.SlideAdapter
import com.yy... |
app/src/main/java/com/example/camera/MainActivity.kt | unknown_repo | kotlin | package com.example.camera
import android.Manifest
import android.app.Dialog
import android.content.ContentValues
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Build
imp... |
app/src/main/java/rocks/poopjournal/metadataremover/util/extensions/android/architecture/Uris.kt | unknown_repo | kotlin | /*
* MIT License
*
* Copyright (c) 2018 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... |
app/src/main/kotlin/pro/stuermer/dailyexpenses/data/persistence/model/Sharing.kt | unknown_repo | kotlin | package pro.stuermer.dailyexpenses.data.persistence.model
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "sharings")
data class Sharing(
@PrimaryKey(autoGenerate = true) val identifier: Int? = null,
val code: String
)
|
richhtml/src/main/java/com/zx/richhtml/table/TypeRichView.kt | unknown_repo | kotlin | package com.zx.richhtml.table
import android.content.Context
import android.text.Html
import android.view.View
import com.zx.richhtml.R
abstract class TypeRichView(protected open val context: Context, public open val source: String) {
abstract fun getRenderView(
flags: Int,
imageGetter: Html.Imag... |
app/src/main/java/org/davilo/app/model/SettingViewModel.kt | unknown_repo | kotlin | package org.davilo.app.model
import androidx.hilt.lifecycle.ViewModelInject
import androidx.lifecycle.ViewModel
import org.davilo.app.di.prefrence.AppPreferences
class SettingViewModel @ViewModelInject constructor(val appPreferences: AppPreferences) :
ViewModel() {
fun logOut() {
appPreferences.setSt... |
app/src/main/java/com/example/mytrainingpal/model/DateConverter.kt | unknown_repo | kotlin | package com.example.mytrainingpal.model
import androidx.room.TypeConverter
import java.util.*
// Taken from android docs accessed at 2nd Dec 2022
// https://developer.android.com/training/data-storage/room/referencing-data
class DateConverter {
@TypeConverter
fun fromTimestamp(value: Long?): Date? {
r... |
composeApp/src/commonMain/kotlin/io/github/snd_r/komelia/image/coil/KomgaCollectionMapper.kt | unknown_repo | kotlin | package io.github.snd_r.komelia.image.coil
import coil3.map.Mapper
import coil3.request.Options
import io.github.snd_r.komelia.ui.common.images.CollectionThumbnailRequest
import kotlinx.coroutines.flow.StateFlow
class KomgaCollectionMapper(private val serverUrl: StateFlow<String>) : Mapper<CollectionThumbnailRequest,... |
System/core/common/core/ui/designsystem/token.kt | unknown_repo | kotlin | /*
* Copyright (c) 2024 Singularity Indonesia (<EMAIL>)
* You are not allowed to remove the copyright. Unless you have a "free software" licence.
*/
package core.ui.designsystem
import androidx.compose.runtime.staticCompositionLocalOf
/**
* note: please write the system token `as is`, event if it sounds redundant... |
app/src/main/java/com/aoshenfengyu/testamazingtalker/request/RequestInterceptor.kt | unknown_repo | kotlin | package com.aoshenfengyu.testamazingtalker.request
import android.content.Context
import android.util.Log
import okhttp3.Interceptor
import okhttp3.Response
import java.io.IOException
class RequestInterceptor(private val context: Context?) : Interceptor {
companion object {
val TAG = RequestInterceptor::... |
app/src/main/java/com/gamapp/dmplayer/framework/service/BroadCastUtil.kt | unknown_repo | kotlin | package com.gamapp.dmplayer.framework.service
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
fun receiver(
onReceive: (context: Context, intent: Intent) -> Unit,
): BroadcastReceiver {
return object : BroadcastReceiver() {
override fun onReceive(... |
feature/tag/src/commonMain/kotlin/com/taetae98/diary/feature/tag/TagRoute.kt | unknown_repo | kotlin | package com.taetae98.diary.feature.tag
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import com.arkivanov.decompose.extensions.compose.jetbrains.stack.Children
import com.arkivanov.decompose.extensions.compose.jetbrains.stack.animation.fade
import com.arkivanov.decompose.extensions.com... |
solar/src/main/java/com/chiksmedina/solar/boldduotone/money/Wallet.kt | unknown_repo | kotlin | package com.chiksmedina.solar.boldduotone.money
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Co... |
app/src/main/java/com/example/waterfitbit/WaterAdapter.kt | unknown_repo | kotlin | package layout
import android.content.Context
import android.content.Intent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import co... |
app/src/main/java/com/wajahatkarim3/composecodelab/MainActivity.kt | unknown_repo | kotlin | package com.wajahatkarim3.composecodelab
import android.os.Bundle
import android.widget.Space
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.Composable
import androidx.compose.state
import androidx.ui.core.Modifier
import androidx.ui.core.setContent
import androidx.ui.foundation.Text
import an... |
app/src/main/java/com/ndteam/wasteandroidapp/view/landing/LandingViewModel.kt | unknown_repo | kotlin | package com.ndteam.wasteandroidapp.view.landing
import android.util.Log
import com.ndteam.wasteandroidapp.base.BaseViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject
@HiltViewModel
class LandingViewModel @Inject constructor(): BaseViewModel() {
fun downloadData() {
Lo... |
composeApp/src/commonMain/kotlin/com/jetbrains/kmpapp/screens/list/ListScreen.kt | unknown_repo | kotlin | package com.jetbrains.kmpapp.screens.list
import androidx.compose.animation.AnimatedContent
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundat... |
app/src/main/java/com/example/mysimpletodo/TaskItemAdapter.kt | unknown_repo | kotlin | package com.example.mysimpletodo
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
// A bridge that tells the recyclerView how to display the data we feed it
class TaskItemA... |
app/src/main/java/com/example/facedecorater/gallery/GalleryStickerActivity.kt | unknown_repo | kotlin | package com.example.facedecorater.gallery
import android.annotation.SuppressLint
import android.content.Intent
import android.graphics.*
import android.net.Uri
import android.os.Build
import android.os.Bundle
import android.util.DisplayMetrics
import android.view.MenuItem
import android.view.MotionEvent
import android... |
app/src/main/java/com/vasco/app/utils/ImageLoader.kt | unknown_repo | kotlin | package com.vasco.app.utils
import android.content.Context
import com.squareup.picasso.Picasso
object ImageLoader {
fun loadUrl(context: Context): Picasso {
return Picasso.with(context)
}
} |
app/src/main/java/com/vasco/app/utils/ImageLoader.kt | unknown_repo | kotlin | package com.vasco.app.utils
import android.content.Context
import com.squareup.picasso.Picasso
object ImageLoader {
fun loadUrl(context: Context): Picasso {
return Picasso.with(context)
}
} |
audioswitch/src/test/java/com/twilio/audioswitch/android/BluetoothDeviceWrapperImplTest.kt | unknown_repo | kotlin | package com.twilio.audioswitch.android
import android.bluetooth.BluetoothClass
import android.bluetooth.BluetoothClass.Device.AUDIO_VIDEO_HEADPHONES
import android.bluetooth.BluetoothDevice
import org.hamcrest.CoreMatchers.equalTo
import org.hamcrest.CoreMatchers.`is`
import org.hamcrest.CoreMatchers.nullValue
import ... |
common/src/commonMain/kotlin/org/webjars/common/UI.kt | unknown_repo | kotlin | package org.webjars.common
import androidx.compose.runtime.*
import kotlinx.coroutines.launch
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.material3.Button
import androidx.compose.material3.MaterialT... |
vue-android-core/src/main/java/vue/_views.kt | unknown_repo | kotlin | /*
* Copyright 2020 wcaokaze
*
* 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 ... |
app/src/main/java/id/ac/istts/myfit/MenuFeed/SearchUserProfile.kt | unknown_repo | kotlin | package id.ac.istts.myfit.MenuFeed
import android.content.Intent
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.os.Bundle
import android.util.Base64
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
impor... |
app/src/main/java/io/github/jingtuo/android/aa/service/LogService.kt | unknown_repo | kotlin | package io.github.jingtuo.android.aa.service
import android.app.Notification
import android.app.PendingIntent
import android.app.Service
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.content.pm.ServiceInfo
import... |
test_projects/android/app/src/androidTestMultiple/java/com.example.test_app/InstrumentedTest.kt | unknown_repo | kotlin | package com.example.test_app
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.junit.Ignore
import org.junit.Test
import org.junit.runner.RunWith
annotation class Annotation
@RunWith(AndroidJUnit4::class)
class InstrumentedTest : BaseInstrumentedTest() {
@Test
@Annotation
fun test0() = tes... |
app/src/main/java/com/oratakashi/covid19/ui/recovered/RecoveredViewModel.kt | unknown_repo | kotlin | package com.oratakashi.covid19.ui.recovered
import android.database.Cursor
import android.widget.EditText
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.jakewharton.rxbinding3.widget.TextViewTextChangeEvent
import com.jakewharton.rxbinding3.widget.textChangeEvents
import com.o... |
mage/src/main/java/mil/nga/giat/mage/data/converters/JsonTypeConverter.kt | unknown_repo | kotlin | package mil.nga.giat.mage.data.converters
import androidx.room.TypeConverter
import com.google.gson.Gson
import com.google.gson.JsonElement
import com.google.gson.JsonObject
class JsonTypeConverter {
@TypeConverter
fun fromString(value: String?): JsonElement? {
return value?.let {
Gson().... |
eggs/Q/src/com/android_q/egg/AndroidQEasterEgg.kt | unknown_repo | kotlin | package com.android_q.egg
import android.app.Activity
import android.os.Build
import com.dede.basic.provider.BaseEasterEgg
import com.dede.basic.provider.EasterEgg
import com.dede.basic.provider.EasterEggProvider
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.Sin... |
widget/src/main/kotlin/com/tasomaniac/devwidget/widget/click/ClickHandlingNavigation.kt | unknown_repo | kotlin | package com.tasomaniac.devwidget.widget.click
import androidx.appcompat.app.AlertDialog
import androidx.fragment.app.FragmentActivity
import com.tasomaniac.devwidget.data.Action
import com.tasomaniac.devwidget.navigation.FinishCommand
import com.tasomaniac.devwidget.navigation.Navigator
import com.tasomaniac.devwidget... |
app/src/main/java/com/jiahaoliuliu/chutoro/ui/addtransaction/AddTransactionActivity.kt | unknown_repo | kotlin | package com.jiahaoliuliu.chutoro.ui.addtransaction
import android.app.DatePickerDialog
import android.app.TimePickerDialog
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity;
import android.view.MenuItem
import android.view.View
import android.widget.*
import com.jiahaoliuliu.chutoro.R
import com... |
cachesmith/src/androidTest/java/com/cachesmith/library/kotlin/LibraryInstanceKotlinTest.kt | unknown_repo | kotlin | package com.cachesmith.library.kotlin
import android.content.Context
import android.support.test.InstrumentationRegistry
import android.support.test.runner.AndroidJUnit4
import com.cachesmith.library.CacheSmith
import org.junit.Assert.*
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
@Ru... |
mobile/src/main/java/com/raycoarana/plaayer/core/di/CarFragmentModule.kt | unknown_repo | kotlin | package com.raycoarana.plaayer.core.di
import android.support.v4.app.Fragment
import dagger.Module
@Module
class CarFragmentModule constructor(private val fragment: Fragment) {
} |
app/src/main/java/cf/android666/wanandroid/adapter/DiscoverProjectsAdapter.kt | unknown_repo | kotlin | package cf.android666.wanandroid.adapter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import cf.android666.wanandroid.R
import cf.android666.wanandroid.bean.BaseArticlesBean
import cf.android666.wanandroid.fragment.DiscoverPr... |
app/src/main/java/com/example/playlistmaker/data/db/dao/PlaylistsDao.kt | unknown_repo | kotlin | package com.example.playlistmaker.data.db.dao
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import androidx.room.Update
import com.example.playlistmaker.data.db.PlaylistEntity
import com.example.playlistmaker.data.db.... |
tichu-score/src/main/kotlin/com/onegravity/tichucount/viewmodel/MatchesViewModel.kt | unknown_repo | kotlin | package com.onegravity.tichucount.viewmodel
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.onegravity.tichucount.db.MatchRepository
import com.onegravity.tichucount.db.MatchWithGames
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.MutableSharedFlow
import kot... |
sample/src/main/java/com/ethanhua/skeleton/sample/adapter/SimpleRcvViewHolder.kt | unknown_repo | kotlin | package com.ethanhua.skeleton.sample.adapter
import android.view.View
import androidx.recyclerview.widget.RecyclerView.ViewHolder
class SimpleRcvViewHolder(itemView: View) : ViewHolder(itemView) |
appcues/src/main/java/com/appcues/analytics/AutoPropertyDecorator.kt | unknown_repo | kotlin | package com.appcues.analytics
import android.Manifest
import android.os.Build.VERSION
import android.os.Build.VERSION_CODES
import androidx.core.app.ActivityCompat
import com.appcues.AppcuesConfig
import com.appcues.BuildConfig
import com.appcues.R
import com.appcues.SessionMonitor
import com.appcues.Storage
import co... |
app/src/main/java/com/eroom/erooja/feature/login/LoginActivity.kt | unknown_repo | kotlin | package com.eroom.erooja.feature.login
import android.content.Intent
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import com.eroom.domain.globalconst.Consts
import com.eroom.erooja.R
import com.eroom.erooja.databinding.Act... |
frontend/app/src/jsMain/kotlin/di/AppModule.kt | unknown_repo | kotlin | package di
import StatusWatcher
import TabViewModel
import androidx.compose.runtime.Composable
import com.mindovercnc.data.linuxcnc.remote.LinuxcncRemoteDataModule
import com.mindovercnc.dispatchers.DispatchersModule
import com.mindovercnc.linuxcnc.CommonDataModule
import com.mindovercnc.linuxcnc.tools.remote.di.Tools... |
app/src/main/java/com/example/share/share/ShareActivity.kt | unknown_repo | kotlin | package com.example.share.share
import android.Manifest
import android.app.Activity
import android.content.Intent
import android.content.pm.PackageManager
import android.graphics.BitmapFactory
import android.net.Uri
import android.os.Bundle
import android.support.v4.app.ActivityCompat
import android.support.v4.content... |
doodlelib/src/main/java/com/rycbar/doodle/DoodleView.kt | unknown_repo | kotlin | package com.rycbar.doodle
import android.content.Context
import android.graphics.*
import android.graphics.drawable.BitmapDrawable
import android.util.AttributeSet
import android.view.MotionEvent
import android.view.View
import androidx.annotation.MainThread
import kotlinx.coroutines.Dispatchers
import kotlinx.corouti... |
app/src/main/java/com/example/quizapp/ResultActivity.kt | unknown_repo | kotlin | package com.example.quizapp
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import android.widget.TextView
class ResultActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(sa... |
androidApp/src/main/java/com/fieldontrack/kmm/android/composables/navigation/templates/OnePane.kt | unknown_repo | kotlin | package com.fieldontrack.kmm.android.composables.navigation.templates
import androidx.compose.material.Scaffold
import androidx.compose.runtime.Composable
import androidx.compose.runtime.saveable.SaveableStateHolder
import com.fieldontrack.kmm.android.composables.navigation.ScreenPicker
import com.fieldontrack.kmm.and... |
app/src/main/java/com/nutrition/balanceme/presentation/features/add/Items.kt | unknown_repo | kotlin | package com.nutrition.balanceme.presentation.features.add
import androidx.compose.runtime.*
import com.nutrition.balanceme.presentation.components.TextDropdown
import com.nutrition.balanceme.domain.models.Item
@Composable
fun Items(viewmodel: AddViewmodel, type: String, onClick: (Item) -> Unit) {
var items by re... |
miuix/src/commonMain/kotlin/top/yukonga/miuix/kmp/theme/Colors.kt | unknown_repo | kotlin | package top.yukonga.miuix.kmp.theme
import androidx.compose.runtime.Stable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.compose.runtime.staticCompositionLocalOf
import androidx.compose.runtime.structuralEqualityPolicy
i... |
app/src/main/java/net/oldbigbuddha/qview/ui/main/SearchArticle/SearchArticleFragment.kt | unknown_repo | kotlin | package net.oldbigbuddha.qview.ui.main.Profile
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import net.oldbigbuddha.qview.R
// TODO: Rename parameter arguments, choose names that match
// the fragment initiali... |
ui/src/main/kotlin/com/aptopayments/sdk/features/loadfunds/add/AddFundsViewModel.kt | unknown_repo | kotlin | package com.aptopayments.sdk.features.loadfunds.add
import androidx.lifecycle.*
import com.aptopayments.mobile.data.card.FundingLimits
import com.aptopayments.mobile.data.card.Money
import com.aptopayments.mobile.data.payment.Payment
import com.aptopayments.mobile.data.payment.PaymentStatus
import com.aptopayments.mob... |
app/src/main/java/com/minosai/oneclick/util/Extentions.kt | unknown_repo | kotlin | package com.minosai.oneclick.util
import android.app.Activity
import android.content.Context
import android.content.res.ColorStateList
import android.net.wifi.WifiManager
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.inputmethod.InputMethodManager
import ... |
app/src/main/java/com/g/pocketmal/ui/presenter/EditDetailsPresenter.kt | unknown_repo | kotlin | package com.g.pocketmal.ui.presenter
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleObserver
import androidx.lifecycle.OnLifecycleEvent
import com.g.pocketmal.R
import com.g.pocketmal.data.api.UpdateParams
import com.g.pocketmal.data.database.model.DbListRecord
import com.g.pocketmal.data.util.... |
fluentui_icons/src/main/java/com/microsoft/fluentui/icons/avataricons/presence/blocked/__Medium.kt | unknown_repo | kotlin | package com.microsoft.fluentui.icons.avataricons.presence.blocked
import androidx.compose.ui.graphics.vector.ImageVector
import com.microsoft.fluentui.icons.avataricons.presence.BlockedGroup
import com.microsoft.fluentui.icons.avataricons.presence.blocked.medium.Dark
import com.microsoft.fluentui.icons.avataricons.pre... |
app/src/main/java/com/chub/officemanager/data/entity/ItemEntity.kt | unknown_repo | kotlin | package com.chub.officemanager.data.entity
import androidx.room.Entity
import androidx.room.ForeignKey
import androidx.room.Index
import androidx.room.PrimaryKey
@Entity(
indices = [
Index(value = ["itemId"]),
Index(value = ["typeId"])
],
foreignKeys = [
ForeignKey(
ent... |
core/common/src/test/kotlin/com/azizutku/movie/core/common/fakes/FakeLoadingOwnerViewModel.kt | unknown_repo | kotlin | package com.azizutku.movie.core.common.fakes
import androidx.lifecycle.ViewModel
import com.azizutku.movie.core.common.base.LoadingOwner
import com.azizutku.movie.core.common.base.combineForLoading
import com.azizutku.movie.core.common.vo.DataState
import kotlinx.coroutines.flow.MutableStateFlow
class FakeLoadingOwne... |
feature_view_recyclerview_adapter_sample/src/main/java/com/mercandalli/android/apps/view_recyclerview_adapter_sample/cat_row_view/CatRowViewAdapterDelegate.kt | unknown_repo | kotlin | package com.mercandalli.android.apps.view_recyclerview_adapter_sample.cat_row_view
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.mercandalli.android.sdk.view_recyclerview_adapter.AbsListItemAdapterDelegate
class CatRowViewAdapterDelegate :
AbsListItemAdapterDelegate<Any... |
src/main/kotlin/Main.kt | unknown_repo | kotlin | import client.QueueClient
import com.sksamuel.hoplite.ConfigLoader
import commands.art_contest.*
import commands.art_contest.cancel.cancelCommand
import commands.chapters.listChaptersCommand
import commands.chapters.rollbackChapterCommand
import commands.make.makeImageCommand
import commands.social.profileCommand
impor... |
app/src/main/java/com/teamwiney/winey/WineyNavHost.kt | unknown_repo | kotlin | package com.teamwiney.winey
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.material.ModalBottomSheetLayout
import androidx.compose.material.ModalBottomSheetValue
import androi... |
core/testing/src/main/java/io/github/droidkaigi/confsched/testing/data/TestDataStoreModule.kt | unknown_repo | kotlin | package io.github.droidkaigi.confsched.testing.data
import android.content.Context
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import dagger.Module
import dagger.Provides
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.hilt.components.Singleton... |
feature/src/main/kotlin/de/scout/fireplace/feature/inject/ApplicationModule.kt | unknown_repo | kotlin | package de.scout.fireplace.feature.inject
import android.app.Application
import android.preference.PreferenceManager
import dagger.Module
import dagger.Provides
import de.scout.fireplace.feature.network.SchedulingStrategy
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.schedulers.Scheduler... |
src/jsMain/kotlin/components/routes/Races.kt | unknown_repo | kotlin | package components.routes
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.runtime.remember
import com.mxmariner.regatta.data.Race
import com.mxmariner.regatta.data.RaceSchedule
import components.*
import org.jetb... |
flowble/src/main/java/com/arstagaev/flowble/gentelman_kit/Logs.kt | unknown_repo | kotlin | package com.arstagaev.flowble.gentelman_kit
import android.content.Context
import android.util.Log
import android.widget.Toast
import kotlin.reflect.KClass
fun logInfo(msg: String) = Log.i("~~info",msg ?:"empty")
fun logAction(msg: String) = Log.i("~~action",msg ?:"empty")
fun logWarning(msg: String) = Log.w("~~war... |
PersonApp/app/src/main/java/com/example/personapp/viewmodel/MainPageViewModel.kt | unknown_repo | kotlin | package com.example.personapp.viewmodel
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.example.personapp.entity.Person
import com.example.personapp.repo.PersonDaoRepository
class MainPageViewModel(appli... |
app/src/main/java/ie/otormaigh/lazyotp/di/PersistenceModule.kt | unknown_repo | kotlin | package ie.otormaigh.lazyotp.di
import android.content.Context
import app.cash.sqldelight.db.SqlDriver
import app.cash.sqldelight.driver.android.AndroidSqliteDriver
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.hilt.compo... |
camera/camera-core/src/test/java/androidx/camera/core/internal/compat/workaround/InvalidJpegDataParserTest.kt | unknown_repo | kotlin | /*
* Copyright 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 applica... |
app/src/main/java/org/nahoft/stencil/Stencil.kt | unknown_repo | kotlin | package org.nahoft.stencil
import android.content.Context
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.Color
import android.net.Uri
import android.widget.Toast
import androidx.core.graphics.get
import kotlin.math.roundToInt
import kotlin.math.sqrt
class Stencil {
pr... |
feature/favourite/src/main/java/st/slex/csplashscreen/feature/favourite/ui/store/FavouriteStore.kt | unknown_repo | kotlin | package st.slex.csplashscreen.feature.favourite.ui.store
import androidx.compose.runtime.Stable
import androidx.paging.PagingData
import kotlinx.coroutines.flow.StateFlow
import st.slex.csplashscreen.core.photos.ui.model.PhotoModel
import st.slex.csplashscreen.core.ui.mvi.Store
import st.slex.csplashscreen.feature.fav... |
android/app-newm/src/main/java/io/newm/screens/home/categories/Categories.kt | unknown_repo | kotlin | package io.newm.screens.home.categories
import androidx.compose.foundation.layout.padding
import androidx.compose.material.ScrollableTabRow
import androidx.compose.material.Tab
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.u... |
data/src/main/java/uk/co/joepalmer/data/repo/source/local/db/EntityTypeConverters.kt | unknown_repo | kotlin | package uk.co.joepalmer.data.repo.source.local.db
import androidx.room.TypeConverter
import uk.co.joepalmer.core.type.Address
import uk.co.joepalmer.core.type.Company
import uk.co.joepalmer.core.type.Geo
import uk.co.joepalmer.core.type.User
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
/**
* ... |
features/feature-detail/src/main/java/com/staygrateful/feature_detail/presentation/viewmodel/GameDetailViewModel.kt | unknown_repo | kotlin | package com.staygrateful.feature_detail.presentation.viewmodel
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.staygrateful.core.extension.toFavoriteEntity
import com.staygrateful.core.helper.INetworkMonitor
import com.staygrateful.core.network.local.entity.GameEntity
import com... |
module-demo/src/main/java/com/rui/demo/data/source/local/db/PersonDao.kt | unknown_repo | kotlin | package com.rui.demo.data.source.local.db
import androidx.lifecycle.LiveData
import androidx.room.*
import com.rui.demo.data.source.local.db.PersonDao
import com.rui.demo.data.source.local.db.PersonDatabase
import kotlin.jvm.Synchronized
@Dao // Database access object
interface PersonDao {
@Insert
fun insertW... |
testapp/src/main/java/ovh/plrapps/mapcompose/testapp/features/layerswitch/LayerSwitchViewModel.kt | unknown_repo | kotlin | package ovh.plrapps.mapcompose.testapp.features.layerswitch
import android.app.Application
import android.content.Context
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines... |
app/src/main/java/com/example/neoticket/view/main/theaters/ConfirmTheaterTicketSeatsFragment.kt | unknown_repo | kotlin | package com.example.neoticket.view.main.payment
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.fragment.app.viewModels
import androidx.lifecycle.Observer
import androidx.navigation.fragment.findNavController... |
frontend/web-compose-ext/src/jsMain/kotlin/com/varabyte/kobweb/compose/foundation/layout/Spacer.kt | unknown_repo | kotlin | package com.varabyte.kobweb.compose.foundation.layout
import androidx.compose.runtime.Composable
import org.jetbrains.compose.web.css.flexGrow
import org.jetbrains.compose.web.dom.Div
/**
* An element which grows to consume all remaining space in a [Row] or [Column].
*/
@Composable
fun Spacer() {
Div(
a... |
platform/basic/http/src/main/java/com/android/http/interceptor/AuthInterceptor.kt | unknown_repo | kotlin | package com.android.http.interceptor
import android.text.TextUtils
import com.android.http.Http
import com.android.utils.DateUtil
import com.android.utils.LogUtil
import okhttp3.Interceptor
import okhttp3.Response
/**
* created by jiangshide on 2019-07-31.
* email:<EMAIL>
*/
class AuthInterceptor : Interceptor {
... |
cams/src/main/java/com/linwei/cams/http/repository/DataRepository.kt | unknown_repo | kotlin | package com.linwei.cams.http.repository
import android.app.Application
import com.linwei.cams.di.module.ClientModule
import com.linwei.cams.http.RetrofitServiceProxyHandler
import com.linwei.cams.http.cache.Cache
import com.linwei.cams.http.cache.CacheType
import io.rx_cache2.internal.RxCache
import retrofit2.Retrofit... |
app/src/main/java/com/limxtop/research/graphic/GraphicActivity.kt | unknown_repo | kotlin | package com.limxtop.research.graphic
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentTransaction
import com.limxtop.research.R
class GraphicActivity : AppCompatActivity() {
override fun onCreate(savedInstanc... |
app/src/main/java/com/mapswithme/maps/auth/TargetFragmentCallback.kt | unknown_repo | kotlin | package com.mapswithme.maps.auth
import android.content.Intent
interface TargetFragmentCallback {
fun onTargetFragmentResult(resultCode: Int, data: Intent?)
val isTargetAdded: Boolean
} |
app/src/main/kotlin/com/simplemobiletools/gallery/activities/ViewPagerActivity.kt | unknown_repo | kotlin | package com.simplemobiletools.gallery.activities
import android.app.Activity
import android.content.Intent
import android.content.res.Configuration
import android.database.Cursor
import android.net.Uri
import android.os.Bundle
import android.provider.MediaStore
import android.support.v4.view.ViewPager
import android.v... |
library/src/main/kotlin/com/coolerfall/download/OkHttpDownloader.kt | unknown_repo | kotlin | package com.coolerfall.download
import okhttp3.OkHttpClient
import okhttp3.Response
import java.util.concurrent.atomic.AtomicInteger
import kotlin.Throws
import java.io.IOException
import android.net.Uri
import okhttp3.Request
import java.io.InputStream
import java.util.concurrent.TimeUnit.MILLISECONDS
/**
* A downl... |
app/src/main/java/com/losers/news/di/module/AppModule.kt | unknown_repo | kotlin | package com.losers.news.di.module
import android.app.Application
import androidx.room.Room
import android.content.Context
import com.losers.news.BuildConfig
import com.losers.news.data.network.ApiHeader
import com.losers.news.data.network.ApiHelper
import com.losers.news.data.network.AppApiHelper
import com.losers.new... |
app/src/main/java/com/takusemba/multisnaprecyclerviewsample/HorizontalActivity.kt | unknown_repo | kotlin | package com.takusemba.multisnaprecyclerviewsample
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.LinearLayoutManager
import com.takusemba.multisnaprecyclerview.MultiSnapRecyclerView
class HorizontalActivity : AppCompatActivity() {
companion object {
pr... |
app/src/main/java/ru/tech/imageresizershrinker/presentation/draw_screen/components/LineWidthSelector.kt | unknown_repo | kotlin | package ru.tech.imageresizershrinker.presentation.draw_screen.components
import androidx.compose.animation.animateContentSize
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layo... |
sample/androidapp/src/main/kotlin/net/subroh0508/otonashi/androidapp/ui/fragment/SearchFragment.kt | unknown_repo | kotlin | package net.subroh0508.otonashi.androidapp.ui.fragment
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Job
im... |
presentation/homeTab/src/main/kotlin/wskim/aos/hometab/feature/homeInsert/composables/HomeWriteScreen.kt | unknown_repo | kotlin | package wskim.aos.hometab.feature.homeInsert.composables
import android.content.Context
import android.widget.Toast
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
import android... |
app/src/main/java/com/pr0gramm/app/ui/fragments/FavedCommentFragment.kt | unknown_repo | kotlin | package com.pr0gramm.app.ui.fragments
import androidx.lifecycle.lifecycleScope
import com.pr0gramm.app.R
import com.pr0gramm.app.Settings
import com.pr0gramm.app.api.pr0gramm.Message
import com.pr0gramm.app.services.FavedCommentService
import com.pr0gramm.app.services.UserService
import com.pr0gramm.app.ui.MessageAdap... |
android/app/src/main/java/com/fabirt/roka/features/splash/presentation/SplashFragment.kt | unknown_repo | kotlin | package com.fabirt.roka.features.splash.presentation
import android.os.Build
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.activityViewModels
import androidx.lifecycle.lifecycleScope
... |
app/src/main/java/com/heyanle/easybangumi4/ui/cartoon_play/view_model/CartoonPlayingViewModel.kt | unknown_repo | kotlin | package com.heyanle.easybangumi4.ui.cartoon_play.view_model
import android.content.Intent
import android.graphics.Bitmap
import android.graphics.SurfaceTexture
import android.view.TextureView
import androidx.annotation.OptIn
import androidx.compose.runtime.mutableStateOf
import androidx.core.content.FileProvider
impor... |
test-compose/src/main/java/com/rakuten/tech/mobile/test_compose/ui/Screen2.kt | unknown_repo | kotlin | package com.rakuten.tech.mobile.test_compose.ui
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.c... |
app/src/main/java/fr/atticap/bookworm/service/BookService.kt | unknown_repo | kotlin | package fr.atticap.bookworm.service
import android.util.Log
import fr.atticap.bookworm.model.Bookshelf
import fr.atticap.bookworm.model.BookshelfContent
import fr.atticap.bookworm.model.Volume
import fr.atticap.bookworm.persistence.dao.BookDao
import kotlin.uuid.ExperimentalUuidApi
@OptIn(ExperimentalUuidApi::class)
... |
app/src/main/java/com/sqz/writingboard/tile/QSTileService.kt | unknown_repo | kotlin | package com.sqz.writingboard.tile
import android.annotation.SuppressLint
import android.app.PendingIntent
import android.app.StatusBarManager
import android.content.ComponentName
import android.content.Intent
import android.graphics.drawable.Icon
import android.os.Build
import android.service.quicksettings.Tile
import... |
presentation/src/main/java/com/spiderbiggen/manga/presentation/ui/images/ImagesScreenState.kt | unknown_repo | kotlin | package com.spiderbiggen.manga.presentation.ui.images
import androidx.compose.runtime.Immutable
import com.spiderbiggen.manga.domain.model.SurroundingChapters
import kotlinx.collections.immutable.ImmutableList
@Immutable
sealed interface ImagesScreenState {
@Immutable
data object Loading : ImagesScreenState
... |
android/app/src/main/java/com/algorand/android/customviews/EmptyListView.kt | unknown_repo | kotlin | /*
* Copyright 2019 Algorand, 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 in writing, s... |
desk360/src/main/java/com/teknasyon/desk360/helper/Desk360SDK.kt | unknown_repo | kotlin | package com.teknasyon.desk360.helper
import android.content.Context
import android.content.Intent
import android.os.Build
import android.telephony.TelephonyManager
import com.teknasyon.desk360.connection.BaseCallback
import com.teknasyon.desk360.connection.Desk360RetrofitFactory
import com.teknasyon.desk360.model.Desk... |
desk360/src/main/java/com/teknasyon/desk360/helper/Desk360SDK.kt | unknown_repo | kotlin | package com.teknasyon.desk360.helper
import android.content.Context
import android.content.Intent
import android.os.Build
import android.telephony.TelephonyManager
import com.teknasyon.desk360.connection.BaseCallback
import com.teknasyon.desk360.connection.Desk360RetrofitFactory
import com.teknasyon.desk360.model.Desk... |
android-kotlin/idea-android/testData/android/intention/addActivityToManifest/local.kt | unknown_repo | kotlin | // INTENTION_CLASS: org.jetbrains.kotlin.android.intention.AddActivityToManifest
// NOT_AVAILABLE
package com.myapp
import android.app.Activity
fun test() {
class <caret>MyActivity : Activity()
} |
app/src/main/java/com/peterle/pedro/starwars/di/ViewModelFactory.kt | unknown_repo | kotlin | package com.peterle.pedro.starwars.di
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.peterle.pedro.domain.interactors.GetAllFilmsData
import com.peterle.pedro.domain.interactors.GetFilmDetails
import com.peterle.pedro.presentation.DetailsViewModel
import com.peterle.pedro.pr... |
moreapps/src/main/java/io/github/raghavsatyadev/moreapps/model/MoreAppsDetails.kt | unknown_repo | kotlin | package io.github.raghavsatyadev.moreapps.model
import android.os.Parcelable
import androidx.annotation.Keep
import com.google.gson.annotations.SerializedName
import kotlinx.parcelize.Parcelize
@Keep
@Parcelize
class MoreAppsDetails(
@SerializedName("image_link")
var imageLink: String,
@SerializedName("... |
app/src/main/java/com/retailmotion/android/luastimer/LuasApplication.kt | unknown_repo | kotlin | package com.retailmotion.android.luastimer
import android.app.Application
import com.retailmotion.android.luastimer.di.component.ApplicationComponent
import com.retailmotion.android.luastimer.di.component.DaggerApplicationComponent
import com.retailmotion.android.luastimer.di.module.ApplicationModule
class LuasApplic... |
android-app/src/main/java/com/vsevolodganin/clicktrack/soundlibrary/DocumentMetadataHelperImpl.kt | unknown_repo | kotlin | package com.vsevolodganin.clicktrack.soundlibrary
import android.content.ContentResolver
import android.net.Uri
import android.provider.OpenableColumns
import me.tatarka.inject.annotations.Inject
import timber.log.Timber
@Inject
class DocumentMetadataHelperImpl(private val contentResolver: ContentResolver) : Document... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.