file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/com/king/mvvmframe/app/adapter/SearchHistoryAdapter.kt | unknown_repo | kotlin | package com.king.mvvmframe.app.adapter
import android.view.LayoutInflater
import android.view.View
import android.widget.TextView
import com.king.mvvmframe.R
import com.king.mvvmframe.app.Constants
import com.king.mvvmframe.bean.SearchHistory
import com.king.mvvmframe.util.RandomUtil.randomColor
import com.zhy.view.fl... |
app/src/main/java/com/tomg/githubreleasemonitor/main/data/GitHubRepository.kt | unknown_repo | kotlin | /*
* Copyright (c) 2020-2022, <NAME> (<EMAIL>)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
* and associated documentation files (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge,... |
profile/src/main/java/org/openedx/profile/presentation/profile/ProfileViewModel.kt | unknown_repo | kotlin | package org.openedx.profile.presentation.profile
import androidx.fragment.app.FragmentManager
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.cor... |
app/src/main/java/com/robyn/dayplus2/display/DisplayActivity.kt | unknown_repo | kotlin | package com.robyn.dayplus2.display
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.support.v4.app.Fragment
import android.support.v4.app.FragmentStatePagerAdapter
import android.support.v4.content.FileProvider
import android.support.v4.view.ViewPager
import android.... |
app/src/main/java/com/google/norinori6791/cycledo/ui/dust/DustFragment.kt | unknown_repo | kotlin | package com.google.norinori6791.cycledo.ui.dust
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProviders
import ... |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/BowlingPins.kt | unknown_repo | kotlin | package me.localx.icons.straight.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
i... |
app/src/main/java/com.terracode.blueharvest/listeners/accessibilityListeners/UnitToggleListener.kt | unknown_repo | kotlin | package com.terracode.blueharvest.listeners.accessibilityListeners
import android.widget.CompoundButton
import com.terracode.blueharvest.AccessibilitySettingsActivity
import com.terracode.blueharvest.utils.PreferenceManager
import com.terracode.blueharvest.utils.UnitConverter
/**
* Listener for handling changes in u... |
modules/android/ui/compose/src/main/kotlin/alakazam/android/ui/compose/Colours.kt | unknown_repo | kotlin | package alakazam.android.ui.compose
import androidx.compose.material.Colors
import androidx.compose.runtime.Stable
import androidx.compose.ui.graphics.Color
@Stable
public val Colors.OnSurfaceSecondary: Color get() = if (isLight) Color(0x99000000) else Color(0x99FFFFFF)
@Stable
public val Colors.OnSurfaceGreen: Colo... |
app/src/main/java/com/alpriest/energystats/ui/flow/home/SolarPowerFlow.kt | unknown_repo | kotlin | package com.alpriest.energystats.ui.flow.home
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.... |
app/src/main/java/com/example/unrepeatability/MainActivity.kt | unknown_repo | kotlin | package com.example.unrepeatability
import android.content.Intent
import android.media.MediaPlayer
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import java.util.Timer
import kotlin.concurrent.timerTask
class MainActivity : AppCompatActivity() {
private lateinit var startJingle: MediaPl... |
app/src/main/java/com/example/weatherapp/MainActivity.kt | unknown_repo | kotlin | package com.example.weatherapp
import android.Manifest
import android.content.pm.PackageManager
import android.location.LocationManager
import android.os.Bundle
import android.provider.Settings.Global.getString
import android.util.Log
import android.widget.Toast
import androidx.activity.ComponentActivity
import androi... |
app/src/main/java/com/hackware/mormont/notebook/SettingsActivity.kt | unknown_repo | kotlin | package com.hackware.mormont.notebook
import android.content.SharedPreferences
import android.os.Bundle
import android.preference.PreferenceActivity
import android.preference.PreferenceManager
import androidx.appcompat.app.AppCompatActivity
import android.content.Intent
import android.preference.Preference
import and... |
app/src/main/java/com/itflat/popugweather/PopugiaFragment.kt | unknown_repo | kotlin | /*
* Copyright 2021 iTFlat Apps
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in wri... |
model/src/androidMain/kotlin/tech/skot/model/Encoding.kt | unknown_repo | kotlin | package tech.skot.model
import android.util.Base64
import java.security.MessageDigest
import javax.crypto.Cipher
import javax.crypto.spec.IvParameterSpec
import javax.crypto.spec.SecretKeySpec
actual fun decodeBase64(str: String): String {
return String(Base64.decode(str, Base64.URL_SAFE))
}
actual fun encodeBas... |
mbmobilesdk/src/main/java/com/daimler/mbmobilesdk/preferences/mbmobilesdk/SharedMBMobileSDKPreferences.kt | unknown_repo | kotlin | package com.daimler.mbmobilesdk.preferences.mbmobilesdk
import android.content.Context
import android.content.SharedPreferences
import com.daimler.mbcommonkit.extensions.getMultiAppSharedPreferences
import com.daimler.mbcommonkit.utils.preferencesForSharedUserId
import com.daimler.mbmobilesdk.preferences.PreferencesIn... |
lib_base/src/main/java/com/hzsoft/lib/base/widget/NetErrorView.kt | unknown_repo | kotlin | package com.lib.base.widget
import android.content.Context
import android.util.AttributeSet
import android.view.View
import android.widget.RelativeLayout
import androidx.annotation.ColorRes
import com.lib.base.R
class NetErrorView(context: Context, attrs: AttributeSet) : RelativeLayout(context, attrs) {
private v... |
app/src/main/java/com/example/cameramotiondetector/ExtendedImageView.kt | unknown_repo | kotlin | package com.example.cameramotiondetector
import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.util.AttributeSet
import androidx.appcompat.widget.AppCompatImageView
class ExtendedImageView @JvmOverloads constructor(
context: Contex... |
system-extension/src/main/java/com/highcapable/betterandroid/system/extension/component/BroadcastFactory.kt | unknown_repo | kotlin | /*
* Better Android - Create more useful tool extensions for Android.
* Copyright (C) 2019-2023 HighCapable
* https://github.com/BetterAndroid/BetterAndroid
*
* 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 th... |
app/src/main/java/com/niyaj/popos/features/customer/presentation/settings/export_customer/ExportCustomerScreen.kt | unknown_repo | kotlin | package com.niyaj.popos.features.customer.presentation.settings.export_customer
import android.Manifest
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.activity.result.contract.ActivityResultContracts
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animat... |
backpack-compose/src/main/kotlin/net/skyscanner/backpack/compose/card/BpkCard.kt | unknown_repo | kotlin | /**
* Backpack for Android - Skyscanner's Design System
*
* Copyright 2018-2021 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/LI... |
matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/relation/poll/FetchPollResponseEventsTask.kt | unknown_repo | kotlin | /*
* Copyright (c) 2022 The Matrix.org Foundation C.I.C.
*
* 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... |
face_module/src/main/java/com/inz/z/face_module/view/widget/FaceView.kt | unknown_repo | kotlin | package com.inz.z.face_module.view.widget
import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.graphics.RectF
import android.util.AttributeSet
import android.util.TypedValue
import android.view.View
/**
* author : chensen
* data :... |
app/src/main/java/com/korol/myweather/ui/city/RvViewedCityAdapter.kt | unknown_repo | kotlin | package com.korol.myweather.ui.city
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.korol.myweather.databinding.RcViewedCityItemBinding
import com.korol.myweather.db.ViewedCity
class RvViewedCityAdapter (
var citysList: ArrayList<Viewed... |
android/app/src/main/java/now/fortuitous/thanos/process/v2/ProcessManageScreen.kt | unknown_repo | kotlin | /*
* (C) Copyright 2022 Thanox
*
* 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 ... |
inappmessaging/src/test/java/io/karte/android/inappmessaging/unit/IAMWebViewTest.kt | unknown_repo | kotlin | //
// Copyright 2020 PLAID, Inc.
//
// 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 agr... |
src/main/kotlin/com/toasttab/pulseman/state/protocol/protobuf/ProtobufState.kt | unknown_repo | kotlin | /*
* Copyright (c) 2021 Toast Inc.
*
* 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... |
feature-wallet-impl/src/main/java/jp/co/soramitsu/wallet/impl/presentation/send/confirm/ConfirmSendFragment.kt | unknown_repo | kotlin | package jp.co.soramitsu.wallet.impl.presentation.send.confirm
import android.os.Bundle
import android.view.View
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.core... |
app/src/main/java/eu/kanade/tachiyomi/ui/browse/extension/ExtensionFilterController.kt | unknown_repo | kotlin | package eu.kanade.tachiyomi.ui.browse.extension
import androidx.preference.PreferenceScreen
import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.extension.ExtensionManager
import eu.kanade.tachiyomi.ui.setting.SettingsController
import eu.kanade.tachiyomi.util.preference.minusAssign
import eu.kanade.tachiyomi.util.... |
core/src/main/java/top/xuqingquan/utils/ManifestParser.kt | unknown_repo | kotlin | package top.xuqingquan.utils
import android.content.Context
import android.content.pm.PackageManager
import top.xuqingquan.integration.LifecycleConfig
import java.util.ArrayList
/**
* Created by 许清泉 on 2019/4/14 22:59
*/
internal class ManifestParser(private val context: Context) {
companion object {
pr... |
recorder-core/src/main/java/me/shetj/recorder/core/BaseRecorder.kt | unknown_repo | kotlin | /*
* MIT License
*
* Copyright (c) 2019 SheTieJun
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify... |
src/main/java/com/razorpay/sampleapp/kotlin/PaymentOptions.kt | unknown_repo | kotlin | package com.razorpay.sampleapp.kotlin
import android.app.Activity
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.webkit.WebView
import android.widget.*
import android.widget.AdapterView.OnItemClickListener
import... |
data/src/main/java/com/example/data/local/PreferencesDataStore.kt | unknown_repo | kotlin | package com.example.data.local
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.core.booleanPreferencesKey
import androidx.datastore.preferences.core.doublePreferencesKey
import androidx.datastore.preferences.core.edit
import androidx... |
app/src/main/kotlin/io/github/nuhkoca/libbra/ui/currency/BindableMultiplier.kt | unknown_repo | kotlin | /*
* Copyright (C) 2020. Nuh Koca. All Rights Reserved.
*
* 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 appl... |
dashboard/src/main/java/com/bibek/dashboard/presentation/ui/components/ReminderContent.kt | unknown_repo | kotlin | package com.bibek.dashboard.presentation.ui.components
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.... |
vector/src/main/java/im/vector/app/core/animations/VectorFullTransitionSet.kt | unknown_repo | kotlin | /*
* Copyright 2019 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
app/src/main/java/com/ctd/cymanage/widget/NoticeDialog.kt | unknown_repo | kotlin | package com.ctd.cymanage.widget
import android.app.Dialog
import android.content.Context
import android.content.DialogInterface
import android.graphics.BitmapFactory
import android.text.TextUtils
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.*
import br... |
shared/src/commonMain/kotlin/com/somabits/spanish/ui/product/BuyVerbDataPackCard.kt | unknown_repo | kotlin | package com.somabits.spanish.ui.product
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.rounded.ShoppingCart
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import com.somabits.spanish.SharedRes
import com.somabits.spanish.stringResource
import com.som... |
android/src/main/java/com/stoneposdeeplink/executors/Printer.kt | unknown_repo | kotlin | package com.stoneposdeeplink.executors
import android.app.Activity
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.bridge.ReadableMap
import android.net.Uri
import android.content.Intent
import java.lang.Exception
class Printer(reactApplicationContext: ReactApplicationContext ) {
... |
vmtools/src/main/kotlin/com/vmloft/develop/library/tools/widget/dialog/VMDefaultDialog.kt | unknown_repo | kotlin | package com.vmloft.develop.library.tools.widget.dialog
import android.content.Context
import android.view.LayoutInflater
import android.widget.LinearLayout
import android.widget.TextView
import com.vmloft.develop.library.tools.widget.dialog.VMBDialog
import com.vmloft.develop.library.tools.databinding.VmWidgetDefault... |
prefs/src/main/java/com/mathewsachin/fategrandautomata/prefs/BattleConfig.kt | unknown_repo | kotlin | package com.mathewsachin.fategrandautomata.prefs
import androidx.core.content.edit
import com.mathewsachin.fategrandautomata.StorageDirs
import com.mathewsachin.fategrandautomata.prefs.core.PrefsCore
import com.mathewsachin.fategrandautomata.prefs.core.map
import com.mathewsachin.fategrandautomata.scripts.enums.Materi... |
components-core/src/main/java/com/adyen/checkout/components/base/GenericStoredPaymentComponentProvider.kt | unknown_repo | kotlin | /*
* Copyright (c) 2020 <NAME>.
*
* This file is open source and available under the MIT license. See the LICENSE file for more info.
*
* Created by caiof on 8/12/2020.
*/
package com.adyen.checkout.components.base
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.ViewModelStoreOwner
import ... |
app/src/main/java/com/dispositivosmoveis/watchfilmes/ui/more/MoreFragment.kt | unknown_repo | kotlin | package com.dispositivosmoveis.watchfilmes.ui.more
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.dispositivosmoveis.watchfilmes.R
class MoreFragment : Fragment() {
override fun onCreateView(
... |
app/src/main/java/com/suqir/wasaischedule/ui/settings/TimeTableFragment.kt | unknown_repo | kotlin | package com.suqir.wasaischedule.ui.settings
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.app.AlertDialog
import androidx.fragment.app.activityViewModels
import androidx.lifecycle.Observer
import androidx.navigation.Navigati... |
mesh-exam/library/mesh/src/main/java/io/flaterlab/meshexam/librariy/mesh/client/ClientAdvertisingMeshManager.kt | unknown_repo | kotlin | package io.flaterlab.meshexam.librariy.mesh.client
import android.content.Context
import com.google.android.gms.nearby.Nearby
import com.google.android.gms.nearby.connection.AdvertisingOptions
import com.google.android.gms.nearby.connection.ConnectionsClient
import com.google.android.gms.nearby.connection.Payload
impo... |
java/io/jackbradshaw/otter/engine/core/EngineCoreImpl.kt | unknown_repo | kotlin | package io.jackbradshaw.otter.engine.core
import com.jme3.app.LostFocusBehavior
import com.jme3.app.SimpleApplication
import com.jme3.app.VRAppState
import com.jme3.app.VRConstants
import com.jme3.app.VREnvironment
import com.jme3.bullet.BulletAppState
import com.jme3.system.AppSettings
import com.jme3.system.JmeConte... |
app/src/main/java/com/nkuppan/giphybrowser/presentation/searchlist/StickersSearchViewModel.kt | unknown_repo | kotlin | package com.nkuppan.giphybrowser.presentation.searchlist
import androidx.paging.PagingSource
import com.nkuppan.giphybrowser.domain.model.GiphyImage
import com.nkuppan.giphybrowser.domain.usecase.StickerSearchUseCase
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject
@HiltViewModel
class St... |
misc/ktx/src/main/kotlin/fan/akua/misc/ktx/AlertDialogExtensions.kt | unknown_repo | kotlin | package fan.akua.misc.ktx
import android.annotation.TargetApi
import android.app.Dialog
import android.graphics.drawable.Drawable
import android.os.Build
import android.view.View
import android.content.DialogInterface
import android.widget.AdapterView
import android.widget.Button
import androidx.appcompat.app.AlertDi... |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/contactdiary/ui/edit/ContactDiaryEditLocationsFragment.kt | unknown_repo | kotlin | package de.rki.coronawarnapp.contactdiary.ui.edit
import android.os.Bundle
import android.view.View
import android.view.accessibility.AccessibilityEvent
import androidx.core.view.isGone
import androidx.fragment.app.Fragment
import de.rki.coronawarnapp.R
import de.rki.coronawarnapp.contactdiary.ui.edit.ContactDiaryEdit... |
samples/showcase/src/main/java/com/facebook/fresco/samples/showcase/common/DimensionUtils.kt | unknown_repo | kotlin | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.fresco.samples.showcase.common
import android.content.Context
import android.util.TypedValue
fun Float.dpToP... |
autofill/autofill-impl/src/main/java/com/duckduckgo/autofill/impl/email/incontext/EmailProtectionInContextSignupActivity.kt | unknown_repo | kotlin | /*
* Copyright (c) 2023 DuckDuckGo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
app/src/main/java/com/certified/covid19response/ui/result/ResultFragment.kt | unknown_repo | kotlin | package com.certified.covid19response.ui.result
import android.graphics.Color
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.findNavContr... |
snowplow-tracker/src/androidTest/java/com/snowplowanalytics/snowplow/tracker/ExecutorTest.kt | unknown_repo | kotlin | /*
* Copyright (c) 2015-present Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.ap... |
app/src/main/java/net/redwarp/app/multitool/compass/CompassListener.kt | unknown_repo | kotlin | package net.redwarp.app.multitool.compass
import android.content.Context
import android.hardware.Sensor
import android.hardware.SensorEvent
import android.hardware.SensorEventListener
import android.hardware.SensorManager
import io.reactivex.Observable
import io.reactivex.subjects.PublishSubject
import java.util.concu... |
features/playlist/src/main/java/com/m3u/features/playlist/PlaylistEvent.kt | unknown_repo | kotlin | package com.m3u.features.playlist
import android.content.Context
sealed interface PlaylistEvent {
data class Observe(val playlistUrl: String) : PlaylistEvent
data object Refresh : PlaylistEvent
data class Favourite(val id: Int, val target: Boolean) : PlaylistEvent
data class Ban(val id: Int, val targe... |
MyTracker/app/src/main/java/com/mrzabbah/mytracker/feature_book_tracker/presentation/specificBook/components/CircularProgressBar.kt | unknown_repo | kotlin | package com.mrzabbah.mytracker.feature_book_tracker.presentation.specificBook.components
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animation.core.tween
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.lay... |
base/src/main/java/com/surrus/galwaybus/di/ApplicationModule.kt | unknown_repo | kotlin | package com.surrus.galwaybus.di
import android.app.Application
import android.arch.persistence.room.Room
import android.content.Context
import com.facebook.stetho.okhttp3.StethoInterceptor
import com.google.gson.FieldNamingPolicy
import com.google.gson.GsonBuilder
import com.surrus.galwaybus.cache.GalwayBusCacheImpl
i... |
compose/ui/ui-test/src/androidInstrumentedTest/kotlin/androidx/compose/ui/test/injectionscope/mouse/MoveTest.kt | unknown_repo | kotlin | /*
* Copyright 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
app/src/main/kotlin/com/j380/alarm/battery/BatteryBroadcastReceiver.kt | unknown_repo | kotlin | package com.j380.alarm.battery
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import com.j380.alarm.battery.BatteryService
class BatteryBroadcastReceiver : BroadcastReceiver () {
override fun onReceive(context: Context, intent: Intent?) {
val startSe... |
app/src/main/kotlin/com/j380/alarm/battery/BatteryBroadcastReceiver.kt | unknown_repo | kotlin | package com.j380.alarm.battery
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import com.j380.alarm.battery.BatteryService
class BatteryBroadcastReceiver : BroadcastReceiver () {
override fun onReceive(context: Context, intent: Intent?) {
val startSe... |
app/src/main/kotlin/com/pusher/chatkitdemo/room/RoomFragment.kt | unknown_repo | kotlin | package com.pusher.chatkitdemo.room
import android.arch.lifecycle.Lifecycle.State.STARTED
import android.arch.lifecycle.LifecycleOwner
import android.os.Bundle
import android.os.Looper
import android.support.annotation.UiThread
import android.support.v4.app.Fragment
import android.support.v7.widget.LinearLayoutManager... |
app/src/main/java/com/xda/nachonotch/util/EnvironmentManager.kt | unknown_repo | kotlin | package com.xda.nachonotch.util
import android.annotation.SuppressLint
import android.content.Context
import java.util.concurrent.ConcurrentHashMap
val Context.environmentManager: EnvironmentManager
get() = EnvironmentManager.getInstance(this)
class EnvironmentManager private constructor(private val context: Con... |
app/src/main/java/com/example/events/ui/di/UiModule.kt | unknown_repo | kotlin | package com.example.events.ui.di
import com.example.events.ui.viewmodel.EntryViewModel
import com.example.events.ui.viewmodel.EventInfoViewModel
import com.example.events.ui.viewmodel.EventListViewModel
import org.koin.android.viewmodel.dsl.viewModel
import org.koin.dsl.module
val viewModelModule = module {
viewM... |
app/src/main/java/cn/wthee/pcrtool/ui/tool/pvp/PvpViewModel.kt | unknown_repo | kotlin | package cn.wthee.pcrtool.ui.tool.pvp
import androidx.compose.runtime.Immutable
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import cn.wthee.pcrtool.R
import cn.wthee.pcrtool.data.db.entity.PvpFavoriteData
import cn.wthee.pcrtool.data.db.entity.PvpHistoryData
import cn.wthee.pcrtool.data... |
app/src/main/java/com/comic_con/museum/ar/views/ViewUtil.kt | unknown_repo | kotlin | package com.comic_con.museum.ar.views
import android.content.res.Resources
import android.util.TypedValue
class ViewUtil {
companion object {
fun dpToPx(resources: Resources, value: Float): Int {
return TypedValue.applyDimension(
TypedValue.COMPLEX_UNIT_DIP,
va... |
solar/src/main/java/com/chiksmedina/solar/boldduotone/videoaudiosound/Rewind15SecondsBack.kt | unknown_repo | kotlin | package com.chiksmedina.solar.bold.videoaudiosound
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.Comp... |
app/src/main/java/com/no5ing/bbibbi/presentation/ui/common/button/IconedCTAButton.kt | unknown_repo | kotlin | package com.no5ing.bbibbi.presentation.ui.common.button
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.RoundedCornerShape
... |
app/src/main/java/io/horizontalsystems/bankwallet/core/storage/migrations/Migration_48_49.kt | unknown_repo | kotlin | package io.deus.wallet.core.storage.migrations
import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase
object Migration_48_49 : Migration(48, 49) {
override fun migrate(database: SupportSQLiteDatabase) {
database.execSQL("CREATE TABLE IF NOT EXISTS `NftAssetBriefMetadataRe... |
app/src/main/java/dev/tcode/thinmp/repository/media/AlbumRepository.kt | unknown_repo | kotlin | package dev.tcode.thinmp.repository.media
import android.content.Context
import android.provider.MediaStore
import dev.tcode.thinmp.model.media.AlbumModel
class AlbumRepository(context: Context) : MediaStoreRepository<AlbumModel>(
context, MediaStore.Audio.Albums.EXTERNAL_CONTENT_URI, arrayOf(
MediaStore.... |
camerax_lib/src/main/java/com/kiylx/camerax_lib/main/manager/CameraHolder.kt | unknown_repo | kotlin | package com.kiylx.camerax_lib.main.manager
import android.annotation.SuppressLint
import android.net.Uri
import android.util.Log
import androidx.camera.core.*
import androidx.camera.video.Recording
import androidx.camera.video.VideoRecordEvent
import androidx.camera.view.PreviewView
import com.kiylx.camerax_lib.main.m... |
app/src/main/java/pl/droidsonroids/toast/app/base/BaseActivity.kt | unknown_repo | kotlin | package pl.droidsonroids.toast.app.base
import android.arch.lifecycle.ViewModelProvider
import android.os.Bundle
import android.support.v4.app.Fragment
import android.support.v7.app.AppCompatActivity
import dagger.android.AndroidInjection
import dagger.android.AndroidInjector
import dagger.android.DispatchingAndroidIn... |
collaboration-suite-phone-ui/src/main/java/com/kaleyra/collaboration_suite_phone_ui/call/dialogs/KaleyraSnapshotDialog.kt | unknown_repo | kotlin | /*
* Copyright 2022 Kaleyra @ https://www.kaleyra.com
*
* 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 appl... |
app/src/main/java/org/stepic/droid/ui/fragments/NewCommentFragment.kt | unknown_repo | kotlin | package org.stepic.droid.ui.fragments
import android.app.Activity
import android.app.ProgressDialog
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.*
import android.view.inputmethod.InputMethodManager
import android.widget... |
app-android/src/main/java/dev/sergiobelda/todometer/app/android/ui/navhost/TodometerNavHost.kt | unknown_repo | kotlin | /*
* Copyright 2022 Sergio Belda
*
* 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/kotlin/com/boscatov/schedulercw/view/adapter/project/ProjectDiffUtil.kt | unknown_repo | kotlin | package com.boscatov.schedulercw.view.adapter.add_project
import androidx.recyclerview.widget.DiffUtil
import com.boscatov.schedulercw.data.entity.Project
/**
* Created by boscatov on 14.04.2019.
*/
class AddProjectDiffUtil(
private val oldList: List<Project>,
private val newList: List<Project>
): DiffUtil.... |
demo/src/main/kotlin/com/otaliastudios/cameraview/demo/PicturePreviewActivity.kt | unknown_repo | kotlin | package com.otaliastudios.cameraview.demo
import android.content.Intent
import android.graphics.BitmapFactory
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.util.Log
import android.view.Menu
import android.view.MenuItem
import android.widget.ImageVi... |
app/src/main/java/com/musical/instrument/simulator/app/database/AppDatabase.kt | unknown_repo | kotlin | package com.musical.instrument.simulator.app.database
import androidx.room.AutoMigration
import androidx.room.Database
import androidx.room.RoomDatabase
import com.musical.instrument.simulator.app.model.AudioFile
@Database(
entities = [AudioFile::class],
version = 2,
autoMigrations = [AutoMigration(from =... |
app/src/main/kotlin/com/mr3y/podcaster/service/ServiceMediaPlayer.kt | unknown_repo | kotlin | package com.mr3y.podcaster.service
import androidx.annotation.OptIn
import androidx.annotation.VisibleForTesting
import androidx.media3.common.C
import androidx.media3.common.ForwardingPlayer
import androidx.media3.common.MediaItem
import androidx.media3.common.PlaybackException
import androidx.media3.common.Player
im... |
app/src/main/java/ru/spb/dair/roadmovie/MainActivity.kt | unknown_repo | kotlin | package ru.spb.dair.roadmovie
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import android.content.Context.ACTIVITY_SERVICE
import android.app.ActivityManager
import android.content.Context
import android.content.Intent
import android.widget.TextView
import andro... |
sample-todo/src/main/java/com/airbnb/mvrx/todomvrx/views/HorizontalLoader.kt | unknown_repo | kotlin | package com.airbnb.mvrx.todomvrx.views
import android.content.Context
import android.util.AttributeSet
import android.view.View
import android.widget.FrameLayout
import android.widget.ProgressBar
import com.airbnb.epoxy.ModelProp
import com.airbnb.epoxy.ModelView
import com.airbnb.mvrx.todomvrx.todoapp.R
@ModelView(a... |
app/src/main/java/codeguru/gocapture/ImageFragment.kt | unknown_repo | kotlin | package codeguru.gocapture
import android.net.Uri
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.navArgs
import codeguru.gocapture.databinding.FragmentImageBinding
import kotlin... |
app/src/main/java/app/grapheneos/camera/ui/seekbar/ZoomBar.kt | unknown_repo | kotlin | package com.google.android.GoogleCamera.ui.seekbar
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.drawable.BitmapDrawable
import android.os.Handler
import android.os.Looper
import android.util.AttributeSet
impo... |
app/src/main/java/com/example/anidea/howmuchgrams.kt | unknown_repo | kotlin | package com.example.anidea
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.app.AppCompatActivity
import androidx.core.net.toUri
import com.example.anidea.databinding.ActivityHowmuchgramsBinding
c... |
app/src/main/java/com/edricchan/studybuddy/utils/UiUtils.kt | unknown_repo | kotlin | package com.edricchan.studybuddy.utils
import android.content.Context
import com.edricchan.studybuddy.R
import com.edricchan.studybuddy.ui.modules.main.MainActivity
import com.google.android.material.bottomappbar.BottomAppBar
import com.google.android.material.floatingactionbutton.FloatingActionButton
/**
* Utilitie... |
core/src/main/java/com/dtb/core/common/cache/PreferenceCacheImpl.kt | unknown_repo | kotlin | package com.dtb.core.common.cache
import android.content.Context
import android.content.SharedPreferences
import com.dtb.core.common.cache.contract.ICache
/**
* Project com.daotangbill.exlib.commons.utils
* Created by DaoTangBill on 2020/2/23/023.
* Email:<EMAIL>
*
* @author bill
* @version 1.0
* @description... |
app/src/main/java/com/guhungry/photomanipulator/demo/ImageUtils.kt | unknown_repo | kotlin | package com.guhungry.rnphotomanipulator.utils
import android.content.Context
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.net.Uri
import com.guhungry.photomanipulator.*
import java.io.InputStream
import java.util.*
object ImageUtils {
/**
* Get Bitmap from Image Uri
... |
app/src/main/java/com/nyi/game/tictactoe/TicTacToeViewModel.kt | unknown_repo | kotlin | package com.nyi.game.tictactoe
import android.util.Log
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.nyi.game.tictactoe.PlayerState.DRAW
import com.nyi.game.tictactoe.PlayerState.O_WIN
import com.nyi.game.tictactoe.PlayerState.USER_TURN
import com.nyi.game.tictactoe.PlayerSta... |
Base/src/main/java/xy/xy/base/listener/LoadViewListener.kt | unknown_repo | kotlin | package com.xy.base.listener
import android.view.View
interface LoadViewListener : LoadEmptyView, LoadErrorView {
fun createContentView(): View?
fun createLoadView():View?
fun createUnNetView(): View?
fun createErrorReLoadView(): View?
fun createUnNetReLoadView(): View?
} |
api/src/main/java/com/nspu/riotapi/models/LeagueList.kt | unknown_repo | kotlin | package fr.nspu.riot_api.models
import android.os.Parcel
import android.os.Parcelable
data class LeagueList(
var leagueId: String? = null,
var tier: String? = null,
var entries: List<LeagueItem>? = null,
var queue: String? = null,
var name: String? = null
) : Parcelable {
... |
whetstone/compiler/src/main/kotlin/com/freeletics/mad/whetstone/codegen/common/ComposeGenerator.kt | unknown_repo | kotlin | package com.freeletics.mad.whetstone.codegen.common
import com.freeletics.mad.whetstone.BaseData
import com.freeletics.mad.whetstone.ComposeData
import com.freeletics.mad.whetstone.codegen.Generator
import com.freeletics.mad.whetstone.codegen.util.asComposeState
import com.freeletics.mad.whetstone.codegen.util.composa... |
app/src/main/java/org/covidwatch/android/data/positivediagnosis/PositiveDiagnosisRemoteSource.kt | unknown_repo | kotlin | package org.covidwatch.android.data.positivediagnosis
import androidx.annotation.WorkerThread
import com.google.common.io.BaseEncoding
import com.google.gson.*
import okhttp3.MediaType.Companion.toMediaType
import okhttp3.OkHttpClient
import okhttp3.Request
import okhttp3.RequestBody
import okhttp3.RequestBody.Compani... |
app/src/main/java/com/github/wanderwise_inc/app/MainActivity.kt | unknown_repo | kotlin | package com.github.wanderwise_inc.app
import android.Manifest
import android.os.Bundle
import android.util.Log
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.result.contract.ActivityResultContracts
import androidx.compose.foundation.layout.fillMaxSize
im... |
app/src/main/java/com/github/wanderwise_inc/app/MainActivity.kt | unknown_repo | kotlin | package com.github.wanderwise_inc.app
import android.Manifest
import android.os.Bundle
import android.util.Log
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.result.contract.ActivityResultContracts
import androidx.compose.foundation.layout.fillMaxSize
im... |
gto-support-db/src/main/java/org/ccci/gto/android/common/db/Table.kt | unknown_repo | kotlin | package org.ccci.gto.android.common.db
import android.annotation.SuppressLint
import android.os.Parcelable
import androidx.annotation.RestrictTo
import kotlinx.parcelize.IgnoredOnParcel
import kotlinx.parcelize.Parcelize
@Parcelize
@SuppressLint("SupportAnnotationUsage")
data class Table<T : Any> internal constructor... |
feature/video-thumbnail-grid-genre/src/main/java/io/filmtime/feature/video/thumbnail/grid/genre/VideoGridGenreNavigation.kt | unknown_repo | kotlin | package io.filmtime.feature.video.thumbnail.grid.genre
import androidx.lifecycle.SavedStateHandle
import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.NavType
import androidx.navigation.navArgument
import io.filmtime.core.ui.navigation.DestinationRoute
import i... |
app/src/main/java/com/example/incode/viewmodel/DirectionsViewModel.kt | unknown_repo | kotlin | package com.example.incode.viewmodel
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.incode.models.Resource
import com.example.incode.models.RouteDirections
import com.example.incode.repository.DirectionsRepo
import kotlinx.corou... |
app/src/main/java/org/simple/clinic/login/applock/AppLockScreenKey.kt | unknown_repo | kotlin | package org.simple.clinic.login.applock
import android.os.Parcelable
import kotlinx.android.parcel.IgnoredOnParcel
import kotlinx.parcelize.Parcelize
import org.simple.clinic.navigation.v2.ScreenKey
@Parcelize
object AppLockScreenKey : ScreenKey(), Parcelable {
@IgnoredOnParcel
override val analyticsName = "App ... |
sample-app/src/main/java/com/binbo/glvideo/sample_app/ui/advanced/activity/VideoCutSelectActivity.kt | unknown_repo | kotlin | package com.binbo.glvideo.sample_app.ui.advanced.activity
import android.content.pm.ActivityInfo
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.binbo.glvideo.sample_app.R
import com.binbo.glvideo.sample_app.ui.advanced.fragment.VideoCutSelectFragment
import com.binbo.glvideo.sample... |
app/src/main/java/com/example/memoryexplorer/ui/screens/settings/SettingsScreen.kt | unknown_repo | kotlin | package com.example.memoryexplorer.ui.screens.settings
import android.widget.Toast
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout... |
service/src/main/java/com/tink/service/statistics/StatisticsService.kt | unknown_repo | kotlin | package com.tink.service.statistics
import com.tink.model.misc.Amount
import com.tink.model.misc.ExactNumber
import com.tink.model.statistics.Statistics
import com.tink.model.time.Period
import com.tink.model.user.UserProfile
import com.tink.rest.apis.StatisticsApi
import com.tink.rest.models.StatisticQuery
import com... |
app/src/main/java/com/transcodium/wirepurse/classes/AppAlert.kt | unknown_repo | kotlin | /**
# Copyright 2018 - Transcodium Ltd.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License v2.0 which accompanies this distribution.
#
# The Apache License v2.0 is available at
# http://www.opensource.org/licenses/apache2.0.php
#
# You are... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.