file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/com/xuexiang/databindingsample/fragment/advanced/recyclerview/model/RecyclerViewRefreshStatusState.kt | unknown_repo | kotlin | /*
* Copyright (C) 2023 xuexiangjys(<EMAIL>)
*
* 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 la... |
app/src/main/java/com/example/shinelon/lianqin/helper/ItemTouchCallback.kt | unknown_repo | kotlin | package com.example.shinelon.lianqin.helper
import android.graphics.Canvas
import android.graphics.Color
import android.support.v7.widget.RecyclerView
import android.support.v7.widget.helper.ItemTouchHelper
import android.util.Log
import com.example.shinelon.lianqin.NoteActivity
import com.example.shinelon.lianqin.R
... |
app/src/main/java/com/kotlin/tiaistiana/ui/negara/CountriesAdapter.kt | unknown_repo | kotlin | package com.kotlin.tiaistiana.ui.negara
import android.net.Uri
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.kotlin.tiaistiana.databinding.RowCountryListBinding
import com.kotlin.tiaistiana.repository.model.negara.Country
import com.kotlin.... |
lib/src/main/java/com/skybox/seven/survey/helper/BasicFragmentArgs.kt | unknown_repo | kotlin | package com.skybox.seven.survey.helper
import android.os.Bundle
private const val TITLE = "title"
private const val SUBTITLE = "subtitle"
private const val BUTTON_TITLE = "button_title"
class BasicFragmentArgs(val bundle: Bundle) {
var title: String? = null
var subTitle: String? = null
var nextTitle: Str... |
app/src/main/java/de/schalter/losungen/screens/settings/SettingsActivity.kt | unknown_repo | kotlin | package de.schalter.losungen.screens.settings
import android.content.SharedPreferences
import android.graphics.PorterDuff
import android.os.Build
import android.os.Bundle
import android.view.MenuItem
import android.widget.Toast
import androidx.appcompat.widget.Toolbar
import androidx.preference.*
import de.schalter.cu... |
paymentsheet/src/main/java/com/stripe/android/customersheet/injection/CustomerSheetViewModelModule.kt | unknown_repo | kotlin | package com.stripe.android.customersheet.injection
import android.app.Application
import android.content.res.Resources
import com.stripe.android.PaymentConfiguration
import com.stripe.android.ui.core.forms.resources.LpmRepository
import dagger.Module
import dagger.Provides
@Module
internal class CustomerSheetViewMode... |
src/frontend/android/unity_wallet/app/src/main/java/unity_wallet/UnityCore.kt | unknown_repo | kotlin | // Copyright (c) 2018 The Gulden developers
// Authored by: <NAME> (<EMAIL>)
// Distributed under the GULDEN software license, see the accompanying
// file COPYING
package com.gulden.unity_wallet
import android.util.Log
import com.gulden.jniunifiedbackend.*
import kotlinx.coroutines.CompletableDeferred
import java.ut... |
portfolio/shared/src/commonMain/kotlin/example/portfolio/style/Palette.kt | unknown_repo | kotlin | package example.portfolio.style
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material.darkColors
import androidx.compose.material3.LocalTextStyle
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.ProvideTextStyle
import androidx.compose.material3.darkCo... |
app/src/main/kotlin/com/aboust/develop_guide/service/DownloadRequest.kt | unknown_repo | kotlin | package com.aboust.develop_guide.service
import android.net.Uri
import android.os.Build
import android.os.Parcel
import android.os.Parcelable
/**
* 下载任务请求
*/
class DownloadRequest private constructor() : Parcelable {
private var allowedNetworkType: Int = -1
private var uri: Uri? = null
private var d... |
kotlinlog/src/main/kotlin/quanti/com/kotlinlog/file/file/MetadataFile.kt | unknown_repo | kotlin | package quanti.com.kotlinlog.file.file
import android.content.Context
import quanti.com.kotlinlog.android.MetadataLogger
import quanti.com.kotlinlog.utils.openLogFileOutput
import java.io.FileOutputStream
class MetadataFile(appCtx: Context) {
private val fileName = "PhoneMetadata.log"
private var fos: FileO... |
yetutil/src/main/java/yet/ui/list/select/SelectPage.kt | unknown_repo | kotlin | package yet.ui.list.select
import android.content.Context
import android.os.Bundle
import android.view.View
import android.widget.LinearLayout
import net.yet.R
import yet.theme.Str
import yet.ui.list.ListPage
import yet.ui.list.check.CheckView
import yet.ui.page.Cmd
/**
* Created by entaoyang@163.com on 2017-01-05.
... |
movie/src/main/java/com/future/movie/home/viewmodel/MovieHomeViewModel.kt | unknown_repo | kotlin | package com.future.movie.home.viewmodel
import android.util.Log
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.future.common.CommonUtils
import com.future.movie.R
import com.future.movie.db.entity.MovieEntity
import com.future.movie.network.MovieRepository
import com.future.mo... |
solar/src/main/java/com/chiksmedina/solar/bold/__NatureTravel.kt | unknown_repo | kotlin | package com.chiksmedina.solar.bold
import androidx.compose.ui.graphics.vector.ImageVector
import com.chiksmedina.solar.BoldSolar
import com.chiksmedina.solar.bold.naturetravel.Bonfire
import com.chiksmedina.solar.bold.naturetravel.Fire
import com.chiksmedina.solar.bold.naturetravel.FireMinimalistic
import com.chiksmed... |
app/src/main/java/rio/arj/imovie/MovieApplication.kt | unknown_repo | kotlin | package rio.arj.imovie
import android.app.Application
import android.content.Context
class MovieApplication : Application() {
init {
instance = this
}
companion object {
private var instance: MovieApplication? = null
fun applicationContext(): Context {
return instance!!.applicationContext
... |
sudoemail/src/test/java/com/sudoplatform/sudoemail/samples/Samples.kt | unknown_repo | kotlin | /*
* Copyright © 2024 <NAME>, Inc. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.sudoplatform.sudoemail.samples
import android.content.Context
import com.sudoplatform.sudoemail.BaseTests
import com.sudoplatform.sudoemail.SudoEmailClient
import com.sudoplatform.sudoemail.SudoEmailNoti... |
app/src/androidTest/java/com/mayokunadeniyi/instantweather/kaspresso/screen/SettingsScreen.kt | unknown_repo | kotlin | package com.mayokunadeniyi.instantweather.kaspresso.screen
import android.view.View
import com.agoda.kakao.recycler.KRecyclerItem
import com.agoda.kakao.recycler.KRecyclerView
import com.agoda.kakao.text.KTextView
import com.mayokunadeniyi.instantweather.R
import com.mayokunadeniyi.instantweather.ui.settings.SettingsF... |
client-android/src/main/java/eventually/client/settings/Settings.kt | unknown_repo | kotlin | package eventually.client.settings
import android.content.SharedPreferences
import java.time.DayOfWeek
import java.time.Duration
import java.util.Calendar
import java.util.Locale
object Settings {
fun SharedPreferences.getSummarySize(): Duration {
val size = (getString(Keys.SummarySize, Defaults.SummarySi... |
src/pt/vizer/src/eu/kanade/tachiyomi/animeextension/pt/vizer/extractors/WarezExtractor.kt | unknown_repo | kotlin | package eu.kanade.tachiyomi.animeextension.pt.vizer.extractors
import android.util.Base64
import eu.kanade.tachiyomi.animesource.model.Video
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.network.POST
import eu.kanade.tachiyomi.util.asJsoup
import okhttp3.FormBody
import okhttp3.Headers
import okhtt... |
app/src/main/java/com/baymax104/bookmanager20compose/repo/database/BookDao.kt | unknown_repo | kotlin | package com.baymax104.bookmanager20compose.repo.database
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import androidx.room.Update
import com.baymax104.bookmanager20compose.bean.entity.BookEntity
import java.util.Date
/**
* Book表Mapper
* @author John
*/
@Dao
interface BookDao {
... |
app/src/main/java/com/example/moovix/ui/adapters/SimilarSeries.kt | unknown_repo | kotlin | package com.example.moovix.ui.adapters
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.example.moovix.R
import com.example.moovix.data.model.SeriesResult
import kotlinx.android.syntheti... |
room_db/src/main/java/com/owner/room_db/dao/UserDao.kt | unknown_repo | kotlin | package com.owner.room_db.dao
import androidx.room.*
import com.owner.room_db.entity.User
/**
* 数据访问对象
*/
@Dao
interface UserDao {
// 查询
@Query("SELECT * FROM loginUser")
fun queryAllUser(): MutableList<User>
//根据姓名参数查询
@Query("SELECT * FROM loginUser WHERE name = :name")
fun queryFindUser... |
app/src/main/java/org/obd/graphs/preferences/dri/NewDiagnosticRequestIDPreference.kt | unknown_repo | kotlin | /**
* Copyright 2019-2023, <NAME>
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Versi... |
feature-ui/session-search/src/commonMain/kotlin/com/addhen/fosdem/ui/session/search/component/SearchTextFieldAppBar.kt | unknown_repo | kotlin | // Copyright 2023, Addhen Limited and the FOSDEM Event app project contributors
// SPDX-License-Identifier: Apache-2.0
package com.addhen.fosdem.ui.session.search.component
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Box
import androidx.compose.fou... |
Project1-LetsGoV2-master/app/src/main/java/com/example/project1_letsgov2/DeleteAccount.kt | unknown_repo | kotlin | package com.example.project1_letsgov2
import android.content.Intent
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.clickable
import androidx.compose.foundatio... |
app/src/main/java/com/saharw/mymusicplayer/presentation/activities/files/mvp/FilesModel.kt | unknown_repo | kotlin | package com.saharw.mymusicplayer.presentation.activities.files.mvp
import android.util.Log
import com.saharw.mymusicplayer.entities.data.base.MediaItem
import com.saharw.mymusicplayer.presentation.base.IModel
import com.saharw.mymusicplayer.service.MusicService
import java.lang.ref.WeakReference
/**
* Created by sah... |
showkase-processor-testing/src/test/resources/ShowkaseProcessorTest/top_level_function_with_showkase_composable_and_preview_parameter_and_showkaseroot_and_no_name_or_group/input/TestShowkaseRoot.kt | unknown_repo | kotlin | package com.airbnb.android.showkase_processor_testing
import com.airbnb.android.showkase.annotation.ShowkaseComposable
import androidx.compose.runtime.Composable
import com.airbnb.android.showkase.annotation.ShowkaseRoot
import com.airbnb.android.showkase.annotation.ShowkaseRootModule
@ShowkaseRoot
public class TestS... |
data/local/src/main/java/com/tamimattafi/pizza/android/data/local/entities/PizzaEntity.kt | unknown_repo | kotlin | package com.tamimattafi.pizza.android.data.local.entities
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.tamimattafi.pizza.android.data.local.database.PrimaryDatabase.Tables.PIZZA_TABLE
import com.tamimattafi.pizza.domain.model.Pizza
@Entity(tableName = PIZZA_TABLE)
data class PizzaEntity(
... |
shuttle/permissions/presentation/src/main/kotlin/shuttle/permissions/presentation/ui/AccessibilityServiceDialog.kt | unknown_repo | kotlin | package shuttle.permissions.presentation.ui
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compo... |
app/src/main/java/com/seosh817/moviehub/ui/MainViewModel.kt | unknown_repo | kotlin | package com.seosh817.moviehub.ui
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.seosh817.moviehub.core.domain.repository.AppPreferencesRepository
import com.seosh817.moviehub.core.model.AppLanguage
import com.seosh817.moviehub.core.model.DarkThemeMode
import dagger.hilt.android... |
lib/src/main/java/com/pmm/ui/helper/SplashCountDownTimer.kt | unknown_repo | kotlin | package com.pmm.ui.helper
import android.os.CountDownTimer
import android.widget.TextView
//广告页倒计时
class SplashCountDownTimer(
var tv_send_code: TextView? = null,
val countDownSecond: Int = 3
) {
private var cd: CountDownTimer
var onTimeIsUpListener: (() -> Unit)? = null
init {
... |
wear/src/main/java/com/turtlepaw/cats/database/dao.kt | unknown_repo | kotlin | package com.turtlepaw.cats.database
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
@Dao
interface ImageDao {
@Insert
suspend fun insertImage(measurement: Image)
@Insert
suspend fun insertImages(images: List<Image>)
@Query("SELECT * FROM images ORDER BY RANDOM()")... |
PrimFastKotlin/KotlinAction/app/src/main/java/com/prim/gkapp/data/model/Events.kt | unknown_repo | kotlin | package com.prim.gkapp.data.model
import android.os.Parcelable
import com.prim.gkapp.anno.POKO
import kotlinx.android.parcel.Parcelize
@POKO
@Parcelize
data class Events(val actor: Actor,
val public: Boolean = false,
val payload: Payload,
val org: Org,
... |
app/src/main/java/sideproject/tseen/pokemonassignment/model/PokemonCardDetail.kt | unknown_repo | kotlin | package sideproject.tseen.pokemonassignment.model
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity
data class PokemonCardDetail(
@PrimaryKey val pokemonName: String,
val evolveFrom: String?,
val desc: String?
)
|
ChoiceSDK/choicesdk-maps/src/main/java/at/bluesource/choicesdk/maps/hms/HmsCameraUpdateFactory.kt | unknown_repo | kotlin | package at.bluesource.choicesdk.maps.hms
import android.graphics.Point
import at.bluesource.choicesdk.maps.common.CameraPosition
import at.bluesource.choicesdk.maps.common.CameraPosition.Companion.toHmsCameraPosition
import at.bluesource.choicesdk.maps.common.CameraUpdate
import at.bluesource.choicesdk.maps.common.Cam... |
app/src/main/java/com/tinytongtong/dandelion/biz/grouplist/ApkGroupsListPresenter.kt | unknown_repo | kotlin | package com.tinytongtong.dandelion.biz.grouplist
import android.util.Log
import com.tinytongtong.dandelion.biz.grouplist.bean.ApkGroupsListBean
import io.reactivex.Observer
import io.reactivex.disposables.Disposable
import okhttp3.ResponseBody
/**
* @Description: $desc$
*
* @Author <EMAIL>
* @Version $version$
*... |
pluto/src/main/java/com/mocklets/pluto/modules/settings/SettingsViewModel.kt | unknown_repo | kotlin | package com.mocklets.pluto.modules.settings
import android.app.Application
import android.content.Context
import android.os.Build
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import com.mocklets.pluto.co... |
UIViewLess/src/main/java/com/angcyo/uiview/less/component/Debounce.kt | unknown_repo | kotlin | package com.angcyo.uiview.less.component
import android.os.Handler
import android.os.Looper
/**
* 防抖动
* Email:<EMAIL>
* @author angcyo
* @date 2019/10/22
* Copyright (c) 2019 ShenZhen O&M Cloud Co., Ltd. All rights reserved.
*/
object Debounce {
val _mainHandler: Handler by lazy {
Handler(Looper.get... |
tutorials/tutorial-sample/src/main/java/com/zhuinden/simplestacktutorials/steps/step_7/features/registration/EnterProfileDataFragment.kt | unknown_repo | kotlin | package com.zhuinden.simplestacktutorials.steps.step_7.features.registration
import android.os.Bundle
import android.view.View
import com.zhuinden.simplestackextensions.fragments.KeyedFragment
import com.zhuinden.simplestackextensions.fragmentsktx.lookup
import com.zhuinden.simplestacktutorials.R
import com.zhuinden.s... |
features/ftue/impl/src/main/kotlin/io/element/android/features/ftue/impl/notifications/NotificationsOptInPresenter.kt | unknown_repo | kotlin | /*
* Copyright (c) 2023 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... |
RP/pocJava/app/src/main/java/com/hexadec/megalexa/view/activities/SettingsActivity.kt | unknown_repo | kotlin | package com.hexadec.megalexa.view.activities
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.preference.PreferenceFragmentCompat
import com.hexadec.megalexa.R
import com.hexadec.megalexa.model.HexadecUser
class SettingsActivity : AppCompatActivity() {
override fun onCreat... |
webauthnkit/src/main/kotlin/webauthnkit/core/authenticator/internal/key/DefaultKeySupport.kt | unknown_repo | kotlin | package com.luque.webauthn.authenticator.internal.key
import android.annotation.TargetApi
import android.os.Build
import android.security.keystore.KeyGenParameterSpec
import android.security.keystore.KeyProperties
import com.luque.webauthn.util.WAKLogger
import com.luque.webauthn.util.ByteArrayUtil
import java.securit... |
app/src/main/java/com/urbandroid/dontkillmyapp/gui/BenchmarkView.kt | unknown_repo | kotlin | package com.urbandroid.dontkillmyapp.gui
import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.graphics.Path
import android.util.AttributeSet
import android.view.View
import com.urbandroid.dontkillmyapp.domain.Benchmark
import java.util... |
v-frame/src/main/java/com/vension/frame/base/V_Application.kt | unknown_repo | kotlin | package com.vension.frame.base
import android.content.Context
import android.content.res.Configuration
import android.support.multidex.MultiDexApplication
import android.util.Log
import com.gw.swipeback.tools.WxSwipeBackActivityManager
import com.orhanobut.logger.AndroidLogAdapter
import com.orhanobut.logger.Logger
im... |
Bi-tu/app/src/main/java/com/kotuz/mesajbulutu/matematikeGiris.kt | unknown_repo | kotlin | package com.kotuz.mesajbulutu
import android.content.Intent
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_matematike_giris.*
class matematikeGiris : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.o... |
lib-base/src/main/java/com/me/lib/base/retrofit/RetrofitFactory.kt | unknown_repo | kotlin | package com.me.lib.base.retrofit
import android.util.Log
import okhttp3.Interceptor
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
import retrofit2.Retrofit
import retrofit2.converter.gson.GsonConverterFactory
import java.util.concurrent.TimeUnit
class RetrofitFactory {
companion object... |
circularimageview/src/main/java/com/github/abdularis/civ/AvatarImageView.kt | unknown_repo | kotlin | package com.github.abdularis.civ
import android.content.Context
import android.graphics.*
import android.util.AttributeSet
import androidx.annotation.ColorInt
import androidx.annotation.Dimension
import androidx.annotation.IntDef
/**
* Created by abdularis on 22/03/18.
*/
class AvatarImageView @JvmOverloads constru... |
library/src/main/java/com/suhel/imagine/util/ResUtils.kt | unknown_repo | kotlin | package com.suhel.imagine.util
import android.content.Context
import androidx.annotation.RawRes
fun Context.readRawRes(@RawRes resId: Int): String {
return resources.openRawResource(resId).bufferedReader(Charsets.UTF_8).use { it.readText() }
} |
AndroidBottomBar/src/main/java/com/skydoves/androidbottombar/forms/IconForm.kt | unknown_repo | kotlin | /*
* Designed and developed by 2020 skydoves (<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... |
app/src/main/java/io/github/airdaydreamers/homebuttonhandler/HomeApplication.kt | unknown_repo | kotlin | package io.github.airdaydreamers.homebuttonhandler
import android.app.Application
import androidx.lifecycle.ViewModelStore
import androidx.lifecycle.ViewModelStoreOwner
class HomeApplication : Application(), ViewModelStoreOwner {
//region ViewModelStoreOwner
//TODO:Notes: This is not a good way. This is not a... |
data/src/main/java/weather/data/AndroidPopulateCities.kt | unknown_repo | kotlin | package weather.data
import android.content.Context
import com.squareup.moshi.JsonReader
import com.squareup.moshi.Moshi
import io.reactivex.Completable
import io.reactivex.functions.Action
import okio.GzipSource
import okio.Okio
import javax.inject.Inject
class AndroidPopulateCities @Inject constructor(
private ... |
app/src/main/java/pl/droidsonroids/bugcatching/LocalizationActivity.kt | unknown_repo | kotlin | package pl.droidsonroids.bugcatching
import android.os.Bundle
import android.widget.Button
import androidx.appcompat.app.AppCompatActivity
class LocalizationActivity : AppCompatActivity(R.layout.activity_localization) {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceStat... |
app/src/main/java/dev/kdblib/kdbexemple/data/repository/resource/ResourceRepositoryImpl.kt | unknown_repo | kotlin | package dev.kdblib.kdbexemple.data.repository.resource
import android.app.Application
import dev.kdblib.kdbexemple.R
/**
* Created by psato on 29/06/16.
*/
class ResourceRepositoryImpl(var devCampApplication: Application) : ResourceRepository {
override val notFoundShow: String
get() = devCampApplica... |
blescanner/src/androidTest/java/org/sorz/lab/blescanner/ExampleInstrumentedTest.kt | unknown_repo | kotlin | package org.sorz.lab.blescanner
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.Assert.*
/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documen... |
presentation/src/main/java/com/no1/taiwan/stationmusicfm/features/main/mymusic/MyMusicIndexFragment.kt | unknown_repo | kotlin | /*
* Copyright (C) 2019 The Smash Ks Open Project
*
* 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, ... |
vico/views/src/main/java/com/patrykandpatrick/vico/views/theme/TextComponentStyleExtensions.kt | unknown_repo | kotlin | /*
* Copyright 2022 by <NAME> and <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 ... |
BachelorThesis/app/src/main/java/com/diana/bachelorthesis/viewmodel/ItemChoiceViewModel.kt | unknown_repo | kotlin | package com.diana.bachelorthesis.viewmodel
import androidx.lifecycle.ViewModel
import com.diana.bachelorthesis.model.*
import com.diana.bachelorthesis.repository.ChatRepository
import com.diana.bachelorthesis.repository.ItemRepository
import com.diana.bachelorthesis.repository.ProposalRepository
import com.diana.bache... |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/bold/Frame1.kt | unknown_repo | kotlin | package moe.tlaster.icons.vuesax.vuesaxicons.bold
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.co... |
app/src/main/java/com/rewardtodo/presentation/settings/UserListAdapter.kt | unknown_repo | kotlin | package com.rewardtodo.presentation.settings
import android.graphics.*
import android.os.Build
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.constraintlayout.widget.ConstraintLayout
import android... |
app/src/main/java/com/example/bachelor_work/utils/ToolBarHelper.kt | unknown_repo | kotlin | package com.example.bachelor_work.utils
import android.content.Context
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.Toolbar
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavController
import com.example.bachelor_work.R
import c... |
app/src/main/java/com/maximmakarov/comparator/domain/interactor/ITemplateInteractor.kt | unknown_repo | kotlin | package com.maximmakarov.comparator.domain.interactor
import androidx.lifecycle.LiveData
import com.maximmakarov.comparator.data.model.Template
interface ITemplateInteractor {
fun getTemplates(): LiveData<List<Template>>
fun getTemplateById(templateId: Int): LiveData<Template>
fun addTemplate(name: St... |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/crypto/bulk/Ethereum.kt | unknown_repo | kotlin | package moe.tlaster.icons.vuesax.vuesaxicons.crypto.bulk
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 andr... |
base/src/main/java/jp/juggler/util/ui/UiUtils.kt | unknown_repo | kotlin | package jp.juggler.util.ui
import android.app.Activity
import android.content.Context
import android.content.DialogInterface
import android.content.Intent
import android.content.res.ColorStateList
import android.content.res.TypedArray
import android.graphics.Color
import android.graphics.ColorFilter
import android.gra... |
base/src/main/java/jp/juggler/util/ui/UiUtils.kt | unknown_repo | kotlin | package jp.juggler.util.ui
import android.app.Activity
import android.content.Context
import android.content.DialogInterface
import android.content.Intent
import android.content.res.ColorStateList
import android.content.res.TypedArray
import android.graphics.Color
import android.graphics.ColorFilter
import android.gra... |
sample-compose/src/androidMain/kotlin/com.chrynan.chords.sample.compose/MainActivity.kt | unknown_repo | kotlin | package com.chrynan.chords.sample.compose
import android.os.Bundle
import androidx.activity.compose.setContent
import androidx.appcompat.app.AppCompatActivity
import com.chrynan.chords.model.Chord
import com.chrynan.chords.util.getChord
import com.chrynan.chords.util.putChord
import kotlinx.serialization.json.Json
imp... |
app/src/main/java/com/salton123/eleph/video/compressor/ui/AboutActivity.kt | unknown_repo | kotlin | package com.salton123.eleph.video.compressor.ui
import android.widget.ImageButton
import android.widget.TextView
import com.salton123.base.BaseActivity
import com.salton123.eleph.BuildConfig
import com.salton123.eleph.R
/**
* User: <EMAIL>
* Date: 2020/4/22 21:31
* ModifyTime: 21:31
* Description:
*/
class About... |
app/src/main/java/com/euntaek/mymusic/ui/components/CachedAsyncImage.kt | unknown_repo | kotlin | package com.euntaek.mymusic.ui.components
import android.net.Uri
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.platform.LocalContext
import coil.compose.AsyncImage
import coil.decode.ImageDecoderDecoder
import co... |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/ArrowCircleDown.kt | unknown_repo | kotlin | package me.localx.icons.straight.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
i... |
app/src/main/java/com/mikifus/padland/Database/ServerModel/ServerRepository.kt | unknown_repo | kotlin | package com.mikifus.padland.Database.ServerModel
import androidx.lifecycle.LiveData
class ServerRepository(private val serverDao: ServerDao) {
val getAll: LiveData<List<Server>> = serverDao.getAll()
val getAllEnabled: LiveData<List<Server>> = serverDao.getAllEnabled()
suspend fun insertServer(server: Se... |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/ui/presencetracing/organizer/warn/duration/TraceLocationWarnDurationViewModel.kt | unknown_repo | kotlin | package de.rki.coronawarnapp.ui.presencetracing.organizer.warn.duration
import android.content.res.Resources
import androidx.lifecycle.LiveData
import dagger.assisted.Assisted
import dagger.assisted.AssistedFactory
import dagger.assisted.AssistedInject
import de.rki.coronawarnapp.R
import de.rki.coronawarnapp.presence... |
app/src/main/java/com/github/vase4kin/teamcityapp/account/create/router/CreateAccountRouterImpl.kt | unknown_repo | kotlin | /*
* 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 required by applicable law or agreed to in wri... |
app/src/main/kotlin/xyz/marcreyes/palaylab/app/custom/DisplayChart.kt | unknown_repo | kotlin | package xyz.marcreyes.palaylab.app.custom
import android.graphics.Color
import com.github.mikephil.charting.animation.Easing
import com.github.mikephil.charting.charts.BarChart
import com.github.mikephil.charting.charts.PieChart
import com.github.mikephil.charting.components.XAxis
import com.github.mikephil.charting.d... |
sezzleMerchantSDKAndroid/src/main/java/com/sezzle/sezzlemerchantsdkandroid/CheckoutRequest.kt | unknown_repo | kotlin | package com.sezzle.sezzlemerchantsdkandroid
import android.os.Handler
import android.os.Looper
import android.util.Log
import com.beust.klaxon.Klaxon
import com.sezzle.sezzlemerchantsdkandroid.exception.APIException
import com.sezzle.sezzlemerchantsdkandroid.exception.ConnectionException
import com.sezzle.sezzlemercha... |
app/src/main/java/com/frontinelabs/rxsample/interface/ViewTypeDelegateAdapter.kt | unknown_repo | kotlin | package com.frontinelabs.rxsample.`interface`
import android.support.v7.widget.RecyclerView
import android.view.ViewGroup
/**
* Created by EBaba on 12/10/2017.
*/
interface ViewTypeDelegateAdapter{
fun onCreateViewHolder(parent: ViewGroup): RecyclerView.ViewHolder
fun onBindViewHolder(holder: RecyclerView... |
marcel-android-legacy/app/src/main/java/com/tambapps/marcel/android/marshell/ui/editor/LineCountWatcher.kt | unknown_repo | kotlin | package com.tambapps.marcel.android.marshell.ui.editor
import android.text.Editable
import android.text.TextWatcher
import androidx.lifecycle.MutableLiveData
class LineCountWatcher(private val linesCount: MutableLiveData<Int>): TextWatcher {
override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, a... |
app/src/main/java/com/zkp/wanandroid/http/HttpsUtilWeather.kt | unknown_repo | kotlin | package com.zkp.wanandroid.http
import android.content.Context
import android.util.Log
import com.franmontiel.persistentcookiejar.PersistentCookieJar
import com.franmontiel.persistentcookiejar.cache.SetCookieCache
import com.franmontiel.persistentcookiejar.persistence.SharedPrefsCookiePersistor
import com.zkp.wanandro... |
presentation/src/main/java/com/naeggeodo/presentation/view/MainActivity.kt | unknown_repo | kotlin | package com.naeggeodo.presentation.view
import android.os.Build
import androidx.activity.viewModels
import androidx.core.view.WindowInsetsCompat.Type.ime
import androidx.core.view.isGone
import androidx.navigation.NavController
import androidx.navigation.NavOptions
import androidx.navigation.fragment.NavHostFragment
i... |
app/src/main/java/com/mg/zeldamexchain/ui/view/fragments/EntryFragment.kt | unknown_repo | kotlin | package com.mg.zeldamexchain.ui.view.fragments
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 android.widget.Toast
import androidx.core.view.isInvisible... |
libChat/messagePage/AutoInput/adapter/HorizontalRecyclerAutoInputViewAdapter.kt | unknown_repo | kotlin | package com.somoplay.wefungame.libChat.messagePage.AutoInput.adapter
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.RecyclerView
import... |
app/src/main/java/com/gcect/gcectapp/adapters/ExaminationScheduleViewPagerAdapter.kt | unknown_repo | kotlin | package com.gcect.gcectapp.adapters
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.lifecycle.Lifecycle
import androidx.navigation.NavController
import androidx.viewpager2.adapter.FragmentStateAdapter
import com.gcect.gcectapp.ui.fragments.CSIFragment
import com.gcect... |
core/src/main/java/com/loitp/game/findNumber/ui/FrmFindNumberPlay.kt | unknown_repo | kotlin | package com.game.findnumber.ui
import android.app.ActivityOptions
import android.content.Intent
import android.graphics.Color
import android.os.Bundle
import android.util.TypedValue
import android.view.Gravity
import android.view.View
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.constraintl... |
app/src/main/java/com/muen/sunnyweather/utils/SnackBar.kt | unknown_repo | kotlin | package com.muen.materialdesigntest.utils
import android.view.View
import android.widget.Toast
import com.google.android.material.snackbar.Snackbar
fun View.showSnackbar(text:String,actionText:String?=null,
duration: Int=Toast.LENGTH_SHORT,block:(()->Unit)?=null){
val snackbar=Snackbar.make(... |
app/src/main/java/com/appunite/loudius/ui/components/LoudiusFullScreenError.kt | unknown_repo | kotlin | /*
* Copyright 2023 AppUnite S.A.
*
* 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... |
common-app-covpass/src/main/java/de/rki/covpass/app/certificateswitcher/CertificateSwitcherFragment.kt | unknown_repo | kotlin | /*
* (C) Copyright IBM Deutschland GmbH 2021
* (C) Copyright IBM Corp. 2021
*/
package de.rki.covpass.app.certificateswitcher
import android.content.Context
import android.os.Bundle
import android.view.View
import androidx.core.content.ContextCompat
import androidx.core.view.isVisible
import androidx.recyclerview.... |
app/src/main/java/com/motionapps/sensorbox/fragments/advanced/AdvancedFragment.kt | unknown_repo | kotlin | package com.motionapps.sensorbox.fragments.advanced
import android.Manifest
import android.os.Build
import androidx.core.content.ContextCompat
import androidx.navigation.NavDirections
import androidx.navigation.Navigation
import com.motionapps.sensorbox.R
import com.motionapps.sensorbox.fragments.HomeFragment
import c... |
app/src/main/java/com/example/lessons_schedule/schedule/components/EditScheduleDialog.kt | unknown_repo | kotlin | package com.example.lessons_schedule.schedule.components
import android.app.ActionBar
import android.app.Dialog
import android.content.Context
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import a... |
app/src/main/kotlin/dev/teogor/ceres/feature/lookandfeel/LookAndFeelScreen.kt | unknown_repo | kotlin | /*
* Copyright 2023 teogor (<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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... |
app/src/test/java/se/locutus/sl/realtidhem/ConfigurationTest.kt | unknown_repo | kotlin | package se.locutus.sl.realtidhem
import android.appwidget.AppWidgetManager
import android.content.Context
import android.os.PowerManager
import androidx.test.core.app.ApplicationProvider
import org.hamcrest.CoreMatchers
import org.junit.Assert
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectri... |
app/src/main/java/io/bidmachine/qr_ad_fetcher/ad/VideoAd.kt | unknown_repo | kotlin | package io.bidmachine.qr_ad_fetcher.ad
import android.app.Activity
import android.content.Context
import com.explorestack.iab.utils.IabClickCallback
import com.explorestack.iab.vast.*
import com.explorestack.iab.vast.activity.VastActivity
import io.bidmachine.qr_ad_fetcher.Helper
class VideoAd(private val adListener:... |
app/src/main/java/com/pr0gramm/app/ui/views/UsernameView.kt | unknown_repo | kotlin | package com.pr0gramm.app.ui.views
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.*
import android.text.SpannableStringBuilder
import android.text.style.ForegroundColorSpan
import android.text.style.ImageSpan
import android.util.AttributeSet
import android.widget.TextView
... |
androidApp/src/main/java/cat/alexgluque/paraulogicsolver/android/RootVIew.kt | unknown_repo | kotlin | package cat.alexgluque.paraulogicsolver.android
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.layout.Arrangement.Center
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.material.Text
import androidx.compose... |
ui/source/src/main/kotlin/dev/sanson/lightroom/ui/source/ChooseSource.kt | unknown_repo | kotlin | // Copyright (C) 2023, Jamie Sanson
// SPDX-License-Identifier: Apache-2.0
package dev.sanson.lightroom.ui.source
import androidx.compose.animation.animateColorAsState
import androidx.compose.animation.animateContentSize
import androidx.compose.animation.core.animateDpAsState
import androidx.compose.animation.core.ani... |
multiplatform-compose/src/androidMain/kotlin/com/rouge41/kmm/compose/foundation/lazy/LazyColumn.kt | unknown_repo | kotlin | package com.rouge41.kmm.compose.foundation.lazy
import com.rouge41.kmm.compose.ui.Modifier
import com.rouge41.kmm.compose.foundation.layout.PaddingValues
import com.rouge41.kmm.compose.foundation.InteractionState
import com.rouge41.kmm.compose.foundation.layout.Arrangement
import com.rouge41.kmm.compose.foundation.lay... |
app/src/main/java/com/yvkalume/gifapp/ui/screen/favorite/FavoriteScreen.kt | unknown_repo | kotlin | package com.yvkalume.gifapp.ui.screen.favorite
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.wrapContentHeight
impo... |
app/src/main/java/com/duckduckgo/app/global/view/ClearPersonalDataAction.kt | unknown_repo | kotlin | /*
* Copyright (c) 2018 DuckDuckGo
*
* 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 ... |
data/local/src/main/java/com/developersancho/local/db/RortyDatabase.kt | unknown_repo | kotlin | package com.developersancho.local.db
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import com.developersancho.local.converter.StringListConverter
import com.developersancho.local.dao.CharacterFavoriteDao
import com.developersancho.local.dao.EpisodeFavoriteDao
impor... |
app/src/main/java/com/android/anonymous_02_22/ui/recycler/OffsetItemDecoration.kt | unknown_repo | kotlin | package com.android.anonymous_02_22.ui.recycler
import android.graphics.Rect
import android.view.View
import androidx.recyclerview.widget.RecyclerView
class OffsetItemDecoration(private val spanCount: Int, private val spacing: Int, private val includeEdge: Boolean) : RecyclerView.ItemDecoration() {
private var f... |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/BlogPencil.kt | unknown_repo | kotlin | package me.localx.icons.rounded.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... |
wear/src/main/java/com/turtlepaw/sleeptools/utils/data.kt | unknown_repo | kotlin | package com.turtlepaw.sleeptools.utils
import android.util.Log
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.core.edit
import androidx.datastore.preferences.core.stringSetPreferencesKey
import androidx.lifecycle.ViewModel
import an... |
app/src/main/java/com/bitshares/oases/database/blockchain_daos/VestingBalanceDao.kt | unknown_repo | kotlin | package com.bitshares.oases.database.blockchain_daos
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Query
import bitshareskit.objects.GrapheneObject
import bitshareskit.objects.VestingBalanceObject
@Dao
interface VestingBalanceDao : GrapheneObjectDao<VestingBalanceObject> {
@Que... |
libraries/design/src/main/java/com/fappslab/seedcake/libraries/design/pluto/customview/plutopinview/PinResult.kt | unknown_repo | kotlin | package com.fappslab.seedcake.libraries.design.pluto.customview.plutopinview
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
sealed class PinResult : Parcelable {
object Validate : PinResult()
data class Register(val pin: String) : PinResult()
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.