file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
prefeRx/src/test/java/com/vinted/preferx/EnumSerializerTest.kt | unknown_repo | kotlin | package com.vinted.preferx
import android.content.SharedPreferences
import org.junit.Assert.assertEquals
import org.junit.Test
import org.mockito.Mockito.*
import org.mockito.kotlin.mock
class EnumSerializerTest {
private val sharedPref: SharedPreferences = mock()
private val sharedPrefEditor: SharedPreferen... |
glide-component-icon/src/main/java/dev/arunkumar/android/glide/componenticon/ComponentIconModelLoader.kt | unknown_repo | kotlin | /*
* Copyright 2021 Arunkumar
*
* 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... |
app/src/main/java/com/jamshedalamqaderi/anview/bot/SendMessageBot.kt | unknown_repo | kotlin | package com.jamshedalamqaderi.anview.bot
import android.content.Context
import android.os.Build
import android.util.Log
import android.view.accessibility.AccessibilityNodeInfo
import androidx.annotation.RequiresApi
import com.jamshedalamqaderi.anview.dsl.anViewQuery
import com.jamshedalamqaderi.anview.enums.ParamType
... |
app/src/main/java/com/boolder/boolder/view/detail/ProblemBSFragment.kt | unknown_repo | kotlin | package com.boolder.boolder.view.detail
import android.content.Intent
import android.content.res.ColorStateList
import android.graphics.Color
import android.graphics.PointF
import android.net.Uri
import android.os.Bundle
import android.util.Log
import android.util.TypedValue
import android.view.Gravity
import android.... |
capabilities/src/main/kotlin/com/apoorvgupta/capabilities/presentation/reusableComponents/web/ChromeCustomTabWebView.kt | unknown_repo | kotlin | /**
* Copyright (c) 2024 <NAME>
* All rights reserved.
*/
package com.apoorvgupta.capabilities.presentation.reusableComponents.web
import android.content.ComponentName
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import androidx.browser.customtabs.CustomTabColorSchemeParams
import ... |
app/src/main/java/com/github/devnilobrasil/notes/database/NotesDatabase.kt | unknown_repo | kotlin | package com.github.devnilobrasil.notes.database
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import com.github.devnilobrasil.notes.model.NotesModel
import com.github.devnilobrasil.notes.helper.DateConverters... |
app/src/main/java/org/sil/storyproducer/model/Workspace.kt | unknown_repo | kotlin | package org.sil.storyproducer.model
import WordLinksCSVReader
import android.app.Activity
import android.content.Context
import android.content.SharedPreferences
import android.net.Uri
import android.os.Bundle
import android.os.ParcelFileDescriptor
import android.provider.Settings.Secure
import android.util.Log
import... |
feature_vehicles/src/androidTest/java/me/porge/android/cars/vehicles/layers/presentation/views/VehicleMapFragmentTest.kt | unknown_repo | kotlin | package me.porge.android.cars.vehicles.layers.presentation.views
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.lifecycle.ViewModel
import androidx.test.espresso.Espresso
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.IdlingRegistry
import androidx.test.... |
app/src/main/java/ru/net2fox/trackerapp/ui/tasklist/TaskListViewModel.kt | unknown_repo | kotlin | package ru.net2fox.trackerapp.ui.tasklist
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.launch
import androidx.lifecycle.LiveData
import ru.net2fox.trackerapp.data.model.TaskList
import ru.net2fox.trackerapp.data.reposit... |
main/src/main/kotlin/us/wedemy/eggeum/android/main/model/CafeDetailModel.kt | unknown_repo | kotlin | /*
* Designed and developed by Wedemy 2023.
*
* Licensed under the MIT.
* Please see full license: https://github.com/Wedemy/eggeum-android/blob/main/LICENSE
*/
package us.wedemy.eggeum.android.common.model
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
data class CafeDetailModel(
... |
app/src/main/java/codenevisha/com/cleanarchitecture/presenter/MainNavigator.kt | unknown_repo | kotlin | package codenevisha.com.cleanarchitecture.presenter
import android.content.Context
import android.support.v4.app.FragmentManager
import codenevisha.com.cleanarchitecture.domain.model.Article
import codenevisha.com.cleanarchitecture.presenter.detail.DetailActivity
import codenevisha.com.cleanarchitecture.presenter.deta... |
permissions/src/commonMain/kotlin/BindEffect.kt | unknown_repo | kotlin | package com.juul.sensortag.permissions
import androidx.compose.runtime.Composable
@Composable
public expect fun BindEffect(permissionsController: PermissionsController)
|
app/src/main/java/com/fabiel/casas/simulator/usecase/SimulationLogic.kt | unknown_repo | kotlin | package com.fabiel.casas.simulator.usecase
import android.util.Log
import com.fabiel.casas.simulator.ui.screens.rounds.MatchAction
import com.fabiel.casas.simulator.ui.screens.rounds.MatchInfo
import com.fabiel.casas.simulator.ui.screens.rounds.MatchScore
import com.fabiel.casas.simulator.ui.screens.rounds.Possession
... |
app/src/main/java/com/tfandkusu/learndi/HDImageView.kt | unknown_repo | kotlin | package com.tfandkusu.learndi
import android.content.Context
import android.graphics.*
import android.util.AttributeSet
import android.view.View
import kotlin.math.min
/**
* 16:9で画像を表示するView
*/
class HDImageView : View {
constructor(context: Context) : super(context)
constructor(context: Context, attrs: At... |
feature/monster-content-manager/state-holder/src/commonMain/kotlin/br/alexandregpereira/hunter/monster/content/MonsterContentManagerStateHolder.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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writi... |
app/src/main/java/com/you/android/ui/register/RegisterViewModel.kt | unknown_repo | kotlin | package com.you.android.ui.register
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Transformations
import androidx.lifecycle.ViewModel
import com.you.android.logic.Repository
class RegisterViewModel : ViewModel() {
private val flagLiveData = MutableLiveData<Unit>()
internal lateinit var ... |
presentation/src/main/java/com/no1/taiwan/newsbasket/ext/TypeAliases.kt | unknown_repo | kotlin | package com.no1.taiwan.newsbasket.ext
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.no1.taiwan.newsbasket.domain.DeferredUsecase
//import com.no1.taiwan.newsbasket.domain.DeferredWrapUsecase
import com.no1.taiwan.newsbasket.domain.NewsResponse
typealias RespMutableLiveData<D>... |
app/src/main/kotlin/tmidev/composethemeswitch/ui/MainActivity.kt | unknown_repo | kotlin | package tmidev.composethemeswitch.ui
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.f... |
app/src/main/java/com/smd/surmaiya/HelperClasses/SideBarNavigationHelper.kt | unknown_repo | kotlin | package com.smd.surmaiya.HelperClasses
import android.app.Activity
import android.app.AlertDialog
import android.content.Intent
import android.os.Handler
import android.os.Looper
import android.util.Log
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import androidx.appcompat.ap... |
app/src/main/java/be/huyck/mijnnutsverbruik/adapter/DagGegevensAdapter.kt | unknown_repo | kotlin | package be.huyck.mijnnutsverbruik.adapter
import android.graphics.Color
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.preference.PreferenceManager
import androidx.recyclerview.widget.RecyclerView
import be.huyck.mijnnutsverbruik.R
impo... |
app/src/main/java/com/github/zharovvv/open/source/weather/app/presentation/today/weather/HourlyWeatherAdapter.kt | unknown_repo | kotlin | package com.github.zharovvv.open.source.weather.app.presentation.today.weather
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Transformations
import androidx.recyclerview.widget.DiffUtil
import andr... |
adsorbent/src/main/java/com/uis/adsorbent/ChildRecyclerView.kt | unknown_repo | kotlin | /*
* Copyright (c) 2019 by uis
* Author: uis
* Github: https://github.com/luiing
*/
package com.uis.adsorbent
import android.content.Context
import android.support.v7.widget.RecyclerView
import android.util.AttributeSet
import android.view.MotionEvent
import java.lang.ref.WeakReference
import kotlin.math.max
cla... |
adsorbent/src/main/java/com/uis/adsorbent/ChildRecyclerView.kt | unknown_repo | kotlin | /*
* Copyright (c) 2019 by uis
* Author: uis
* Github: https://github.com/luiing
*/
package com.uis.adsorbent
import android.content.Context
import android.support.v7.widget.RecyclerView
import android.util.AttributeSet
import android.view.MotionEvent
import java.lang.ref.WeakReference
import kotlin.math.max
cla... |
app/src/main/java/pro/glideim/App.kt | unknown_repo | kotlin | package pro.glideim
import android.app.Application
import com.dengzii.adapter.SuperAdapter
import com.vanniktech.emoji.EmojiManager
import com.vanniktech.emoji.google.GoogleEmojiProvider
import pro.glideim.sdk.GlideIM
class App : Application() {
companion object {
private const val TAG = "App"
}
... |
androidApp/src/main/java/com/netguru/retail/android/shop/RecentlyViewedProductView.kt | unknown_repo | kotlin | package com.netguru.retail.android.shop
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.u... |
app/src/main/java/com/autodroid/demo/newly/newly/MainActivity.kt | unknown_repo | kotlin | package com.autodroid.demo.newly.newly
import android.app.Activity
import android.app.AlertDialog
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.Button
import android.widget.TextView
import com.autodroid.newly.dialog.Newly
import android.view.Win... |
app/src/main/java/com/concordium/wallet/data/preferences/AuthPreferences.kt | unknown_repo | kotlin | package com.concordium.wallet.data.preferences
import android.content.Context
class AuthPreferences(val context: Context) :
Preferences(context, SharedPreferencesKeys.PREF_FILE_AUTH, Context.MODE_PRIVATE) {
companion object {
val PREFKEY_HAS_SETUP_USER = "PREFKEY_HAS_SETUP_USER"
val PREFKEY_U... |
Toolkits/apermission/src/main/java/com/atoolkit/apermission/APermissionViewModel.kt | unknown_repo | kotlin | package com.atoolkit.apermission
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.atoolkit.apermission.uistate.APermissionUiState
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.flow.update
import kotlinx.corout... |
app/src/main/java/eu/kanade/presentation/browse/components/MigrationProgressDialog.kt | unknown_repo | kotlin | package eu.kanade.presentation.browse.components
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.material3.AlertDialog
import androidx.compose.material3.LinearProgressIndicator
import androidx.compose.material3.ProgressIndicatorDefaults
import androidx.compose.material3.Text
import a... |
timeselectview/src/main/java/com/ndhzs/timeselectview/layout/VpLayout.kt | unknown_repo | kotlin | package com.ndhzs.timeselectview.layout
import android.annotation.SuppressLint
import android.content.Context
import android.view.Gravity
import android.widget.FrameLayout
import androidx.viewpager2.widget.ViewPager2
import com.ndhzs.timeselectview.bean.TSViewDayBean
import com.ndhzs.timeselectview.utils.TSViewAttrs
i... |
biopin/src/main/java/th/co/cdgs/mobile/biopin/pincode/security/IPFSecurityUtils.kt | unknown_repo | kotlin | package th.co.cdgs.mobile.biopin.pincode.security
import android.content.Context
import th.co.cdgs.mobile.biopin.pincode.security.PFSecurityException
interface IPFSecurityUtils {
@Throws(PFSecurityException::class)
fun encode(
context: Context,
alias: String,
input: String,
is... |
app/src/main/java/com/binarybricks/coinbit/epoxymodels/CoinNewsItemView.kt | unknown_repo | kotlin | package com.binarybricks.coinbit.epoxymodels
import android.content.Context
import android.util.AttributeSet
import android.view.View
import android.widget.TextView
import androidx.constraintlayout.widget.ConstraintLayout
import com.airbnb.epoxy.CallbackProp
import com.airbnb.epoxy.ModelProp
import com.airbnb.epoxy.Mo... |
sdk/src/test/java/com/exponea/sdk/telemetry/storage/FileTelemetryStorageTest.kt | unknown_repo | kotlin | package com.exponea.sdk.telemetry
import android.content.Context
import androidx.test.core.app.ApplicationProvider
import com.exponea.sdk.telemetry.model.CrashLog
import com.exponea.sdk.telemetry.storage.FileTelemetryStorage
import com.exponea.sdk.testutil.ExponeaSDKTest
import io.mockk.every
import io.mockk.mockkCons... |
osmunda/src/main/java/moe/sunjiao/osmunda/writer/SQLiteWriter.kt | unknown_repo | kotlin | package moe.sunjiao.osmunda.writer
import android.content.ContentValues
import android.content.Context
import android.database.sqlite.SQLiteConstraintException
import android.database.sqlite.SQLiteDatabase
import android.util.Log
import moe.sunjiao.osmunda.Osmunda
import moe.sunjiao.osmunda.model.OsmType
import org.op... |
shared/src/commonMain/kotlin/ru/blays/ficbookReader/shared/data/dto/FanficCardModelStable.kt | unknown_repo | kotlin | package ru.blays.ficbookReader.shared.data.dto
import androidx.compose.runtime.Immutable
@Immutable
data class FanficCardModelStable(
val href: String,
val title: String,
val status: FanficStatusStable,
val author: List<UserModelStable>,
val fandom: List<FandomModelStable>,
val pairings: List<... |
dndsync/wear/src/main/kotlin/com/boswelja/smartwatchextensions/dndsync/LocalDnDAndTheaterCollectorService.kt | unknown_repo | kotlin | package com.boswelja.smartwatchextensions.dndsync
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import androidx.core.app.NotificationCompat
import androidx.lifecycle.LifecycleService
import androidx.lifecycle.lifecycleScop... |
stream-video-android-core/src/main/kotlin/io/getstream/video/android/core/model/SortData.kt | unknown_repo | kotlin | /*
* Copyright (c) 2014-2024 Stream.io Inc. All rights reserved.
*
* Licensed under the Stream License;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://github.com/GetStream/stream-video-android/blob/main/LICENSE
*
* Unless required by ... |
feature/main/src/main/java/com/ku_stacks/ku_ring/main/survey/SurveyPopupViewModel.kt | unknown_repo | kotlin | package com.ku_stacks.ku_ring.main.survey
import androidx.lifecycle.ViewModel
import com.ku_stacks.ku_ring.preferences.PreferenceUtil
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow
im... |
app/src/main/java/com/onoffrice/marvel_comics/data/local/PreferencesHelper.kt | unknown_repo | kotlin | package com.onoffrice.marvel_comics.data.local
import android.content.Context
import android.content.SharedPreferences
import com.onoffrice.marvel_comics.Constants.PACKAGE_NAME
object PreferencesHelper {
private lateinit var sharedPreferences: SharedPreferences
fun init(context: Context) {
sharedPre... |
ui/base/android/src/main/kotlin/io/github/wykopmobilny/utils/bindings/ViewBinding.kt | unknown_repo | kotlin | package io.github.wykopmobilny.utils.bindings
import android.view.View
import android.widget.ImageView
import androidx.core.view.isVisible
import io.github.wykopmobilny.ui.base.android.R
import io.github.wykopmobilny.ui.base.components.Drawable
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.collect... |
app/src/main/kotlin/aa/weather/app/FragmentInjector.kt | unknown_repo | kotlin | package aa.weather.app
import aa.weather.screen.api.InjectableScreen
import aa.weather.screen.api.ScreenDependenciesLocator
import android.app.Activity
import android.app.Application
import android.content.Context
import android.os.Bundle
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActiv... |
next/kmp/sys/src/androidMain/kotlin/org/dweb_browser/sys/permission/PermissionActivity.kt | unknown_repo | kotlin | package org.dweb_browser.sys.permission
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.result.contract.ActivityResultContracts
import androidx.compose.foundat... |
membersdkdemo/src/main/java/com/satayupomsri/membersdkdemo/ValidateSignInAction.kt | unknown_repo | kotlin | package com.satayupomsri.membersdkdemo
import android.content.Context
import com.satayupomsri.membersdkdemo.protocol.ServerProtocol
import com.satayupomsri.membersdkdemo.status.MemberStatus
import com.satayupomsri.membersdkdemo.utils.getKey
import java.net.URI
/**
* Created by satayupomsri on 3/12/2018 AD.
*/
inter... |
plugin-lifecycle/src/main/java/com/mapbox/maps/plugin/lifecycle/ViewLifecycleOwner.kt | unknown_repo | kotlin | package com.mapbox.maps.plugin.lifecycle
import android.view.View
import androidx.annotation.RestrictTo
import androidx.annotation.UiThread
import androidx.annotation.VisibleForTesting
import androidx.annotation.VisibleForTesting.Companion.PRIVATE
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.Lifecycle... |
app/src/main/java/com/domker/app/doctor/main/list/AppListFragment.kt | unknown_repo | kotlin | package com.domker.app.doctor.main.list
import android.os.Bundle
import android.view.*
import androidx.viewpager2.widget.ViewPager2
import com.alibaba.android.arouter.launcher.ARouter
import com.domker.app.doctor.R
import com.domker.app.doctor.data.SORT_NAME
import com.domker.app.doctor.data.SORT_SIZE
import com.domke... |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/bulk/Copysuccess.kt | unknown_repo | kotlin | package moe.tlaster.icons.vuesax.vuesaxicons.bulk
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.co... |
app/src/main/java/com/udacity/main/MainActivity.kt | unknown_repo | kotlin | package com.udacity.main
import android.app.DownloadManager
import android.app.NotificationManager
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.net.ConnectivityManager
import android.net.ConnectivityManager.Net... |
src/en/koushoku/src/eu/kanade/tachiyomi/extension/en/koushoku/KoushokuWebViewInterceptor.kt | unknown_repo | kotlin | package eu.kanade.tachiyomi.extension.en.koushoku
import android.app.Application
import android.os.Handler
import android.os.Looper
import android.webkit.WebView
import android.webkit.WebViewClient
import okhttp3.Interceptor
import okhttp3.Response
import org.jsoup.Jsoup
import uy.kohesive.injekt.Injekt
import uy.kohe... |
android/app/src/main/java/com/bwqr/mavinote/ui/BackgroundFeatures.kt | unknown_repo | kotlin | package com.bwqr.mavinote.ui
import android.util.Log
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Scaffold
import androidx.compose.material3.SnackbarHost
import androidx.compose.material3.SnackbarHostState
import androidx.compose.runtime.Composable
import androidx.compose.runtime... |
app/src/main/java/dev/albertus/expensms/ui/viewModels/MainViewModel.kt | unknown_repo | kotlin | package dev.albertus.expensms.ui.viewModels
import androidx.datastore.core.DataStore
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import dev.albertus.expensms.data.SupportedBank
import dev.albertus.expensms.data.UserPreferences
import d... |
app/src/main/java/com/example/agriculturainteligente/dialogs/DialogMilho.kt | unknown_repo | kotlin | package com.example.agriculturainteligente.dialogs
import android.app.AlertDialog
import android.app.Dialog
import android.content.DialogInterface
import android.content.Intent
import android.os.Bundle
import android.widget.Toast
import androidx.fragment.app.DialogFragment
import com.example.agriculturainteligente.R
... |
awesomedialoglib/src/main/java/com/awesomedialog/blennersilva/awesomedialoglibrary/AwesomeNoticeDialog.kt | unknown_repo | kotlin | package com.awesomedialog.blennersilva.awesomedialoglibrary
import android.content.Context
import android.graphics.PorterDuff
import android.support.v4.content.ContextCompat
import android.view.View
import android.widget.Button
import android.widget.RelativeLayout
import com.awesomedialog.blennersilva.awesomedialogli... |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/HourglassEmpty.kt | unknown_repo | kotlin | package com.woowla.compose.icon.collections.tabler.tabler.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
im... |
library/bitshares-kit-old/src/main/java/bitshareskit/objects/WitnessScheduleObject.kt | unknown_repo | kotlin | package bitshareskit.objects
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Ignore
import org.java_json.JSONObject
@Entity(tableName = FbaAccumulatorObject.TABLE_NAME)
data class FbaAccumulatorObject(@ColumnInfo(name = "data") val rawJson: JSONObject) : GrapheneObject(rawJson) {
... |
wastewarrior/app/src/main/java/com/example/wastewarrior/user/main/home/SurpriseBagsClientAdapter.kt | unknown_repo | kotlin | package com.example.wastewarrior.admin
import android.content.Context
import android.content.Intent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import android.widget.Toast
import androidx.cardview.widget.CardView
import androidx.core.content.... |
app/src/main/java/com/hammer/talkbbokki/presentation/detail/FlipCard.kt | unknown_repo | kotlin | package com.hammer.talkbbokki.presentation.detail
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.graphicsLayer
@Composable
fun FlipCard(
rotation:... |
app/src/main/java/com/niyaj/popos/utils/LazyListUtils.kt | unknown_repo | kotlin | package com.niyaj.popos.utils
import androidx.compose.foundation.lazy.LazyListState
import androidx.compose.runtime.derivedStateOf
val LazyListState.isScrolled: Boolean
get() = derivedStateOf { firstVisibleItemIndex > 0 || firstVisibleItemScrollOffset > 0 }.value
|
android/src/main/kotlin/com/dsr_corporation/flutter_background_executor/dtos/AndroidRefreshTaskDetails.kt | unknown_repo | kotlin | /*
* Copyright (c) 2012-2023 DSR Corporation, Denver CO, USA
*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License, Version 2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* You may not use this file except in compliance with ... |
app/src/main/java/xyz/paphonb/androidpify/hooks/NotificationStackHook.kt | unknown_repo | kotlin | /*
* Copyright (C) 2018 <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 to ... |
compose/ui/ui/src/androidAndroidTest/kotlin/androidx/compose/ui/input/pointer/PointerInteropFilterAndroidViewHookupTest.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... |
crossdevice/src/main/kotlin/com/google/ambient/crossdevice/sessions/SessionsAnalyticsLogger.kt | unknown_repo | kotlin | /*
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
frameexample/src/main/java/com/brilliantzhao/andframework/fragment/GirlFragment.kt | unknown_repo | kotlin | package com.brilliantzhao.andframework.fragment
import android.os.Bundle
import android.support.v7.widget.GridLayoutManager
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import com.blankj.utilcode.... |
compose/ui-layout-custom/src/commonMain/kotlin/com/bselzer/ktx/compose/ui/layout/icontext/IconTextProjector.kt | unknown_repo | kotlin | package com.bselzer.ktx.compose.ui.layout.icontext
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import com.bselzer.ktx.compose.ui.layout.icon.IconProjector
import com.bselzer.ktx.compose.ui.layout.project.Projector
import com.bselzer.ktx.compose.ui.layout.row.RowProjector
import com.b... |
compose/ui-layout-custom/src/commonMain/kotlin/com/bselzer/ktx/compose/ui/layout/icontext/IconTextProjector.kt | unknown_repo | kotlin | package com.bselzer.ktx.compose.ui.layout.icontext
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import com.bselzer.ktx.compose.ui.layout.icon.IconProjector
import com.bselzer.ktx.compose.ui.layout.project.Projector
import com.bselzer.ktx.compose.ui.layout.row.RowProjector
import com.b... |
src/nativeTest/kotlin/cli/ActionResolverTest.kt | unknown_repo | kotlin | package cli
import cli.ActionResolver.Result
import config.Argument
import config.Command
import config.Modifier
import util.empty
import util.space
import kotlin.test.Test
import kotlin.test.assertEquals
internal class ActionResolverTest {
// region Help
@Test fun `command: help, short`() {
val result = Ac... |
android/features/now-playing/src/main/java/io/newm/feature/now/playing/DemoPlayerScreen.kt | unknown_repo | kotlin | package io.newm.feature.now.playing
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import io.newm.core.ui.LoadingScreen
import org.koin.compose.koinInject
@Composable
fun DemoPlayerScreen(songId: String, viewModel: DemoPlayerViewModel... |
stream-chat-android-compose/src/test/kotlin/io/getstream/chat/android/compose/ui/BaseComposeTest.kt | unknown_repo | kotlin | /*
* Copyright (c) 2014-2024 Stream.io Inc. All rights reserved.
*
* Licensed under the Stream License;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://github.com/GetStream/stream-chat-android/blob/main/LICENSE
*
* Unless required by a... |
push-sample-app/src/main/java/example/okta/android/sample/app/ContextExtensions.kt | unknown_repo | kotlin | /*
* Copyright (c) 2021-2022, Okta, Inc. and/or its affiliates. All rights reserved.
* The Okta software accompanied by this notice is provided pursuant to the Apache License,
* Version 2.0 (the "License.")
*
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless require... |
siren-sdk/src/main/java/com/keyvalue/siren/androidsdk/utils/constants/Constants.kt | unknown_repo | kotlin | package com.keyvalue.siren.androidsdk.utils.constants
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import com... |
app/src/main/java/me/naoti/panelapp/ui/theme/Type.kt | unknown_repo | kotlin | package me.naoti.panelapp.ui.theme
import androidx.compose.material3.Typography
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.Font
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.sp
import me.naoti.panelapp... |
app/src/main/java/tech/soulike/yunzhan/cloudexhibition/service/MyPollingService.kt | unknown_repo | kotlin | package tech.soulike.yunzhan.cloudexhibition.service
import android.app.Service
import android.content.Intent
import android.os.IBinder
import android.util.Log
import android.view.View
import com.google.gson.Gson
import tech.soulike.yunzhan.cloudexhibition.base.JsonData
import tech.soulike.yunzhan.cloudexhibition.base... |
app/src/main/java/com/example/misw4203moviles2023/data/network/CollectorService.kt | unknown_repo | kotlin | package com.example.misw4203moviles2023.data.network
import android.util.Log
import com.example.misw4203moviles2023.core.RetrofitHelper
import com.example.misw4203moviles2023.data.model.CollectorModel
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import java.io.IOException
class Collecto... |
app/src/main/java/com/scudderapps/moviesup/MovieGenreActivity.kt | unknown_repo | kotlin | package com.scudderapps.moviesup
import android.os.Bundle
import android.view.View
import android.widget.ProgressBar
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.Toolbar
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvide... |
shared/account/src/commonMain/kotlin/io/edugma/features/account/people/common/items/PeopleItem.kt | unknown_repo | kotlin | package io.edugma.features.account.people.common.items
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import io.edugma.core.designSystem.atoms.divider.Ed... |
android/src/main/kotlin/io/iden3/polygonid_flutter_sdk/PolygonIdSdkPlugin.kt | unknown_repo | kotlin | package io.iden3.polygonid_flutter_sdk
import android.util.Log
import androidx.annotation.NonNull
import io.flutter.embedding.engine.plugins.FlutterPlugin
import io.flutter.plugin.common.MethodCall
import io.flutter.plugin.common.MethodChannel
import io.flutter.plugin.common.MethodChannel.MethodCallHandler
import io.... |
core/src/main/java/app/futured/arkitekt/core/livedata/LiveDataExtensions.kt | unknown_repo | kotlin | package app.futured.arkitekt.core.livedata
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.LiveData
import androidx.lifecycle.Observer
fun <T> LiveData<T>.observe(lifecycleOwner: LifecycleOwner, callback: (T?) -> Unit) {
observe(lifecycleOwner, Observer { callback(it) })
}
fun <T> LiveData<T>.... |
modules/coreui/src/main/kotlin/kekmech/ru/coreui/items/FavoriteScheduleItem.kt | unknown_repo | kotlin | package kekmech.ru.coreui.items
import android.content.res.ColorStateList
import android.view.View
import androidx.recyclerview.widget.RecyclerView
import kekmech.ru.common_adapter.AdapterItem
import kekmech.ru.common_adapter.BaseItemBinder
import kekmech.ru.common_android.getThemeColor
import kekmech.ru.coreui.R
impo... |
ui/src/main/kotlin/com/aptopayments/sdk/ui/views/NativeContentView.kt | unknown_repo | kotlin | package com.aptopayments.sdk.ui.views
import android.content.Context
import android.graphics.drawable.Drawable
import android.util.AttributeSet
import android.widget.RelativeLayout
import com.aptopayments.mobile.data.content.Content
import com.aptopayments.sdk.R
import com.aptopayments.sdk.core.extension.loadFromUrlWi... |
app/src/main/java/win/regin/mvvm/ui/LoginActivity.kt | unknown_repo | kotlin | package win.regin.mvvm.ui
import android.os.Bundle
import androidx.activity.viewModels
import com.orhanobut.logger.Logger
import kotlinx.android.synthetic.main.activity_login.*
import win.regin.base.BaseVmActivity
import win.regin.base.ext.vmObserver
import win.regin.common.text
import win.regin.mvvm.R
import win.regi... |
lib-multisrc/hentaihand/src/eu/kanade/tachiyomi/multisrc/hentaihand/HentaiHand.kt | unknown_repo | kotlin | package eu.kanade.tachiyomi.extension.all.hentaihand
import android.app.Application
import android.content.SharedPreferences
import android.text.InputType
import android.widget.Toast
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.network.POST
import eu.kanade.tachiyomi.network.asObservableSuccess
im... |
app/src/main/java/cloud/shoplive/sample/extension/FragmentExtension.kt | unknown_repo | kotlin | package cloud.shoplive.sample.extension
import android.content.res.Configuration
import androidx.fragment.app.Fragment
internal fun Fragment.isTablet(): Boolean {
val screenSizeType = resources.configuration.screenLayout and Configuration.SCREENLAYOUT_SIZE_MASK
if (screenSizeType == Configuration.SCREENLAYOUT... |
app/src/main/java/com/babylon/wallet/android/presentation/account/settings/thirdpartydeposits/AccountThirdPartyDepositsNav.kt | unknown_repo | kotlin | package com.babylon.wallet.android.presentation.account.settings.thirdpartydeposits
import androidx.annotation.VisibleForTesting
import androidx.compose.animation.AnimatedContentScope
import androidx.compose.animation.EnterTransition
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.ru... |
data/items_search/src/main/java/com/example/items_search/SearchRepositoryImpl.kt | unknown_repo | kotlin | package com.example.items_search
import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.PagingData
import com.example.items_search.remote.SearchApi
import com.example.items_search.remote.SearchPagingSource
import com.jocode.model.search.Product
import kotlinx.coroutines.flow.Flow
impor... |
app/src/main/java/com/dluvian/nozzle/data/room/dao/ReactionDao.kt | unknown_repo | kotlin | package com.dluvian.nozzle.data.room.dao
import androidx.room.Dao
import androidx.room.Query
@Dao
interface ReactionDao {
@Query(
"INSERT OR IGNORE INTO reaction (eventId, pubkey) " +
"VALUES (:eventId, :pubkey)"
)
suspend fun like(eventId: String, pubkey: String)
@Query(
... |
app/src/main/java/com/example/vftask/features/imageDetails/ImageDetailsFragment.kt | unknown_repo | kotlin | package com.example.vftask.features.imageDetails
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import androidx.fragment.app.viewModels
import androidx.lif... |
app/src/main/java/moe/fuqiuluo/portal/ui/home/HomeFragment.kt | unknown_repo | kotlin | package moe.fuqiuluo.portal.ui.home
import android.animation.Animator
import android.animation.AnimatorListenerAdapter
import android.animation.AnimatorSet
import android.animation.ObjectAnimator
import android.annotation.SuppressLint
import android.graphics.Point
import android.os.Bundle
import android.util.Log
impor... |
app/src/main/java/dev/razil/folio/util/Extensions.kt | unknown_repo | kotlin | /*
* MIT License
*
* Copyright (postChannel) 2019 Razil
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, ... |
solar/src/main/java/com/chiksmedina/solar/broken/designtools/Ruler.kt | unknown_repo | kotlin | package com.chiksmedina.solar.broken.designtools
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.Round
import androidx.compose.ui.graphics.StrokeJoin.Compa... |
app/src/main/java/org/gelecekbilimde/util/StringExtension.kt | unknown_repo | kotlin | package org.gelecekbilimde.util
import android.annotation.SuppressLint
import android.os.Build
import android.text.Html
import java.text.SimpleDateFormat
import java.util.*
/**
*
* @author ferhatozcelik
* @since 2023-04-02
*/
class StringExtension {
companion object {
fun String.capitalize(): String ... |
compose-mds/src/main/java/ch/sbb/compose_mds/sbbicons/small/VegetarianSmall.kt | unknown_repo | kotlin | package ch.sbb.compose_mds.sbbicons.small
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Mit... |
library/src/main/java/com/chad/library/adapter4/viewholder/StateLayoutVH.kt | unknown_repo | kotlin | package com.chad.library.adapter.base.viewholder
import android.view.Gravity
import android.view.View
import android.view.ViewGroup
import android.widget.FrameLayout
import androidx.recyclerview.widget.RecyclerView
import com.chad.library.adapter.base.fullspan.FullSpanAdapterType
/**
* An emptyState viewHolder. (For... |
purchases/src/androidTestDefaults/kotlin/com/revenuecat/purchases/offlineentitlements/OfflineEntitlementsWithInitialRequestsCompletedIntegrationTest.kt | unknown_repo | kotlin | package com.revenuecat.purchases.offlineentitlements
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.revenuecat.purchases.CacheFetchPolicy
import com.revenuecat.purchases.CustomerInfo
import com.revenuecat.purchases.MainActivity
import com.revenuecat.purchases.ProductType
import com.revenuecat.purchase... |
app/src/main/java/org/n27/nutshell/data/di/DataModule.kt | unknown_repo | kotlin | package org.n27.nutshell.data.di
import android.app.Application
import com.google.firebase.database.FirebaseDatabase
import dagger.Module
import dagger.Provides
import org.n27.nutshell.data.common.DataUtils
import javax.inject.Singleton
@Module
class DataModule {
@Provides
@Singleton
fun provideDataUtils... |
azure-communication-ui/demo-app/src/call-with-chat/java/com/azure/android/communication/ui/callwithchatdemoapp/features/SettingsFeatures.kt | unknown_repo | kotlin | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.android.communication.ui.callwithchatdemoapp.features
import android.content.Context
import android.content.SharedPreferences
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import an... |
app/src/test/java/com/github/oheger/locationteller/track/PreferencesHandlerSpec.kt | unknown_repo | kotlin | /*
* Copyright 2019-2022 The 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... |
app/src/main/java/me/m123/video/utils/ToolsHelper.kt | unknown_repo | kotlin | package me.m123.video.utils
import android.content.Context
import android.util.Base64
import android.util.Log
import me.m123.video.data.UserInfoToken
import org.jetbrains.anko.db.classParser
import org.jetbrains.anko.db.parseList
import org.jetbrains.anko.db.parseSingle
import org.jetbrains.anko.db.select
import java... |
ImageCropper/app/src/main/java/com/example/image/MainActivity.kt | unknown_repo | kotlin | package com.example.image
import android.app.Activity
import android.content.Intent
import android.net.Uri
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.provider.MediaStore
import android.util.Log
import com.bumptech.glide.Glide
import com.bumptech.glide.RequestManager
import ... |
dcache/src/main/java/dora/cache/repository/DoraPageFlowDatabaseCacheRepository.kt | unknown_repo | kotlin | package dora.cache.repository
import android.content.Context
import android.util.Log
import dora.cache.data.fetcher.OnLoadStateListener
import dora.db.builder.Condition
import dora.db.builder.QueryBuilder
import dora.db.table.OrmTable
import dora.http.DoraCallback
import dora.http.DoraListCallback
import dora.cache.Do... |
app/src/main/java/com/example/agriculturainteligente/MainActivity.kt | unknown_repo | kotlin | package com.example.agriculturainteligente
import android.content.Intent
import android.os.AsyncTask
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.ProgressBar
import android.widget.RelativeLayout
import android.widget.TextView
import android.wid... |
paymentclient/src/main/java/ir/net_box/paymentclient/payment/Payment.kt | unknown_repo | kotlin | package ir.net_box.paymentclient.payment
import android.content.Context
import android.os.Bundle
import ir.net_box.paymentclient.callback.ConnectionCallback
import ir.net_box.paymentclient.connection.Connection
import ir.net_box.paymentclient.connection.PaymentConnection
import ir.net_box.paymentclient.util.isFailed
i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.