file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/de/uriegel/ulauncher/MainActivity.kt | unknown_repo | kotlin | package de.uriegel.ulauncher
import android.content.Context
import android.content.Intent
import android.graphics.Color
import android.os.Bundle
import android.view.View
import android.view.WindowManager
import android.widget.EdgeEffect
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widge... |
quick/src/main/java/com/hansoolabs/and/view/KeyboardVisibleListener.kt | unknown_repo | kotlin | package com.hansoolabs.and.view
import android.app.Activity
import android.graphics.Rect
import android.view.View
import android.view.ViewTreeObserver
import androidx.fragment.app.Fragment
/**
* Created by brownsoo on 2018-11-11.
*/
interface OnKeyboardVisibleListener {
fun onKeyboardVisible(visible: Boolean)
... |
android/src/main/java/me/ashishekka/k8/android/RomPickerActivity.kt | unknown_repo | kotlin | @file:OptIn(ExperimentalMaterialApi::class)
package me.ashishekka.k8.android
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import androidx.activity.compose.setContent
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.foundation.background
import androidx.comp... |
lib/src/main/java/com/zyyoona7/extensions/toast.kt | unknown_repo | kotlin | package com.zj.utils.extends
import android.app.Fragment
import android.content.Context
import android.view.View
import android.widget.Toast
/**
* Created by zyyoona7 on 2017/8/24.
* Toast ๆฉๅฑๅฝๆฐ
*/
/*
---------- Context ----------
*/
fun Context.toast(msg: String, duration: Int = Toast.LENGTH_SHORT) {
if (d... |
presentation-core/src/main/java/tachiyomi/presentation/core/util/Preference.kt | unknown_repo | kotlin | package tachiyomi.presentation.core.util
import androidx.compose.runtime.Composable
import androidx.compose.runtime.State
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.remember
import tachiyomi.core.preference.Preference
@Composable
fun <T> Preference<T>.collectAsState(): State<T> {
... |
bezier/src/main/java/io/channel/bezier/icon/Thread.kt | unknown_repo | kotlin | @file:Suppress("ObjectPropertyName", "UnusedReceiverParameter")
// Auto-generated by script/generate_compose_bezier_icon.py
package io.channel.bezier.icon
import androidx.compose.foundation.layout.size
import androidx.compose.material.Icon
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifie... |
app/src/main/java/com/circle/w3s/sample/wallet/pwcustom/MyViewSetterProvider.kt | unknown_repo | kotlin | package com.circle.w3s.sample.wallet.pwcustom
// Copyright (c) 2023, Circle Technologies, LLC. 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.ap... |
app/src/main/java/com/shadowshiftstudio/jobcentre/app/employer/view/main_screens/Vacancies.kt | unknown_repo | kotlin | package com.shadowshiftstudio.jobcentre.app.employer.view.main_screens
import androidx.compose.runtime.Composable
@Composable
fun Vacancies() {
} |
app/src/main/java/com/zoosumzoosum/zoosumx2/SettingActivity.kt | unknown_repo | kotlin | package com.zoosumzoosum.zoosumx2
import android.content.Intent
import android.net.Uri
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.ImageButton
import android.widget.LinearLayout
import android.widget.Toast
import com.google.android.gms.auth.api.signin.GoogleSignIn
imp... |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/regular/VehicleCarParking.kt | unknown_repo | kotlin |
package com.konyaco.fluent.icons.regular
import androidx.compose.ui.graphics.vector.ImageVector
import com.konyaco.fluent.icons.Icons
import com.konyaco.fluent.icons.fluentIcon
import com.konyaco.fluent.icons.fluentPath
public val Icons.Regular.VehicleCarParking: ImageVector
get() {
if (_vehicleCarParki... |
app/src/main/java/com/goldenraven/padawanwallet/theme/Fonts.kt | unknown_repo | kotlin | package com.goldenraven.padawanwallet.theme
import androidx.compose.ui.text.font.Font
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontStyle
import androidx.compose.ui.text.font.FontWeight
import com.goldenraven.padawanwallet.R
val ShareTechMono = FontFamily(
Font(R.font.sh... |
app/src/main/java/com/dramtar/billscollecting/presenter/utils/composedatepicker/CalendarHeader.kt | unknown_repo | kotlin | package com.dramtar.billscollecting.presenter.utils.composedatepicker
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import a... |
app/src/main/java/ir/mahdighanbarpour/khwarazmiapp/MyApp.kt | unknown_repo | kotlin | package ir.mahdighanbarpour.khwarazmiapp
import android.app.Application
import com.google.firebase.analytics.FirebaseAnalytics
import com.google.firebase.analytics.ktx.analytics
import com.google.firebase.ktx.Firebase
import ir.mahdighanbarpour.khwarazmiapp.di.myModules
import org.koin.android.ext.koin.androidContext
... |
health/health-services-client/src/main/java/androidx/health/services/client/ListenableFutureExtension.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/java/com/rmoralf/roomcleanarchitectureapp/di/AppModule.kt | unknown_repo | kotlin | package com.rmoralf.roomcleanarchitectureapp.di
import android.content.Context
import androidx.room.Room
import com.rmoralf.roomcleanarchitectureapp.core.utils.Constants.ROOM_DB_NAME
import com.rmoralf.roomcleanarchitectureapp.data.database.WeightDatabase
import com.rmoralf.roomcleanarchitectureapp.data.database.dao.W... |
app/src/main/java/com/gstormdev/urbandictionary/ui/main/DefinitionAdapter.kt | unknown_repo | kotlin | package com.gstormdev.urbandictionary.ui.main
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView
import com.gstormdev.urbandictionary.databinding.DefinitionListItemBinding
import com.gstormdev.urbandictionary.en... |
fragmenttracer-navigation/src/main/java/com/atsuya046/fragmenttracer/navigation/FragmentTracerNavigation.kt | unknown_repo | kotlin | package com.atsuya046.fragmenttracer.navigation
import androidx.fragment.app.Fragment
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleEventObserver
import androidx.lifecycle.LifecycleOwner
import androidx.navigation.fragment.NavHostFragment
import com.atsuya046.fragmenttracer.FragmentPerformance... |
app/src/main/java/com/phil/airinkorea/ui/home/HomeRoute.kt | unknown_repo | kotlin | package com.phil.airinkorea.ui.home
import android.Manifest
import android.content.Intent
import android.net.Uri
import android.provider.Settings
import androidx.activity.ComponentActivity
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.activity.result.IntentSenderRequest
import andr... |
feature/randomcards/src/main/kotlin/com/donghanx/randomcards/navigation/RandomCardsNavigation.kt | unknown_repo | kotlin | package com.donghanx.randomcards.navigation
import androidx.navigation.NavGraphBuilder
import androidx.navigation.compose.composable
import androidx.navigation.navigation
import com.donghanx.randomcards.RandomCardsScreen
const val RANDOM_CARDS_GRAPH_ROUTE = "RandomCardsGraph"
const val RANDOM_CARDS_ROUTE = "RandomCar... |
comm/src/main/java/dev/franco/comm/DiscoveryService.kt | unknown_repo | kotlin | package dev.franco.comm
import android.app.Service
import android.content.Context
import android.content.Intent
import android.net.nsd.NsdManager
import android.net.nsd.NsdManager.DiscoveryListener
import android.net.nsd.NsdManager.FAILURE_INTERNAL_ERROR
import android.net.nsd.NsdManager.ResolveListener
import android... |
app/src/main/java/com/spf/app/data/RouteInfo.kt | unknown_repo | kotlin | package com.spf.app.data
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.ForeignKey
import androidx.room.ForeignKey.NO_ACTION
import androidx.room.PrimaryKey
// Not using ForeignKey.CASCADE on child table in case we need to manipulate data on delete (ie: Recycle Bin)
@Entity(tableName... |
app/src/main/java/com/example/nordicnews/data/NordicNewsDatabase.kt | unknown_repo | kotlin | package com.example.nordicnews.data
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import com.example.nordicnews.data.models.Article
/**
* Database class with a singleton Instance object.
*/
@Database(entit... |
app/src/main/java/com/vcl/wallet/MainActivity.kt | unknown_repo | kotlin | /**
* Copyright 2022 Velocity Career Labs inc.
* SPDX-License-Identifier: Apache-2.0
*/
package com.vcl.wallet
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import androidx.core.view.isVisible
import com.vcl.wallet.databinding.ActivityMainBinding
import io.velocity... |
SecureCamera/src/main/java/io/github/toyota32k/secureCamera/CameraActivity.kt | unknown_repo | kotlin | package io.github.toyota32k.secureCamera
import android.Manifest
import android.annotation.SuppressLint
import android.content.Context
import android.content.pm.ActivityInfo
import android.content.res.Configuration
import android.graphics.Bitmap
import android.os.Bundle
import android.view.KeyEvent
import android.view... |
navigation/runtime/src/androidTest/java/androidx/navigation/ActivityNavigatorTest.kt | unknown_repo | kotlin | /*
* Copyright 2018 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... |
presentation/src/main/kotlin/team/dahaeng/android/activity/tasking/TaskingViewModel.kt | unknown_repo | kotlin | /*
* Dahaeng ยฉ 2022 Ji Sungbin, 210202. all rights reserved.
* Dahaeng license is under the MIT.
*
* [TaskingViewModel.kt] created by 210202
*
* Please see: https://github.com/dahaeng/dahaeng-android/blob/main/LICENSE.
*/
package team.dahaeng.android.activity.tasking
import dagger.hilt.android.lifecycle.HiltVi... |
app/src/main/kotlin/com/absinthe/libchecker/BaseActivity.kt | unknown_repo | kotlin | package com.absinthe.libchecker
import android.os.Bundle
import android.view.ViewGroup
import com.absinthe.libchecker.extensions.paddingTopCompat
import com.absinthe.libchecker.extensions.setSystemPadding
import com.absinthe.libchecker.ui.app.AppActivity
import com.absinthe.libraries.utils.manager.SystemBarManager
imp... |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/broken/Ticketexpired.kt | unknown_repo | kotlin | package moe.tlaster.icons.vuesax.vuesaxicons.broken
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.... |
app/src/main/java/com/memad/moviesmix/ui/main/viewer/worker/DownloadCompletedReceiver.kt | unknown_repo | kotlin | package com.memad.moviesmix.ui.main.viewer.worker
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.widget.Toast
import dagger.hilt.android.AndroidEntryPoint
@AndroidEntryPoint
class DownloadCompletedReceiver : BroadcastReceiver() {
override fun ... |
font-awesome/src/commonMain/kotlin/compose/icons/fontawesomeicons/solid/PlaneDeparture.kt | unknown_repo | kotlin | package compose.icons.fontawesomeicons.solid
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.... |
app/src/main/java/com/example/httpsender/vm/MultiTaskFlowDownloader.kt | unknown_repo | kotlin | package com.example.httpsender.vm
import android.annotation.SuppressLint
import androidx.lifecycle.MutableLiveData
import com.example.httpsender.Tip
import com.example.httpsender.entity.DownloadTask
import com.example.httpsender.utils.Preferences
import okhttp3.internal.http2.StreamResetException
import okio.ByteStrin... |
core/src/main/java/com/codeart/filmskuy/core/ui/CatalogueListAdapter.kt | unknown_repo | kotlin | package com.codeart.filmskuy.core.ui
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.codeart.filmskuy.core.R
import com.codeart.filmskuy.core.databinding.ItemListCatalogueBinding
import... |
shared/src/commonMain/kotlin/home/presentation/HomeScreen.kt | unknown_repo | kotlin | @file:OptIn(ExperimentalResourceApi::class)
package home.presentation
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.core.Spring
import androidx.compose.animation.core.VisibilityThreshold
import androidx.compose.animation.core.spring
import androidx.compose.animation.fadeIn
imp... |
components/settings/impl/src/main/java/com/flipperdevices/settings/impl/viewmodels/SettingsViewModel.kt | unknown_repo | kotlin | package com.flipperdevices.settings.impl.viewmodels
import androidx.datastore.core.DataStore
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.flipperdevices.core.di.ComponentHolder
import com.flipperdevices.core.preference.pb.Settings
import com.flipperdevices.settings.impl.di.Se... |
app/src/main/java/fr/nexhub/homedia/features/common/components/ThumbnailImageCard.kt | unknown_repo | kotlin | @file:OptIn(ExperimentalTvMaterial3Api::class)
package fr.nexhub.homedia.features.common.components
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.BoxScope
import androidx.compose.foundation.layout.aspectRatio
import androidx.compo... |
frice/src/main/kotlin/org/frice/platform/adapter/DroidDrawer.kt | unknown_repo | kotlin | package org.frice.platform.adapter
import android.graphics.*
import org.frice.platform.FriceDrawer
import org.frice.platform.FriceImage
import org.frice.resource.graphics.ColorResource
import org.frice.utils.cast
/**
* Created by ice1000 on 2016/10/31.
*
* @author ice1000
*/
class DroidDrawer(var canvas: Canvas) ... |
app/src/main/java/com/example/mvvmkoindiexample/presentation/views/MainActivity.kt | unknown_repo | kotlin | package com.example.mvvmkoindiexample.presentation.views
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Surface
import a... |
face-detect/src/main/java/soup/nolan/detect/face/FaceDetector.kt | unknown_repo | kotlin | package soup.nolan.detect.face
import android.graphics.Bitmap
import soup.nolan.detect.face.model.Face
import soup.nolan.detect.face.model.Frame
interface FaceDetector : Detector {
fun setCallback(callback: Callback?)
interface Callback {
fun onDetecting(frame: Frame)
fun onDetected(origin... |
DriverDataUI/src/main/java/com/drivequant/drivekit/ui/commons/views/DistractionSelectorItem.kt | unknown_repo | kotlin | package com.drivequant.drivekit.ui.commons.views
import android.content.Context
import android.graphics.drawable.GradientDrawable
import android.util.AttributeSet
import android.view.View
import android.view.ViewGroup
import android.widget.LinearLayout
import android.widget.TextView
import androidx.core.content.Contex... |
identity/src/main/java/io/falu/identity/selfie/SelfieFragment.kt | unknown_repo | kotlin | package io.falu.identity.selfie
import android.net.Uri
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.camera.core.CameraSelector
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
import androidx.life... |
app/src/main/java/com/boolder/boolder/view/offlinephotos/composable/OfflinePhotosAreaItem.kt | unknown_repo | kotlin | package com.boolder.boolder.view.offlinephotos.composable
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.Row
import androidx.compose.... |
src/main/java/balti/module/baltitoolbox/functions/FileHandlers.kt | unknown_repo | kotlin | package balti.module.baltitoolbox.functions
import android.annotation.SuppressLint
import android.os.Environment
import balti.module.baltitoolbox.R
import balti.module.baltitoolbox.ToolboxHQ
import balti.module.baltitoolbox.functions.FileHandlers.INTERNAL_TYPE.*
import java.io.*
@SuppressLint("StaticFieldLeak")
objec... |
app/src/main/java/com/authsamples/basicmobileapp/views/userinfo/UserInfoFragment.kt | unknown_repo | kotlin | package com.authsamples.basicmobileapp.views.userinfo
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.activityViewModels
import androidx.lifecycle.ViewModelProvider
import com.authsamples.basicmobileapp.R
import com.authsam... |
app/src/main/java/de/drtobiasprinz/summitbook/ReceiverActivity.kt | unknown_repo | kotlin | package de.drtobiasprinz.summitbook
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.res.ResourcesCompat
import dagger.hilt.android.AndroidEntryPoint
import de.drtobiasprinz.summitbook.Sele... |
CommonRecycler-Kotlin/src/main/java/com/shuyu/commonrecycler/xrecycler/ArrowRefreshHeader.kt | unknown_repo | kotlin | package com.shuyu.commonrecycler.xrecycler
import android.animation.ValueAnimator
import android.content.Context
import android.os.Handler
import android.util.AttributeSet
import android.view.Gravity
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.animation... |
feature/feed/domain/api/src/main/kotlin/com/savvasdalkitsis/uhuruphotos/feature/feed/domain/api/worker/FeedWorkScheduler.kt | unknown_repo | kotlin | package com.savvasdalkitsis.uhuruphotos.feature.feed.domain.api.worker
import androidx.work.ExistingPeriodicWorkPolicy
import androidx.work.WorkInfo
import kotlinx.coroutines.flow.Flow
interface FeedWorkScheduler {
fun scheduleFeedRefreshNow(shallow: Boolean)
fun scheduleFeedRefreshPeriodic(
existing... |
Projects/Test/app/src/main/java/ademar/study/test/view/detail/DetailActivity.kt | unknown_repo | kotlin | package ademar.study.test.view.detail
import ademar.study.test.R
import ademar.study.test.navigation.FlowController
import ademar.study.test.view.base.BaseActivity
import android.os.Bundle
import javax.inject.Inject
class DetailActivity : BaseActivity() {
@Inject lateinit var flowController: FlowController
... |
klocation/src/androidMain/kotlin/com/addhen/klocation/LocationService.kt | unknown_repo | kotlin | // Copyright 2024, Addhen Ltd and the k-location project contributors
// SPDX-License-Identifier: Apache-2.0
package com.addhen.klocation
import android.content.Context
import android.location.Location
import android.location.LocationManager
import kotlinx.coroutines.flow.Flow
/**
* This class provides methods to re... |
baselib/src/main/java/com/app/baselib/base/activity/BaseViewBindingViewModelActivity.kt | unknown_repo | kotlin | package com.app.baselib.base.activity
import android.view.LayoutInflater
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
import androidx.viewbinding.ViewBinding
/**
* ๅฐ่ฃ
ๅธฆๆๅ็จๅบ็ฑป(DataBinding + ViewModel),ไฝฟ็จไปฃ็็ฑปๅฎๆ
*
*/
abstract class BaseViewBindingViewModelActivity<DB : ViewBind... |
app/src/main/java/io/github/agussmkertjhaan/biniq/features/home/WasteLatest.kt | unknown_repo | kotlin | package io.github.agussmkertjhaan.biniq.features.home
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.founda... |
app/src/main/java/com/sethchhim/kuboo_client/service/OnClearFromRecentService.kt | unknown_repo | kotlin | package com.sethchhim.kuboo_client.service
import android.app.Service
import android.content.Intent
import android.os.IBinder
import com.sethchhim.kuboo_client.BaseApplication
import javax.inject.Inject
class OnClearFromRecentService : Service() {
init {
BaseApplication.appComponent.inject(this)
}
... |
lib/src/commonMain/kotlin/com/github/theapache64/pencilui/ui/PencilButton.kt | unknown_repo | kotlin | package com.github.theapache64.pencilui.ui
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.indication
import androidx.compose.foundation.... |
knowledge/src/main/java/com/google/android/fhir/knowledge/db/KnowledgeDatabase.kt | unknown_repo | kotlin | /*
* Copyright 2022-2023 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 agre... |
app/src/main/java/com/mnishiguchi/movingestimator2/ui/BaseFragment.kt | unknown_repo | kotlin | package com.mnishiguchi.movingestimator2.ui
import android.arch.lifecycle.LifecycleRegistry
import android.arch.lifecycle.LifecycleRegistryOwner
import android.content.Context
import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view... |
ReferenceAppKotlin/app/src/main/java/com/android/tv/reference/repository/FileVideoRepository.kt | unknown_repo | kotlin | /*
* Copyright 2020 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
syftlib/src/test/java/fl/wearable/autosport/integration/SpeedIntegrationTest.kt | unknown_repo | kotlin | package fl.wearable.autosport.integration
import android.net.NetworkCapabilities
import com.nhaarman.mockitokotlin2.any
import com.nhaarman.mockitokotlin2.never
import com.nhaarman.mockitokotlin2.spy
import com.nhaarman.mockitokotlin2.verify
import org.junit.Test
import fl.wearable.autosport.Syft
import fl.wearable.au... |
odyssey-compose/src/commonMain/kotlin/ru/alexgladkov/odyssey/compose/navigation/RootComposeBuilder.kt | unknown_repo | kotlin | package ru.alexgladkov.odyssey.compose.navigation
import androidx.compose.ui.graphics.Color
import ru.alexgladkov.odyssey.compose.AllowedDestination
import ru.alexgladkov.odyssey.compose.RootController
import ru.alexgladkov.odyssey.compose.RenderWithParams
import ru.alexgladkov.odyssey.compose.ScreenType
import ru.ale... |
libs/pandautils/src/main/java/com/instructure/pandautils/features/shareextension/progress/ShareExtensionProgressViewData.kt | unknown_repo | kotlin | package com.instructure.pandautils.features.shareextension.progress
import androidx.annotation.DrawableRes
import androidx.databinding.BaseObservable
import androidx.databinding.Bindable
import com.instructure.pandautils.features.file.upload.FileUploadType
import com.instructure.pandautils.features.shareextension.prog... |
app/src/main/java/xyz/yhsj/elauncher/MainActivity.kt | unknown_repo | kotlin | package xyz.yhsj.elauncher
import android.Manifest
import android.annotation.SuppressLint
import android.app.Activity
import android.app.NotificationManager
import android.app.WallpaperManager
import android.content.BroadcastReceiver
import android.content.ContentValues.TAG
import android.content.Context
import androi... |
app/src/main/java/wannabit/io/cosmostaion/model/viewModel/neutron/DaoViewModel.kt | unknown_repo | kotlin | package wannabit.io.cosmostaion.model.viewModel.neutron
import android.content.Context
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.google.gson.Gson
import kotlinx.coroutines.launch
import wannabit.io.cosmostaion.base.chains.ChainConfig
import wannabit.io.cosmostaion.dao.Acco... |
android/app/src/main/java/com/algorand/android/ui/send/shared/AddNoteBottomSheet.kt | unknown_repo | kotlin | /*
* Copyright 2022 Pera Wallet, LDA
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing,... |
app/src/main/java/me/ppvan/metour/MainActivity.kt | unknown_repo | kotlin | package me.ppvan.metour
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import androidx.compose.runtime.Composa... |
flowbinding-viewpager/src/androidTest/java/reactivecircus/flowbinding/viewpager/ViewPagerPageSelectedFlowTest.kt | unknown_repo | kotlin | package reactivecircus.flowbinding.viewpager
import androidx.test.filters.LargeTest
import androidx.test.internal.runner.junit4.statement.UiThreadStatement.runOnUiThread
import androidx.viewpager.widget.ViewPager
import org.amshove.kluent.shouldEqual
import org.junit.Test
import reactivecircus.blueprint.testing.action... |
android/src/main/java/com/visioncamerafacetflite/VisionCameraFaceTflitePlugin.kt | unknown_repo | kotlin | package com.visioncamerafacetflite
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.Matrix
import android.graphics.Rect
import android.graphics.RectF
import com.google.android.gms.tasks.Tasks
import com.google.mlkit.vision.common.InputImage
import com.google.mlkit.vision.common.int... |
app/src/main/java/io/github/takusan23/akaridroid/ui/component/AkariCanvasCompose.kt | unknown_repo | kotlin | package io.github.takusan23.akaridroid.ui.component
import androidx.compose.foundation.Image
import androidx.compose.foundation.gestures.detectDragGestures
import androidx.compose.foundation.layout.Box
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Lau... |
fastadapter-extensions-paged/src/main/java/com/mikepenz/fastadapter/paged/PagedItemListImpl.kt | unknown_repo | kotlin | package com.mikepenz.fastadapter.paged
import android.util.Log
import androidx.paging.AsyncPagedListDiffer
import androidx.paging.PagedList
import androidx.recyclerview.widget.AsyncDifferConfig
import androidx.recyclerview.widget.ListUpdateCallback
import com.mikepenz.fastadapter.GenericItem
import com.mikepenz.fastad... |
app/src/main/java/org/ergoplatform/android/wallet/WalletFragment.kt | unknown_repo | kotlin | package org.ergoplatform.android.wallet
import android.os.Bundle
import android.text.format.DateUtils
import android.view.*
import android.view.animation.Animation
import android.view.animation.AnimationUtils
import androidx.fragment.app.Fragment
import androidx.fragment.app.findFragment
import androidx.navigation.fra... |
ui-kit/src/main/java/com/quickblox/android_ui_kit/presentation/dialogs/AvatarDialog.kt | unknown_repo | kotlin | /*
* Created by Injoit on 26.3.2023.
* Copyright ยฉ 2023 Quickblox. All rights reserved.
*/
package com.quickblox.android_ui_kit.presentation.dialogs
import android.content.Context
import android.view.View
import com.quickblox.android_ui_kit.R
import com.quickblox.android_ui_kit.presentation.base.BaseDialog
import ... |
app/src/main/java/com/kieronquinn/app/classicpowermenu/ui/screens/settings/quickaccesswallet/SettingsQuickAccessWalletViewModel.kt | unknown_repo | kotlin | package com.kieronquinn.app.classicpowermenu.ui.screens.settings.quickaccesswallet
import android.content.Context
import android.content.Intent
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.kieronquinn.app.classicpowermenu.components.navigation.AppNavigation
import com.kieronq... |
app/src/main/java/com/yanbin/reactivestickynote/ui/view/BoardView.kt | unknown_repo | kotlin | package com.yanbin.reactivestickynote.ui.view
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.Composable
import androidx.compose.runtime.ReusableContent
import androidx.compose.runtime.State
import androidx.compose.runtime.getValue
imp... |
app/src/main/java/com/mindsync/mindmapview/EditDescriptionDialog.kt | unknown_repo | kotlin | package com.mindsync.mindmapview
import android.app.Dialog
import android.content.DialogInterface
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.WindowMan... |
food-delivery-app/app/src/main/java/com/bkarakoca/fooddeliveryapp/scene/restaurant/detail/FRRestaurantDetailVM.kt | unknown_repo | kotlin | package com.bkarakoca.fooddeliveryapp.scene.restaurant.detail
import androidx.lifecycle.MutableLiveData
import com.bkarakoca.fooddeliveryapp.base.BaseViewModel
import com.bkarakoca.fooddeliveryapp.data.uimodel.restaurant.listitem.RestaurantUIModel
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.... |
backpack-compose/src/main/kotlin/net/skyscanner/backpack/compose/flare/internal/BpkFlareImpl.kt | unknown_repo | kotlin | /**
* Backpack for Android - Skyscanner's Design System
*
* Copyright 2018 Skyscanner Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE... |
app/src/main/java/com/hamburger/kotlinqiitareader/ui/item/ItemViewModel.kt | unknown_repo | kotlin | package com.hamburger.kotlinqiitareader.ui.item
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.hamburger.kotlinqiitareader.extension.observeOnMainThread
import com.hamburger.kotlinqiitareader.extension.subscribeOnIOThread
import com.... |
Entrega/app/src/main/java/com/jjmorillo/ladespensademicasa/ui/fragmenNavigationDrawer/PescadosFragment.kt | unknown_repo | kotlin | package com.jjmorillo.ladespensademicasa.ui.fragmenNavigationDrawer
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.os.bundleOf
import androidx.fragment.app.activityViewModels
import androidx.f... |
app/src/main/java/net/rubey/materialswipedismiss/DemoActivity.kt | unknown_repo | kotlin | package net.rubey.materialswipedismiss
import android.os.Bundle
import android.support.v4.content.ContextCompat
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.helper.ItemTouchHelper
import android.support.v7.widget.helper.ItemTouchHelper.END
import android.support.v7.widget.helper.Ite... |
app/src/main/java/com/personal/tmdb/detail/presentation/detail/components/Details.kt | unknown_repo | kotlin | package com.personal.tmdb.detail.presentation.detail.components
import android.net.Uri
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.animateContentSize
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.clic... |
libs/pandautils/src/main/java/com/instructure/pandautils/room/model/PendingSubmissionCommentWithFileUploadInput.kt | unknown_repo | kotlin | package com.instructure.pandautils.room.model
import androidx.room.Embedded
import androidx.room.Relation
import com.instructure.canvasapi2.models.postmodels.CommentSendStatus
import com.instructure.canvasapi2.models.postmodels.FileUploadWorkerData
import com.instructure.canvasapi2.models.postmodels.PendingSubmissionC... |
app/src/main/java/org/stepic/droid/ui/quiz/QuizDelegate.kt | unknown_repo | kotlin | package org.stepic.droid.ui.quiz
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import org.stepik.android.model.Reply
import org.stepik.android.model.Submission
import org.stepik.android.model.attempts.Attempt
abstract class QuizDelegate {
abstract var isEnabled: Boolean
a... |
app/src/main/java/com/kevalpatel2106/ci/greenbuild/di/ViewModelFactoryModule.kt | unknown_repo | kotlin | /*
* Copyright 2018 <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 writing, s... |
pretixscan/app/src/main/java/eu/pretix/pretixscan/droid/AndroidHttpClientFactory.kt | unknown_repo | kotlin | package eu.pretix.pretixscan.droid
import android.os.Build
import eu.pretix.libpretixsync.api.HttpClientFactory
import eu.pretix.libpretixsync.api.RateLimitInterceptor
import okhttp3.OkHttpClient
import java.security.cert.X509Certificate
import java.util.concurrent.TimeUnit
import javax.net.ssl.HostnameVerifier
import... |
pluto-plugins/plugins/exceptions/lib/src/main/java/com/pluto/plugins/exceptions/internal/ui/ListFragment.kt | unknown_repo | kotlin | package com.pluto.plugins.exceptions.internal.ui
import android.os.Bundle
import android.view.View
import android.view.View.GONE
import android.view.View.VISIBLE
import androidx.core.widget.doOnTextChanged
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
import androidx.lifecycle.O... |
app/src/main/java/com/kieronquinn/app/taptap/ui/screens/settings/backuprestore/restore/permissionprompt/SettingsRestoreNotificationPermissionBottomSheetFragment.kt | unknown_repo | kotlin | package com.kieronquinn.app.taptap.ui.screens.settings.backuprestore.restore.permissionprompt
import android.app.NotificationManager
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.provider.Settings
import androidx.activity.result.contract.ActivityResultContracts
im... |
live-video-sample/app/src/main/java/com/sendbird/live/videoliveeventsample/adapter/LiveEventListAdapter.kt | unknown_repo | kotlin | package com.sendbird.live.uikit.sample.adapter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView
import coil.load
import com.sendbird.live.LiveEvent
import com.sendbird.live.LiveEventSt... |
app/composeapp/src/main/java/com/example/srmc/composeapp/ui/screens/form/DoctorSchedScreen.kt | unknown_repo | kotlin | package com.example.srmc.composeapp.ui.screens.form
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.co... |
app/src/main/java/com/dropbox/android/sample/Graph.kt | unknown_repo | kotlin | package com.dropbox.android.sample
import android.content.Context
import android.text.Html
import androidx.room.Room
import com.dropbox.android.sample.data.model.Children
import com.dropbox.android.sample.data.model.Post
import com.dropbox.android.sample.data.model.RedditDb
import com.dropbox.android.sample.data.remot... |
app/src/main/java/com/mayokunadeniyi/instantweather/data/model/Wind.kt | unknown_repo | kotlin | package com.mayokunadeniyi.instantweather.data.model
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
/**
* Created by <NAME> on 16/03/2020.
*/
@Parcelize
data class Wind(
val speed: Double,
val deg: Int
) : Parcelable
|
app/src/main/java/org/simple/clinic/recentpatient/AllRecentPatientsEffect.kt | unknown_repo | kotlin | package org.simple.clinic.recentpatient
import androidx.paging.PagingData
import org.simple.clinic.patient.RecentPatient
import java.util.UUID
sealed class AllRecentPatientsEffect
object LoadAllRecentPatients : AllRecentPatientsEffect()
sealed class AllRecentPatientsViewEffect : AllRecentPatientsEffect()
data clas... |
Tutorial1-1Basics/src/main/java/com/smarttoolfactory/tutorial1_1basics/tutorial_list/TutorialList.kt | unknown_repo | kotlin | package com.smarttoolfactory.tutorial1_1basics.tutorial_list
import Tutorial2_10Screen3
import Tutorial2_5Screen5
import Tutorial2_5Screen6
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.material.ExperimentalMaterialApi
im... |
app/src/main/java/com/armutyus/ninova/ui/books/adapters/BooksRecyclerViewAdapter.kt | unknown_repo | kotlin | package com.armutyus.ninova.ui.books.adapters
import android.content.Intent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.core.net.toUri
import androidx.recyclerview.widget.AsyncListDiffer
import ... |
mvicore-demo/mvicore-demo-app/src/main/java/com/badoo/mvicoredemo/di/appscope/module/AndroidModule.kt | unknown_repo | kotlin | package com.badoo.mvicoredemo.di.appscope.module
import android.content.Context
import android.content.SharedPreferences
import android.content.res.Resources
import com.badoo.mvicoredemo.App
import dagger.Module
import dagger.Provides
@Module
class AndroidModule(context: Context) {
private val context: Context ... |
libraries/designsystem/src/main/kotlin/io/element/android/libraries/designsystem/components/list/SingleSelectionListItem.kt | unknown_repo | kotlin | /*
* Copyright (c) 2023 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 agr... |
app/src/main/java/com/santansarah/barcodescanner/ui/account/verified/VerifiedScreen.kt | unknown_repo | kotlin | package com.santansarah.barcodescanner.ui.account.verified
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.... |
compose/src/main/java/androidx/compose/material/samples/TextFieldSamples.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... |
packages/expo-speech/android/src/main/java/expo/modules/speech/SpeechInputIsToLongException.kt | unknown_repo | kotlin | package expo.modules.speech
import android.speech.tts.TextToSpeech
import expo.modules.kotlin.exception.CodedException
class SpeechInputIsToLongException : CodedException(
message = "Speech input text is too long! Limit of input length is: ${TextToSpeech.getMaxSpeechInputLength()}"
)
|
app/src/main/java/com/github/ephelsa/mycareer/ui/dialog/LoaderDialog.kt | unknown_repo | kotlin | package com.github.ephelsa.mycareer.ui.dialog
import android.annotation.SuppressLint
import android.app.Dialog
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.... |
app/src/main/java/com/tanasi/sflix/fragments/movie/MovieViewModel.kt | unknown_repo | kotlin | package com.tanasi.sflix.fragments.movie
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.tanasi.sflix.models.Movie
import com.tanasi.sflix.utils.UserPreferences
import kotlinx.coroutines.Dispatchers
imp... |
ideaplugin/src/main/kotlin/de/jensklingenberg/htmltocfw/ideaplugin/theme/Theme.kt | unknown_repo | kotlin | package io.github.appspirimentlabs.vectorpreview.theme
import androidx.compose.material.MaterialTheme
import androidx.compose.material.darkColors
import androidx.compose.material.lightColors
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
import com.intellij.openapi.editor.colors.E... |
core/ui/src/main/kotlin/com/ngapp/metanmobile/core/ui/career/CareerRow.kt | unknown_repo | kotlin | /*
* Copyright 2024 NGApps Dev (https://github.com/ngapp-dev). 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
*
*... |
compose/src/main/java/org/zhiwei/compose/screen/gesture/ClickableScreen.kt | unknown_repo | kotlin | package org.zhiwei.compose.screen.gesture
import android.widget.Toast
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.Indication
import androidx.compose.foundation.IndicationInstance
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
impor... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.