file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/com/masterplus/trdictionary/features/settings/presentation/components/SelectableText.kt | unknown_repo | kotlin | package com.masterplus.mesnevi.features.settings.presentation.components
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxWidth
import andro... |
app/src/main/java/com/github/studydistractor/sdp/distractionStat/DistractionStatViewModel.kt | unknown_repo | kotlin | package com.github.studydistractor.sdp.distractionStat
import androidx.lifecycle.ViewModel
import com.github.studydistractor.sdp.ui.state.DistractionStatUiState
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.... |
Jubgging/app/src/main/java/com/tobeyoung/jubgging/model/PloggingModel.kt | unknown_repo | kotlin | package com.tobeyoung.jubgging.model
import android.os.Parcel
import android.os.Parcelable
data class PloggingModel (
var latitude:Double = 0.0,
var longitude:Double =0.0,
var time:String = ""
): Parcelable {
constructor(parcel: Parcel) : this(
parcel.readDouble(),
parcel.readDouble(),... |
core/core-ui/src/main/kotlin/com/maximillianleonov/musicmax/core/ui/mapper/AlbumMapper.kt | unknown_repo | kotlin | /*
* Copyright 2022 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
app/src/main/java/volovyk/guerrillamail/ui/list/EmailListFragment.kt | unknown_repo | kotlin | package volovyk.guerrillamail.ui.list
import android.os.Bundle
import android.view.View
import androidx.fragment.app.viewModels
import androidx.navigation.fragment.findNavController
import androidx.recyclerview.widget.LinearLayoutManager
import dagger.hilt.android.AndroidEntryPoint
import timber.log.Timber
import volo... |
feature-account-impl/src/main/java/jp/co/soramitsu/account/impl/presentation/exporting/json/confirm/JsonExportTypeSheet.kt | unknown_repo | kotlin | package jp.co.soramitsu.account.impl.presentation.exporting.json.confirm
import android.content.Context
import android.os.Bundle
import jp.co.soramitsu.common.R
import jp.co.soramitsu.common.view.bottomSheet.list.fixed.FixedListBottomSheet
import jp.co.soramitsu.common.view.bottomSheet.list.fixed.textItem
class JsonE... |
app/src/main/java/hu/kristof/nagy/hikebookclient/viewModel/hike/HikePlanDateViewModel.kt | unknown_repo | kotlin | package hu.kristof.nagy.hikebookclient.viewModel.hike
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import hu.kristof.nagy.hikebookclient.data.repository.IWeath... |
android/src/main/kotlin/com/doom/flutter_present_video_player/VideoViewActivity.kt | unknown_repo | kotlin | package com.doom.flutter_present_video_player
import android.app.Activity
import android.net.Uri
import android.os.Bundle
import android.widget.MediaController
import android.widget.VideoView
class VideoViewActivity : Activity() {
companion object {
const val URL_KEY = "url"
}
private lateinit v... |
app/src/main/java/View/MissionActivity.kt | unknown_repo | kotlin | package View
import Controller.MissionListAdapter
import Model.Intel
import Model.Mission
import Model.User
import android.content.ActivityNotFoundException
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.ListView
import android.widget.TextV... |
generated/src/main/kotlin/com/laidpack/sourcerer/generated/ViewGroupLayoutParamsFactory.kt | unknown_repo | kotlin | package com.laidpack.sourcerer.generated
import android.content.Context
import android.view.ViewGroup
import com.laidpack.generator.api.LayoutParamsElement
import com.laidpack.sourcerer.services.api.BaseLayoutParamsFactory
import java.lang.Class
import kotlin.String
@LayoutParamsElement(
elementType = ViewGro... |
kit/src/androidTest/java/healthstack/kit/task/activity/predefined/RangeOfMotionActivityTaskTest.kt | unknown_repo | kotlin | package healthstack.kit.task.activity.predefined
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.test.junit4.AndroidComposeTestRule
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.compose.ui.test.onNodeWithText
import androidx.compose.ui.test.performClick
import hea... |
app/src/main/java/com/akshay/newsapp/model/NewsArticles.kt | unknown_repo | kotlin | package com.akshay.newsapp.model
import android.arch.persistence.room.Entity
import android.arch.persistence.room.PrimaryKey
import com.google.gson.annotations.SerializedName
/**
* News Article Model describing the article details
* fetched from news source.
*
* @author <NAME>
* @since 5/23/2017.
*/
@Entity(tab... |
app/src/main/java/ru/tech/imageresizershrinker/presentation/image_stitching_screen/components/ImageOrientationToggle.kt | unknown_repo | kotlin | package ru.tech.imageresizershrinker.presentation.image_stitching_screen.components
import androidx.compose.animation.AnimatedContent
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.l... |
app/src/main/java/com/kumcompany/uptime/data/paging_source/SearchWatchesSource.kt | unknown_repo | kotlin | package com.kumcompany.uptime.data.paging_source
import androidx.paging.PagingSource
import androidx.paging.PagingState
import com.kumcompany.uptime.data.remote.WatchApi
import com.kumcompany.uptime.domain.model.Watch
class SearchWatchesSource(
private val watchApi: WatchApi,
private val query: String
): Pagi... |
detail/src/main/kotlin/io/goooler/demoapp/detail/ui/RepoDetailActivity.kt | unknown_repo | kotlin | package io.goooler.demoapp.detail.ui
import android.os.Bundle
import androidx.activity.compose.setContent
import androidx.activity.viewModels
import androidx.compose.runtime.getValue
import androidx.compose.runtime.livedata.observeAsState
import io.goooler.demoapp.base.core.BaseActivity
import io.goooler.demoapp.detai... |
flashbar/src/main/java/com/andrognito/flashbar/view/FbButton.kt | unknown_repo | kotlin | package com.andrognito.flashbar.view
import android.content.Context
import android.util.AttributeSet
import androidx.appcompat.widget.AppCompatTextView
import com.andrognito.flashbar.R
internal class FbButton : AppCompatTextView {
constructor(context: Context) : this(context, null)
constructor(context: Cont... |
features/task/impl/src/main/java/wottrich/github/io/smartchecklist/presentation/ui/checklistinformationheader/CompletableCountBottomSheetScreen.kt | unknown_repo | kotlin | package wottrich.github.io.smartchecklist.presentation.ui.checklistinformationheader
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.fou... |
wgpu4k/src/jvmMain/kotlin/io.ygdrasil.wgpu/Adapter.jvm.kt | unknown_repo | kotlin | package io.ygdrasil.wgpu
import io.ygdrasil.wgpu.internal.jvm.confined
import io.ygdrasil.wgpu.internal.jvm.panama.WGPURequestDeviceCallback
import io.ygdrasil.wgpu.internal.jvm.panama.wgpu_h
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.update
import java.lang.foreign.MemorySegment
a... |
app/src/main/java/de/msdevs/einschlafhilfe/fragments/filter/FilterFragment.kt | unknown_repo | kotlin | package de.msdevs.einschlafhilfe.fragments.filter
import android.database.sqlite.SQLiteDatabase
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ProgressBar
import androidx.appcompat.app.AppCompatActivity.MO... |
core/designsystem/src/commonMain/kotlin/com/cdcoding/core/designsystem/components/WalletDetailHeaderActions.kt | unknown_repo | kotlin | package com.cdcoding.core.designsystem.components
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.f... |
app/src/main/java/com/holygunner/discover_meals/models/Ingredient.kt | unknown_repo | kotlin | package com.holygunner.discover_meals.models
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import io.realm.RealmList
import io.realm.RealmObject
import io.realm.annotations.PrimaryKey
import kotlinx.android.parcel.Parcelize
@Parcelize
open class Ingredient (
@PrimaryKey
@Seria... |
app/src/main/java/com/joseferreyra/tabatimer/data/HistoricalItem.kt | unknown_repo | kotlin | package com.joseferreyra.tabatimer.data
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
@Parcelize
data class HistoricalItem (val active: Int, val rest: Int, val laps: Int) : Parcelable
fun HistoricalItem.toStoredValue () = "$active,$rest,$laps"
fun String.toHistoricalItem () =
this.split("... |
presentation/src/main/java/com/iamsteve/android/util/pager/OnPageChangedSubject.kt | unknown_repo | kotlin | package com.iamsteve.android.util.pager
import androidx.viewpager2.widget.ViewPager2
import io.reactivex.rxjava3.subjects.Subject
class OnPageChangedSubject(private val subject: Subject<Int>) : ViewPager2.OnPageChangeCallback() {
override fun onPageSelected(position: Int) {
subject.onNext(position)
}
... |
app/src/main/java/com/zaki/pintask/domain/repository/TaskRepository.kt | unknown_repo | kotlin | package com.zaki.pintask.domain.repository
import androidx.lifecycle.LiveData
import com.zaki.pintask.domain.model.Task
/**
* Created by Zaki on 05-10-2023.
*/
interface TaskRepository {
suspend fun insertTask(task: Task)
suspend fun updateTask(task: Task)
suspend fun deleteTask(task: Task)
fun ... |
sdk/src/main/java/com/eko/sdk/EkoDefaultCover.kt | unknown_repo | kotlin | package com.eko.sdk
import android.content.Context
import android.graphics.Color
import android.graphics.PorterDuff
import android.util.TypedValue
import android.view.Gravity
import android.widget.FrameLayout
import android.widget.ProgressBar
/**
* The default cover to be shown if not replaced in the EkoOptions.
* ... |
ui/src/main/java/com/redvelvet/ui/theme/Colors.kt | unknown_repo | kotlin | package com.redvelvet.ui.theme
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.ReadOnlyComposable
import androidx.compose.runtime.compositionLocalOf
import androidx.compose.ui.graphics.Color
data class Colors(
val brand100: Color = Purple1... |
app/src/main/java/id/zelory/cekrek/sample/MainActivity.kt | unknown_repo | kotlin | package id.zelory.cekrek.sample
import android.graphics.BitmapFactory
import android.os.Bundle
import android.os.Environment
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import id.zelory.cekrek.extension.cekrekToBitmap
import id.zel... |
Kosalaam/app/src/main/java/com/kosalaamInc/kosalaam/feature/main/prayerRoomFragment/ImageRvAdapter.kt | unknown_repo | kotlin | package com.kosalaamInc.kosalaam.feature.main.myPageFragment
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.Linear... |
src/jvmMain/kotlin/Main.kt | unknown_repo | kotlin | import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compo... |
app/src/main/java/com/imn/iicnma/utils/ContextUtils.kt | unknown_repo | kotlin | package com.imn.iicnma.utils
import android.content.Context
import android.content.res.Configuration
import android.net.ConnectivityManager
import android.net.NetworkCapabilities
import android.os.Build
import android.widget.Toast
import androidx.annotation.ColorRes
import androidx.core.content.ContextCompat
import an... |
app/src/main/java/com/example/masearch/view/recent/RecentSearchView.kt | unknown_repo | kotlin | package com.example.masearch.view.recent
import android.util.Log
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.fou... |
android/src/main/kotlin/app/web/drjackycv/tmdbmultiplatform/presentation/extension/ViewExtensions.kt | unknown_repo | kotlin | package app.web.drjackycv.omdbmultiplatform.presentation.extension
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import androidx.annotation.DrawableRes
import androidx.annotation.LayoutRes
import androidx.appcompat.content.res.AppCompatResourc... |
MegaCompose/app/src/main/java/com/example/megacompose/MainScreen.kt | unknown_repo | kotlin | package com.example.megacompose
import androidx.compose.foundation.layout.RowScope
import androidx.compose.foundation.layout.height
import androidx.compose.material.*
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.rememberCoroutineScope
import androi... |
app/src/main/java/com/example/dailystuff/ui/apod/ApodViewModel.kt | unknown_repo | kotlin | package com.example.dailystuff.ui.apod
import android.widget.ImageView
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.example.dailystuff.data.repository.ApodRepository
import com.squareup.picasso.Picasso
import kotlinx.coroutines.CoroutineSco... |
app/src/main/java/com/animestudios/animeapp/ui/screen/detail/adapter/CharacterAdapter.kt | unknown_repo | kotlin | package com.animestudios.animeapp.ui.screen.detail.adapter
import android.app.Activity
import android.content.Intent
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.core.app.ActivityOptionsCompat
import androidx.core.content.ContextCompat
import androidx.core.util.Pair
import androidx.... |
commerce-services-sample/src/main/java/com/godaddy/commerce/services/sample/catalog/product/ProductViewModel.kt | unknown_repo | kotlin | @file:OptIn(FlowPreview::class)
package com.godaddy.commerce.services.sample.catalog.product
import android.os.Bundle
import androidx.lifecycle.viewModelScope
import com.godaddy.commerce.catalog.CatalogIntents
import com.godaddy.commerce.catalog.ProductParams
import com.godaddy.commerce.catalog.models.Products
import... |
CoroutinesSpecificPractices/src/main/kotlin/me/will/coroutinesspecific/CoroutineWithCancellation.kt | unknown_repo | kotlin | package me.will.coroutinesspecific
import kotlinx.coroutines.async
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.runBlocking
fun main() {
runBlocking {
println("Weather forecast")
println(getWeatherReport())
println("Have a good day!")
... |
PrivacySandboxKotlin/client-app/src/main/java/com/example/client/MainActivity.kt | unknown_repo | kotlin | /*
* Copyright (C) 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 app... |
core-downloader/src/main/java/tm/alashow/datmusic/downloader/interactors/SearchDownloads.kt | unknown_repo | kotlin | /*
* Copyright (C) 2022, Alashov Berkeli
* All rights reserved.
*/
package tm.alashow.datmusic.downloader.interactors
import android.telephony.mbms.DownloadRequest
import javax.inject.Inject
import kotlinx.coroutines.flow.Flow
import tm.alashow.data.SubjectInteractor
import tm.alashow.datmusic.data.db.daos.AudiosFt... |
profilers-ui/src/com/android/tools/profilers/taskbased/tabs/home/processlist/ProcessTable.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... |
features/settings/impl/src/main/java/ru/aleshin/features/settings/impl/presentation/theme/SettingsTheme.kt | unknown_repo | kotlin | /*
* Copyright 2023 Stanislav Aleshin
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... |
WeixinEditText/app/src/main/java/com/renyu/weixinedittext/adapter/MainAdapter.kt | unknown_repo | kotlin | package com.renyu.weixinedittext.adapter
import android.content.Context
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.renyu.weixinedittext.BottomClass
import com.renyu.weixinedittext.MainActivity
import com.renyu.weixi... |
packages/react-native-carplay/android/src/main/java/org/birkir/carplay/parser/RCTGridTemplate.kt | unknown_repo | kotlin | package org.birkir.carplay.parser
import androidx.car.app.CarContext
import androidx.car.app.model.GridTemplate
import com.facebook.react.bridge.ReadableMap
import org.birkir.carplay.screens.CarScreenContext
class RCTGridTemplate(
context: CarContext,
carScreenContext: CarScreenContext
) : RCTTemplate(context, ca... |
app/src/main/java/br/com/renancsdev/avenuecodeeventos/extension/TextInputLayout.kt | unknown_repo | kotlin | package br.com.renancsdev.avenuecodeeventos.extension
import com.google.android.material.textfield.TextInputLayout
fun TextInputLayout.naoVazio(): Boolean {
return this.editText?.text?.isNotEmpty() == true
}
fun TextInputLayout.paraTexto(): String {
return this.editText?.text.toString()
} |
app/src/main/java/ir/chista/jobs/screen/chat/list/ChatListActivity.kt | unknown_repo | kotlin | package ir.chista.jobs.screen.chat.list
import android.os.Bundle
import android.support.design.widget.Snackbar
import android.support.v4.app.NavUtils
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.DividerItemDecoration
import android.support.v7.widget.RecyclerView
import android.view.... |
app/src/main/java/dev/leonardini/rehcorder/viewmodels/SongsViewModel.kt | unknown_repo | kotlin | package dev.leonardini.rehcorder.viewmodels
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.viewModelScope
import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.cachedIn
import androidx.paging.insertSeparators
import dev.leonardini.r... |
sdk-lib/src/main/java/cash/z/ecc/android/sdk/internal/db/ReadOnlySqliteOpenHelper.kt | unknown_repo | kotlin | package cash.z.ecc.android.sdk.internal.db
import android.content.Context
import android.database.sqlite.SQLiteDatabase
import android.database.sqlite.SQLiteOpenHelper
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
internal class ReadOnlySqliteOpenHelper(
context: Context,
name: S... |
paris-processor/src/main/java/com/airbnb/paris/processor/utils/XProcessingUtils.kt | unknown_repo | kotlin | package com.airbnb.paris.processor.utils
import androidx.room.compiler.processing.XAnnotated
import androidx.room.compiler.processing.XElement
import androidx.room.compiler.processing.XExecutableElement
import androidx.room.compiler.processing.XFieldElement
import androidx.room.compiler.processing.XMemberContainer
imp... |
app/src/main/java/io/github/vladimirmi/internetradioplayer/data/service/PlayerCallback.kt | unknown_repo | kotlin | package io.github.vladimirmi.internetradioplayer.data.service
import android.annotation.SuppressLint
import android.support.v4.media.session.PlaybackStateCompat
import com.google.android.exoplayer2.*
import com.google.android.exoplayer2.source.TrackGroupArray
import com.google.android.exoplayer2.trackselection.TrackSe... |
app/src/main/java/me/shrikanthravi/india/covid19app/ui/home/HomeViewModel.kt | unknown_repo | kotlin | package me.shrikanthravi.india.covid19app.ui.home
import androidx.lifecycle.*
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import me.shrikanthravi.india.covid19app.data.local.Resource
import me.shrikanthravi.india.covid19app.data.model.Stats
import me.shr... |
app/src/main/java/com/phil/airinkorea/ui/home/drawer/DrawerScreen.kt | unknown_repo | kotlin | package com.phil.airinkorea.ui.home.drawer
import androidx.annotation.StringRes
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column... |
library/src/main/java/com/mikepenz/aboutlibraries/ui/item/LibraryItem.kt | unknown_repo | kotlin | package com.mikepenz.aboutlibraries.ui.item
import android.content.Context
import android.content.Intent
import android.content.res.ColorStateList
import android.graphics.Color
import android.net.Uri
import android.text.TextUtils
import android.view.View
import android.widget.TextView
import androidx.appcompat.app.Ale... |
playground/src/main/java/me/lincolnstuart/funblocks/playground/screens/components/form/SelectScreen.kt | unknown_repo | kotlin | package me.lincolnstuart.funblocks.playground.screens.components.form
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.runtime.Composabl... |
app/src/main/java/com/scriptsquad/unitalk/Socials_Page/fragments/VideoFragment.kt | unknown_repo | kotlin | package com.scriptsquad.unitalk.Socials_Page.fragments
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.util.Log
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.google.firebase... |
basic-android-kotlin-compose-training-inventory-app-starter/app/src/main/java/com/example/inventory/ui/home/HomeViewModel.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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
src/main/kotlin/ui/newscreen/NewScreenViewModel.kt | unknown_repo | kotlin | package ui.newscreen
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.launch
import ui.core.Reducer
import ui.core.ViewModel
import javax.inject.Inject
import javax.inject.Provider
class NewScreenViewModel @Inject constructor(
state: Mutabl... |
app/src/main/java/io/github/ohem/punkbrew/data/db/BeerEntity.kt | unknown_repo | kotlin | package io.github.alxiw.punkbrew.data.db
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "beers")
data class BeerEntity(
@PrimaryKey
@ColumnInfo(name = "id")
val id: Int,
@ColumnInfo(name = "name")
val name: String,
@ColumnInfo(na... |
lazycolumnscreen/shot/src/androidTest/java/com/example/road/to/effective/snapshot/testing/lazycolumnscreen/shot/bitmap/CoffeeDrinkComposableToBitmapTest.kt | unknown_repo | kotlin | package com.example.road.to.effective.snapshot.testing.lazycolumnscreen.shot.bitmap
import androidx.compose.ui.platform.ComposeView
import androidx.core.view.drawToBitmap
import com.example.road.to.effective.snapshot.testing.lazycolumnscreen.AppTheme
import com.example.road.to.effective.snapshot.testing.lazycolumnscre... |
sources/app/src/main/java/com/mikyegresl/valostat/features/weapon/WeaponsViewModel.kt | unknown_repo | kotlin | package com.mikyegresl.valostat.features.weapon
import com.mikyegresl.valostat.base.model.weapon.WeaponDto
import com.mikyegresl.valostat.base.repository.WeaponsRepository
import com.mikyegresl.valostat.common.viewmodel.BaseNavigationViewModel
import kotlinx.coroutines.flow.MutableStateFlow
class WeaponsViewModel(
... |
app-base/src/main/java/com/lhwdev/selfTestMacro/ui/utils/composeLoop.kt | unknown_repo | kotlin | package com.lhwdev.selfTestMacro.ui.utils
import androidx.compose.runtime.*
@Composable
inline fun <reified T> rememberLoopLinkedList(size: Int): LoopLinkedList<T> {
val list = remember { LoopLinkedList<T>(array = arrayOfNulls(size)) }
if(list.array.size != size) list.array = list.array.copyOf(size)
return list
}... |
app/src/main/java/com/wangyiheng/vcamsx/utils/HLog.kt | unknown_repo | kotlin | package cn.dianbobo.dbb.util
import android.content.Context
import android.util.Log
import de.robv.android.xposed.XposedBridge
import java.io.*
import java.util.*
import com.bigkoo.pickerview.view.WheelTime.dateFormat
object HLog {
var lastTransitionTime: Long = 0 // 初始化为0
val logBuffer = mutableListOf<String>... |
app/src/main/java/com/wangyiheng/vcamsx/utils/HLog.kt | unknown_repo | kotlin | package cn.dianbobo.dbb.util
import android.content.Context
import android.util.Log
import de.robv.android.xposed.XposedBridge
import java.io.*
import java.util.*
import com.bigkoo.pickerview.view.WheelTime.dateFormat
object HLog {
var lastTransitionTime: Long = 0 // 初始化为0
val logBuffer = mutableListOf<String>... |
app/src/main/kotlin/edu/stanford/bdh/engagehf/medication/components/MedicationList.kt | unknown_repo | kotlin | package edu.stanford.bdh.engagehf.medication.components
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.LazyListScope
import androidx.compose.foundation.lazy.items
import androidx.compose.material3.Text
import androidx.compose... |
AndroidKit/src/main/java/com/zhumj/androidkit/base/BasePresenter.kt | unknown_repo | kotlin | package com.zhumj.androidkit.base
import androidx.lifecycle.DefaultLifecycleObserver
import androidx.lifecycle.LifecycleOwner
import java.lang.ref.Reference
import java.lang.ref.WeakReference
/**
* @author Created by zhumj
* @date 2022/4/23
* @description MVP 中的 Presenter 基类
*/
open class BasePresenter<out V>(vie... |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/outline/Rulerandpen.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... |
shared/src/androidMain/kotlin/io/github/yahiaangelo/filmsimulator/util/AppContext.android.kt | unknown_repo | kotlin | package io.github.yahiaangelo.filmsimulator.util
import android.content.Context
import java.lang.ref.WeakReference
actual object AppContext {
private var value: WeakReference<Context?>? = null
fun set(context: Context) {
value = WeakReference(context)
}
internal fun get(): Context? {
... |
frontend/screen/manual/src/jvmMain/kotlin/com/mindovercnc/linuxcnc/screen/manual/root/FeedStatusCardPreview.kt | unknown_repo | kotlin | package com.mindovercnc.linuxcnc.screen.manual.root
import androidx.compose.desktop.ui.tooling.preview.Preview
import androidx.compose.runtime.Composable
import com.mindovercnc.linuxcnc.screen.manual.root.ui.FeedStatusCard
import com.mindovercnc.model.FeedUiModel
@Composable
@Preview
fun FeedStatusCardPreview() {
... |
example-kotlin/src/main/java/com/gigya/android/sample/ui/WebBridgeTestActivity.kt | unknown_repo | kotlin | package com.gigya.android.sample.ui
import android.annotation.SuppressLint
import android.graphics.Bitmap
import android.net.Uri
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import android.webkit.WebResourceRequest
import android.webkit.WebView
import android.webkit.WebViewClient
import com... |
app/src/main/kotlin/com/faltenreich/skeletonlayout/demo/MainPagerFragment.kt | unknown_repo | kotlin | package com.faltenreich.skeletonlayout.demo
import androidx.annotation.LayoutRes
import androidx.fragment.app.Fragment
import com.faltenreich.skeletonlayout.Skeleton
import com.faltenreich.skeletonlayout.demo.configuration.ConfigurationListener
import com.faltenreich.skeletonlayout.mask.SkeletonShimmerDirection
abstr... |
app/src/main/java/dxmnd/com/mymusicplayer/current/view/CurrentPlayMusicActivity.kt | unknown_repo | kotlin | package dxmnd.com.mymusicplayer.current.view
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.Menu
import android.view.MenuItem
import android.widget.Toast
import dxmnd.com.mymusicplayer.R
import dxmnd.com.mymusicplayer.current.utils.replaceFragmentToActivity
import dxmnd.co... |
app/src/main/java/com/esafirm/androidplayground/others/OthersController.kt | unknown_repo | kotlin | package com.esafirm.androidplayground.others
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.esafirm.androidplayground.common.BaseController
import com.esafirm.androidplayground.common.MenuFactory
import com.esafirm.androidplayground.common.navigateTo
import com.esa... |
app/src/main/java/com/example/dell1/materialtest/FruitActivity.kt | unknown_repo | kotlin | package com.example.dell1.materialtest
import android.content.Intent
import android.os.Bundle
import android.view.MenuItem
import android.widget.ImageView
import android.widget.TextView
import androidx.appcompat.app.ActionBar
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.Toolbar
impo... |
sample/src/main/java/smartrecycleradapter/feature/DragAndDropHandleItemActivity.kt | unknown_repo | kotlin | package smartrecycleradapter.feature
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import android.widget.Toast
import androidx.recyclerview.widget.ItemTouchHelper
import kotlinx.android.synthetic... |
app/src/main/java/com/msc/someweather/cardAndCell/viewCard/NowWeatherCardView.kt | unknown_repo | kotlin | package com.msc.someweather.cardAndCell.viewCard
import android.content.Context
import android.support.constraint.ConstraintLayout
import android.util.AttributeSet
import android.view.View
import android.widget.FrameLayout
import android.widget.TextView
import com.msc.someweather.R
import com.tmall.wireless.tangram.s... |
app/src/main/java/com/msc/someweather/cardAndCell/viewCard/NowWeatherCardView.kt | unknown_repo | kotlin | package com.msc.someweather.cardAndCell.viewCard
import android.content.Context
import android.support.constraint.ConstraintLayout
import android.util.AttributeSet
import android.view.View
import android.widget.FrameLayout
import android.widget.TextView
import com.msc.someweather.R
import com.tmall.wireless.tangram.s... |
room/room-compiler-processing/src/main/java/androidx/room/compiler/codegen/XTypeSpec.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/erif/quickstates/examples/ActFullState.kt | unknown_repo | kotlin | package com.erif.quickstates.examples
import android.os.Bundle
import android.view.MenuItem
import android.view.animation.AlphaAnimation
import android.view.animation.Animation
import android.widget.RelativeLayout
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.isVisible
import androidx.core.... |
app/src/main/java/com/inz/z/note_book/broadcast/ClockAlarmBroadcast.kt | unknown_repo | kotlin | package com.inz.z.note_book.broadcast
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.widget.Toast
import com.inz.z.base.util.L
import com.inz.z.base.util.LauncherHelper
import com.inz.z.note_book.util.Constants
/**
* 时钟 广播
*
* @author Zhenglj
*... |
app/src/main/java/com/cyh128/wenku8reader/activity/CommentInCommentActivity.kt | unknown_repo | kotlin | package com.cyh128.wenku8reader.activity
import android.content.Intent
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import com.cyh128.wenku8reader.R
import com.cyh128.wenku8reader.adapter.CommentInCommentAdapte... |
app/src/main/java/com/anafthdev/todo/ui/activity/MainActivity.kt | unknown_repo | kotlin | package com.anafthdev.todo.ui.activity
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compos... |
compose/ui/ui-graphics/src/skikoMain/kotlin/androidx/compose/ui/graphics/SkiaBackedPath.skiko.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... |
boleto/src/main/java/com/adyen/checkout/boleto/BoletoConfiguration.kt | unknown_repo | kotlin | /*
* Copyright (c) 2023 Adyen N.V.
*
* This file is open source and available under the MIT license. See the LICENSE file for more info.
*
* Created by atef on 31/3/2023.
*/
package com.adyen.checkout.boleto
import android.content.Context
import com.adyen.checkout.action.core.GenericActionConfiguration
import c... |
Session 10 - Local Storage/app/src/main/java/com/harbourspace/unsplash/ui/legacy/fragments/FavouritesFragment.kt | unknown_repo | kotlin | package com.harbourspace.unsplash.ui.legacy.fragments
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.harbourspace.unsplash.databinding.FragmentFavouritesBinding
class FavouritesFragment: Fragment() {
... |
materialdrawer/src/main/java/com/mikepenz/materialdrawer/widget/AccountHeaderView.kt | unknown_repo | kotlin | package com.mikepenz.materialdrawer.widget
import android.content.Context
import android.graphics.Typeface
import android.os.Build
import android.os.Bundle
import android.os.Handler
import android.text.TextUtils
import android.util.AttributeSet
import android.view.LayoutInflater
import android.view.View
import android... |
SunFlower/app/src/main/java/com/example/sunflower/views/MaskedCardView.kt | unknown_repo | kotlin | package com.example.sunflower.views
import android.content.Context
import android.util.AttributeSet
import com.google.android.material.R
import com.google.android.material.card.MaterialCardView
class MaskedCardView @JvmOverloads constructor(context: Context,
attrs: Attri... |
app/src/main/java/com/abast/homebot/settings/HomeBotPreferenceFragment.kt | unknown_repo | kotlin | package com.abast.homebot.settings
import android.app.Activity
import android.content.Intent
import android.content.SharedPreferences
import android.content.pm.ActivityInfo
import android.os.Bundle
import android.preference.PreferenceManager
import android.util.Log
import android.widget.EditText
import androidx.appcom... |
app/src/main/java/com/faldez/shachi/widget/EmptyFooterDecoration.kt | unknown_repo | kotlin | package com.faldez.shachi.widget
import android.graphics.Rect
import android.util.Log
import android.view.View
import androidx.recyclerview.widget.RecyclerView
class EmptyFooterDecoration(val height: Int) : RecyclerView.ItemDecoration() {
override fun getItemOffsets(
outRect: Rect,
view: View,
... |
core/ui/src/main/kotlin/ru/tech/imageresizershrinker/core/ui/widget/preferences/PreferenceItem.kt | unknown_repo | kotlin | /*
* ImageToolbox is an image editor for android
* Copyright (c) 2024 T8RIN (<NAME>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under ... |
app/src/main/java/hu/szokemate/citybro/util/glide/Extensions.kt | unknown_repo | kotlin | @file:Suppress("NOTHING_TO_INLINE", "DEPRECATION")
package hu.szokemate.citybro.util.glide
import android.graphics.drawable.Drawable
import android.widget.ImageView
import androidx.annotation.DrawableRes
import androidx.annotation.RawRes
import com.bumptech.glide.Glide
import com.bumptech.glide.RequestBuilder
import ... |
app/src/main/java/com/zenika/story/tutorial/presentation/penalty/TutorialPenaltyRoute.kt | unknown_repo | kotlin | package com.zenika.story.tutorial.presentation.penalty
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.hilt.navigation.compose.hiltViewModel
import androidx.lifecycle.compose.collectAsStateWithLifecycle
@Composable
fun TutorialPenaltyRoute(
onDismissRequest: () ... |
base/src/main/kotlin/com/tuanhv/mvvmarch/base/ui/common/LoadMoreAdapter.kt | unknown_repo | kotlin | package com.tuanhv.mvvmarch.base.ui.common
import androidx.databinding.ViewDataBinding
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import android.view.ViewGroup
/**
* Created by hoang.van.tuan on 9/12/18.
*/
abstract class LoadMoreAdapter<T, LB : ViewDat... |
android/src/main/kotlin/com/cjx/x5_webview/X5WebViewPlugin.kt | unknown_repo | kotlin | package com.cjx.x5_webview
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.widget.Toast
import com.tencent.smtt.sdk.QbSdk
import com.tencent.smtt.sdk.TbsListener
import com.tencent.smtt.sdk.TbsVideo
import com.tencent.smtt.sdk.WebView
imp... |
app/src/main/java/com/example/inventory/screen/addoreditinventoryitem/component/CategoryInput.kt | unknown_repo | kotlin | package com.example.inventory.screen.addoreditinventoryitem.component
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.com... |
sample-app/src/main/java/io/github/denis1986/android/base/sample/base/OnSeekBarChangeListenerAdapter.kt | unknown_repo | kotlin | package io.github.denis1986.android.base.sample.base
import android.widget.SeekBar
/**
* Created by <NAME> on 09.01.2021.
*/
open class OnSeekBarChangeListenerAdapter: SeekBar.OnSeekBarChangeListener {
override fun onProgressChanged(seekBar: SeekBar?, progress: Int, fromUser: Boolean) {
}
override fun... |
app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/components/OutcomeItem.kt | unknown_repo | kotlin | package it.vfsfitvnm.vimusic.ui.components
import androidx.annotation.DrawableRes
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.text.BasicText
import androidx.compose.runtime.Composable
import android... |
app/src/main/java/com/shenghaiyang/oksign/ui/library/LibraryViewModel.kt | unknown_repo | kotlin | package com.shenghaiyang.oksign.ui.library
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.viewModelScope
import com.shenghaiyang.oksign.R
import com.squareup.moshi.Moshi
import com.squareup.moshi.adapter
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx... |
app/src/main/java/com/gcc/gccapplication/viewModel/DetailViewModel.kt | unknown_repo | kotlin | package com.gcc.gccapplication.viewModel
import android.provider.ContactsContract.CommonDataKinds.Email
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.activity.viewModels
import androidx.lifecycle.viewModelScope
import com.gcc.gccapplica... |
lint-rules-android-lint/src/test/kotlin/com/vanniktech/lintrules/android/ShouldUseStaticImportDetectorTest.kt | unknown_repo | kotlin | @file:Suppress("UnstableApiUsage") // We know that Lint API's aren't final.
package com.vanniktech.lintrules.android
import com.android.tools.lint.checks.infrastructure.TestFiles.java
import com.android.tools.lint.checks.infrastructure.TestFiles.kt
import com.android.tools.lint.checks.infrastructure.TestLintTask.lint... |
app/src/main/java/com/androidapp/navweiandroidv2/presentation/locationdetails/offerstab/di/OfferDetailFragmentModule.kt | unknown_repo | kotlin | package com.androidapp.navweiandroidv2.presentation.locationdetails.offerstab.di
import androidx.fragment.app.Fragment
import com.androidapp.navweiandroidv2.presentation.locationdetails.offerstab.offerdetail.OfferDetailFragment
import dagger.Binds
import dagger.Module
import dagger.Subcomponent
import dagger.android.A... |
app/src/main/java/fontaine/nice/multiscreencontroller/views/ScreenFragment.kt | unknown_repo | kotlin | package fontaine.nice.multiscreencontroller.views
import android.os.Bundle
import android.support.design.widget.CoordinatorLayout
import android.support.design.widget.Snackbar
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import fontain... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.