file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
wear/compose/compose-material/src/main/java/androidx/wear/compose/material/SwipeToDismissBox.kt | unknown_repo | kotlin | /*
* Copyright 2021 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/cerminnovations/moviesboard/ui/adapter/AllSeriesAdapter.kt | unknown_repo | kotlin | package com.cerminnovations.moviesboard.ui.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.paging.PagingDataAdapter
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView
import com.cerminnovations.moviesboard.databinding.ItemSeriesBinding... |
library-res/src/main/kotlin/com/wsdydeni/library_view/loadingdialog/LoadingDialog.kt | unknown_repo | kotlin | package com.wsdydeni.library_view.loadingdialog
import android.app.Dialog
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.widget.TextView
import androidx.constraintlayout.widget.ConstraintLayout
import com.wsdydeni.library_res.R
/*
* Create by wsdydeni on 202... |
app/src/main/java/com/commov/ui/note/NoteAdapter.kt | unknown_repo | kotlin | package com.commov.ui.note
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.os.bundleOf
import androidx.navigation.findNavController
import androidx.recyclerview.widget.RecyclerView
import com.commov.data.note.DatabaseHelper
import com.commov.data.note.Note... |
app/src/main/java/io/github/fate_grand_automata/ui/support_img_namer/SupportImageNamer.kt | unknown_repo | kotlin | package io.github.fate_grand_automata.ui.support_img_namer
import android.content.Context
import android.content.DialogInterface
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout... |
client/android/src/main/kotlin/client/android/ui/Watchlist.kt | unknown_repo | kotlin | package client.android.ui
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.MaterialTheme
import androidx.compose.material.OutlinedButton
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import android... |
BaseLibrary/src/main/java/com/kotlin/base/widgets/BannerImageLoader.kt | unknown_repo | kotlin | package com.kotlin.base.widgets
import android.content.Context
import android.widget.ImageView
import com.kotlin.base.utils.GlideUtils
import com.youth.banner.loader.ImageLoader
/*
Banner图片加载器
*/
class BannerImageLoader : ImageLoader() {
override fun displayImage(context: Context, path: Any, imageView: Image... |
app/src/main/java/com/example/android/barebone/ui/extensions/LiveEvent.kt | unknown_repo | kotlin | package com.example.android.ytc.ui.extensions
/**
* Copyright 2019 <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 require... |
app/presentation/src/main/java/com/wiensmit/rmapp/presentation/ui/overview/OverviewFragment.kt | unknown_repo | kotlin | package com.wiensmit.rmapp.presentation.ui.overview
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.ui.platform.ComposeView
import androidx.compose.ui.platform.ViewCom... |
app/src/main/java/net/pilseong/todocompose/ui/screen/task/TaskAppBar.kt | unknown_repo | kotlin | package net.pilseong.todocompose.ui.screen.task
import android.util.Log
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowBack
import androidx.compose.material.icons.filled.Check
import androidx.compose.material.icons.filled.Close
import androidx.compose.material.icons.fil... |
day/src/main/java/com/ruzhan/day/DayHomeFragment.kt | unknown_repo | kotlin | package com.ruzhan.day
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProviders
import com.lion.font.FontHelper
import com.ruzhan.common.TitleH... |
msal/src/main/java/com/microsoft/identity/nativeauth/statemachine/states/SignUpStates.kt | unknown_repo | kotlin | // Copyright (c) Microsoft Corporation.
// All rights reserved.
//
// This code is licensed under the MIT License.
//
// 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, in... |
app/src/main/java/org/vmaier/coderswag/controller/ProductsActivity.kt | unknown_repo | kotlin | package org.vmaier.coderswag.controller
import android.content.res.Configuration
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.recyclerview.widget.GridLayoutManager
import org.vmaier.coderswag.R
import org.vmaier.coderswag.adapters.ProductAdapter
import org.vmaier.coderswag.d... |
app/src/main/java/com/example/android/databinding/basicsample/ui/SolutionActivity.kt | unknown_repo | kotlin | /*
* Copyright (C) 2018 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... |
app/src/main/java/com/example/multilivedata/ui/news/NewsViewModel.kt | unknown_repo | kotlin | package com.example.multilivedata.ui.news
import android.arch.lifecycle.LiveData
import android.arch.lifecycle.MutableLiveData
import android.arch.lifecycle.Transformations
import com.example.multilivedata.network.common.Response
import com.example.multilivedata.network.common.ResponseStatus
import com.example.multili... |
wear/src/main/java/de/michelinside/glucodatahandler/complications/ActiveComplicationHandler.kt | unknown_repo | kotlin | package de.michelinside.glucodatahandler
import android.annotation.SuppressLint
import android.content.ComponentName
import android.content.Context
import android.content.pm.PackageInfo
import android.content.pm.PackageManager
import android.os.Build
import android.os.Bundle
import android.util.Log
import androidx.wea... |
app/src/main/java/com/guard/ui/customview/MyGridView.kt | unknown_repo | kotlin | package com.guard.ui.customview
import android.content.Context
import android.graphics.Canvas
import android.util.AttributeSet
import android.view.ViewGroup
/**
* @author: jackli
* @version: V1.0
* @project: My360
* @package: com.guard.ui.customview
* 最终要实现的目标
* @description: https://www.jianshu.com/p/7be162740... |
src/main/kotlin/engine_helpers/ScreenHandler.kt | unknown_repo | kotlin | package engine_helpers
import androidx.compose.runtime.Composable
import views.mainScreenA
import views.mainScreenB
import java.io.File
object ScreenHandler {
private const val FILE_PATH = "RJP"
private const val FILE_NAME = "MSState"
init {
File(FILE_PATH).mkdirs()
val file = File("$FILE_... |
app/src/main/java/com/abbas/gamesign/ui/fragment/base/BaseBindableFragment.kt | unknown_repo | kotlin | package com.abbas.gamesign.ui.fragment.base
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
abstract class BaseBindableFragment<B : ViewDataBinding>(private val la... |
profile/src/main/java/com/nowiwr01p/profile/navigation/ProfileNavigatorImpl.kt | unknown_repo | kotlin | package com.nowiwr01p.profile.navigation
import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.compose.navigation
import com.nowiwr01p.core_ui.navigators.ProfileNavigator
import com.nowiwr01p.core_ui.navigators.main.Navigator
import com.nowiwr01p.profile.Profile... |
app/src/main/java/me/tumur/portfolio/utils/adapters/listItemAdapters/experience/task/TaskAdapter.kt | unknown_repo | kotlin | package me.tumur.portfolio.utils.adapters.listItemAdapters.experience.task
import android.view.ViewGroup
import androidx.paging.PagedListAdapter
import androidx.recyclerview.widget.RecyclerView
import me.tumur.portfolio.repository.database.model.task.TaskModel
/**
* An adapter that provides a list of [TaskModel] to ... |
android/src/main/java/com/reactnativemultipleimagepicker/ImageLoaderUtils.kt | unknown_repo | kotlin | package com.reactnativemultipleimagepicker
import android.app.Activity
import android.content.Context
import android.content.ContextWrapper
object ImageLoaderUtils {
fun assertValidRequest(context: Context?): Boolean {
if (context is Activity) {
return !isDestroy(context)
} else if (co... |
app/src/main/java/com/android/fleksy/movie/util/Utils.kt | unknown_repo | kotlin | package com.android.fleksy.movie.util
import android.graphics.Bitmap
import android.os.SystemClock
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.toArgb
import androidx.core.graphics.alpha
import androidx.core.graphics.blue
import androidx.core.graphics.green
import androidx.core.graphic... |
kleanarchitekture/app/src/main/java/com/matthiasbruns/kleanarchitekture/app/feature/post/list/adapter/PostListViewHolder.kt | unknown_repo | kotlin | package com.matthiasbruns.kleanarchitekture.app.feature.post.list.adapter
import android.support.v7.widget.RecyclerView
import android.view.View
import com.matthiasbruns.kleanarchitekture.presentation.post.model.PresentationPost
import kotlinx.android.synthetic.main.item_post.view.*
class PostListViewHolder(itemView:... |
st_flow_demo/src/main/java/com/st/flow_demo/models/Flow.kt | unknown_repo | kotlin | package com.st.flow_demo.models
import androidx.documentfile.provider.DocumentFile
import com.st.blue_sdk.board_catalog.models.Sensor
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import java.util.Objects
import java.util.UUID
@Serializable
data class Flow(
@SerialName(value = ... |
commutil/src/main/java/com/fz/common/utils/AnyUtils.kt | unknown_repo | kotlin | @file:JvmName("AnyUtils")
@file:JvmMultifileClass
package com.fz.common.utils
import android.os.Parcel
import android.os.Parcelable
import java.io.*
import java.lang.reflect.Field
import java.math.BigDecimal
import java.math.BigInteger
import java.util.*
/**
* 对象深度拷贝
* @author dingpeihua
* @date 2021/3/2 15:29
*... |
{{cookiecutter.repo_name}}/app/src/main/java/di/component/ApplicationComponent.kt | unknown_repo | kotlin | package {{ cookiecutter.package_name }}.di.component
import android.content.Context
import android.content.SharedPreferences
import dagger.Component
import {{ cookiecutter.package_name }}.App
import {{ cookiecutter.package_name }}.di.module.*
import {{ cookiecutter.package_name }}.ui.main.MainActivityViewModel
{% if c... |
app/src/main/java/com/aappeye/foreksty/data/db/CurrentWeatherDao.kt | unknown_repo | kotlin | package com.aappeye.foreksty.data.db
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.aappeye.foreksty.data.db.entity.CURRENT_WEATHER_ID
import com.aappeye.foreksty.data.db.entity.CurrentWeatherEntry
@... |
presentation/src/main/java/com/sms/presentation/main/ui/detail/StudentInfoComponent.kt | unknown_repo | kotlin | package com.sms.presentation.main.ui.detail
import android.content.Intent
import android.net.Uri
import androidx.compose.foundation.layout.*
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalContext
import andro... |
coroutines/src/main/kotlin/br/com/devsrsouza/kotlinbukkitapi/coroutines/architecture/impl/CoroutineLifecycle.kt | unknown_repo | kotlin | package br.com.devsrsouza.kotlinbukkitapi.architecture.lifecycle.extensions.impl
import br.com.devsrsouza.kotlinbukkitapi.architecture.KotlinPlugin
import br.com.devsrsouza.kotlinbukkitapi.architecture.lifecycle.LifecycleListener
import br.com.devsrsouza.kotlinbukkitapi.architecture.lifecycle.getOrInsertGenericLifecyc... |
sample-plugin/src/main/java/cn/jessie/sample/plugin/PluginLog.kt | unknown_repo | kotlin | package cn.jessie.etc
import android.util.Log
import android.util.LruCache
import cn.jessie.main.MainAppContext
import java.io.PrintWriter
import java.io.StringWriter
import java.util.*
interface LogIgnored
@Suppress("SpellCheckingInspection", "unused")
interface Logdog : LogIgnored {
fun isLoggable(priority: In... |
app/src/main/java/com/whatsappstatusdownloader/jayanthl/statusdownloaderwhatsapp/Tab4Fragment.kt | unknown_repo | kotlin | package com.whatsappstatusdownloader.jayanthl.statusdownloaderwhatsapp
import android.support.v4.app.Fragment
import android.os.Bundle
import android.os.Environment
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.support.v7.widget.StaggeredGridLayoutMan... |
app/src/main/java/com/vpr/places_together/ui/NavGraphActivity.kt | unknown_repo | kotlin | package com.vpr.places_together.ui
import android.os.Bundle
import android.view.Menu
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.NavController
import androidx.navigation.fragment.NavHostFragment
import com.vpr.places_together.R
import com.vpr.places_together.databinding.ActivityNavGraphB... |
demo-kotlin/src/main/java/me/yokeyword/sample/zhihu/ui/fragment/CycleFragment.kt | unknown_repo | kotlin | package me.yokeyword.sample.zhihu.ui.fragment
import android.os.Bundle
import android.view.View
import kotlinx.android.synthetic.main.fragment_cycle.*
import kotlinx.android.synthetic.main.toolbar.*
import me.yokeyword.fragmentation.start
import me.yokeyword.fragmentation.startWithPop
import me.yokeyword.sample.R
impo... |
app/src/main/java/dev/jahidhasanco/montra/presentation/fragment/Onboarding/OnBoardingAdapter.kt | unknown_repo | kotlin | package dev.jahidhasanco.montra.presentation.fragment.Onboarding
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.viewpager.widget.PagerAdapter
import dev.jahidhasanco.... |
Stipop/src/main/java/io/stipop/PackUtils.kt | unknown_repo | kotlin | @file:Suppress("KotlinDeprecation")
package io.stipop
import android.app.Activity
import android.os.StrictMode
import android.os.StrictMode.ThreadPolicy
import io.stipop.model.SPPackage
import io.stipop.model.SPSticker
import org.json.JSONObject
import java.io.File
import java.io.FileOutputStream
import java.net.URL
... |
pexty/floatingapp/window/VideoWindow.kt | unknown_repo | kotlin | package pexty.floatingapp.window
import android.content.Context
import android.media.MediaMetadataRetriever
import android.media.MediaPlayer
import android.net.Uri
import android.view.Gravity
import android.view.ViewGroup
import android.widget.LinearLayout
import android.widget.VideoView
import pexty.utils.Utils
ope... |
app/src/main/java/br/com/arthurjf/jogodaforca/view/GameplayActivity.kt | unknown_repo | kotlin | package br.com.arthurjf.jogodaforca.view
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.ViewModelProvider
import br.com.arthurjf.jogodaforca.R
import br.com.arthurjf.jogodaforca.data.Word
import br.com.arthurjf.jogodaforca.view.ui.main.fragment.GameplayActivityFragme... |
app/src/main/java/com/example/inventory/ui/item/ItemDetailsViewModel.kt | unknown_repo | kotlin | package com.example.inventory.ui.item
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import com.example.inventory.data.ItemsRepository
class ItemDetailsViewModel(
savedStateHandle: SavedStateHandle
) : ViewModel() {
private val itemId: Int = checkNotNull(savedStateHandle[ItemD... |
app/src/main/java/com/example/inventory/ui/item/ItemDetailsViewModel.kt | unknown_repo | kotlin | package com.example.inventory.ui.item
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import com.example.inventory.data.ItemsRepository
class ItemDetailsViewModel(
savedStateHandle: SavedStateHandle
) : ViewModel() {
private val itemId: Int = checkNotNull(savedStateHandle[ItemD... |
app/src/main/java/com/ryanhodgman/framework/CoroutineActivity.kt | unknown_repo | kotlin | package com.ryanhodgman.framework
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Job
import kotlin.coroutines.CoroutineContext
/**
* Activity that provides a [CoroutineScope].
*
* @aut... |
app/src/main/java/com/twobbble/view/customview/CommentDivider.kt | unknown_repo | kotlin | package com.twobbble.view.customview
import android.content.Context
import android.content.res.TypedArray
import android.graphics.Canvas
import android.graphics.drawable.Drawable
import android.support.v7.widget.RecyclerView
import android.view.View
import com.facebook.drawee.view.SimpleDraweeView
import com.twobbble.... |
testUtil/src/main/java/com/tfandkusu/template/viewmodel/MockStateObserver.kt | unknown_repo | kotlin | package com.tfandkusu.androidview.viewmodel
import androidx.lifecycle.LiveData
import androidx.lifecycle.Observer
import io.mockk.mockk
fun <T> LiveData<T>.mockStateObserver(): Observer<T> {
val mockObserver = mockk<Observer<T>>(relaxed = true, name = "state")
observeForever(mockObserver)
return mockObser... |
app/src/main/kotlin/org/andstatus/app/net/http/HttpReadResult.kt | unknown_repo | kotlin | /* Copyright (C) 2014 yvolk (Yuri Volkov), http://yurivolkov.com
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... |
composeApp/src/commonMain/kotlin/dev/lennartegb/vec2compose/app/ImageVectorTransformer.kt | unknown_repo | kotlin | package dev.lennartegb.vec2compose.app
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.compose.ui.graphics.StrokeJoin
import androidx.compose.ui.graphics.vector.PathBu... |
app/src/main/java/me/devsaki/hentoid/util/AchievementsManager.kt | unknown_repo | kotlin | package me.devsaki.hentoid.util
import android.content.Context
import me.devsaki.hentoid.R
import me.devsaki.hentoid.core.HentoidApp
import me.devsaki.hentoid.database.AchievementsDAO
import me.devsaki.hentoid.database.domains.Achievement
import me.devsaki.hentoid.enums.Site
import me.devsaki.hentoid.events.Achievemen... |
app/src/main/java/com/example/berberappointment/register/Register.kt | unknown_repo | kotlin | package com.example.berberappointment.register
import android.text.BoringLayout
import com.example.berberappointment.berber.CreateBerber
import com.google.firebase.database.IgnoreExtraProperties
@IgnoreExtraProperties
data class Register(
var userName: String? = null,
var lastName: String? = null,
var pho... |
shared/src/commonMain/kotlin/reels/ui/components/ReelFooter.kt | unknown_repo | kotlin | package reels.ui.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.aspectRatio
import androidx.compose.foundation.layout.... |
library/src/main/java/com/github/ininmm/library/annotation/TagModel.kt | unknown_repo | kotlin | package com.github.ininmm.library.annotation
import android.support.annotation.StringDef
/**
* 註解的標籤
* Created by <NAME>
* on 2018/2/11.
*/
class TagModel {
companion object {
const val DEFAULT = "RxBusDefaultTag"
}
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.FUNCTION... |
detail/src/main/java/com/pyamsoft/fridge/detail/DetailEmptyState.kt | unknown_repo | kotlin | /*
* Copyright 2021 <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/com/amazon/firetv/integrationsdk/sdk/FireTvPlaybackReporter.kt | unknown_repo | kotlin | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazon.firetv.integrationsdk.sdk
import android.content.Context
import android.util.Log
import com.amazon.tv.developer.sdk.content.personalization.AmazonPlaybackReceiver
import com.amazon.tv.develo... |
bandyer-android-design/src/main/java/com/bandyer/sdk_design/chat/adapter_items/message/abstract_message/BandyerBaseChatMessageViewHolder.kt | unknown_repo | kotlin | /*
* Copyright 2021-2022 Bandyer @ https://www.bandyer.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... |
plugins/radar-android-phone/src/main/java/org/radarbase/passive/phone/PhoneContactListProvider.kt | unknown_repo | kotlin | /*
* Copyright 2017 The Hyve
*
* 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 writ... |
app/src/main/java/com/yandroid/movie/data/UpcomingPagingSource.kt | unknown_repo | kotlin | package com.yandroid.movie.data
import androidx.paging.PagingSource
import androidx.paging.PagingState
import com.yandroid.movie.data.api.APIKEY
import com.yandroid.movie.data.api.ApiService
import com.yandroid.movie.data.model.Movie
import java.lang.Exception
class UpcomingPagingSource(private val api: ApiService) :... |
app/src/main/java/com/yandroid/movie/data/UpcomingPagingSource.kt | unknown_repo | kotlin | package com.yandroid.movie.data
import androidx.paging.PagingSource
import androidx.paging.PagingState
import com.yandroid.movie.data.api.APIKEY
import com.yandroid.movie.data.api.ApiService
import com.yandroid.movie.data.model.Movie
import java.lang.Exception
class UpcomingPagingSource(private val api: ApiService) :... |
DeliBuddy/app/src/main/java/yapp/android1/delibuddy/base/BaseViewModel.kt | unknown_repo | kotlin | package yapp.android1.delibuddy.base
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.Job
import kotlinx.coroutines.*
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.SharedFlow
import k... |
DeliBuddy/app/src/main/java/yapp/android1/delibuddy/base/BaseViewModel.kt | unknown_repo | kotlin | package yapp.android1.delibuddy.base
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.Job
import kotlinx.coroutines.*
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.SharedFlow
import k... |
imitate/src/main/java/com/engineer/imitate/KotlinRootActivity.kt | unknown_repo | kotlin | package com.engineer.imitate
import android.animation.Animator
import android.animation.AnimatorListenerAdapter
import android.annotation.SuppressLint
import android.content.Intent
import android.content.res.Configuration
import android.net.Uri
import android.os.Build
import android.os.Bundle
import android.os.Environ... |
QuickRecyclerView/src/main/java/com/wpf/app/quickrecyclerview/data/QuickClickData.kt | unknown_repo | kotlin | package com.wpf.app.quickrecyclerview.data
import android.view.View
import android.view.ViewGroup
import com.wpf.app.quick.annotations.bind.BindData2View
import com.wpf.app.quickbind.helper.binddatahelper.ItemClick
import com.wpf.app.quickutil.run.RunOnContextWithSelf
import com.wpf.app.quickutil.run.itemClick
import ... |
mobile/src/main/java/be/mygod/vpnhotspot/room/Converters.kt | unknown_repo | kotlin | package hanson.xyz.vpnhotspotmod.room
import android.net.MacAddress
import android.text.TextUtils
import androidx.room.TypeConverter
import be.mygod.librootkotlinx.useParcel
import hanson.xyz.vpnhotspotmod.net.MacAddressCompat
import hanson.xyz.vpnhotspotmod.net.MacAddressCompat.Companion.toLong
import timber.log.Timb... |
app/src/main/java/com/therouter/app/serviceprovider/IKotlinServiceProvider.kt | unknown_repo | kotlin | package com.therouter.app.serviceprovider
import android.content.Context
import android.widget.Toast
import com.therouter.inject.ServiceProvider
@ServiceProvider(returnType = IKotlinSerivce::class, params = [Context::class, String::class])
fun create(context: Context, str: String): IKotlinSerivce = object : IKotlinSe... |
app/src/main/java/com/simbiri/equityjamii/ui/main_activity/news_page/official_coms/OfficialFragment.kt | unknown_repo | kotlin | package com.simbiri.equityjamii.ui.main_activity.news_page.official_coms
import androidx.lifecycle.ViewModelProvider
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.LinearLayoutM... |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/CloudDown.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
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
im... |
app/src/main/java/com/example/notes/notes/NewNoteFragment.kt | unknown_repo | kotlin | package com.example.notes.notes
import ConvertToDate
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Context
import android.content.SharedPreferences
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import andro... |
app/src/main/kotlin/com/example/tasty/data/local/dao/RecipeDao.kt | unknown_repo | kotlin | package com.example.tasty.data.local.dao
import androidx.paging.PagingSource
import androidx.room.Dao
import androidx.room.Query
import androidx.room.Upsert
import com.example.tasty.data.local.model.Recipe
import com.example.tasty.data.local.model.RecipeTagCrossRef
import com.example.tasty.data.local.model.RecipeWithT... |
app/src/main/java/de/drtobiasprinz/summitbook/fragments/AddSegmentEntryFragment.kt | unknown_repo | kotlin | package de.drtobiasprinz.summitbook.fragments
import android.graphics.Color
import android.graphics.Paint
import android.graphics.drawable.Drawable
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.AdapterView
import android.widget.... |
onetap-compose/src/main/kotlin/com/vk/id/onetap/compose/onetap/sheet/content/SheetContentAuthFailed.kt | unknown_repo | kotlin | @file:OptIn(InternalVKIDApi::class)
package com.vk.id.onetap.compose.onetap.sheet.content
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Box
import androidx.compose.... |
libnavigation-voice/src/main/java/com/mapbox/navigation/voice/api/VoiceApiProvider.kt | unknown_repo | kotlin | package com.mapbox.navigation.voice.api
import android.content.Context
import com.mapbox.navigation.core.internal.accounts.MapboxNavigationAccounts
import com.mapbox.navigation.ui.utils.internal.resource.ResourceLoaderFactory
import com.mapbox.navigation.voice.options.MapboxSpeechApiOptions
import java.io.File
intern... |
app/src/main/java/com/umang/stumate/general/ClassMatesActivity.kt | unknown_repo | kotlin | package com.umang.stumate.general
import android.app.Dialog
import android.content.Intent
import android.opengl.Visibility
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.Button
import android.widget.TextView
import android.widget.Toast
import and... |
app/src/main/java/org/kaqui/mainmenu/VocabularyMenuActivity.kt | unknown_repo | kotlin | package org.kaqui.mainmenu
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.Gravity
import android.widget.TextView
import org.jetbrains.anko.*
import org.kaqui.R
import org.kaqui.menuWidth
import org.kaqui.model.TestType
import org.kaqui.settings.JlptSelectionActivity
import... |
app/src/main/java/me/qcuncle/nowinnews/util/WebViewPool.kt | unknown_repo | kotlin | package me.qcuncle.nowinnews.util
import android.annotation.SuppressLint
import android.app.Application
import android.os.Looper
import android.util.Log
import android.webkit.WebResourceRequest
import android.webkit.WebSettings
import android.webkit.WebView
import android.webkit.WebViewClient
import kotlinx.coroutines... |
app/src/main/java/com/romandevyatov/bestfinance/viewmodels/foreachmodel/TransferHistoryViewModel.kt | unknown_repo | kotlin | package com.romandevyatov.bestfinance.viewmodels.foreachmodel
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.romandevyatov.bestfinance.db.entities.TransferHistory
import com.romandevyatov.bestfinance.repositories.TransferHistoryRepository
impo... |
app/src/main/java/com/lee/toollibrary/adapters/ViewAdapter.kt | unknown_repo | kotlin | package com.lee.toollibrary.adapters
import android.content.Context
import android.view.ViewGroup
import com.lee.mylibrary.BaseRecyclerViewAdapter
import com.lee.mylibrary.UniversalViewHolder
import com.lee.toollibrary.R
import kotlinx.android.synthetic.main.item_views.view.*
/**
* Created by nick on 2018/8/15.
* 自... |
app/src/main/java/com/dreamsoftware/fudge/component/player/audio/FudgeTvAudioPlayerControllerIndicator.kt | unknown_repo | kotlin | package com.dreamsoftware.fudge.component.player.audio
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Modifier
import androidx... |
feature/pick-color/src/main/java/ru/tech/imageresizershrinker/feature/pick_color/presentation/viewModel/PickColorViewModel.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/test/kotlin/com/adesso/movee/scene/moviedetail/MovieDetailViewModelTest.kt | unknown_repo | kotlin | package com.adesso.movee.scene.moviedetail
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import com.adesso.movee.domain.FetchMovieDetailFlowUseCase
import com.adesso.movee.internal.popup.PopupModel
import com.adesso.movee.internal.util.Failure
import com.adesso.movee.scene.moviedetail.model.MovieD... |
app/src/main/java/ee/ioc/phon/android/speak/demo/EncoderListDemo.kt | unknown_repo | kotlin | package ee.ioc.phon.android.speak.demo
import android.app.ListActivity
import android.os.Bundle
import android.widget.ArrayAdapter
import ee.ioc.phon.android.speak.R
import ee.ioc.phon.android.speechutils.utils.AudioUtils
import java.util.*
class EncoderListDemo : ListActivity() {
public override fun onCreate(sa... |
app/src/main/java/br/com/movieapp/core/paging/MovieSearchPagingSource.kt | unknown_repo | kotlin | package br.com.movieapp.core.paging
import androidx.paging.PagingSource
import androidx.paging.PagingState
import br.com.movieapp.core.domain.model.MovieSearch
import br.com.movieapp.search.feature.domain.source.MovieSearchRemoteDataSource
class MovieSearchPagingSource(
private val query: String,
private val ... |
app/src/main/java/app/ferdyhaspin/quotes/ui/component/home/quotes/QuotesFragment.kt | unknown_repo | kotlin | package app.ferdyhaspin.quotes.ui.component.home.quotes
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.DividerItemDecoration
import androidx.recyclerview.widget.LinearLayoutMan... |
core/data/src/main/java/komu/seki/data/handlers/MediaHandler.kt | unknown_repo | kotlin | package komu.seki.data.services
import android.app.NotificationChannel
import android.app.NotificationManager
import android.content.Context
import android.support.v4.media.MediaMetadataCompat
import android.support.v4.media.session.MediaSessionCompat
import android.support.v4.media.session.PlaybackStateCompat
import ... |
app/src/main/java/com/mytests/testExam/presentation/Authorization.kt | unknown_repo | kotlin | package com.mytests.testExam.presentation
import androidx.compose.foundation.layout.*
import androidx.compose.runtime.*
import androidx.compose.runtime.saveable.rememberSaveable
import androidx.compose.ui.*
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.input.KeyboardType
import androidx... |
next/kmp/browser/src/commonMain/kotlin/org/dweb_browser/browser/desk/render/TaskBarAppIcon.kt | unknown_repo | kotlin | package org.dweb_browser.browser.desk.render
import androidx.compose.animation.core.Spring
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animation.core.spring
import androidx.compose.animation.core.tween
import androidx.compose.foundation.layout.BoxWithConstraints
import androidx.c... |
samples/AlertDialog/common/src/desktopMain/kotlin/dev/atsushieno/composempp/samples/alertdialog/DesktopApp.kt | unknown_repo | kotlin | package dev.atsushieno.composempp.samples.alertdialog
import androidx.compose.desktop.ui.tooling.preview.Preview
import androidx.compose.runtime.Composable
@Preview
@Composable
fun AppPreview() {
App()
} |
prefpin-annotation/src/main/java/prefpin/OnPrefClick.kt | unknown_repo | kotlin | package prefpin
import androidx.annotation.StringRes
import kotlin.reflect.KClass
/**
* Binds a method to the OnPreferenceClick handler of a preference for the specific key.
*/
@Retention(AnnotationRetention.BINARY)
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTE... |
app/src/main/java/com/fredrikbogg/android_chat_app/util/LiveDataExt.kt | unknown_repo | kotlin | package com.fredrikbogg.android_chat_app.util
import androidx.lifecycle.MutableLiveData
fun <T> MutableLiveData<MutableList<T>>.addNewItem(item: T) {
val newList = mutableListOf<T>()
this.value?.let { newList.addAll(it) }
newList.add(item)
this.value = newList
}
fun <T> MutableLiveData<MutableList<T>... |
common/ui/compose/src/main/java/app/tivi/common/compose/ui/ExpandingSummary.kt | unknown_repo | kotlin | /*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... |
builder/src/main/java/com/kamer/builder/MainNavigationScreenHolder.kt | unknown_repo | kotlin | package com.kamer.builder
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.animation.EnterTransition
import androidx.compose.animation.ExitTransition
import androidx.compose.animation.core.tween
import androidx.compose.animation.fadeIn
import androidx.compose.animat... |
app/src/main/java/com/example/gcore_vod_demo/screens/main/tabs/videos/remote/model/UiVideoItem.kt | unknown_repo | kotlin | package com.example.gcore_vod_demo.screens.main.tabs.videos.remote.model
import android.os.Parcelable
import com.example.gcore_vod_demo.data.remote.video.VideoItemResponse
import kotlinx.parcelize.Parcelize
@Parcelize
data class UiVideoItem(
val id: Int,
val name: String,
var uri: String,
val previewU... |
sample/todo/common/src/commonMain/kotlin/moe/tlaster/common/App.kt | unknown_repo | kotlin | package moe.tlaster.common
import androidx.compose.animation.scaleIn
import androidx.compose.animation.scaleOut
import androidx.compose.animation.slideInVertically
import androidx.compose.animation.slideOutVertically
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.material.MaterialThem... |
dnie/src/main/java/es/fnmtrcm/ceres/certificadoDigitalFNMT/dnie/utils/NFCWatchdogRefresher.kt | unknown_repo | kotlin | package es.fnmtrcm.ceres.certificadoDigitalFNMT.dnie.utils
import android.nfc.Tag
import android.nfc.tech.IsoDep
import android.os.Handler
import android.os.HandlerThread
import android.util.Log
import java.lang.ref.WeakReference
internal object NFCWatchdogRefresher {
private val TAG = NFCWatchdogRefresher::class... |
app/src/main/java/app/rockstar/feature/songs/list/adapter/SongItemDiffer.kt | unknown_repo | kotlin | /*
* Copyright (c) 2023 The Rockstar authors and contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package app.rockstar.feature.songs.list.adapter
import androidx.recyclerview.widget.DiffUtil
internal object SongItemDiffer : DiffUtil.ItemCallba... |
app/src/main/java/com/poly/budgethelp/SpendingOverviewActivity.kt | unknown_repo | kotlin | package com.poly.budgethelp
import android.content.Intent
import android.graphics.Color
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.AdapterView
import android.widget.ArrayAdapter
import android.widget.Button
import andr... |
app/src/main/java/com/pr0gramm/app/services/preloading/PreloadService.kt | unknown_repo | kotlin | package com.pr0gramm.app.services.preloading
import android.app.IntentService
import android.app.PendingIntent
import android.app.Service
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.PowerManager
import androidx.core.app.NotificationCompat
import androidx.core.a... |
glance/glance-appwidget/integration-tests/demos/src/main/java/androidx/glance/appwidget/demos/ProgressIndicatorAppWidget.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/example/movieproject/ui/fragment/login/LoginFragment.kt | unknown_repo | kotlin | @file:Suppress("DEPRECATION")
package com.example.movieproject.ui.fragment.login
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.fragment.app.Fragment
im... |
app/src/main/java/com/seeleo/mikuweather/viewmodel/WeatherViewModelFactory.kt | unknown_repo | kotlin | package com.seeleo.mikuweather.viewmodel
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.seeleo.mikuweather.repository.WeatherRepository
class WeatherViewModelFactory(private val weatherRepository: WeatherRepository) : ViewModelProvider.Factory {
override fun <T : ViewMo... |
source-code/starter-project/BookHaven/app/src/main/java/com/droidcon/bookhaven/ui/book/detail/BookDetailScreen.kt | unknown_repo | kotlin | package com.droidcon.bookhaven.ui.book.detail
import android.widget.Toast
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.ui.Modifier
import androidx.compose... |
app/src/main/java/com/kylecorry/trail_sense/shared/views/chart/label/HourChartLabelFormatter.kt | unknown_repo | kotlin | package com.kylecorry.trail_sense.shared.views.chart.label
import android.content.Context
import com.kylecorry.ceres.chart.label.ChartLabelFormatter
import com.kylecorry.sol.time.Time
import com.kylecorry.sol.time.Time.toZonedDateTime
import com.kylecorry.trail_sense.shared.FormatService
import java.time.Instant
impor... |
coil-base/src/test/java/coil/intercept/EngineInterceptorTest.kt | unknown_repo | kotlin | package coil.interceptor
import android.content.Context
import android.graphics.Bitmap
import android.graphics.Color
import android.graphics.drawable.BitmapDrawable
import android.graphics.drawable.ColorDrawable
import androidx.test.core.app.ApplicationProvider
import coil.ComponentRegistry
import coil.EventListener
i... |
app/src/main/java/org/tokend/template/fragments/BaseFragment.kt | unknown_repo | kotlin | package org.tokend.template.fragments
import android.content.Intent
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.View
import io.reactivex.disposables.CompositeDisposable
import org.tokend.template.App
import org.tokend.template.activities.OnBackPressedListener
import org.tokend.te... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.