file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
sample-android/src/main/java/com/chrynan/sample/ui/activity/MainActivity.kt | unknown_repo | kotlin | package com.chrynan.sample.ui.activity
import android.os.Bundle
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.chrynan.aaaah.ManagerRecyclerViewAdapter
import com.chrynan.chords.model.Chord
import com.chrynan.sample.R
import com.chrynan.sample.viewmo... |
app/src/main/java/mil/nga/msi/ui/port/PortViewModel.kt | unknown_repo | kotlin | package mil.nga.msi.ui.port
import androidx.lifecycle.ViewModel
import androidx.lifecycle.asLiveData
import androidx.lifecycle.viewModelScope
import com.google.android.gms.maps.model.TileProvider
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.corou... |
client/app/src/main/java/com/google/mediapipe/examples/gesturerecognizer/OverlayView.kt | unknown_repo | kotlin | package com.google.mediapipe.examples.gesturerecognizer
import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.util.AttributeSet
import android.view.View
import androidx.core.content.ContextCompat
import com.google.mediapipe.tasks.vision... |
app/src/main/java/com/nithi/securityauthapp/repository/AuthRepository.kt | unknown_repo | kotlin | package com.nithi.securityauthapp.repository
import android.app.Application
import android.os.Build
import android.util.Base64
import android.util.Log
import androidx.annotation.RequiresApi
import com.example.secureauthentication.database.dao.UserDao
import com.example.secureauthentication.utils.Decryptor
import com.e... |
querydsl-kotlin-codegen/src/main/kotlin/com/querydsl/kotlin/codegen/KotlinEntitySerializer.kt | unknown_repo | kotlin | /*
* Copyright 2021, The Querydsl Team (http://www.querydsl.com/team)
*
* 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/src/main/java/com/ku_stacks/ku_ring/ui/main/notice/category/stage0_Bachelor/BachelorViewModel.kt | unknown_repo | kotlin | package com.ku_stacks.ku_ring.ui.main.notice.category.stage0_Bachelor
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.paging.PagingData
import com.ku_stacks.ku_ring.data.model.Notice
import com.ku_stacks.ku_ring.repository.NoticeRepository
import dagger.hilt.android.lifecyc... |
app/src/main/java/io/github/kenneycode/openglespro/samples/fragment/SampleMatrixTransform.kt | unknown_repo | kotlin | package io.github.kenneycode.openglespro.samples.fragment
import android.opengl.GLSurfaceView
import android.os.Bundle
import android.support.v4.app.Fragment
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
im... |
androidcheat/src/main/java/k/bs/androidcheat/rx/IntentEx.kt | unknown_repo | kotlin | package k.bs.androidcheat.rx
import android.app.Activity
import android.content.Context
import android.content.ContextWrapper
import android.content.Intent
import android.os.Bundle
import android.view.View
import k.bs.androidcheat.exception.CanceledByUserException
import k.bs.androidcheat.util.GsonHelper
import io.rea... |
ui-settings/src/main/java/reactivecircus/releaseprobe/settings/SettingsFragment.kt | unknown_repo | kotlin | package reactivecircus.releaseprobe.settings
import android.os.Bundle
import android.view.View
import org.koin.androidx.viewmodel.ext.android.viewModel
import reactivecircus.releaseprobe.core.base.BaseFragment
import reactivecircus.releaseprobe.settings.databinding.FragmentSettingsBinding
class SettingsFragment : Bas... |
customview/src/main/java/com/iamkamrul/button/ButtonBold.kt | unknown_repo | kotlin | package com.iamkamrul.button
import android.content.Context
import android.util.AttributeSet
import com.iamkamrul.utils.FontsOverride
class ButtonBold(context: Context, attrs: AttributeSet) : ButtonRegular(context, attrs) {
override fun applyCustomFont() {
if (FontsOverride.boldFontTypeFace != null){
... |
android-db/src/main/kotlin/dev/jonpoulton/alakazam/db/UUIDConverter.kt | unknown_repo | kotlin | package dev.jonpoulton.alakazam.db
import androidx.room.TypeConverter
import java.util.UUID
object UUIDConverter {
@TypeConverter
fun fromString(string: String?): UUID? = string?.let(UUID::fromString)
@TypeConverter
fun toString(uuid: UUID?): String? = uuid?.toString()
}
|
src/main/kotlin/com/pos/kasse/controllers/SalesController.kt | unknown_repo | kotlin | package com.pos.kasse.controllers
import com.pos.kasse.config.Runner
import com.pos.kasse.entities.Kvittering
import com.pos.kasse.entities.Salg
import com.pos.kasse.entities.Vare
import com.pos.kasse.utils.Logger
import javafx.beans.property.SimpleIntegerProperty
import tornadofx.Controller
import tornadofx.FXEvent
i... |
compose/ui/ui-test/src/androidMain/kotlin/androidx/ui/test/CaptureToBitmapStubs.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... |
app/src/main/java/com/aykuttasil/sweetloc/di/AppInjector.kt | unknown_repo | kotlin | /* Author - <NAME>(@aykuttasil) */
package com.aykuttasil.sweetloc.di
import android.app.Activity
import android.app.Application
import android.os.Bundle
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.fragment.app.FragmentManager
import com.aykuttasil.sweetloc.App
i... |
koin-projects/koin-androidx-viewmodel/src/main/java/org/koin/androidx/viewmodel/ext/KoinComponentExt.kt | unknown_repo | kotlin | /*
* Copyright 2017-2018 the original author or authors.
*
* 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 ap... |
app/src/main/java/com/arupakaman/kmatrix/uiModules/home/ActivityHome.kt | unknown_repo | kotlin | package com.arupakaman.kmatrix.uiModules.home
import android.annotation.SuppressLint
import android.app.WallpaperManager
import android.content.ComponentName
import android.content.Intent
import android.graphics.Color
import android.os.Bundle
import android.util.Log
import android.view.Menu
import android.view.MenuIte... |
deevdimagepreview/src/main/java/com/heinhtet/deevd/deevdimagepreview/dialog/DeevDImagePreview.kt | unknown_repo | kotlin | package com.dev.sample.features.dialogImage
import android.annotation.SuppressLint
import android.annotation.TargetApi
import android.content.Context
import android.os.Build
import android.view.ViewGroup
import android.view.LayoutInflater
import android.support.v4.view.PagerAdapter
import android.os.Bundle
import andr... |
app/src/main/java/com/raul/macias/wikiheroes/models/Item.kt | unknown_repo | kotlin | package com.raul.macias.wikiheroes.models
import android.os.Parcelable
import androidx.room.Entity
import kotlinx.android.parcel.Parcelize
@Entity(primaryKeys = ["resourceURI"])
@Parcelize
data class Item(val resourceURI: String, val name: String, val type: String?, val role : String? , var image : String?) : Parcel... |
app/src/main/java/xyz/workarounds/reachability/App.kt | unknown_repo | kotlin | package xyz.workarounds.reachability
import android.app.Application
import android.os.Build
import timber.log.Timber
/**
* Created by madki on 22/11/15.
*/
class App : Application() {
override fun onCreate() {
super.onCreate()
if(BuildConfig.DEBUG) {
Timber.plant(Timber.DebugTree()... |
psclient/src/main/java/com/majeur/psclient/widget/StatusView.kt | unknown_repo | kotlin | package com.majeur.psclient.widget
import android.animation.ObjectAnimator
import android.content.Context
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.Rect
import android.graphics.Typeface
import android.util.Property
import android.view.View
import android.view.animation.Decele... |
psclient/src/main/java/com/majeur/psclient/widget/StatusView.kt | unknown_repo | kotlin | package com.majeur.psclient.widget
import android.animation.ObjectAnimator
import android.content.Context
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.Rect
import android.graphics.Typeface
import android.util.Property
import android.view.View
import android.view.animation.Decele... |
SmartFarm/app/src/main/java/com/kumjinwoo/smartfarm/RegistrationActivity.kt | unknown_repo | kotlin | package com.kumjinwoo.smartfarm
import android.app.Activity
import android.content.ContentValues.TAG
import android.content.Context
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.KeyEvent
import android.view.View
import... |
app/src/main/java/com/mundocrativo/javier/solosonido/ui/historia/HistoriaFragment.kt | unknown_repo | kotlin | package com.mundocrativo.javier.solosonido.ui.historia
import android.Manifest
import android.app.DownloadManager
import android.content.ClipDescription.MIMETYPE_TEXT_PLAIN
import android.content.ClipboardManager
import android.content.Context
import android.content.pm.PackageManager
import android.net.Uri
import andr... |
module-book-reader/src/main/java/io/legado/app/ui/book/changecover/DiffCallBack.kt | unknown_repo | kotlin | package io.legado.app.ui.book.changecover
import android.os.Bundle
import androidx.recyclerview.widget.DiffUtil
import io.legado.app.data.entities.SearchBook
class DiffCallBack(private val oldItems: List<SearchBook>, private val newItems: List<SearchBook>) :
DiffUtil.Callback() {
override fun getOldListSize(... |
app/src/main/java/eu/kanade/tachiyomi/data/updater/GithubRelease.kt | unknown_repo | kotlin | package eu.kanade.tachiyomi.data.updater
import android.os.Build
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
/**
* Contains information about the latest release from GitHub.
*/
@Serializable
data class GithubRelease(
@SerialName("tag_name") val version: String,
@SerialN... |
app/src/main/java/com/dicoding/edival/ui/ui/HomeFragment.kt | unknown_repo | kotlin | package com.dicoding.edival.ui.ui
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.dicoding.edival.databinding.FragmentHomeBinding
class HomeFragment : Fragment() {
private lateinit var binding: Frag... |
app/src/main/java/com/kartikcd/mediumx/MainActivity.kt | unknown_repo | kotlin | package com.kartikcd.mediumx
import android.content.Context
import android.content.SharedPreferences
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import android.widget.PopupMenu
import androidx.core.content.edit
import androidx.lifecycle... |
core-firebase/src/main/kotlin/com/marcohc/terminator/core/firebase/dateFormatter.kt | unknown_repo | kotlin | @file:Suppress("unused")
package com.marcohc.terminator.core.firebase
import android.annotation.SuppressLint
import com.google.firebase.Timestamp
import org.threeten.bp.Instant
import org.threeten.bp.LocalDateTime
import org.threeten.bp.ZoneId
import java.text.SimpleDateFormat
import java.util.Date
fun LocalDateTime... |
app/src/main/java/com/pierresousa/likemovie/repository/MovieRepository.kt | unknown_repo | kotlin | package com.pierresousa.likemovie.repository
import androidx.lifecycle.LiveData
import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.PagingData
import androidx.paging.liveData
import com.pierresousa.likemovie.WEB_API_QUANTITY_PER_PAGE
import com.pierresousa.likemovie.database.dao.Mov... |
app/src/main/java/com/smlnskgmail/jaman/remotetemperaturecontrol/components/BaseBottomSheet.kt | unknown_repo | kotlin | package com.smlnskgmail.jaman.remotetemperaturecontrol.components
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
abstract class BaseBottomSheet : BottomSheetDialogFragment() {
... |
chatbot-builder/src/commonMain/kotlin/com/hexascribe/chatbotbuilder/presentation/theme/color/Colors.kt | unknown_repo | kotlin | package com.hexascribe.chatbotbuilder.presentation.theme.color
import androidx.compose.runtime.Stable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.compose.ui.graphics.Color
@Stable
public open class Colors(
backgro... |
feature_tasks/src/androidTest/java/com/githukudenis/tasks/ui/task_detail/TaskDetailViewModelTest.kt | unknown_repo | kotlin | package com.githukudenis.tasks.ui.task_detail
import androidx.lifecycle.SavedStateHandle
import com.denisgithuku.tasks.data.local.TaskEntity
import com.githukudenis.tasks.data.FakeTasksRepository
import com.githukudenis.tasks.util.OrderType
import com.githukudenis.tasks.util.SortType
import kotlinx.coroutines.Experime... |
app/src/main/java/com/hywq/tomato/fragment/SettingFragment.kt | unknown_repo | kotlin | package com.hywq.tomato.fragment
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.hywq.tomato.R
class SettingFragment : Fragment() {
override fun onCreateView(
inflater: LayoutInflater,
... |
baseui/src/main/java/com/whr/baseui/widget/WaitProgressDialog.kt | unknown_repo | kotlin | package com.whr.baseui.widget
import android.app.Dialog
import android.content.Context
import android.text.TextUtils
import android.view.LayoutInflater
import android.view.View
import android.widget.TextView
import com.whr.baseui.R
import com.whr.baseui.helper.UiCoreHelper
/**
* 通过在UICore中动态设置的waitdialog的资源文件,生成的di... |
android/app/src/main/java/com/hexa_keeper/CloudBackupModule.kt | unknown_repo | kotlin | package com.hexa_keeper
import android.app.Activity
import android.content.Intent
import android.util.Log
import com.facebook.react.bridge.ActivityEventListener
import com.facebook.react.bridge.Promise
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.bridge.ReactContextBaseJavaModule
... |
android/app/src/main/java/com/hexa_keeper/CloudBackupModule.kt | unknown_repo | kotlin | package com.hexa_keeper
import android.app.Activity
import android.content.Intent
import android.util.Log
import com.facebook.react.bridge.ActivityEventListener
import com.facebook.react.bridge.Promise
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.bridge.ReactContextBaseJavaModule
... |
appbaselib/src/main/java/dev/entao/kan/appbase/ex/DrawableEx.kt | unknown_repo | kotlin | package dev.entao.kan.appbase.ex
import android.graphics.Color
import android.graphics.drawable.Drawable
import androidx.core.graphics.drawable.DrawableCompat
fun Drawable.sizeW(newWidth: Int): Drawable {
val h = this.intrinsicHeight
val w = this.intrinsicWidth
if (newWidth == 0 || w == 0 || w == newWidth... |
android-base/basektlib/src/main/java/com/kangraoo/basektlib/tools/view/statebuilder/AnimationDrawableBuilder.kt | unknown_repo | kotlin | package com.kangraoo.basektlib.tools.view.statebuilder
import android.graphics.drawable.AnimationDrawable
import androidx.core.content.ContextCompat
import com.kangraoo.basektlib.app.SApplication
import com.kangraoo.basektlib.tools.HAction
/**
* author : sdw
* e-mail : shidawei@xiaohe.com
* time : 2019/09/04
* de... |
common/ui-compose/src/commonMain/kotlin/dev/t1r/themebuilder/ui/compose/materialcolorspalette/MaterialColorsPaletteModeThemeWidget.kt | unknown_repo | kotlin | package dev.t1r.themebuilder.ui.compose.materialcolorspalette
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.padding
import androidx.compose.material.Icon
import androidx.compose.material... |
app/src/main/java/com/kakao/ad/tracker/sample/App.kt | unknown_repo | kotlin | package com.kakao.ad.tracker.sample
import android.app.Application
import com.kakao.ad.tracker.KakaoAdTracker
import com.kakao.ad.tracker.sample.util.logv
class App : Application() {
override fun onCreate() {
super.onCreate()
if (!KakaoAdTracker.isInitialized) {
KakaoAdTracker.init(t... |
8vim/src/test/kotlin/inc/flide/vim8/ime/layout/LayoutLoaderSpec.kt | unknown_repo | kotlin | package inc.flide.vim8.ime.layout
import android.content.Context
import arrow.core.None
import arrow.core.right
import inc.flide.vim8.arbitraries.Arbitraries
import inc.flide.vim8.ime.layout.models.FingerPosition
import inc.flide.vim8.ime.layout.models.KeyboardData
import inc.flide.vim8.ime.layout.models.yaml.LayoutIn... |
app/src/main/kotlin/photos/network/theme/AppShapes.kt | unknown_repo | kotlin | /*
* Copyright 2020-2021 Photos.network developers
*
* 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 applicab... |
Pokedex/app/src/main/java/com/example/pokedex/model/PokedexAdapter.kt | unknown_repo | kotlin | package com.example.pokedex.model
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import android.widget.ImageButton
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter... |
app/src/main/java/com/gauravk/bubblebarsample/MainActivity.kt | unknown_repo | kotlin | package com.gauravk.bubblebarsample
import android.content.Intent
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(... |
app/src/main/java/com/orange/ods/app/ui/utilities/composable/CodeImplementation.kt | unknown_repo | kotlin | /*
*
* Copyright 2021 Orange
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* /
*/
package com.orange.ods.app.ui.utilities.composable
import androidx.compose.foundation.background
import androidx.compose.... |
samples/containers/hello-back-button/src/main/java/com/squareup/sample/hellobackbutton/HelloBackButtonLayoutRunner.kt | unknown_repo | kotlin | package com.squareup.sample.hellobackbutton
import android.view.View
import android.widget.TextView
import com.squareup.workflow1.ui.AndroidViewRendering
import com.squareup.workflow1.ui.LayoutRunner
import com.squareup.workflow1.ui.ViewEnvironment
import com.squareup.workflow1.ui.ViewFactory
import com.squareup.workf... |
app/src/main/java/com/unsyiah/timemaster/ui/viewmodel/AnalysisPageViewModel.kt | unknown_repo | kotlin | package com.unsyiah.timemaster.ui.viewmodel
import android.content.Context
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.LiveData
import androidx.lifecycle.Transformations
import androidx.lifecycle.ViewModel
im... |
composeApp/src/commonMain/kotlin/com/rwmobi/kunigami/ui/destinations/usage/components/TariffProjectionsCardAdaptive.kt | unknown_repo | kotlin | /*
* Copyright (c) 2024. <NAME>
* https://github.com/ryanw-mobile
* Sponsored by RW MobiMedia UK Limited
*
*/
package com.rwmobi.kunigami.ui.destinations.usage.components
import androidx.compose.desktop.ui.tooling.preview.Preview
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.found... |
app/src/main/java/com/gcrj/projectcontrol/activity/PreviewXlsProjectActivity.kt | unknown_repo | kotlin | package com.gcrj.projectcontrol.activity
import android.app.Activity
import android.content.Intent
import android.net.Uri
import android.os.Build
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import androidx.core.content.FileProvider
import androidx.recyclerview.widget.LinearLayoutMana... |
recyclerviewscreen/android-testify/src/androidTest/java/com/example/road/to/effective/snapshot/testing/recyclerviewscreen/android_testify/activity/LanguageTrainingActivityTest.kt | unknown_repo | kotlin | package com.example.road.to.effective.snapshot.testing.recyclerviewscreen.android_testify.activity
import android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE
import com.example.road.to.effective.snapshot.testing.recyclerviewscreen.mvvm.LanguageTrainingActivity
import com.example.road.to.effective.snapshot.tes... |
shared/src/commonMain/kotlin/com/kgurgul/cpuinfo/ui/theme/Shapes.kt | unknown_repo | kotlin | package com.kgurgul.cpuinfo.ui.theme
import androidx.compose.ui.unit.dp
val spacingXSmall = 4.dp
val spacingSmall = 8.dp
val spacingMedium = 16.dp
val spacingLarge = 24.dp
val spacingXLarge = 32.dp
val spacingXXLarge = 48.dp
val spacingXXXLarge = 64.dp
val rowActionIconSize = 56.dp |
saved-sites/saved-sites-api/src/main/java/com/duckduckgo/savedsites/api/service/SavedSitesImporter.kt | unknown_repo | kotlin | /*
* Copyright (c) 2023 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 ... |
app/src/main/java/com/amachikhin/testapplication/features/currentweather/presentation/CurrentWeatherViewModel.kt | unknown_repo | kotlin | package com.amachikhin.testapplication.features.currentweather.presentation
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.amachikhin.testapplication.features.base.domain.CurrentWeatherRes
import com.amachikhin.testapplication.features.base.presentation.BaseViewModel
import com... |
app/src/main/java/com/amachikhin/testapplication/features/currentweather/presentation/CurrentWeatherViewModel.kt | unknown_repo | kotlin | package com.amachikhin.testapplication.features.currentweather.presentation
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.amachikhin.testapplication.features.base.domain.CurrentWeatherRes
import com.amachikhin.testapplication.features.base.presentation.BaseViewModel
import com... |
uikit/views/src/main/java/com/sygic/maps/uikit/views/searchresultlist/SearchResultList.kt | unknown_repo | kotlin | /*
* Copyright (c) 2019 <NAME>. All rights reserved.
*
* This project 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, includin... |
app/src/main/java/pl/jakubokrasa/bikeroutes/core/di/modules/AppModule.kt | unknown_repo | kotlin | package pl.jakubokrasa.bikeroutes.core.di.modules
import androidx.localbroadcastmanager.content.LocalBroadcastManager
import org.koin.android.ext.koin.androidContext
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.dsl.module
import pl.jakubokrasa.bikeroutes.core.user.presentation.MainViewModel
import ... |
app/src/main/java/com/gitzblitz/locationviewerkotlin/locationlist/MainActivity.kt | unknown_repo | kotlin | package com.gitzblitz.locationviewerkotlin.locationlist
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
... |
app/src/main/java/com/kerite/pokedex/ui/widgets/ExtendedBottomNavigationView.kt | unknown_repo | kotlin | package com.kerite.pokedex.ui.widgets
import android.content.Context
import android.util.AttributeSet
import androidx.coordinatorlayout.widget.CoordinatorLayout
import com.google.android.material.bottomnavigation.BottomNavigationView
import com.kerite.pokedex.ui.behavior.BottomViewHideOnScrollBehavior
class ExtendedB... |
mobile-template-mvvm-databinding/src/main/kotlin/cz/kotox/template/di/MobileTemplateDaggerModule.kt | unknown_repo | kotlin | package cz.kotox.template.di
import androidx.lifecycle.ViewModel
import cz.kotox.core.di.ViewModelKey
import cz.kotox.template.ui.MainActivity
import cz.kotox.template.ui.MainFragment
import cz.kotox.template.ui.MainViewModel
import cz.kotox.template.ui.wizard.WizardActivity
import cz.kotox.template.ui.wizard.WizardVi... |
app/src/main/java/chat/rocket/android/chatroom/ui/ChatRoomFragment.kt | unknown_repo | kotlin | package chat.rocket.android.chatroom.ui
import android.app.Activity
import android.content.ClipData
import android.content.ClipboardManager
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.os.Handler
import android.support.annotation.DrawableRe... |
app/src/main/java/uz/algorithmgateway/tezkorakfa/core/util/input-ktx.kt | unknown_repo | kotlin | package uz.algorithmgateway.tezkorakfa.core.util
import android.text.Editable
import android.text.TextWatcher
import android.widget.EditText
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.channels.awaitClose
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.callbackFlow
... |
app/src/main/java/com/yamanf/shoppingapp/ui/product/detail/ProductDetailViewModel.kt | unknown_repo | kotlin | package com.yamanf.shoppingapp.ui.product.detail
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.yamanf.shoppingapp.data.model.ProductsItem
import com.yamanf.shoppingapp.data.repositories.ApiRepository
... |
core/ui/src/main/java/com/core/ui/component/Background.kt | unknown_repo | kotlin | package com.core.ui.component
import androidx.compose.foundation.layout.size
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import com.core.ui.preview.ThemePrevie... |
app/src/main/kotlin/com/flixclusive/crash/CrashReportSender.kt | unknown_repo | kotlin | package com.flixclusive.crash
import android.content.Context
import com.flixclusive.core.ui.common.util.showToast
import com.flixclusive.core.util.common.dispatcher.di.ApplicationScope
import com.flixclusive.core.util.network.HttpMethod
import com.flixclusive.core.util.network.formRequest
import dagger.hilt.android.qu... |
dialog/src/main/java/cn/rubintry/dialog/ios/viewgorup/AlertLayout.kt | unknown_repo | kotlin | package cn.rubintry.dialog.ios.viewgorup
import android.content.Context
import android.graphics.Canvas
import android.graphics.Paint
import android.util.AttributeSet
import android.widget.LinearLayout
class AlertLayout : LinearLayout {
init {
setWillNotDraw(false)
}
constructor(context: Context?)... |
sher-gil/src/main/java/com/kinnerapriyap/sugar/mediagallery/media/MediaGalleryCursorWrapper.kt | unknown_repo | kotlin | package com.kinnerapriyap.sugar.mediagallery.media
import android.database.Cursor
import android.database.CursorWrapper
import android.provider.MediaStore
class MediaGalleryCursorWrapper(
cursor: Cursor?,
bucketDisplayName: String?
) : CursorWrapper(cursor) {
private val origCount = super.getCount()
... |
payments-core/src/main/java/com/stripe/android/EphemeralKeyProvider.kt | unknown_repo | kotlin | package com.stripe.android
import androidx.annotation.Size
/**
* Represents an object that can call to a server and create
* [EphemeralKeys][EphemeralKey].
*/
fun interface EphemeralKeyProvider {
/**
* When called, talks to a client server that then communicates with Stripe's servers to
* create an ... |
app/src/main/java/com/bachhuberdesign/deckbuildergwent/inject/module/ActivityModule.kt | unknown_repo | kotlin | package com.bachhuberdesign.deckbuildergwent.inject.module
import android.app.Activity
import android.content.Context
import com.bachhuberdesign.deckbuildergwent.inject.annotation.ActivityScope
import dagger.Module
import dagger.Provides
/**
* @author <NAME>
* @version 1.0.0
* @since 1.0.0
*/
@Module
class Activi... |
app/src/main/java/com/github/satoshun/example/SavedStateViewModel4.kt | unknown_repo | kotlin | package com.github.satoshun.example
import android.util.Log
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import com.squareup.inject.assisted.Assisted
import com.squareup.inject.assisted.AssistedInject
class SavedStateViewModel4 @AssistedInject constructor(
@Assisted private val sta... |
OpenEdXMobile/src/main/java/org/edx/mobile/viewModel/CourseViewModel.kt | unknown_repo | kotlin | package org.edx.mobile.viewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import org... |
app/src/main/java/com/google/firebase/ml/md/kotlin/Cart/CartActivity.kt | unknown_repo | kotlin | package com.google.firebase.ml.md.kotlin.Cart
//import com.google.firebase.ml.md.kotlin.Models.Response.Response_Order
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.widget.Button
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import... |
data/src/main/java/com/arthurivanets/sample/data/datastores/characters/CharactersCacheDataStore.kt | unknown_repo | kotlin | /*
* Copyright 2018 <NAME>, <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 law or agreed... |
stripe/src/main/java/com/stripe/android/paymentsheet/ui/SheetMode.kt | unknown_repo | kotlin | package com.stripe.android.paymentsheet.ui
import android.view.ViewGroup
import com.google.android.material.bottomsheet.BottomSheetBehavior
internal enum class SheetMode(
val height: Int,
@BottomSheetBehavior.State val behaviourState: Int
) {
Full(
ViewGroup.LayoutParams.MATCH_PARENT,
Bott... |
XClipper.Android/modules/feature-clipboard/src/main/java/com/kpstv/xclipper/service/receiver/ImproveDetectionReceiver.kt | unknown_repo | kotlin | package com.kpstv.xclipper.service.receiver
import android.content.Context
import android.content.Intent
import com.kpstv.xclipper.extensions.elements.AbstractBroadcastReceiver
import com.kpstv.xclipper.ui.utils.LaunchUtils
class ImproveDetectionReceiver : AbstractBroadcastReceiver() {
companion object {
... |
app/src/main/java/com/rafslab/movie/dl/view/FilterSeekBar.kt | unknown_repo | kotlin | package com.rafslab.movie.dl.view
import android.content.Context
import android.util.AttributeSet
import com.crystal.crystalrangeseekbar.widgets.CrystalRangeSeekbar
import com.rafslab.movie.dl.R
class FilterSeekBar @JvmOverloads constructor(context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0)
: C... |
demo_android/app/src/main/java/com/demo/demo_android/home/presenter/HomePresenterImpl.kt | unknown_repo | kotlin | package com.demo.demo_android.home.presenter
import android.util.Log
import com.demo.demo_android.core.flutter.FlutterChannelManager
import com.demo.demo_android.home.contract.HomeContract
class HomePresenterImpl(
private val view: HomeContract.HomeView,
) : HomeContract.HomePresenter {
override fun callM... |
sample/src/main/java/com/androidkotlincore/sample/presentation/screen/container/FragmentContainerActivity.kt | unknown_repo | kotlin | package com.androidkotlincore.sample.presentation.screen.container
import android.os.Bundle
import android.support.v4.app.Fragment
import com.androidkotlincore.sample.R
import com.androidkotlincore.sample.presentation.base.BaseActivity
/**
* Created by Peter on 04.02.2018.
*/
class FragmentContainerActivity : BaseA... |
app/src/main/java/io/horizontalsystems/bankwallet/modules/profeatures/yakauthorization/YakAuthorizationViewModel.kt | unknown_repo | kotlin | package io.horizontalsystems.bankwallet.modules.profeatures.yakauthorization
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.launch
class YakAuthorizationViewModel(val service: YakAuthorizationService) : ViewModel() {
... |
framework_src/native_library/android/FreKotlinExampleANE/FreKotlin/src/main/java/com/tuarua/frekotlin/FlashRuntimeExtensions.kt | unknown_repo | kotlin | /*
* Copyright 2017 Tua Rua 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 agreed ... |
design/src/main/kotlin/ru/razrabs/design/components/comment/CommentWritingBlock.kt | unknown_repo | kotlin | package ru.razrabs.design.components.comment
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.text.BasicTextField
import androidx.compose.material.Text
import androidx.compose.material... |
app/src/main/java/com/cozo/cozomvp/authentication/AuthInterfaces.kt | unknown_repo | kotlin | package com.cozo.cozomvp.authentication
import com.google.android.gms.auth.api.signin.GoogleSignInAccount
import com.google.android.gms.auth.api.signin.GoogleSignInClient
import com.google.android.gms.tasks.Task
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.auth.UserInfo
interface AuthInterf... |
app/src/main/java/com/yeolabgt/mahmoodms/androidblekotlinsample/DeviceControlActivity.kt | unknown_repo | kotlin | package com.yeolabgt.mahmoodms.androidblekotlinsample
import android.app.Activity
import android.bluetooth.BluetoothDevice
import android.bluetooth.BluetoothGatt
import android.bluetooth.BluetoothGattCharacteristic
import android.bluetooth.BluetoothGattDescriptor
import android.bluetooth.BluetoothGattService
import an... |
app/src/main/java/com/aadi/pixabaysample/MainActivity.kt | unknown_repo | kotlin | package com.aadi.pixabaysample
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.aadi.pixabaysample.databinding.ActivityMainBinding
import dagger.hilt.android.AndroidEntryPoint
@AndroidEntryPoint
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState... |
app/src/main/java/jp/gourtto/MainActivity.kt | unknown_repo | kotlin | package jp.gourtto
import android.annotation.SuppressLint
import android.graphics.Bitmap
import android.graphics.Canvas
import android.location.Location
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import androidx.appcompat.app... |
app/src/main/java/br/com/mathsemilio/simpleapodbrowser/ui/screens/settings/SettingsFragment.kt | unknown_repo | kotlin | /*
Copyright 2021 Matheus Menezes
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... |
Android/src/main/java/me/mitul/portfolio/android/cards/CertCard.kt | unknown_repo | kotlin | package me.mitul.portfolio.android.cards
import androidx.compose.foundation.Image
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.foundation.layo... |
Android/src/main/java/me/mitul/portfolio/android/cards/CertCard.kt | unknown_repo | kotlin | package me.mitul.portfolio.android.cards
import androidx.compose.foundation.Image
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.foundation.layo... |
app/src/main/java/com/m2s/carservice/ui/materials/ReservationCards.kt | unknown_repo | kotlin | package com.m2s.carserviceadmin.ui.materials
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.ma... |
android/app/src/main/java/com/github/yhirano/usbhid/WriteManager.kt | unknown_repo | kotlin | package com.github.yhirano.usbhid
import android.util.Log
import java.io.IOException
import java.util.*
internal class WriteManager(private val port: Port, var listener: Listener? = null) : Runnable {
interface Listener {
fun onRunError(e: Exception)
}
enum class State {
STOPPED, RUNNING,... |
sample/src/main/java/com/pinger/sample/screenshot/ScreenShotFragment.kt | unknown_repo | kotlin | package com.pinger.sample.screenshot
import android.content.Intent
import android.graphics.Bitmap
import android.support.v4.content.FileProvider.getUriForFile
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.view.View
import android.widget.ArrayAdapter
i... |
core/uiKitTheme/src/main/kotlin/odoo/miem/android/core/uiKitTheme/Dimensions.kt | unknown_repo | kotlin | package odoo.miem.android.core.uiKitTheme
import androidx.compose.ui.unit.dp
val mainHorizontalPadding = 24.dp
val mainVerticalPadding = 24.dp
val commonPadding = 10.dp
val buttonIconSize = 24.dp
val dividerCommonWidth = 75.dp
val dividerCommonHeight = 1.dp
val dividerVerticalPadding = 15.dp
|
app/src/main/java/com/ably/tracking/demo/subscriber/presentation/LifecycleExtensions.kt | unknown_repo | kotlin | package com.ably.tracking.demo.subscriber.presentation
import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisposableEffect
import androidx.compose.runtime.DisposableEffectResult
import androidx.compose.runtime.DisposableEffectScope
import androidx.compose.ui.platform.LocalLifecycleOwner
import ... |
core/uiComponents/src/main/java/com/ahmedvargos/uicomponents/utils/ErrorDialogsHelper.kt | unknown_repo | kotlin | package com.ahmedvargos.uicomponents.utils
import android.content.Context
import android.widget.Toast
fun Context.showErrorDialog(msg: String) {
Toast.makeText(this, msg, Toast.LENGTH_SHORT)
.show()
}
|
app/src/main/kotlin/io/github/feelfreelinux/wykopmobilny/utils/WykopParser.kt | unknown_repo | kotlin | package io.github.feelfreelinux.wykopmobilny.utils
import android.graphics.Color
import io.github.feelfreelinux.wykopmobilny.R
import io.github.feelfreelinux.wykopmobilny.objects.*
import kotlinx.android.synthetic.main.feed_layout.view.*
import org.json.JSONObject
import java.text.SimpleDateFormat
import java.util.*
... |
app/src/main/java/io/horizontalsystems/bankwallet/ui/compose/components/CustomKeyboardWarningDialog.kt | unknown_repo | kotlin | package com.wikicious.app.ui.compose.components
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.runtime.Composable
import androidx.co... |
core/src/commonMain/kotlin/com/maxkeppeker/sheets/core/icons/twotone/ContentPaste.kt | unknown_repo | kotlin | package com.maxkeppeker.sheets.core.icons.twotone
import androidx.compose.material.icons.materialIcon
import androidx.compose.material.icons.materialPath
import androidx.compose.ui.graphics.vector.ImageVector
public val ContentPaste: ImageVector
get() {
if (_contentPaste != null) {
return _con... |
mini-common/src/main/java/com/minikorp/mini/LoggerMiddleware.kt | unknown_repo | kotlin | /*
* Copyright 2021 HyperDevs
*
* Copyright 2020 BQ
*
* 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/androidTest/java/com/aripuca/finhelper/ui/HomeScreenTest.kt | unknown_repo | kotlin | package com.aripuca.finhelper.ui
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.compose.ui.test.onAllNodesWithText
import androidx.compose.ui.test.onNodeWithText
import androidx.compose.ui.test.performClick
import com.aripuca.finhelper.ui.scre... |
app/src/testUnit/kotlin/io/template/LocalizationTest.kt | unknown_repo | kotlin | package io.template
import android.content.res.Resources
import org.junit.FixMethodOrder
import org.junit.Test
import org.junit.jupiter.api.assertDoesNotThrow
import org.junit.runner.RunWith
import org.junit.runners.MethodSorters
import org.robolectric.RobolectricTestRunner
import org.robolectric.RuntimeEnvironment
im... |
app/src/main/java/me/hegj/wandroid/mvp/model/main/project/ProjectChildModel.kt | unknown_repo | kotlin | package me.hegj.wandroid.mvp.model.main.project
import android.app.Application
import com.google.gson.Gson
import com.jess.arms.di.scope.FragmentScope
import com.jess.arms.integration.IRepositoryManager
import com.jess.arms.mvp.BaseModel
import io.reactivex.Observable
import me.hegj.wandroid.mvp.contract.main.project.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.