file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
sample/src/main/java/cn/thens/kdroid/sample/test/TestRefreshActivity.kt | unknown_repo | kotlin | package cn.thens.kdroid.sample.test
import android.os.Bundle
import androidx.recyclerview.widget.GridLayoutManager
import cn.thens.kdroid.sample.R
import cn.thens.kdroid.sample.common.app.BaseActivity
import cn.thens.kdroid.sample.launcher.AppItemAdapter
import kotlinx.android.synthetic.main.activity_test_refresh.*
im... |
libs/navigation/core/src/commonMain/kotlin/com/edugma/navigation/core/compose/ComposeArgumentsStore.kt | unknown_repo | kotlin | package com.edugma.navigation.core.compose
import androidx.core.bundle.Bundle
import com.edugma.navigation.core.destination.ArgumentsStore
class ComposeArgumentsStore(
private val arguments: Bundle,
) : ArgumentsStore {
@Suppress("UNCHECKED_CAST", "DEPRECATION")
override fun <T> get(key: String): T? {
... |
sample-android/src/main/java/com/mobilejazz/kmmsample/application/ui/common/ExceptionToStringMapperExt.kt | unknown_repo | kotlin | package com.mobilejazz.kmmsample.application.ui.common
import android.content.Context
import com.harmony.kotlin.data.datasource.network.error.NetworkConnectivityException
import com.mobilejazz.kmmsample.application.R
fun Throwable.toLocalizedErrorMessage(context: Context) =
context.getString(
when (this) {
... |
app/src/main/java/com/chandistudios/taskrapid/ui/task/add/AddTask.kt | unknown_repo | kotlin | package com.chandistudios.taskrapid.ui.task.add
import android.os.Build
import android.util.Log
import android.widget.Toast
import androidx.annotation.RequiresApi
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.c... |
app/src/main/java/com/chandistudios/taskrapid/ui/task/add/AddTask.kt | unknown_repo | kotlin | package com.chandistudios.taskrapid.ui.task.add
import android.os.Build
import android.util.Log
import android.widget.Toast
import androidx.annotation.RequiresApi
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.c... |
app/src/main/java/com/mine/betterthanyourtimer/viewModels/TimerViewModel.kt | unknown_repo | kotlin | package com.mine.betterthanyourtimer.viewModels
import android.os.CountDownTimer
import androidx.lifecycle.ViewModel
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
class TimerViewModel : ViewModel() {
private var timer: CountDownTimer? = null
private val _remainingTi... |
sqlite/integration-tests/driver-conformance-test/src/commonTest/kotlin/androidx/sqlite/driver/test/BaseBundledConformanceTest.kt | unknown_repo | kotlin | /*
* Copyright 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
dependency-injection/test-component/src/main/kotlin/studio/lunabee/di/FrameworkTestModule.kt | unknown_repo | kotlin | /*
* Copyright (c) 2023 Lunabee Studio
*
* 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 agree... |
widget/src/main/java/com/angcyo/widget/layout/RSoftInputLayout.kt | unknown_repo | kotlin | package com.angcyo.widget.layout
import android.animation.Animator
import android.animation.ObjectAnimator
import android.animation.TimeInterpolator
import android.animation.ValueAnimator
import android.animation.ValueAnimator.AnimatorUpdateListener
import android.app.Activity
import android.content.Context
import and... |
feature/order/src/main/java/com/niyaj/order/OrderScreen.kt | unknown_repo | kotlin | /*
* Copyright 2024 Sk Niyaj Ali
*
* 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 agreed t... |
app/src/main/java/com/studio1r/simpleblockexplorer/BlockListViewModelFactory.kt | unknown_repo | kotlin | package com.studio1r.simpleblockexplorer
import android.arch.lifecycle.ViewModel
import android.arch.lifecycle.ViewModelProvider
import io.reactivex.Scheduler
class BlockListViewModelFactory(private val repository: BlockRepository,
private val executionScheduler: Scheduler,
... |
android/src/main/kotlin/io/sourcya/playx_3d_scene/factory/Playx3dSceneFactory.kt | unknown_repo | kotlin | package io.sourcya.playx_3d_scene.factory
import android.content.Context
import com.google.android.filament.Engine
import com.google.android.filament.gltfio.AssetLoader
import com.google.android.filament.gltfio.ResourceLoader
import io.flutter.embedding.engine.plugins.FlutterPlugin
import io.flutter.plugin.common.Stan... |
app/src/main/java/com/example/quitter/MainActivity.kt | unknown_repo | kotlin | package com.example.quitter
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.compose.material3... |
product/appkit/src/main/kotlin/com/reown/appkit/ui/components/button/Web3Button.kt | unknown_repo | kotlin | package com.reown.appkit.ui.components.button
import androidx.compose.animation.AnimatedContent
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
@Composable
fun Web3Button(
state: AppKitState,
accountButtonType: AccountButtonTyp... |
app/src/main/java/com/example/makeupmate/ui/PreviewActivity.kt | unknown_repo | kotlin | package com.example.makeupmate.ui
import android.content.Intent
import android.graphics.BitmapFactory
import android.os.Build
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.example.makeupmate.databinding.ActivityPreviewBinding
import com.example.makeupmate.utils.rotateFile
import j... |
app/src/main/java/com/example/fitness_app/welcome/FragmentWelcome.kt | unknown_repo | kotlin | package com.example.fitness_app.welcome
import android.annotation.SuppressLint
import android.os.Bundle
import android.os.Handler
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.animation.Animation
import android.view.animation.ScaleAnimation
import android... |
androidApp/src/main/java/com/mutualmobile/harvestKmp/android/HKMPApp.kt | unknown_repo | kotlin | package com.mutualmobile.harvestKmp.android
import android.app.Application
import com.mutualmobile.harvestKmp.android.di.viewModelModule
import com.mutualmobile.harvestKmp.db.DriverFactory
import com.mutualmobile.harvestKmp.di.SharedComponent
import com.mutualmobile.harvestKmp.di.initSharedDependencies
import kotlinx.... |
app/src/main/java/com/kaelesty/shoppinglist/di/DatasourceModule.kt | unknown_repo | kotlin | package com.kaelesty.shoppinglist.di
import android.app.Application
import com.kaelesty.shoppinglist.data.ShopItemDatabase
import dagger.BindsInstance
import dagger.Module
import dagger.Provides
@Module
class DatasourceModule {
@Provides
fun provideDatabase(@AppContextQualifier application: Application) =
ShopIt... |
05-data-layer-caching/projects/starter/app/src/androidTest/java/com/raywenderlich/android/petsave/common/data/PetFinderAnimalRepositoryTest.kt | unknown_repo | kotlin | package com.raywenderlich.android.petsave.common.data
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.room.Room
import androidx.test.platform.app.InstrumentationRegistry
import com.google.common.truth.Truth.assertThat
import com.raywenderlich.android.petsave.common.data.api.PetFinder... |
feature/settings/src/main/kotlin/com/github/ilikeyourhat/lsaa/feature/settings/home/SettingsUi.kt | unknown_repo | kotlin | package com.github.ilikeyourhat.lsaa.feature.settings.home
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import android... |
toggles-prefs-noop/src/main/java/se/eelde/toggles/prefs/TogglesPreferencesImpl.kt | unknown_repo | kotlin | package se.eelde.toggles.prefs
import android.content.Context
@Suppress("LibraryEntitiesShouldNotBePublic")
class TogglesPreferencesImpl(@Suppress("UNUSED_PARAMETER") context: Context) : TogglesPreferences {
override fun getBoolean(key: String, defValue: Boolean): Boolean = defValue
override fun getInt(key:... |
app/src/test/java/za/co/foursure/weatherapp/viewModel/WeatherDetailViewModelTest.kt | unknown_repo | kotlin | package za.co.foursure.weatherapp.viewModel
import android.os.Build
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.room.Room
import androidx.test.core.app.ApplicationProvider
import androidx.test.ext.junit.runners.AndroidJUnit4
import za.co.foursure.weatherapp.db.WeatherDatabase
imp... |
components/src/main/kotlin/com/exyui/android/debugbottle/components/widgets/__FloatAnimatedDialog.kt | unknown_repo | kotlin | package com.exyui.android.debugbottle.components.widgets
import android.app.Dialog
import android.app.DialogFragment
import android.app.FragmentManager
import android.os.Bundle
import android.view.*
import com.exyui.android.debugbottle.components.R
/**
* Created by yuriel on 9/26/16.
*/
abstract class __FloatAnimat... |
app/src/main/kotlin/com/fibelatti/pinboard/features/tags/presentation/TagListLayout.kt | unknown_repo | kotlin | package com.fibelatti.pinboard.features.tags.presentation
import android.animation.LayoutTransition
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.widget.LinearLayout
import androidx.core.view.isVisible
import androidx.core.widget.doAfterTextChanged
im... |
android/app/src/main/java/com/fabirt/roka/di/AppModule.kt | unknown_repo | kotlin | package com.fabirt.roka.di
import android.content.Context
import com.fabirt.roka.core.data.database.AppDatabase
import com.fabirt.roka.core.data.network.client.RecipesApiClient
import com.fabirt.roka.core.data.network.services.RecipeService
import com.fabirt.roka.core.data.network.services.RecipeServiceFakeImpl
import... |
app/src/main/java/com/example/burutoapp/domain/models/OnBoarding.kt | unknown_repo | kotlin | package com.example.burutoapp.domain.models
import androidx.annotation.DrawableRes
import com.example.burutoapp.R
sealed class OnBoarding(
@DrawableRes
val image:Int,
val title: String,
val description: String
){
object First: OnBoarding(
image = R.drawable.greetings,
title = "Gree... |
app/src/main/java/com/alirahimi/digikalaclone/viewmodel/ProfileViewModel.kt | unknown_repo | kotlin | package com.alirahimi.digikalaclone.viewmodel
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.alirahimi.digikalaclone.data.model.basket.BasketDetail
i... |
app/src/main/java/com/example/cointrackr/ui/TopGainLossFragment.kt | unknown_repo | kotlin | package com.example.cointrackr.ui
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.View.GONE
import android.view.ViewGroup
import androidx.lifecycle.lifecycleScope
import com.example.cointrackr.adapter.MarketAdapter
import co... |
app/src/main/java/com/developerbreach/developerbreach/ui/favorites/FavoritesFragment.kt | unknown_repo | kotlin | package com.developerbreach.developerbreach.ui.favorites
//
//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.navigation.fragment.findNavController... |
masterswitch/src/main/java/com/smp/masterswitchpreference/MasterSwitchPreferenceFragment.kt | unknown_repo | kotlin | package com.smp.masterswitchpreference
import android.content.Context
import android.os.Bundle
import android.util.TypedValue
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.annotation.Keep
import androidx.preference.Preference
import androidx.preference.PreferenceFragmentCompat
import... |
masterswitch/src/main/java/com/smp/masterswitchpreference/MasterSwitchPreferenceFragment.kt | unknown_repo | kotlin | package com.smp.masterswitchpreference
import android.content.Context
import android.os.Bundle
import android.util.TypedValue
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.annotation.Keep
import androidx.preference.Preference
import androidx.preference.PreferenceFragmentCompat
import... |
library/src/main/java/com/zerlings/library/SmartSpinner.kt | unknown_repo | kotlin | package com.zerlings.library
import android.R.attr
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.Drawable
import android.support.annotation.ColorInt
import android.support.annotation.DrawableRes
import android.support.v4.content.Con... |
library/src/main/java/com/zerlings/library/SmartSpinner.kt | unknown_repo | kotlin | package com.zerlings.library
import android.R.attr
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.Drawable
import android.support.annotation.ColorInt
import android.support.annotation.DrawableRes
import android.support.v4.content.Con... |
room/compiler/src/main/kotlin/androidx/room/log/RLog.kt | unknown_repo | kotlin | /*
* Copyright (C) 2016 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
app/src/main/java/com/example/musicplayercompose/ui/playerview/viewmodel/PlayScreenViewModel.kt | unknown_repo | kotlin | package com.example.musicplayercompose.ui.playerview.viewmodel
import android.content.Context
import android.net.Uri
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.musicplayercompose.R
import com.example.musicplayercompose.model.Song
import com.example.musicplayercompo... |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/SearchLocation.kt | unknown_repo | kotlin | package me.localx.icons.rounded.filled
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
... |
Music-Player-GO-main/project/app/src/main/java/com/iven/musicplayergo/preferences/SettingsFragment.kt | unknown_repo | kotlin | package com.example.rove.preferences
import android.annotation.SuppressLint
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.content.pm.ResolveInfo
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.vi... |
testingplaygroundapp/src/main/java/com/programmersbox/testingplaygroundapp/cardgames/CardUtils.kt | unknown_repo | kotlin | package com.programmersbox.testingplaygroundapp.cardgames
import android.content.Context
import com.programmersbox.funutils.cards.Card
import com.programmersbox.funutils.cards.CardColor
import com.programmersbox.funutils.cards.Suit
import com.programmersbox.loggingutils.FrameType
import com.programmersbox.loggingutils... |
MyHairDiary_c/app/src/main/java/com/example/myhairdiary_c/diary/MyHairDiary.kt | unknown_repo | kotlin | package com.example.myhairdiary_c.diary
import android.content.Intent
import android.os.Build
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.MenuItem
import android.view.MotionEvent
import android.view.VelocityTracker
import android.view.View
import android.widget.AbsListV... |
app/src/main/java/com/azuredragon/app/ui/launchrouter/LaunchRouterFragment.kt | unknown_repo | kotlin | package com.azuredragon.app.ui.launchrouter
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.compose.runtime.getValue
import androidx.compose.ui.graphics.Color
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels... |
app/src/main/java/colorpickerlayout/inlacou/bvapps/com/colorpickerlayout/ExampleColorPickerView.kt | unknown_repo | kotlin | package colorpickerlayout.inlacou.bvapps.com.colorpickerlayout
import android.graphics.Color
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import android.util.Log
import android.widget.Toast
import colorpickerlayout.inlacou.bvapps.com.colorpicklayout.ColorListener
import colorpickerlayout.in... |
app/src/main/java/top/rainysummer/openhappyhackingcalendar/MonthActivity.kt | unknown_repo | kotlin | package top.rainysummer.openhappyhackingcalendar
import android.annotation.SuppressLint
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.util.TypedValue
import android.view.*
import android.view.GestureDetector.SimpleOnGestureListener
import android.widget.LinearLayout
impo... |
plugins/music_player/android/src/main/kotlin/com/xhhold/plugin/music_player/MediaNotificationManager.kt | unknown_repo | kotlin | package com.xhhold.plugin.music_player
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.support.v4.media.MediaDescriptionCompat
import android.support.v4.media.session.MediaSessionCompat
import android.support.v4.media.session.PlaybackStateCo... |
apps/androidData/src/main/java/com/baptistecarlier/am24/data/repository/StorageRepositoryImpl.kt | unknown_repo | kotlin | package com.baptistecarlier.am24.data.repository
import android.content.Context
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.core.booleanPreferencesKey
import androidx.datastore.preferences.core.edit
import androidx.datastore.pref... |
library/location/src/main/kotlin/xyz/fcampbell/rxplayservices/locationservices/action/geocode/ReverseGeocode.kt | unknown_repo | kotlin | package xyz.fcampbell.rxplayservices.locationservices.action.geocode
import android.content.Context
import android.location.Address
import android.location.Geocoder
import io.reactivex.Observable
import io.reactivex.ObservableEmitter
import io.reactivex.ObservableOnSubscribe
import io.reactivex.schedulers.Schedulers
i... |
platform/platform-impl/src/com/intellij/ide/CommandLineProcessor.kt | unknown_repo | kotlin | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.ide
import com.intellij.featureStatistics.fusCollectors.LifecycleUsageTriggerCollector
import com.intellij.ide.CommandLineProcessorResult.Companion.createError
import com.intell... |
src/ru/alexxxdev/kGen/ClassSpec.kt | unknown_repo | kotlin | package ru.alexxxdev.kGen
import ru.alexxxdev.kGen.FieldSpec.PropertyType
import ru.alexxxdev.kGen.FieldSpec.PropertyType.READONLY
import ru.alexxxdev.kGen.FieldSpec.ValueType
import ru.alexxxdev.kGen.FieldSpec.ValueType.NOTNULL
/**
* Created by alexxxdev on 28.02.17.
*/
class ClassSpec(val kind: Kind, internal val... |
app/src/main/java/org/wikipedia/descriptions/DescriptionEditReviewView.kt | unknown_repo | kotlin | package org.wikipedia.descriptions
import android.content.Context
import android.net.Uri
import android.util.AttributeSet
import android.view.LayoutInflater
import androidx.constraintlayout.widget.ConstraintLayout
import org.wikipedia.databinding.ViewDescriptionEditReviewBinding
import org.wikipedia.descriptions.Descr... |
sample/src/main/java/ro/dobrescuandrei/demonewlibs/restaurant/editor/RestaurantEditorActivity.kt | unknown_repo | kotlin | package ro.dobrescuandrei.demonewlibs.restaurant.editor
import android.os.Bundle
import android.widget.SeekBar
import kotlinx.android.synthetic.main.activity_restaurant_editor.*
import org.greenrobot.eventbus.Subscribe
import ro.dobrescuandrei.demonewlibs.R
import ro.dobrescuandrei.demonewlibs.model.Restaurant
import ... |
core/src/main/java/io/github/thibaultbee/streampack/streamers/interfaces/ICameraStreamer.kt | unknown_repo | kotlin | /*
* Copyright (C) 2021 <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... |
app/src/main/java/hu/tb/minichefy/presentation/screens/storage/storage_list/StorageListViewModel.kt | unknown_repo | kotlin | package hu.tb.minichefy.presentation.screens.storage.storage_list
import androidx.lifecycle.ViewModel
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
class StorageListViewModel: ViewModel() {
data class UiState(
val searchText: String = "",
val filterList:... |
app/src/main/java/com/gwongsi/ododlight/MainActivity.kt | unknown_repo | kotlin | package com.gwongsi.ododlight
import android.content.Context
import android.content.pm.PackageManager
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.Button
import com.camerakit.CameraKitView
import android.hardware.camera2... |
app/src/main/java/io/github/gmathi/novellibrary/network/AndroidCookieJar.kt | unknown_repo | kotlin | package io.github.gmathi.novellibrary.network
import android.webkit.CookieManager
import io.github.gmathi.novellibrary.util.DataCenter
import okhttp3.Cookie
import okhttp3.CookieJar
import okhttp3.HttpUrl
import uy.kohesive.injekt.injectLazy
import java.net.URL
class AndroidCookieJar : CookieJar {
private val ma... |
data/src/desktopMain/kotlin/di/MovieDatabase.kt | unknown_repo | kotlin | package di
import androidx.room.Room.databaseBuilder
import androidx.sqlite.driver.bundled.BundledSQLiteDriver
import local.database.MovieDatabase
import java.io.File
fun createDatabase(): MovieDatabase {
val dbFile = File(System.getProperty("java.io.tmpdir"), MovieDatabase.DB_FILE_NAME)
return databaseBuilde... |
News_App/NewsBreeze/app/src/main/java/com/shaun/newsbreeze/presentation/components/BreezeImage.kt | unknown_repo | kotlin | package com.shaun.newsbreeze.presentation.components
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.runtime.Composable
import androidx.compose.... |
app/src/main/java/io/horizontalsystems/bankwallet/modules/market/metrics/MarketMetricsViewModel.kt | unknown_repo | kotlin | package io.horizontalsystems.bankwallet.modules.market.metrics
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import io.horizontalsystems.bankwallet.core.App
import io.horizontalsystems.bankwallet.core.Clearable
import io.horizontalsystems.bankwallet.core.subscribeIO
import io.horizontal... |
lib/src/main/kotlin/it/scoppelletti/spaceship/ads/AdsExt.kt | unknown_repo | kotlin | /*
* Copyright (C) 2018 Dario Scoppelletti, <http://www.scoppelletti.it/>.
*
* 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
*
* Unle... |
app/src/main/java/com/afauzi/bangungkota/presentation/ui/event/CreateEventActivity.kt | unknown_repo | kotlin | package com.afauzi.bangungkota.presentation.ui.event
import android.content.Intent
import android.net.Uri
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import androidx.activity.viewModels
import androidx.core.content.res.ResourcesCompat
import com.afauzi.bangungkota.... |
app/src/main/java/com/dedsec_x47/trainer/exercisePages/MiniGames.kt | unknown_repo | kotlin | package com.dedsec_x47.trainer.exercisePages
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.dedsec_x47.trainer.databinding.ActivityMiniGamesBinding
import com.unity3d.player.UnityPlayerActivity
class MiniGames : AppCompatActivity() {
private latei... |
frontend/src/jsMain/kotlin/com/monkopedia/konstructor/frontend/koin/KonstructionScope.kt | unknown_repo | kotlin | /*
* Copyright 2022 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... |
app/src/main/java/com/ably/tracking/demo/subscriber/presentation/screen/orderarrived/OrderArrivedScreen.kt | unknown_repo | kotlin | package com.ably.tracking.demo.subscriber.presentation.screen.orderarrived
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material.Scaf... |
app/src/androidTest/java/com/hydrofish/app/RegisterInstrumentedTest.kt | unknown_repo | kotlin | package com.hydrofish.app
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.compose.ui.test.onAllNodesWithText
import androidx.compose.ui.test.onNodeWithTag
import androidx.compose.ui.test.onNodeWithText
import androidx.compose.ui.test.performClick
import androidx.compose.ui.test.performTextInpu... |
app/src/main/kotlin/com/hyperdevs/arch_example/ui/components/commons/StatusBarDisposableEffect.kt | unknown_repo | kotlin | /*
* Copyright 2022 Babelia
*
* 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 agree... |
app/src/androidTest/kotlin/com/amsavarthan/tally/data/source/local/AccountDaoTest.kt | unknown_repo | kotlin | package com.amsavarthan.tally.data.source.local
import android.database.sqlite.SQLiteConstraintException
import com.amsavarthan.tally.domain.entity.Account
import com.amsavarthan.tally.domain.entity.AccountType
import com.google.common.truth.Truth.assertThat
import dagger.hilt.android.testing.HiltAndroidRule
import da... |
sudoemail/src/main/java/com/sudoplatform/sudoemail/util/Rfc822MessageParser.kt | unknown_repo | kotlin | /*
* Copyright © 2024 <NAME>, Inc. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.sudoplatform.sudoemail.util
import android.os.Parcelable
import com.sudoplatform.sudoemail.types.EmailAttachment
import com.sudoplatform.sudoemail.types.EncryptionStatus
import jakarta.activation.DataHan... |
sample/src/main/java/com/storage/sample/activity/SettingsActivity.kt | unknown_repo | kotlin | package com.storage.sample.activity
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.storage.sample.fragment.SettingsFragment
/**
* Created on 08/08/21
* @author <NAME>
*/
class SettingsActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
... |
app/src/main/java/com/example/tambolaGame/presentation/fragments/ParticipantsWalletFragment.kt | unknown_repo | kotlin | package com.example.tambolaGame.presentation.fragments
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.example.tambolaGame.MainActivity
import com.example.tambolaGame.MainActivity.Companion.myDevice
impo... |
base/src/main/java/com/theone/mvvm/base/IViewBinding.kt | unknown_repo | kotlin | package com.theone.mvvm.base
import android.util.SparseArray
import androidx.annotation.NonNull
import androidx.viewbinding.ViewBinding
import com.theone.mvvm.BR
import com.theone.mvvm.ext.getClazz
// ┏┓ ┏┓
//┏┛┻━━━┛┻┓
//┃ ┃
//┃ ━ ┃
//┃ ┳┛ ┗┳ ┃
//┃ ┃
//┃ ┻ ┃
//┃ ┃
//┗━┓ ┏━┛
// ┃ ┃ ... |
compose-ui/src/commonMain/kotlin/ru/blays/ficbookReader/ui_components/CustomToolbar/CustomToolbarScrollBehavior.kt | unknown_repo | kotlin | package com.istu.schedule.ui.components.toolbar
import androidx.compose.animation.core.AnimationState
import androidx.compose.animation.core.DecayAnimationSpec
import androidx.compose.animation.core.Spring
import androidx.compose.animation.core.animateDecay
import androidx.compose.animation.core.animateTo
import andro... |
sesame-localized-string/src/main/kotlin/me/aartikov/sesame/localizedstring/TextViewExt.kt | unknown_repo | kotlin | package me.aartikov.sesame.localizedstring
import android.widget.TextView
/**
* Sets [LocalizedString] value to [TextView].
*/
var TextView.localizedText: LocalizedString?
get() = LocalizedString.raw(text)
set(value) {
text = value?.resolve(context)
}
|
mobile/src/main/java/com/damn/anotherglass/extensions/notifications/Converter.kt | unknown_repo | kotlin | package com.damn.anotherglass.extensions.notifications
import android.app.Notification
import android.content.Context
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.drawable.BitmapDrawable
import android.graphics.drawable.Drawable
import android.os.Build
import android.service.no... |
transport-eta-android/sms/src/prod/java/com/joaquimley/transporteta/sms/SmsBroadcastReceiverImpl.kt | unknown_repo | kotlin | package com.joaquimley.transporteta.sms
import android.content.Context
import android.content.Intent
import android.provider.Telephony
import javax.inject.Inject
/**
* A broadcast receiver who listens for incoming SMS
*/
class SmsBroadcastReceiverImpl @Inject constructor(serviceNumber: String, serviceSmsCondition:... |
shared/src/commonMain/kotlin/ui/chart/ChartScreen.kt | unknown_repo | kotlin | package ui.chart
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
im... |
app/src/main/java/com/jaygoo/demo/fragments/BaseFragment.kt | unknown_repo | kotlin | package com.jaygoo.demo.fragments
import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
/**
// _ooOoo_
// o8888888o
// 88" . "88
// (... |
sample/src/main/kotlin/org/jraf/android/androidwearcolorpicker/sample/MainActivity.kt | unknown_repo | kotlin | /*
* This source is part of the
* _____ ___ ____
* __ / / _ \/ _ | / __/___ _______ _
* / // / , _/ __ |/ _/_/ _ \/ __/ _ `/
* \___/_/|_/_/ |_/_/ (_)___/_/ \_, /
* /___/
* repository.
*
* Copyright (C) 2015-present <NAME>BoD<NAME> (<EMAIL>)
*
* Licensed under the Apach... |
app/src/main/java/com/example/atomicdesign/ui/components/atom/SecondaryButton.kt | unknown_repo | kotlin | package com.anibalbastias.uikitcompose.components.atom
import androidx.compose.foundation.BorderStroke
import androidx.compose.material.MaterialTheme
import androidx.compose.material.OutlinedButton
import androidx.compose.material.Surface
import androidx.compose.material.Text
import androidx.compose.runtime.Composable... |
app/src/main/java/arcus/app/pairing/device/customization/waterheater/WaterHeaterModelSerialNumberFragment.kt | unknown_repo | kotlin | /*
* Copyright 2019 Arcus 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 applicable law or a... |
app/src/main/java/com/mertoenjosh/triviaquest/adapters/SelectCategoryItemAdapter.kt | unknown_repo | kotlin | package com.mertoenjosh.triviaquest.adapters
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.AdapterView
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import ... |
app/src/main/java/com/chocolate/triviatitans/presentation/screens/category/CategoryScreen.kt | unknown_repo | kotlin | package com.chocolate.triviatitans.presentation.screens.category
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Scaffold
import androidx.compose.runtime.Composable
import ... |
MVVMLibrary/src/main/java/com/see/mvvm/viewmodel/SeeApplication.kt | unknown_repo | kotlin | package com.see.mvvm.viewmodel
import android.app.Application
import androidx.lifecycle.ViewModelStore
import androidx.lifecycle.ViewModelStoreOwner
/**
* 继承 [ViewModelStoreOwner] 用来存放 [androidx.lifecycle.ViewModel]
* @author by XiaoSe on 2020/11/23.
*/
open class SeeApplication : Application(), ViewModelStoreOwne... |
app/src/main/java/com/example/android/architecture/blueprints/todoapp/util/EspressoIdlingResource.kt | unknown_repo | kotlin | package com.example.android.architecture.blueprints.todoapp.util
import androidx.test.espresso.idling.CountingIdlingResource
// How to make a NO-OP for Production code
// https://medium.com/androiddevelopers/android-testing-with-espressos-idling-resources-and-testing-fidelity-8b8647ed57f4
object EspressoIdlingResou... |
app/src/main/java/com/lodz/android/agiledevkt/modules/rv/snap/SnapRvActivity.kt | unknown_repo | kotlin | package com.lodz.android.agiledevkt.modules.rv.snap
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.View
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.lodz.android.agiledevkt.R
import com.lod... |
app/src/main/java/com/example/weather/Presentation/MainActivity.kt | unknown_repo | kotlin | package com.example.weather.Presentation
import android.app.Application
import android.content.Context
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.c... |
feature/attraction_gallery/src/main/java/tw/com/deathhit/feature/attraction_gallery/AttractionGalleryViewModel.kt | unknown_repo | kotlin | package tw.com.deathhit.feature.attraction_gallery
import android.os.Bundle
import android.os.Parcelable
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.ExperimentalCorou... |
app/src/main/java/com/example/lessons_schedule/subjects/components/DeleteSubjectDialog.kt | unknown_repo | kotlin | package com.example.lessons_schedule.subjects.components
import android.app.Dialog
import android.os.Bundle
import androidx.fragment.app.DialogFragment
import androidx.fragment.app.activityViewModels
import com.example.lessons_schedule.R
import com.example.lessons_schedule.data.model.Subject
import com.example.lessons... |
app/src/main/java/com/degree106/flashlight/MainActivity.kt | unknown_repo | kotlin | package com.degree106.flashlight
import android.content.pm.PackageManager
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import android.widget.ImageButton
import com.google.android.material.snackbar.Snackbar
class MainActivity : AppCompatActivity() {
private... |
feature-single-note/src/main/java/com/stslex/feature_single_note/ui/SingleNoteRoute.kt | unknown_repo | kotlin | package com.stslex.feature_single_note.ui
import androidx.activity.compose.BackHandler
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.safeDrawing
import androidx.compose.foundation.layout.windowInsetsPadding
import androidx.compose.runtime.*
import androidx.compose.ui.... |
tinyarbrowser/src/main/java/com/kkaun/tinyarbrowser/paintables/GpsSymbol.kt | unknown_repo | kotlin | package com.kkaun.tinyarbrowser.paintables
import android.graphics.Canvas
class GpsSymbol(radius: Float, strokeWidth: Float, fill: Boolean, color: Int) : CommonPaintable() {
private var radius = 0f
private var mStrokeWidth = 0f
private var mFill = false
private var mColor = 0
init { set(radius, ... |
sample/src/main/kotlin/io/github/ilyapavlovskii/feature/toggle/sample/compose/MenuItemVerticalGrid.kt | unknown_repo | kotlin | package io.github.ilyapavlovskii.feature.toggle.sample.compose
import androidx.compose.foundation.lazy.grid.GridCells
import androidx.compose.foundation.lazy.grid.LazyVerticalGrid
import androidx.compose.foundation.lazy.grid.items
import androidx.compose.runtime.Composable
import io.github.ilyapavlovskii.feature.toggl... |
app/src/main/java/cn/starrah/thu_course_helper/data/database/CalendarDatabase.kt | unknown_repo | kotlin | package cn.starrah.thu_course_helper.data.database
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import cn.starrah.thu_course_helper.data.declares.calendarEntity.CalendarItemData
import cn.starrah.thu_course_... |
app/src/main/java/com/kl3jvi/animity/data/repository/NotificationsRepositoryImpl.kt | unknown_repo | kotlin | package com.kl3jvi.animity.data.repository
import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.PagingData
import com.kl3jvi.animity.data.network.anilist_service.AniListGraphQlClient
import com.kl3jvi.animity.data.paging.NotificationPagingSource
import com.kl3jvi.animity.data.paging.... |
shared/src/commonMain/kotlin/repository/SessionRepository.kt | unknown_repo | kotlin | package repository
import androidx.compose.runtime.staticCompositionLocalOf
import exception.SessionRenameExistingException
import exception.SessionRenameInvalidException
import io.Paths
import io.sessionsDirectory
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import model.Re... |
androidapp/app/src/main/java/eu/miaounyan/isthereanynetwork/utils/PermittedToast.kt | unknown_repo | kotlin | package eu.miaounyan.isthereanynetwork.utils
import android.content.Context
import android.widget.Toast
import eu.miaounyan.isthereanynetwork.MainActivity.PERMISSIONS
import eu.miaounyan.isthereanynetwork.service.PermissionManager
class PermittedToast(context: Context) : Toast(context) {
companion object {
... |
data-app-data/src/main/java/com/melonhead/data_app_data/AppDataService.kt | unknown_repo | kotlin | package com.melonhead.mangadexfollower.services
import android.content.Context
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.core.edit
import androidx.datastore.... |
data-app-data/src/main/java/com/melonhead/data_app_data/AppDataService.kt | unknown_repo | kotlin | package com.melonhead.mangadexfollower.services
import android.content.Context
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.core.edit
import androidx.datastore.... |
app/src/main/java/com/aman/calculator/MainActivity.kt | unknown_repo | kotlin | package com.aman.calculator
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.Cir... |
app/src/main/java/com/nikola/jakshic/dagger/profile/peers/PeerFragment.kt | unknown_repo | kotlin | package com.nikola.jakshic.dagger.profile.peers
import android.os.Bundle
import android.view.View
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.lifecycle.Observer
import androidx.navigation.fragment.findNavController
import androidx.recyclerview.widget.DividerItemDecorat... |
privacypolicygenerator/src/main/java/com/livin/privacypolicygenerator/WebViewFragment.kt | unknown_repo | kotlin | package com.livin.privacypolicygenerator
import android.os.Bundle
import android.view.*
import androidx.fragment.app.Fragment
import com.livin.privacypolicygenerator.Utils.shareFile
import kotlinx.android.synthetic.main.fragment_web_view.*
import kotlinx.coroutines.*
import java.io.File
private const val HTML_STRING ... |
androidApp/src/main/java/com/nkuppan/todo/ui/viewmodel/TaskCreateViewModel.kt | unknown_repo | kotlin | package com.nkuppan.todo.ui.viewmodel
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import com.nkuppan.todo.R
import com.nkuppan.todo.ToDoApplication
import com.nkuppan.todo... |
shared/src/commonMain/kotlin/AbstractRowBuilder.kt | unknown_repo | kotlin | import androidx.compose.foundation.layout.Arrangement
import androidx.compose.ui.Alignment
abstract class AbstractRowBuilder<T>(id : String) : composable<T>(id) where T : composable<T> {
protected var horizontalArrangement: Arrangement.Horizontal = Arrangement.Start
protected var verticalAlignment: Alignment.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.