file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/com/bematech/alleesdksampleandroid/FormActivity.kt | unknown_repo | kotlin | package com.bematech.alleesdksampleandroid
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.support.v4.content.ContextCompat
import android.support.v7.app.AlertDialog
import android.support.v7.app.AppCompatActivity
import android.view.Menu
import android.view.MenuItem
i... |
app/src/main/java/dev/maxsiomin/testdoorscameras/presentation/camera_screen/CameraViewModel.kt | unknown_repo | kotlin | package dev.maxsiomin.testdoorscameras.presentation.camera_screen
import androidx.compose.runtime.State
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import da... |
app/src/main/java/com/example/app_weather/MainActivity.kt | unknown_repo | kotlin | package com.example.app_weather
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.lifecycle.ViewModelProvider
import com.example.app_weather.databinding.ActivityMainBinding
class MainActivity : AppCompatActivity() {
private lateinit var binding: ActivityMainBinding
pr... |
app/src/main/java/com/duckduckgo/app/feedback/ui/common/LayoutScrollingTouchListener.kt | unknown_repo | kotlin |
package com.duckduckgo.app.feedback.ui.common
import android.view.MotionEvent
import android.view.View
import android.widget.ScrollView
class LayoutScrollingTouchListener(
private val scrollView: ScrollView,
private val desiredScrollPosition: Int,
) : View.OnTouchListener {
override fun onTouch(
... |
app/src/main/kotlin/com/adwi/pexwallpapers/util/SharingUtil.kt | unknown_repo | kotlin | package com.adwi.pexwallpapers.util
import android.content.Context
import android.content.Intent
import android.net.Uri
import androidx.core.content.ContextCompat
import com.adwi.pexwallpapers.R
fun Context.shareImage(
uri: Uri,
photographersName: String
) {
val subject = getString(R.string.picture_by)
... |
app/src/main/kotlin/de/digitalService/useID/ui/components/BundButton.kt | unknown_repo | kotlin | package de.digitalService.useID.ui.components
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Button
import androidx.compose.material3.ButtonDefaults
import androidx.compose.material3.Text
import androidx.compose.runtime.Composa... |
app/src/main/java/com/example/depain/SearchedAdapter.kt | unknown_repo | kotlin | package com.example.depain
import android.content.Context
import android.content.Intent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.recyclerview.widget.RecyclerView
import kotlinx.android.synthetic.main.train_row.view.*
class Se... |
simprokmachine-android/src/main/java/com/simprok/simprokmachine/android/AndroidRootMachine.kt | unknown_repo | kotlin | package com.simprok.simprokmachine.android
import android.app.Activity
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import androidx.lifecycle.LifecycleOwner
import com.simprok.simprokmachine.android.AndroidRootMachine.Companion.attach
import com.simprok.simprokm... |
client/src/commonMain/kotlin/client/Navigator.kt | unknown_repo | kotlin | package client
import entities.movies.Movie
interface Navigator {
val screen: ViewStateFlow<Screen, ViewState.Error>
/**
* Navigate the the given [Screen]
*/
fun to(screen: Screen)
/**
* Navigate to the previous [Screen]
*/
fun back()
/**
* Quit the app
*/
... |
app/src/main/java/com/example/neocafe/adapters/MyOrdersAdapter.kt | unknown_repo | kotlin | package com.example.neocafe.adapters
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.example.neocafe.databinding.CardMyOrdersBinding
import c... |
app/src/main/java/com/example/neocafe/adapters/MyOrdersAdapter.kt | unknown_repo | kotlin | package com.example.neocafe.adapters
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.example.neocafe.databinding.CardMyOrdersBinding
import c... |
app/src/main/java/com/codigodelsur/mlkit/feature/posedetection/presentation/analyzer/PoseDetectionAnalyzer.kt | unknown_repo | kotlin | package com.codigodelsur.mlkit.feature.posedetection.presentation.analyzer
import android.content.Context
import android.media.Image
import androidx.annotation.OptIn
import androidx.camera.core.ExperimentalGetImage
import androidx.camera.core.ImageAnalysis
import androidx.camera.core.ImageProxy
import com.codigodelsur... |
lib/src/main/java/net/imoya/android/util/PermissionRequestController.kt | unknown_repo | kotlin | /*
* Copyright (C) 2022 IceImo-P
*
* 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... |
app/src/main/java/com/example/careerboast/view/navigation/routes/InterviewListRoute.kt | unknown_repo | kotlin | package com.example.careerboast.view.navigation.routes
import android.widget.Toast
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.ui.platform.LocalContext
import androidx.hilt.navigation.compose.hiltViewModel
import androidx.lifecycle.compose.collectAsStateW... |
ImperialColllegeOfLondon/IntroductionToAndroidGraphics/app/src/main/java/com/carlospinan/introductiontoandroidgraphics/week2/CubeCanvasTimerActivity.kt | unknown_repo | kotlin | package com.carlospinan.introductiontoandroidgraphics.week2
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.carlospinan.introductiontoandroidgraphics.week2.views.CubeCanvasTimerView
/**
* @author <NAME>
*/
class CubeCanvasTimerActivity : AppCompatActivity() {
override fun on... |
library/src/main/java/com/opensource/svgaplayer/entities/SVGATextEntity.kt | unknown_repo | kotlin | package com.opensource.svgaplayer.entities
import android.graphics.Color
import android.graphics.Typeface
import android.text.Layout
import android.text.TextUtils
/**
* @Author :Leo
* Date :2024/7/2
* Description : SVGA文本配置
*/
data class SVGATextEntity(
var text: String = "",
var textSize: Floa... |
shared/ui/src/main/java/ru/maksonic/roscosmos/shared/ui/theme/typography/Typography.kt | unknown_repo | kotlin | package ru.maksonic.roscosmos.shared.ui.theme.typography
import androidx.compose.runtime.staticCompositionLocalOf
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontStyle
import androidx.compose.ui.text.font.FontWeight
import androidx.comp... |
app/src/main/java/com/fahmi/kodepos/realm/RealmHelper.kt | unknown_repo | kotlin | package com.fahmi.kodepos.realm
import android.content.Context
import com.fahmi.kodepos.model.ModelMain
import io.realm.Realm
import java.util.*
class RealmHelper(context: Context) {
val realm: Realm
init {
Realm.init(context)
realm = Realm.getDefaultInstance()
}
//menampilkan fav... |
android/app/src/main/java/com/example/BLE_nav_app/indoorMapView.kt | unknown_repo | kotlin | package com.example.BLE_nav_app
import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.util.AttributeSet
import android.view.View
class IndoorMapView @JvmOverloads constructor(
context: Context,
attrs: AttributeSet? = null,
... |
app/src/main/java/com/example/escolhacaotica/SplashActivity.kt | unknown_repo | kotlin | package com.example.escolhacaotica
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Handler
import android.os.Looper
class SplashActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(save... |
app/src/main/java/com/example/visuallithuanian/ui/activities/fragments/ColorsFragment.kt | unknown_repo | kotlin | package com.example.visuallithuanian.ui.activities.fragments
import android.annotation.SuppressLint
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import androidx.lifecycle.ViewMode... |
wear/src/main/java/dev/tberghuis/voicememos/screen/RecordingDetail.kt | unknown_repo | kotlin | package dev.tberghuis.voicememos.screen
import androidx.compose.foundation.focusable
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.l... |
wear/src/main/java/com/devlomi/prayerwatchface/ui/prayer_times/PrayerTimesViewModel.kt | unknown_repo | kotlin | package com.devlomi.prayerwatchface.ui.prayer_times
import android.content.Context
import androidx.compose.runtime.State
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.viewModelScope
import androidx.lifecycle.view... |
app/src/main/java/com/example/notes/domain/use_case/delete_note/DeleteNoteUseCase.kt | unknown_repo | kotlin | package com.example.notes.domain.use_case.delete_note
import android.util.Log
import com.example.notes.common.NetworkResponse
import com.example.notes.domain.model.NoteModel
import com.example.notes.domain.repository.NotesRepository
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.flow
import org.jso... |
data/src/main/java/es/fnmtrcm/ceres/certificadoDigitalFNMT/data/local/implementation/OnboardingRepositoryImpl.kt | unknown_repo | kotlin | package es.fnmtrcm.ceres.certificadoDigitalFNMT.data.local.implementation
import android.content.Context
import es.fnmtrcm.ceres.certificadoDigitalFNMT.common.R
import es.fnmtrcm.ceres.certificadoDigitalFNMT.data.local.model.OnboardingPageModel
import es.fnmtrcm.ceres.certificadoDigitalFNMT.data.local.repository.Onboa... |
app/src/main/java/com/particle/demo/ui/WalletSelectActivity.kt | unknown_repo | kotlin | package com.particle.demo.ui
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import com.minijoy.demo.R
import com.minijoy.demo.databinding.ActivityWalletBinding
import com.particle.api.evm
import com.particle.base.*
cl... |
app/src/main/java/com/chronoscoper/android/licenseviewer/MainActivity.kt | unknown_repo | kotlin | /*
* Copyright 2017-2024 <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 ... |
Projects/ImdbMoviesApp/app/src/main/java/com/example/code/features/profile/ProfileActivity.kt | unknown_repo | kotlin | package com.example.code.features.profile
import android.content.Intent
import android.os.Bundle
import com.example.code.core.platform.BaseActivity
import com.example.code.databinding.ActivityProfileBinding
import com.example.code.features.movies.MoviesActivity
class ProfileActivity : BaseActivity<ActivityProfileBind... |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/ThermometerFull.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... |
app/src/main/java/com/example/gameforgasir/ui/theme/Color.kt | unknown_repo | kotlin | package com.example.gameforgasir.ui.theme
import androidx.compose.ui.graphics.Color
val primaryLight = Color(0xFF38693C)
val onPrimaryLight = Color(0xFFFFFFFF)
val primaryContainerLight = Color(0xFFB9F0B7)
val onPrimaryContainerLight = Color(0xFF002106)
val secondaryLight = Color(0xFF006971)
val onSecondaryLight = Co... |
payments-core/src/main/java/com/stripe/android/model/LuxeNextActionRepository.kt | unknown_repo | kotlin | package com.stripe.android.model
import androidx.annotation.RestrictTo
import androidx.annotation.VisibleForTesting
import com.stripe.android.StripeIntentResult
import org.json.JSONObject
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP_PREFIX)
class LuxeNextActionRepository {
private val codeToNextActionSpec = mutabl... |
app/src/main/java/com/museum/barbershop/Modul/TimeData.kt | unknown_repo | kotlin | package com.museum.barbershop.Modul
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
@Parcelize
data class TimeData(
val time:String? = null
) : Parcelable
val times = listOf<TimeData>(
TimeData("10:00"),
TimeData("11:00"),
TimeData("12:00"),
TimeData("13:00"),
TimeData("1... |
opengl/src/main/java/jp/eita/canvasgl/glcanvas/TextureMatrixTransformer.kt | unknown_repo | kotlin | /*
* Copyright [2020 - Present] [<NAME> - 瑛太 (eita)] [kineita (Github)]
*
* 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 requ... |
app/src/test/java/pl/marcin/robolectricresearch/FragmentMvpTest.kt | unknown_repo | kotlin | package pl.marcin.robolectricresearch
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.nhaarman.mockitokotlin2.mock
import com.nhaarman.mockitokotlin2.verify
import org.junit.Test
import org.junit.runner.RunWith
import pl.marcin.robolectricresearch.mvptest.FragmentMvp
import pl.marcin.robolectricresearc... |
core/src/main/java/com/sample/tmdb/core/data/repository/SearchMoviesPagingRepository.kt | unknown_repo | kotlin | package com.sample.tmdb.core.data.repository
import android.content.Context
import com.sample.tmdb.core.data.network.MovieService
import com.sample.tmdb.core.data.paging.BasePagingSource
import com.sample.tmdb.core.data.paging.movie.SearchMoviesPagingSource
import com.sample.tmdb.core.domain.repository.BasePagingRepos... |
android/app/src/main/java/com/example/gamecollection/presentation/games_listings/GameListScreen.kt | unknown_repo | kotlin | package com.example.gamecollection.presentation.games_listings
import android.util.Log
import android.widget.Toast
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.*
import androidx.compose.... |
app/src/main/java/pl/coddev/applu/ui/UninstallWidgetSRightWhite.kt | unknown_repo | kotlin | package pl.coddev.applu.ui
import android.content.Context
import android.widget.RemoteViews
import pl.coddev.applu.R
/**
* Created by pw on 16/03/15.
*/
class UninstallWidgetSRightWhite : UninstallWidgetS() {
override fun getRemoteViews(context: Context): RemoteViews {
return RemoteViews(context.packag... |
compose/ui-layout-custom/src/commonMain/kotlin/com/bselzer/ktx/compose/ui/layout/drawer/component/DrawerComponentPresenter.kt | unknown_repo | kotlin | package com.bselzer.ktx.compose.ui.layout.drawer.component
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Stable
import androidx.compose.ui.Alignment
import androidx.compose.ui.text.font.Fon... |
app/src/main/java/com/example/weather/MainActivity.kt | unknown_repo | kotlin | package com.example.weather
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.Button
import android.widget.EditText
import android.widget.TextView
import com.codepath.asynchttpclient.AsyncHttpClient
import com.codepath.asynchttpclient.callback.JsonHt... |
shared/src/androidMain/kotlin/com/star_zero/dagashi/shared/platform/PlatformParcelable.kt | unknown_repo | kotlin | package com.star_zero.dagashi.shared.platform
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
actual typealias PlatformParcelize = Parcelize
actual typealias PlatformParcelable = Parcelable
|
vector/src/main/java/com/haroldadmin/vector/state/StateHolderImpl.kt | unknown_repo | kotlin | package com.haroldadmin.vector.state
import com.haroldadmin.vector.loggers.Logger
import com.haroldadmin.vector.VectorState
import com.haroldadmin.vector.loggers.logv
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
/**
* The default implementation of [StateHolder]
*
* @para... |
gravicons/src/main/kotlin/org/gravidence/gravicons/Images.kt | unknown_repo | kotlin | package org.gravidence.gravicons
import androidx.compose.ui.graphics.ImageBitmap
import androidx.compose.ui.res.loadImageBitmap
import org.springframework.core.io.ClassPathResource
import java.nio.file.Path
import kotlin.io.path.pathString
fun loadImageBitmapFromClassPath(path: Path): ImageBitmap {
return loadIma... |
src/main/kotlin/dev/psiae/mltoolbox/composeui/Constraints.kt | unknown_repo | kotlin | package dev.psiae.mltoolbox.composeui
import androidx.compose.ui.unit.Constraints
fun Constraints.noMinConstraints() = copy(minWidth = 0, minHeight = 0) |
app/src/main/java/com/nivs/all/retrofit_room_glide_recycler/retroGlideRecycler/ui/SplashViewModel.kt | unknown_repo | kotlin | package com.nivs.all.retrofit_room_glide_recycler.retroGlideRecycler.ui
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.nivs.all.retrofit_room_glide_recycler.retroGlideRecycler.data.MainRepository
import dagger.hilt.android.lifecycle.Hil... |
app/src/debug/java/com/example/kotlinquiz/launchFragmentInHiltContainer.kt | unknown_repo | kotlin | package com.example.kotlinquiz
import android.R
import android.content.ComponentName
import android.content.Intent
import android.os.Bundle
import android.util.Log
import androidx.core.util.Preconditions
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentFactory
import androidx.test.core.app.Ac... |
app/src/main/java/com/example/inventory/ui/common/ItemEntry.kt | unknown_repo | kotlin | package com.example.inventory.ui.common
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.text.KeyboardOptions
import androidx... |
app/src/main/java/com/chaquo/myapplication/PagerAdapter.kt | unknown_repo | kotlin | package com.chaquo.myapplication
import android.util.Log
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentStatePagerAdapter
class ViewPagerAdapter123(supportFragmentManager: FragmentManager) :
FragmentStatePagerAdapter(supportFragmentManager) ... |
app/src/androidTest/java/com/jarvislin/drugstores/data/db/CustomDatabaseTest.kt | unknown_repo | kotlin | package com.jarvislin.drugstores.data.db
import androidx.room.testing.MigrationTestHelper
import androidx.sqlite.db.framework.FrameworkSQLiteOpenHelperFactory
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
import org.junit.Rule
import org.junit.Test
impor... |
app/src/main/kotlin/me/rei_m/hbfavmaterial/activities/MainActivity.kt | unknown_repo | kotlin | package me.rei_m.hbfavmaterial.activities
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.support.design.widget.NavigationView
import android.view.Menu
import android.view.MenuItem
import com.squareup.otto.Subscribe
import me.rei_m.hbfavmaterial.App
import me.rei_m.... |
app/src/main/java/fr/o80/remindme/service/MorningReminderReceiver.kt | unknown_repo | kotlin | package fr.o80.remindme.service
import android.content.Context
import android.content.Intent
import dagger.hilt.android.AndroidEntryPoint
import fr.o80.remindme.R
import fr.o80.remindme.di.HiltBroadcastReceiver
import fr.o80.remindme.domain.MORNING_REMINDER_CHANNELID
import fr.o80.remindme.domain.MORNING_REMINDER_ID
i... |
app/src/main/java/com/example/nhlstats/features/mainscreen/MainScreenContract.kt | unknown_repo | kotlin | package com.example.nhlstats.features.mainscreen
import androidx.fragment.app.Fragment
import com.example.nhlstats.features.mainscreen.ui.MainFragment
import ru.terrakok.cicerone.android.support.SupportAppScreen
interface MainScreenContract {
companion object {
fun createScreen(): SupportAppScreen {
... |
app/src/main/java/ugm/bootcamp/teti/todo/ui/register/RegisterViewModel.kt | unknown_repo | kotlin | package ugm.bootcamp.teti.todo.ui.register
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.launch
import ugm.bootcamp.teti.todo.data.repository.AuthRepository
import ugm.bootcamp.teti.todo.util.EmailValidator
import ugm.bo... |
backpack-compose/src/main/kotlin/net/skyscanner/backpack/compose/banneralert/BpkBannerAlert.kt | unknown_repo | kotlin | /*
* Backpack for Android - Skyscanner's Design System
*
* Copyright 2018 Skyscanner 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
*
* U... |
app/src/main/java/com/gmrit/gdsc/adapters/SliderOnBoardingAdapter.kt | unknown_repo | kotlin | package com.gmrit.gdsc.adapters
import android.content.Context
import android.graphics.Color
import android.media.Image
import android.text.Spannable
import android.text.SpannableStringBuilder
import android.text.style.ForegroundColorSpan
import android.view.LayoutInflater
import android.view.View
import android.view.... |
app/src/main/java/com/example/snplc/ui/auth/fragments/RegisterFragment.kt | unknown_repo | kotlin | package com.example.snplc.ui.auth.fragments
import android.os.Bundle
import android.view.View
import androidx.core.view.isVisible
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModelProvider
import androidx.navigation.fragment.findNavController
import com.example.snplc.R
import com.example.snplc.o... |
app/src/main/java/io/adev/summer/example/ui/base/BaseActivity.kt | unknown_repo | kotlin | package io.adev.summer.example.ui.base
import androidx.appcompat.app.AppCompatActivity
import summer.DidSetMixin
abstract class BaseActivity : AppCompatActivity() {
companion object : DidSetMixin
} |
src/main/java/tml/cuajet/io/ZipBlock.kt | unknown_repo | kotlin | package tml.cuajet.io
import android.content.Context
import java.io.File
import java.io.FileInputStream
import java.io.FileOutputStream
import java.lang.Exception
import java.lang.Integer.parseInt
class ZipBlockEntry(val offset:Int, var length: Int)
public class ZipBlock(val folder:File, val id:String) {
val ind... |
composeApp/src/androidMain/kotlin/com.zxy.core/db/DatabaseDriverFactory.android.kt | unknown_repo | kotlin | package com.zxy.core.db
import android.content.Context
import app.cash.sqldelight.db.SqlDriver
import app.cash.sqldelight.driver.android.AndroidSqliteDriver
import co.moregpt.ai.App
import com.zxy.core.sqldelight.AppDatabases
/**
* @desc content
* Created by zxy
**/
actual class DatabaseDriverFactory {
a... |
android/src/main/kotlin/com/kushkipagos/flutter_kushki_library/FlutterKushkiLibraryPlugin.kt | unknown_repo | kotlin | package com.kushkipagos.flutter_kushki_library
import android.os.AsyncTask
import androidx.annotation.NonNull;
import com.kushkipagos.android.*
import io.flutter.embedding.engine.plugins.FlutterPlugin
import io.flutter.plugin.common.MethodCall
import io.flutter.plugin.common.MethodChannel
import io.flutter.plugin.com... |
app/src/main/java/pl/podwikagrzegorz/gardener/ui/planned_gardens/chosen_garden/fragments/DescriptionFragment.kt | unknown_repo | kotlin | package pl.podwikagrzegorz.gardener.ui.planned_gardens.chosen_garden.fragments
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.lifecycle.Observer
import com.f... |
contactList/app/src/main/java/ru/aslastin/contactlist/ContactAdapter.kt | unknown_repo | kotlin | package ru.aslastin.contactlist
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import kotlin.random.Random
class ContactAdapter(
private val contactList: List<... |
app/src/main/java/dev/logickoder/qrpay/MainViewModel.kt | unknown_repo | kotlin | package dev.logickoder.qrpay
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import dev.logickoder.qrpay.app.d... |
whetstone/src/main/java/com/deliveryhero/whetstone/fragment/FragmentModule.kt | unknown_repo | kotlin | package com.deliveryhero.whetstone.fragment
import androidx.fragment.app.Fragment
import com.squareup.anvil.annotations.ContributesTo
import dagger.Module
import dagger.multibindings.Multibinds
@Module
@ContributesTo(FragmentScope::class)
public interface FragmentModule {
@Multibinds
public fun provideFragme... |
app/src/main/kotlin/org/jdc/template/ui/compose/form/LabelEnumExposedDropdownMenuBox.kt | unknown_repo | kotlin | package org.jdc.template.ui.compose.form
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.material3.DropdownMenuItem
import androidx.compose.material3.ExposedDropdownMenuBox
import androidx.compose.material3.ExposedDropdownMenuDefaults
import androidx.... |
app/src/main/java/com/elementary/tasks/home/scheduleview/viewholder/ScheduleReminderAndNoteViewHolder.kt | unknown_repo | kotlin | package com.elementary.tasks.home.scheduleview.viewholder
import android.view.ViewGroup
import com.elementary.tasks.core.binding.HolderBinding
import com.elementary.tasks.core.text.applyStyles
import com.elementary.tasks.core.utils.ui.gone
import com.elementary.tasks.core.utils.ui.inflater
import com.elementary.tasks.... |
edittextpicker/src/main/java/com/edittextpicker/aliazaz/repository/EditTextPickerWatcher.kt | unknown_repo | kotlin | package com.edittextpicker.aliazaz.repository
import android.text.Editable
import android.text.TextWatcher
import com.edittextpicker.aliazaz.utils.editTextLoopToNextChar
/*
* @author Ali Azaz Alam
* */
/*
* [EditTextPickerWatcher], implementing editTextPicker TextWatcher
* */
internal class EditTextPickerWatcher(pri... |
navigator/src/main/java/com/mutualmobile/praxis/navigator/Screens.kt | unknown_repo | kotlin | package com.mutualmobile.praxis.navigator
import androidx.navigation.NamedNavArgument
import androidx.navigation.NavType
import androidx.navigation.navArgument
sealed class Screen(
baseRoute: String,
val navArguments: List<NamedNavArgument> = emptyList()
) {
val route: String = baseRoute.appendArguments(navArgu... |
app/src/main/java/com/krypton/matlogx/viewmodels/SettingsViewModel.kt | unknown_repo | kotlin | /*
* Copyright (C) 2021-2022 AOSP-Krypton 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 applicabl... |
app/src/main/java/org/oppia/android/app/resumelesson/ResumeLessonFragment.kt | unknown_repo | kotlin | package org.oppia.android.app.resumelesson
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import org.oppia.android.app.fragment.FragmentComponentImpl
import org.oppia.android.app.fragment.InjectableFragment
import org.op... |
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/CustomizeComputer.kt | unknown_repo | kotlin | package me.localx.icons.straight.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.Mite... |
alarmClockFeature/src/main/java/com/yes/alarmclockfeature/presentation/ui/YESBroadcastReceiver.kt | unknown_repo | kotlin | package com.yes.alarmclockfeature.presentation.ui
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import com.yes.alarmclockfeature.domain.usecase.SetAndPlayTracksToPlayerPlaylistUseCase
import com.yes.alarmclockfeature.domain.usecase.SetNearestAlarmUseCase
import c... |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/linear/Radar1.kt | unknown_repo | kotlin | package moe.tlaster.icons.vuesax.vuesaxicons.linear
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.... |
feature_browse_photo/impl/src/main/java/com/example/feature/browse/photo/impl/ui/dummy/di/DummyFragmentComponent.kt | unknown_repo | kotlin | package com.example.feature.browse.photo.impl.ui.dummy.di
import androidx.fragment.app.Fragment
import com.example.core.flow.di.FragmentComponent
import com.example.core.flow.di.scope.FragmentScope
import com.example.feature.browse.photo.impl.ui.dummy.DummyContract
import com.example.feature.browse.photo.impl.ui.dummy... |
app/src/main/java/com/meuus90/booksearcher/view/fragment/BookListFragment.kt | unknown_repo | kotlin | package com.meuus90.booksearcher.view.fragment
import android.annotation.SuppressLint
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.transition.Fade
import android.view.KeyEvent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGro... |
verifiable-credentials-library/src/main/java/org/idp/wallet/verifiable_credentials_library/domain/verifiable_credentials/VerifiableCredentialRegistry.kt | unknown_repo | kotlin | package org.idp.wallet.verifiable_credentials_library.domain.verifiable_credentials
import android.content.Context
class VerifiableCredentialRegistry(context: Context) {
private val values: MutableMap<String, VerifiableCredentialsRecords> = mutableMapOf()
fun save(record: VerifiableCredentialsRecord) {
val ... |
androidApp/src/main/java/it/carlo/de/chellis/biometrickmp/android/previews/Result.kt | unknown_repo | kotlin | package it.carlo.de.chellis.biometrickmp.android.previews
import android.content.res.Configuration
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
import it.carlo.de.chellis.biometrickmp.flow.Flow
import it.carlo.de.chellis.biometrickmp.flow.ResultScreen
@Preview
@Composa... |
e6/canasta/feature/grocery/grocery-inbox/src/main/java/ven/canasta/feature/grocery/inbox/mock/layout/header/GroceryTopBar.kt | unknown_repo | kotlin | package ar.ven.apps.gro.feature.inbox.mock.layout.header
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.... |
app/src/main/java/com/example/android/navigation/TitleFragment.kt | unknown_repo | kotlin | package com.example.android.navigation
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.navigation.findNavController
import com.example.android.navigation.... |
client/src/androidMain/kotlin/hu/bme/aut/ixnoyb/kotlinclothingwebshop/client/MainApplication.kt | unknown_repo | kotlin | package hu.bme.aut.ixnoyb.kotlinclothingwebshop.client
import android.app.Application
import co.touchlab.kermit.Logger
import co.touchlab.kermit.koin.KermitKoinLogger
import hu.bme.aut.ixnoyb.kotlinclothingwebshop.client.root.di.appModule
import org.koin.android.ext.koin.androidContext
import org.koin.core.context.sta... |
app/src/main/java/com/exercise/mvvmhilttest/presentation/repositories/RepositoriesFragment.kt | unknown_repo | kotlin | package com.exercise.mvvmhilttest.presentation.repositories
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.View.GONE
import android.view.View.VISIBLE
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewMo... |
app/src/main/java/com/alexandre/myquotes/model/QuoteData.kt | unknown_repo | kotlin | package com.alexandre.myquotes.model
import android.arch.persistence.room.ColumnInfo
import android.arch.persistence.room.Entity
import android.arch.persistence.room.PrimaryKey
@Entity(tableName = "quoteData")
data class QuoteData(@PrimaryKey(autoGenerate = false) var id: Int,
@ColumnInfo(name = "dialogue") v... |
app/src/main/java/com/esafirm/androidboilerplate/features/main/RibotsAdapter.kt | unknown_repo | kotlin | package com.esafirm.androidboilerplate.features.main
import android.graphics.Color
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.esafirm.androidboilerplate.R
import com.esafirm.androidboilerplate.data.model.Ribot
impor... |
app/src/main/java/com/victor/clips/util/BitmapRoundCornerUtil.kt | unknown_repo | kotlin | package com.victor.clips.util
import android.graphics.*
/*
* -----------------------------------------------------------------
* Copyright (C) 2018-2028, by Victor, All rights reserved.
* -----------------------------------------------------------------
* File: BitmapRoundCornerUtil.java
* Author: Victor
* Date... |
library/src/main/java/com/zhuiyun/library/vmbase/ItemClickListener.kt | unknown_repo | kotlin | package com.zhuiyun.library.vmbase
import android.view.View
/**
* @author: yun
* @date: 2022/10/8 0008 10
*/
interface ItemClickListener {
fun onItemClicked(v: View?, position: Int)
} |
library/src/main/java/com/zhuiyun/library/vmbase/ItemClickListener.kt | unknown_repo | kotlin | package com.zhuiyun.library.vmbase
import android.view.View
/**
* @author: yun
* @date: 2022/10/8 0008 10
*/
interface ItemClickListener {
fun onItemClicked(v: View?, position: Int)
} |
app/src/main/java/com/devspacecinenow/CineNowApp.kt | unknown_repo | kotlin | package com.devspacecinenow
import androidx.compose.runtime.Composable
import androidx.navigation.NavType
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navigation.compose.rememberNavController
import androidx.navigation.navArgument
import com.devspacecinenow.d... |
kohii-exoplayer/src/main/java/kohii/v1/exoplayer/KohiiExoPlayer.kt | unknown_repo | kotlin | /*
* Copyright (c) 2020 <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... |
feature-staking-impl/src/main/java/io/novafoundation/nova/feature_staking_impl/presentation/pools/common/SelectingPoolPayload.kt | unknown_repo | kotlin | package io.novafoundation.nova.feature_staking_impl.presentation.pools.common
import android.os.Parcelable
import io.novafoundation.nova.runtime.multiNetwork.chain.model.Chain
import io.novafoundation.nova.runtime.multiNetwork.chain.model.ChainId
import kotlinx.android.parcel.Parcelize
@Parcelize
class SelectingPoolP... |
app/src/main/java/com/cristianovecchi/mikrokanon/ui/Color.kt | unknown_repo | kotlin | package com.cristianovecchi.mikrokanon.ui
import androidx.compose.material.Colors
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
//val purple200 = Color(0xFFBB86FC)
//val purple500 = Color(0xFF6200EE)
//val purple500 = Color(0.0f,0.2f,1.0f,1.0f)
val purple500 = Color(0f,0f,0f,0f)... |
app/src/main/kotlin/com/holix/android/bottomsheetdialogcomposedemo/preferences/ColorPreference.kt | unknown_repo | kotlin | package com.holix.android.bottomsheetdialogcomposedemo.preferences
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Button
import androidx.c... |
rxpreferencesdelegates/src/main/java/com/futuremind/preferencesdelegates/rx/ObservablePreference.kt | unknown_repo | kotlin | package com.futuremind.preferencesdelegates.rx
import android.content.SharedPreferences
import com.squareup.moshi.Moshi
import io.reactivex.Observable
import io.reactivex.ObservableEmitter
/**
* Produces [ObservablePreference] for type [Boolean]
* @param prefsKey the key preference to be referred with in [SharedPre... |
app/src/main/java/com/example/socialmediaapp/view/ProfileActivity.kt | unknown_repo | kotlin | package com.example.socialmediaapp.view
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compo... |
sample/src/main/kotlin/com/kronos/android/startup/sample/task/generate/SampleGenerate2Task.kt | unknown_repo | kotlin | package com.kronos.android.startup.sample.task.generate
import android.content.Context
import com.kronos.android.startup.sample.task.info
import com.kronos.lib.startup.SampleGenerate1TaskProvider
import com.kronos.lib.startup.TaskRunner
import com.kronos.startup.annotation.Process
import com.kronos.startup.annotation.... |
bottomdialog/src/main/java/cn/vove7/bottomdialog/builder/MessageContentBuilder.kt | unknown_repo | kotlin | package cn.vove7.bottomdialog.builder
import android.view.View
import android.widget.TextView
import cn.vove7.bottomdialog.R
import cn.vove7.bottomdialog.interfaces.ContentBuilder
import cn.vove7.bottomdialog.util.listenToUpdate
import kotlinx.android.synthetic.main.content_message.view.*
/**
* # MessageContentBuild... |
fyno-kotlin-push/src/main/java/io/fyno/pushlibrary/notificationIntents/NotificationDismissedReceiver.kt | unknown_repo | kotlin | package io.fyno.pushlibrary.notificationIntents
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import io.fyno.callback.FynoCallback
import io.fyno.callback.models.MessageStatus
import io.fyno.core.FynoCore
import io.fyno.core.utils.Logger
import kotlinx.coroutines... |
generator/web/src/main/kotlin/me/kcra/takenaka/generator/web/pages/classPage.kt | unknown_repo | kotlin | /*
* This file is part of takenaka, licensed under the Apache License, Version 2.0 (the "License").
*
* Copyright (c) 2023 <NAME>
*
* 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... |
app/src/main/java/com/miso/uxui/ialarmed/ui/adapters/MedicinesAdapter.kt | unknown_repo | kotlin | package com.miso.uxui.ialarmed.ui.adapters
import android.view.View
import android.view.ViewGroup
import android.view.LayoutInflater
import android.widget.TextView
import android.widget.Button
import androidx.recyclerview.widget.RecyclerView
import com.miso.uxui.ialarmed.models.Medicine
import com.miso.uxui.ialarmed.R... |
core/src/main/java/cc/colorcat/mvi/Container.kt | unknown_repo | kotlin | package cc.colorcat.mvi
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.MutableSharedFlow
im... |
app/src/main/java/com/js/playground/service/SearchService.kt | unknown_repo | kotlin | package com.js.playground.service
import android.net.Uri
import com.js.playground.service.search.SearchRequest
import com.js.playground.service.search.SearchResults
import io.reactivex.Single
class SearchService {
private object Holder {
val INSTANCE = SearchService()
}
companion object {
... |
app/src/main/java/com/friendly_machines/frbpdoctor/MedBigResponseBuffer.kt | unknown_repo | kotlin | package com.friendly_machines.frbpdoctor
import android.util.Log
import com.friendly_machines.fr_yhe_api.watchprotocol.IWatchListener
import com.friendly_machines.fr_yhe_api.watchprotocol.WatchRawResponse
import com.friendly_machines.frbpdoctor.ui.health.HealthActivity
import java.io.ByteArrayOutputStream
import java.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.