file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
plisio-ui-compose/src/main/java/net/plisio/sdk/ui/compose/sheet/steps/Error.kt | unknown_repo | kotlin | package net.plisio.sdk.ui.compose.sheet.steps
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import android... |
app/src/main/java/com/bossed/waej/adapter/SelectBankCardAdapter.kt | unknown_repo | kotlin | package com.bossed.waej.adapter
import android.graphics.Color
import com.bossed.waej.R
import com.bossed.waej.javebean.RecordsAccountRow
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
class SelectBankCardAdapter(
mutableList: MutableList<RecordsAccountRow... |
app/src/main/java/eu/kanade/tachiyomi/extension/ExtensionInstallNotifier.kt | unknown_repo | kotlin | package eu.kanade.tachiyomi.extension
import android.content.Context
import android.graphics.BitmapFactory
import androidx.core.content.ContextCompat
import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.data.notification.NotificationReceiver
import eu.kanade.tachiyomi.data.notification.Notifications
import eu.kanad... |
core/core-designsystem/src/main/kotlin/com/maximillianleonov/musicmax/core/designsystem/component/BackButton.kt | unknown_repo | kotlin | /*
* Copyright 2022 Maximillian Leonov
*
* 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/masterplus/notex/PopUpAddNoteActivity.kt | unknown_repo | kotlin | package com.masterplus.notex
import android.content.Intent
import android.content.SharedPreferences
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.view.inputmethod.InputMethodManager
import android.widget.AdapterView
import android.widget.ArrayAdapter
i... |
app/src/main/java/com/example/yemeksiparisuygulamasikotlin/ui/adapter/SepetYemeklerAdapter.kt | unknown_repo | kotlin | package com.example.yemeksiparisuygulamasikotlin.ui.adapter
import android.content.Context
import android.util.Log
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.exa... |
app/src/main/java/com/android/achievix/Activity/NewScheduleActivity.kt | unknown_repo | kotlin | package com.android.achievix.Activity
import android.content.Intent
import android.os.Bundle
import android.widget.LinearLayout
import androidx.appcompat.app.AppCompatActivity
import com.android.achievix.R
class NewScheduleActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
... |
app/src/main/java/com/example/android/guesstheword/screens/score/ScoreViewModel.kt | unknown_repo | kotlin | package com.example.android.guesstheword.screens.score
import android.util.Log
import androidx.lifecycle.ViewModel
class ScoreViewModel(finalScore: Int) : ViewModel() {
// The final score
var score = finalScore
init {
Log.i("ScoreViewModel", "Items added: $finalScore")
}
} |
app/src/main/java/com/example/swiftpay/ui/screens/security/components/SecurityItem.kt | unknown_repo | kotlin | package com.example.swiftpay.ui.screens.notitifcation_settings.components
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.MaterialTheme
... |
Fall2023/examples/Lecture 11/SensorRawAccelerometer/app/src/main/java/mobiledev/unb/ca/showrawvalues/SensorRawAccelerometerActivity.kt | unknown_repo | kotlin | package mobiledev.unb.ca.showrawvalues
import android.app.Activity
import android.hardware.Sensor
import android.hardware.SensorEventListener
import android.hardware.SensorManager
import android.widget.TextView
import android.os.Bundle
import android.hardware.SensorEvent
class SensorRawAccelerometerActivity : Activity... |
stream-chat-android-ui-components/src/main/kotlin/io/getstream/chat/android/ui/utils/extensions/ViewHolder.kt | unknown_repo | kotlin | /*
* Copyright (c) 2014-2022 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... |
app/src/main/java/my/github/dstories/feature/monster_info/MonsterInfoScreen.kt | unknown_repo | kotlin | package my.github.dstories.feature.monster_info
import androidx.compose.runtime.Composable
import com.github.terrakok.modo.android.compose.ComposeScreen
import kotlinx.parcelize.Parcelize
import my.github.dstories.core.framework.DrawUi
import my.github.dstories.core.model.Monster
import my.github.dstories.feature.mons... |
feature/battle/src/main/java/online/partyrun/partyrunapplication/feature/battle/BattleViewModel.kt | unknown_repo | kotlin | package online.partyrun.partyrunapplication.feature.battle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow
... |
Android-training-samples/app/src/main/java/com/egs/ansroid/samples/lesson8/flows/errorhandling/Imperative.kt | unknown_repo | kotlin | package com.egs.ansroid.samples.lesson8.flows.errorhandling
import android.util.Log
import kotlinx.coroutines.flow.flowOf
import kotlinx.coroutines.runBlocking
val upstream2 = flowOf(1, 2, 3)
fun imperativeImpl1() = runBlocking {
try {
upstream2.collect { value ->
if (value > 2) {
... |
core/testing/src/main/kotlin/com/ngapp/metanmobile/core/testing/MetanMobileTestRunner.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
*
*... |
dd-sdk-android/src/test/kotlin/com/datadog/android/core/internal/utils/RuntimeUtilsTest.kt | unknown_repo | kotlin | /*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2016-Present Datadog, Inc.
*/
package com.datadog.android.core.internal.utils
import android.util.... |
spend/src/main/java/com/flexa/spend/main/main_screen/SpendViewModel.kt | unknown_repo | kotlin | package com.flexa.spend.main.main_screen
import android.content.Context
import android.util.Log
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateListOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import ... |
shared/compose/src/commonMain/kotlin/com/sedsoftware/tackle/compose/custom/navigation/BottomNavigationBarItem.kt | unknown_repo | kotlin | package com.sedsoftware.tackle.compose.custom.navigation
import androidx.compose.animation.animateColorAsState
import androidx.compose.animation.core.animateDpAsState
import androidx.compose.foundation.layout.RowScope
import androidx.compose.foundation.layout.size
import androidx.compose.material3.Icon
import androidx... |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/filled/CellularData5.kt | unknown_repo | kotlin |
package com.konyaco.fluent.icons.filled
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.Filled.CellularData5: ImageVector
get() {
if (_cellularData5 != null... |
analytics/src/main/java/io/appmetrica/analytics/impl/db/storage/OuterRootDatabaseFullPathProvider.kt | unknown_repo | kotlin | package io.appmetrica.analytics.impl.db.storage
import android.content.Context
import java.io.File
internal class OuterRootDatabaseFullPathProvider(
private val root: File,
private val relativePathFormer: RelativePathFormer
) : DatabaseFullPathProvider {
override fun fullPath(context: Context, simpleName... |
app/src/main/java/com/pr0gramm/app/ui/fragments/BusyDialog.kt | unknown_repo | kotlin | package com.pr0gramm.app.ui.fragments
import android.app.Dialog
import android.content.Context
import android.support.annotation.StringRes
import android.support.v4.app.Fragment
import android.widget.TextView
import com.pr0gramm.app.BuildConfig
import com.pr0gramm.app.R
import com.pr0gramm.app.ui.showDialog
import com... |
android-kotlin/idea-android/testData/android/intention/addServiceToManifest/nested.kt | unknown_repo | kotlin | // INTENTION_CLASS: org.jetbrains.kotlin.android.intention.AddServiceToManifest
// CHECK_MANIFEST
package com.myapp
import android.app.Service
import android.content.Intent
import android.os.IBinder
class Test {
class <caret>MyService : Service() {
override fun onBind(intent: Intent?): IBinder {
... |
compose/snippets/src/main/java/com/example/compose/snippets/lifecycle/LifecycleSnippets.kt | unknown_repo | kotlin | /*
* Copyright 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
app/src/main/java/com/a10miaomiao/bilimiao/activitys/DownloadActivity.kt | unknown_repo | kotlin | package com.a10miaomiao.bilimiao.activitys
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.support.design.widget.TabLayout
import com.a10miaomiao.bilimiao.R
import com.a10miaomiao.bilimiao.base.BaseActivity
import com.a10miaomiao.bilimiao.fragments.download.DownloadedF... |
sample/src/main/java/me/panpf/sketch/sample/item/AppListHeaderItemFactory.kt | unknown_repo | kotlin | package me.panpf.sketch.sample.item
import android.content.Context
import android.view.ViewGroup
import android.widget.TextView
import me.panpf.adapter.AssemblyItem
import me.panpf.adapter.AssemblyItemFactory
import me.panpf.adapter.ktx.bindView
import me.panpf.sketch.sample.R
class AppListHeaderItemFactory : Assembl... |
app/src/main/java/org/ballistic/dreamjournalai/feature_dream/presentation/dream_list_screen/DreamJournalListScreen.kt | unknown_repo | kotlin | package org.ballistic.dreamjournalai.feature_dream.presentation.dream_list_screen
import android.os.Build
import androidx.annotation.RequiresApi
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.PaddingValues
import andro... |
app/src/main/java/com/dev_vlad/wikisearch/rv_holders/ListItemHolder.kt | unknown_repo | kotlin | package com.dev_vlad.wikisearch.rv_holders
import android.content.Intent
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.dev_vlad.wikisearch.ArticleDetailsActivity
import com.dev_vlad.wikisearch.R
import com.dev_vlad.wi... |
azure-communication-ui/azure-communication-ui/src/calling/java/com/azure/android/communication/ui/calling/presentation/fragment/factories/SetupViewModelFactory.kt | unknown_repo | kotlin | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.android.communication.ui.calling.presentation.fragment.factories
import com.azure.android.communication.ui.calling.presentation.fragment.common.audiodevicelist.AudioDeviceListViewModel
import com.azure.an... |
glplayer/src/main/java/top/gochiusa/glplayer/mediacodec/MediaCodecRenderer.kt | unknown_repo | kotlin | package top.gochiusa.glplayer.mediacodec
import android.media.MediaCodec
import android.os.SystemClock
import top.gochiusa.glplayer.base.BaseRenderer
import top.gochiusa.glplayer.base.MediaClock
import top.gochiusa.glplayer.base.Sample
import top.gochiusa.glplayer.base.Sender
import top.gochiusa.glplayer.entity.Format... |
app/src/main/java/com/example/socialapplication/MainActivity.kt | unknown_repo | kotlin | package com.example.socialapplication
import android.os.Bundle
import android.util.Log
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.navigation.NavType
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navig... |
app/src/test/java/com/example/whatisup/viewmodel/DayActivityViewmodelTest.kt | unknown_repo | kotlin | package com.example.whatisup.viewmodel
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import android.util.Log
import android.util.TimeUtils
import com.example.whatisup.BuildConfig
import com.example.whatisup.src.data.model.DayActivity
import com.example.whatisup.src.data.repository.MockDayActivityR... |
sample/src/main/java/com/gk/emon/app/watermark/ShowWatermarkActivity.kt | unknown_repo | kotlin | package com.gk.emon.app.watermark
import android.os.Bundle
import android.util.Log
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import com.gk.emon.app.watermark.AppWaterMarkBuilder.showWatermark
class ShowWatermarkActivity : AppCompatActivity() {
override fun onCreate(savedInstanceStat... |
app/src/main/java/com/webaddicted/techcleanarch/view/base/BaseActivity.kt | unknown_repo | kotlin | package com.webaddicted.techcleanarch.view.base
import android.content.Intent
import android.graphics.Color
import android.os.Build
import android.os.Bundle
import android.util.Log
import android.view.View
import android.view.WindowManager
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.Dat... |
yandex-mapkit-kmp-compose/src/commonMain/kotlin/ru/sulgik/mapkit/compose/YandexMapComposable.kt | unknown_repo | kotlin | package ru.sulgik.mapkit.compose
import androidx.compose.runtime.ComposableTargetMarker
@Retention(AnnotationRetention.BINARY)
@ComposableTargetMarker(description = "Yandex Map Composable")
@Target(
AnnotationTarget.FILE,
AnnotationTarget.FUNCTION,
AnnotationTarget.PROPERTY_GETTER,
AnnotationTarget.TY... |
app/src/main/java/shvyn22/flexinglyrics/ui/history/HistoryViewModel.kt | unknown_repo | kotlin | package shvyn22.flexinglyrics.ui.history
import androidx.lifecycle.ViewModel
import androidx.lifecycle.liveData
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.flow.collect
import kotlinx.coroutines.flow.re... |
coroutinebinding-material/src/androidTest/java/com/github/satoshun/coroutinebinding/material/bottomnavigation/CoroutineBottomNavigationViewTest.kt | unknown_repo | kotlin | package com.github.satoshun.coroutinebinding.material.bottomnavigation
import android.view.ContextThemeWrapper
import androidx.test.annotation.UiThreadTest
import com.github.satoshun.coroutinebinding.AndroidTest
import com.github.satoshun.coroutinebinding.isNull
import com.github.satoshun.coroutinebinding.isSame
impor... |
app/src/main/kotlin/ir/thatsmejavad/backgroundable/common/ui/AnimatedComposable.kt | unknown_repo | kotlin | package ir.thatsmejavad.backgroundable.common.ui
import androidx.compose.animation.AnimatedContentTransitionScope
import androidx.compose.animation.AnimatedVisibilityScope
import androidx.compose.animation.EnterTransition
import androidx.compose.animation.ExitTransition
import androidx.compose.animation.core.FastOutSl... |
app/src/main/java/com/roomedia/babbab/ui/main/MainActivity.kt | unknown_repo | kotlin | package com.roomedia.babbab.ui.main
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.net.Uri
import android.os.Bundle
import android.util.Base64
import androidx.activity.result.contract.ActivityResultContracts
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.app.Ap... |
modules/tak/compose/icons/src/main/kotlin/dev/jonpoulton/alakazam/tak/compose/icons/dropdown/RAndBDynamicLine.kt | unknown_repo | kotlin | package dev.jonpoulton.alakazam.tak.compose.icons.dropdown
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.StrokeJ... |
app/src/main/java/com/lordinatec/minesweepercompose/gameplay/views/FieldView.kt | unknown_repo | kotlin | /*
* Copyright Lordinatec LLC 2024
*/
package com.lordinatec.minesweepercompose.gameplay.views
import android.content.res.Configuration
import androidx.compose.foundation.layout.Box
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.collectAsSta... |
app/src/main/java/com/example/dogglers/adapter/DogCardAdapter.kt | unknown_repo | kotlin | /*
* Copyright (C) 2021 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 applicable l... |
shared/src/test/java/com/google/samples/apps/iosched/shared/domain/sessions/LoadPinnedSessionsJsonUseCaseTest.kt | unknown_repo | kotlin | /*
* Copyright 2019 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 ... |
app/src/main/java/com/kartikcd/mediumx/ui/feed/LocalFeedFragment.kt | unknown_repo | kotlin | package com.kartikcd.mediumx.ui.feed
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.ItemTouchHelp... |
app/src/main/java/softspark/com/inventorypilot/home/presentation/ui/sales/saleDetail/SaleDetailFragment.kt | unknown_repo | kotlin | package softspark.com.inventorypilot.home.presentation.ui.sales.saleDetail
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.ContextCompat
import androidx.core.view.MenuHost
imp... |
shared/src/commonMain/kotlin/com/ostreet/cmp/cmpnav/ui/composable/Button.kt | unknown_repo | kotlin | package com.ostreet.cmp.cmpnav.ui.composable
import androidx.compose.material3.Button
import androidx.compose.material3.Text
import androidx.compose.material3.TextButton
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.sp
@Composable
fun BasicTextButton(te... |
core/designsystem/src/main/kotlin/com/anbui/recipely/core/designsystem/components/StandardProgressBar.kt | unknown_repo | kotlin | package com.anbui.recipely.presentation.ui.components
import androidx.compose.animation.core.FastOutSlowInEasing
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animation.core.tween
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.heigh... |
src/jvmMain/kotlin/com/rodev/jbpkmp/presentation/screens/editor_screen/components/ToolBar.kt | unknown_repo | kotlin | package com.rodev.jbpkmp.presentation.screens.editor_screen.components
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.fillMaxWidt... |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/outline/Omegacircle.kt | unknown_repo | kotlin | package moe.tlaster.icons.vuesax.vuesaxicons.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
import androidx... |
app/src/main/java/com/oseo27jul/rickandmorty/ui/viewmodel/CharactersViewModel.kt | unknown_repo | kotlin | package com.oseo27jul.rickandmorty.ui.viewmodel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.oseo27jul.rickandmorty.data.model.Character
import com.oseo27jul.rickandmorty.domain.CharacterUseCase
... |
misc/PaletteDemo/app/src/main/java/com/thomaskuenneth/palettedemo/PaletteDemoActivity.kt | unknown_repo | kotlin | package com.thomaskuenneth.palettedemo
import android.graphics.ImageDecoder
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.activity.result.ActivityResultLauncher
import androidx.activity.result.Pi... |
app/src/main/java/com/reloia/libermobile/utilities/LiberLiberClient.kt | unknown_repo | kotlin | package com.reloia.libermobile.utilities
import android.content.Context
import com.reloia.libermobile.model.BookItemData
import com.reloia.libermobile.model.ReadingOption
import okhttp3.Request
import org.jsoup.nodes.Document
class LiberLiberClient(context: Context) : HTTPClient(context) {
override val baseURL: S... |
app/src/main/java/com/dede/android_eggs/views/settings/SettingPref.kt | unknown_repo | kotlin | package com.dede.android_eggs.views.settings
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.drawable.Drawable
import android.view.View
import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
import androidx.core.view.ViewCompat
import com.dede.android_... |
app/src/main/java/jr/brian/rickandmortyrest/model/local/database/CharacterDao.kt | unknown_repo | kotlin | package jr.brian.rickandmortyrest.model.local.database
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import androidx.room.Update
import jr.brian.rickandmortyrest.model.local.Character
import kotlinx.coroutines.flow.Fl... |
Secao 37 - Fingerprint/Fonte Tasks/app/src/main/java/com/devmasterteam/tasks/service/repository/BaseRepository.kt | unknown_repo | kotlin | package com.android.taskskotlin.service.repository
import android.content.Context
import android.net.ConnectivityManager
import android.net.NetworkCapabilities
import android.os.Build
import com.android.taskskotlin.R
import com.android.taskskotlin.service.constants.TaskConstants
import com.android.taskskotlin.service.... |
app/src/main/kotlin/io/github/feelfreelinux/wykopmobilny/ui/adapters/EntryLinkAdapter.kt | unknown_repo | kotlin | package io.github.feelfreelinux.wykopmobilny.ui.adapters
import android.view.ViewGroup
import io.github.feelfreelinux.wykopmobilny.base.adapter.AdvancedProgressAdapter
import io.github.feelfreelinux.wykopmobilny.models.dataclass.EntryLink
import io.github.feelfreelinux.wykopmobilny.ui.adapters.viewholders.BlockedViewH... |
app/src/main/java/com/antonio/samir/meteoritelandingsspots/common/userCase/GeoLocation.kt | unknown_repo | kotlin | package com.antonio.samir.meteoritelandingsspots.common.userCase
import android.location.Address
import android.location.Geocoder
import android.util.Log
import javax.inject.Inject
class GeoLocation @Inject constructor(private val geoCoder: Geocoder) {
fun getAddress(latitude: Double, longitude: Double): Address... |
lib-seamcarving/src/main/java/st235/com/github/seamcarving/energies/L1NormEnergy.kt | unknown_repo | kotlin | package st235.com.github.seamcarving.energies
import android.graphics.Color
import kotlin.math.abs
import kotlin.math.pow
import kotlin.math.sqrt
import st235.com.github.seamcarving.Energy
import st235.com.github.seamcarving.images.CarvableImage
import st235.com.github.seamcarving.utils.Vector3
internal class L1NormE... |
app/src/main/java/com/example/marvel/app/providers/network/NetworkStoryModelProvider.kt | unknown_repo | kotlin | package com.example.marvel.app.providers.network
import androidx.lifecycle.LiveData
import androidx.lifecycle.liveData
import com.example.marvel.app.api.StoryApi
import com.example.marvel.app.api.responses.StoryResponse
import com.example.marvel.app.database.models.Story
import com.example.marvel.app.database.models.S... |
app/src/main/java/com/example/marvel/app/providers/network/NetworkStoryModelProvider.kt | unknown_repo | kotlin | package com.example.marvel.app.providers.network
import androidx.lifecycle.LiveData
import androidx.lifecycle.liveData
import com.example.marvel.app.api.StoryApi
import com.example.marvel.app.api.responses.StoryResponse
import com.example.marvel.app.database.models.Story
import com.example.marvel.app.database.models.S... |
viewpager2/integration-tests/testapp/src/main/java/androidx/viewpager2/integration/testapp/ParallelNestedScrollingActivity.kt | unknown_repo | kotlin | /*
* Copyright 2019 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/dev/farouk/takara/ui/viewmodels/CandidatesViewModel.kt | unknown_repo | kotlin | package dev.farouk.takara.ui.viewmodels
import androidx.hilt.lifecycle.ViewModelInject
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.asLiveData
import dagger.hilt.android.lifecycle.HiltViewModel
import dev.farouk.takara.data.db.CandidateRepository
import dev.farouk.ta... |
gears/src/main/java/com/mitteloupe/loader/gears/model/Rectangle.kt | unknown_repo | kotlin | package com.mitteloupe.loader.gears.model
import android.graphics.PointF
import android.graphics.RectF
fun RectF.distanceTo(point: PointF) = minOf(
point.x - left,
right - point.x,
point.y - top,
bottom - point.y
)
val RectF.edges: List<Edge>
get() = listOf(
Edge(PointF(left, top), PointF... |
app/src/main/java/com/skydoves/themovies/room/MovieDao.kt | unknown_repo | kotlin | package com.skydoves.themovies.room
import androidx.lifecycle.LiveData
import androidx.room.*
import com.skydoves.themovies.models.entity.Movie
/**
* Developed by skydoves on 2018-08-09.
* Copyright (c) 2018 skydoves rights reserved.
*/
@Dao
interface MovieDao {
@Insert(onConflict = OnConflictStrategy.REPLACE... |
bluetooth/bluetooth/src/main/java/androidx/bluetooth/BluetoothGattCharacteristic.kt | unknown_repo | kotlin | /*
* Copyright 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
app/src/main/java/ru/nbsp/pushka/presentation/source/feed/SourcesActivity.kt | unknown_repo | kotlin | package ru.nbsp.pushka.presentation.source.feed
import android.graphics.Color
import android.os.Build
import android.os.Bundle
import android.support.design.widget.AppBarLayout
import android.support.design.widget.CollapsingToolbarLayout
import android.support.v4.app.Fragment
import android.support.v7.app.ActionBar
im... |
ftc-ext/src/main/java/com/addonovan/ftcext/config/Jsonable.kt | unknown_repo | kotlin | package com.addonovan.ftcext.config
import android.util.JsonWriter
import org.json.JSONObject
/**
* An awful, awful name for a type of class that is able to be
* serialized into a .json file.
*
* @author addonovan
* @since 6/16/16
*/
interface Jsonable
{
/**
* Serializes this class into the json file ... |
utility/src/main/java/com/androidessence/utility/ParcelableUtils.kt | unknown_repo | kotlin | package com.androidessence.utility
import android.os.Parcel
import android.os.Parcelable
/**
* Utility methods for parcelables.
*/
inline fun <reified T : Parcelable> creator(crossinline create: (Parcel) -> T) = object : Parcelable.Creator<T> {
override fun createFromParcel(source: Parcel) = create(source)
... |
app/src/main/java/com/developer/allef/boilerplateapp/extensions/ExtensionString.kt | unknown_repo | kotlin | package com.developer.allef.boilerplateapp.extensions
import android.content.ClipData
import android.content.ClipboardManager
import android.content.Context
import android.content.Intent
import android.graphics.Color
import android.net.Uri
import android.webkit.URLUtil
import br.com.redcode.base.extensions.zeroTime
im... |
app/src/main/java/com/example/okcredit/Views/activities/SupplierTransactionActivity.kt | unknown_repo | kotlin | package com.example.okcredit.Views.activities
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Intent
import android.net.Uri
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.View
import androidx.core.content.Co... |
core/ui/src/main/java/ru/aleshin/core/ui/theme/MixPlayerRes.kt | unknown_repo | kotlin | /*
* Copyright 2023 <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 writin... |
app/src/main/java/com/dinhlam/sharebox/dialog/guideline/GuidelineDialogFragment.kt | unknown_repo | kotlin | package com.dinhlam.sharebox.dialog.guideline
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.view.updateLayoutParams
import androidx.viewpager2.widget.ViewPager2.OnPageChangeCallback
import com.dinhlam.sharebox.R
import com.dinhla... |
dashboard/src/main/java/com/bibek/dashboard/presentation/ui/recipe_details/RecipeDetailsScreen.kt | unknown_repo | kotlin | package com.bibek.dashboard.presentation.ui.recipe_details
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import andr... |
examples/coroutinesExample/src/main/java/io/realm/examples/coroutinesexample/ui/main/MainFragment.kt | unknown_repo | kotlin | /*
* Copyright 2020 Realm 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 wr... |
composeApp/src/desktopMain/kotlin/io/github/snd_r/komelia/ui/settings/decoder/DecoderSettingsViewModel.kt | unknown_repo | kotlin | package io.github.snd_r.komelia.ui.settings.decoder
import cafe.adriel.voyager.core.model.ScreenModel
import cafe.adriel.voyager.core.model.screenModelScope
import coil3.ImageLoader
import io.github.snd_r.VipsOnnxRuntimeDecoder.OnnxRuntimeExecutionProvider
import io.github.snd_r.komelia.AppNotification
import io.githu... |
app/src/main/java/com/aditya/googledeveloperscommunityvisualisationtool/roomdatabase/GdgChapterCompleteDetails/ChapterRespository.kt | unknown_repo | kotlin | package com.aditya.googledeveloperscommunityvisualisationtool.roomdatabase.GdgChapterCompleteDetails
import androidx.lifecycle.LiveData
class ChapterRespository(val dao: ChapterDao) {
val readChapterRepo: LiveData<List<ChapterEntity>> =dao.readChapter()
suspend fun addChaptersRepo(chapterEntity: ChapterEnti... |
app/src/main/java/fr/jeantuffier/reminder/free/common/injection/ActivitiesModule.kt | unknown_repo | kotlin | package fr.jeantuffier.reminder.free.common.injection
import android.app.Activity
import dagger.Binds
import dagger.Module
import dagger.android.ActivityKey
import dagger.android.AndroidInjector
import dagger.multibindings.IntoMap
import fr.jeantuffier.reminder.free.create.injection.CreateTaskComponent
import fr.jeant... |
app/src/main/java/com/example/android/marsphotos/ui/television/Fragment/AllchannelFragment.kt | unknown_repo | kotlin | package com.example.android.marsphotos.ui.television.Fragment
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.example.android.marsphotos.R
import com.example.android.marsphotos.databinding.FragmentAllcha... |
net/src/main/java/cn/lvsong/lib/net/network/NetWorkMonitorManager.kt | unknown_repo | kotlin | package cn.lvsong.lib.net.network
import android.app.Application
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.net.*
import android.net.ConnectivityManager.NetworkCallback
import android.os.Build
import android.t... |
feature/theater/src/main/java/soup/movie/theater/edit/TheaterEditViewModel.kt | unknown_repo | kotlin | /*
* Copyright 2021 SOUP
*
* 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 in wri... |
app/src/main/java/ca/androidyvr/demos/kotlin/ContactsActivity.kt | unknown_repo | kotlin | package ca.androidyvr.demos.kotlin
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.... |
android.architecture/src/main/java/com/chiclaim/android/arch/live_data/UserViewModel.kt | unknown_repo | kotlin | package com.chiclaim.android.arch.live_data
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.chiclaim.android.arch.Callback
import com.chiclaim.android.arch.bean.User
import com.chiclaim.android.arch.source.UserRemoteSource
class UserViewModel... |
android/app/src/main/java/com/kaelesty/audionautica/di/DataModule.kt | unknown_repo | kotlin | package com.kaelesty.audionautica.di
import android.app.Application
import com.kaelesty.audionautica.data.local.daos.PlaylistDao
import com.kaelesty.audionautica.data.local.daos.TokenDao
import com.kaelesty.audionautica.data.local.daos.TrackDao
import com.kaelesty.audionautica.data.local.dbs.MusicDatabase
import com.k... |
fastscroll/src/main/java/com/github/vardemin/fastscroll/viewprovider/DefaultScrollViewProvider.kt | unknown_repo | kotlin | package com.github.vardemin.fastscroll.viewprovider
import android.graphics.drawable.InsetDrawable
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.core.content.ContextCompat
import com.github.vardemin.fastscroll.R
import com.githu... |
Main/src/main/java/com/redelf/commons/extensions/retrofit.kt | unknown_repo | kotlin | package com.redelf.commons.extensions
import android.content.Context
import com.redelf.commons.R
import com.redelf.commons.retrofit.RetrofitApiParameters
fun retrofitApiParameters(
ctx: Context,
endpoint: Int,
readTimeoutInSeconds: Long = 30,
connectTimeoutInSeconds: Long = 30,
writeTimeoutInSec... |
easydanmaku/src/main/java/top/littlefogcat/easydanmaku/ui/DanmakuView.kt | unknown_repo | kotlin | package top.littlefogcat.easydanmaku.ui
import android.content.Context
import android.graphics.*
import android.os.Build
import android.util.AttributeSet
import android.view.Choreographer
import top.littlefogcat.easydanmaku.Danmakus
import top.littlefogcat.easydanmaku.danmaku.Danmaku
import top.littlefogcat.easydanmak... |
app/src/main/java/com/matthew/carvalhodagenais/coinhuntingbuddy/data/AppDatabase.kt | unknown_repo | kotlin | package com.matthew.carvalhodagenais.coinhuntingbuddy.data
import android.content.Context
import android.util.Log
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import androidx.sqlite.db.SupportSQLiteDatabase
import com.matthew.carvalhodage... |
feature/login/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/feature/login/login/LoginViewModel.kt | unknown_repo | kotlin | package de.tum.informatics.www1.artemis.native_app.feature.login.login
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.viewModelScope
import de.tum.informatics.www1.artemis.native_app.core.data.DataState
import de.tum.informatics.www1.artemis.native_app.core.data.service.ServerDataService
import d... |
Android/EasyBudget/app/src/main/java/com/benoitletondor/easybudgetapp/view/login/LoginView.kt | unknown_repo | kotlin | /*
* Copyright 2024 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
app/src/main/java/com/alveteg/simon/minutelauncher/data/PackageRepository.kt | unknown_repo | kotlin | package com.alveteg.simon.minutelauncher.data
import android.content.Context
import android.content.Intent
import android.content.pm.LauncherApps
import dagger.hilt.android.qualifiers.ApplicationContext
import timber.log.Timber
import javax.inject.Inject
class PackageRepository @Inject constructor(@ApplicationContext... |
app/src/main/java/com/example/simplechatapp/server/MyWebSocketServer.kt | unknown_repo | kotlin | package com.example.simplechatapp.server
import android.util.Log
import org.java_websocket.WebSocket
import org.java_websocket.handshake.ClientHandshake
import org.java_websocket.server.WebSocketServer
import java.lang.Exception
import java.net.InetSocketAddress
class MyWebSocketServer private constructor(
addres... |
app/src/main/java/tcc/timezen/recyclerview/adapter/PlanRecyclerViewAdapter.kt | unknown_repo | kotlin | package tcc.timezen.recyclerview.adapter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageButton
import android.widget.TextView
import androidx.cardview.widget.CardView
import androidx.recyclerview.widget.RecyclerView
import tcc.timezen.R
import tcc.t... |
ieum/app/src/main/java/com/jeongg/ieum/di/NetworkModule.kt | unknown_repo | kotlin | package com.jeongg.ieum.di
import android.content.Context
import android.util.Log
import com.jeongg.ieum.data._const.DataStoreKey
import com.jeongg.ieum.data._const.HttpRoutes
import com.jeongg.ieum.data.api.ContentApi
import com.jeongg.ieum.data.api.InterestApi
import com.jeongg.ieum.data.api.UserApi
import com.jeong... |
androidApp/src/main/java/ch/wenksi/noteappkmm/android/di/AppModule.kt | unknown_repo | kotlin | package ch.wenksi.noteappkmm.android.di
import android.app.Application
import ch.wenksi.noteappkmm.data.local.DatabaseDriverFactory
import ch.wenksi.noteappkmm.data.note.SqlDelightNoteDataSource
import ch.wenksi.noteappkmm.database.NoteDatabase
import ch.wenksi.noteappkmm.domain.note.NoteDataSource
import com.squareup... |
app/src/main/java/com/cornellappdev/android/volume/ui/viewmodels/IndividualOrganizationViewModel.kt | unknown_repo | kotlin | package com.cornellappdev.android.volume.ui.viewmodels
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.cornellappdev.android.volume.data.models.Flyer
import com.cornellappdev.android.volume.data.models.Organization
import com.cornellapp... |
gd-map-compose/src/main/java/com/melody/map/gd_compose/GDMap.kt | unknown_repo | kotlin | // MIT License
//
// Copyright (c) 2023 被风吹过的夏天
//
// 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, mer... |
app/src/main/java/com/sscl/blelibraryforkotlin/ui/activities/guide/SplashActivity.kt | unknown_repo | kotlin | package com.sscl.blelibraryforkotlin.ui.activities.guide
import android.Manifest
import android.annotation.SuppressLint
import android.content.Intent
import android.os.Build
import androidx.appcompat.app.AlertDialog
import com.sscl.baselibrary.activity.BaseSplashActivity
import com.sscl.baselibrary.utils.BaseManager
i... |
app/src/main/java/seng440/vaccinepassport/ui/main/MainFragment.kt | unknown_repo | kotlin | package seng440.vaccinepassport.ui.main
import android.os.Bundle
import android.util.Log
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.fragment.app.FragmentTransaction
import androidx.fragment.... |
library/src/main/java/tmg/utilities/extensions/BottomSheetBehaviorExtensions.kt | unknown_repo | kotlin | package tmg.utilities.extensions
import android.view.View
import com.google.android.material.bottomsheet.BottomSheetBehavior
import tmg.utilities.bottomsheet.BottomSheetFader
//region State modifications
fun <T: View> BottomSheetBehavior<T>.collapse() {
this.state = BottomSheetBehavior.STATE_COLLAPSED
}
fun <T:... |
app/src/main/java/fragments/FragmentOne.kt | unknown_repo | kotlin | package fragments
import android.content.Intent
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.TextView
import com.example.completeadapterview.FragmentStudyMain
i... |
solar/src/main/java/com/chiksmedina/solar/outline/electronicdevices/Radio.kt | unknown_repo | kotlin | package com.chiksmedina.solar.outline.electronicdevices
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.