file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/dev/nosuch/luncher/android/App.kt | unknown_repo | kotlin | package dev.nosuch.luncher.android
import android.app.Application
import android.content.Context
import co.touchlab.kampstarter.initKoin
import org.koin.dsl.module
class App : Application() {
override fun onCreate() {
super.onCreate()
initKoin {
modules(module { single<Context> { this@... |
mlkit/app/src/main/java/com/google/firebase/samples/apps/mlkit/kotlin/custommodel/CustomImageClassifier.kt | unknown_repo | kotlin | // Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
app/src/main/kotlin/cz/covid19cz/erouska/utils/Auth.kt | unknown_repo | kotlin | package cz.covid19cz.erouska.utils
import android.widget.Toast
import androidx.navigation.fragment.findNavController
import com.google.firebase.auth.FirebaseAuth
import cz.covid19cz.erouska.R
import cz.covid19cz.erouska.db.SharedPrefsRepository
import cz.covid19cz.erouska.service.CovidService
import cz.covid19cz.erous... |
app/src/test/java/com/blackcrowsys/ui/residents/ResidentsActivityViewModelTest.kt | unknown_repo | kotlin | package com.blackcrowsys.ui.residents
import android.arch.lifecycle.Observer
import com.blackcrowsys.MockContentHelper
import com.blackcrowsys.R
import com.blackcrowsys.exceptions.ErrorMapper
import com.blackcrowsys.exceptions.ExceptionTransformer
import com.blackcrowsys.repository.ResidentRepository
import com.blackc... |
app/src/main/java/com/saraha/paws/View/AnimalViews/AddEditAnimal/Fragment/AddEditAnimalPage3Fragment.kt | unknown_repo | kotlin | package com.saraha.paws.View.AnimalViews.AddEditAnimal.Fragment
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.widget.addTextChangedListener
import androidx.lifecycle.ViewModelProvider
import ... |
app-tracking-protection/vpn-impl/src/main/java/com/duckduckgo/mobile/android/vpn/bugreport/NetworkTypeCollector.kt | unknown_repo | kotlin | /*
* Copyright (c) 2022 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/nearby/messages/nearbyconnection/ui/views/CustomFlag.kt | unknown_repo | kotlin | package com.nearby.messages.nearbyconnection.ui.views
import android.content.Context
import com.skydoves.colorpickerview.ColorEnvelope
import com.skydoves.colorpickerview.AlphaTileView
import android.widget.TextView
import com.nearby.messages.nearbyconnection.R
import com.skydoves.colorpickerview.flag.FlagView
class ... |
app/src/main/java/com/africablue/awsapp/ui/translate/TranslateLanguageDialog.kt | unknown_repo | kotlin | package com.africablue.awsapp.ui.translate
import android.app.Dialog
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.view.View
import android.widget.*
import androidx.appcompat.app.AlertDialog
import androidx.fragment.app.DialogFragment
import androi... |
williamchart/src/main/java/com/db/williamchart/view/LineChartView.kt | unknown_repo | kotlin | package com.db.williamchart.view
import android.content.Context
import android.content.res.TypedArray
import android.graphics.Color
import android.graphics.LinearGradient
import android.graphics.Paint
import android.graphics.Path
import android.graphics.Shader
import android.util.AttributeSet
import androidx.annotatio... |
app/src/main/java/de/lemke/oneurl/domain/generateURL/GenerateDAGDUseCase.kt | unknown_repo | kotlin | package de.lemke.oneurl.domain.generateURL
import android.content.Context
import android.util.Log
import com.android.volley.NetworkResponse
import com.android.volley.Request
import com.android.volley.RequestQueue
import com.android.volley.toolbox.StringRequest
import dagger.hilt.android.qualifiers.ApplicationContext
... |
common/src/commonMain/kotlin/com/displayer/display/parser/Parser.kt | unknown_repo | kotlin | package com.displayer.display.parser
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.layout.ContentScale
import com.displayer.config.Parameters
import com.displayer.display.Padding
import com.displayer.display.Style
import com.displayer.display.container.ColumnLayout
import com.displayer.display.c... |
app/src/main/java/com/b_lam/resplash/ui/widget/ScrollAwareExtendedFabBehavior.kt | unknown_repo | kotlin | package com.b_lam.resplash.ui.widget
import android.content.Context
import android.util.AttributeSet
import android.view.View
import androidx.coordinatorlayout.widget.CoordinatorLayout
import androidx.core.view.ViewCompat
import com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
class Scrol... |
themes/new-ui/new-ui-standalone/src/main/kotlin/org/jetbrains/jewel/themes/expui/standalone/control/DropdownMenu.kt | unknown_repo | kotlin | package io.kanro.compose.jetbrains.expui.control
import androidx.compose.animation.core.MutableTransitionState
import androidx.compose.foundation.VerticalScrollbar
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.lay... |
app/src/main/java/com/heyanle/easybangumi4/plugin/source/utils/StringHelperImpl.kt | unknown_repo | kotlin | package com.heyanle.easybangumi4.plugin.source.utils
import android.widget.Toast
import com.heyanle.easybangumi4.APP
import com.heyanle.easybangumi4.source_api.utils.api.StringHelper
import com.heyanle.easybangumi4.ui.common.moeDialog
import com.heyanle.easybangumi4.ui.common.moeSnackBar
/**
* Created by HeYanLe on ... |
app/src/main/java/com/idrnd/idvoice/utils/extensions/TabLayoutExtensions.kt | unknown_repo | kotlin | package com.idrnd.idvoice.utils.extensions
import com.google.android.material.tabs.TabLayout
/**
* Add a TabLayout.OnTabSelectedListener that will be invoked when tab selection changes.
*
* <p>Components that add a listener should take care to remove it when finished via {@link
* #removeOnTabSelectedListener(OnTa... |
app/src/main/java/pk/sufiishq/app/ui/main/player/PlayerView.kt | unknown_repo | kotlin | /*
* Copyright 2022-2023 SufiIshq
*
* 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... |
3ds2/src/main/java/com/adyen/checkout/adyen3ds2/Adyen3DS2Component.kt | unknown_repo | kotlin | /*
* Copyright (c) 2019 <NAME>.
*
* This file is open source and available under the MIT license. See the LICENSE file for more info.
*
* Created by caiof on 7/5/2019.
*/
package com.adyen.checkout.adyen3ds2
import android.app.Activity
import android.app.Application
import android.content.Context
import android.... |
android/src/main/java/org/dwbn/plugins/playlist/PlaylistPlugin.kt | unknown_repo | kotlin | package org.dwbn.plugins.playlist
import android.os.Handler
import android.os.Looper
import android.util.Log
import com.devbrackets.android.playlistcore.data.MediaProgress
import com.getcapacitor.*
import com.getcapacitor.annotation.CapacitorPlugin
import org.dwbn.plugins.playlist.data.AudioTrack
import org.json.JSONA... |
app/src/main/java/pl/polsl/workflow/manager/client/ui/coordinator/group/patch/GroupCoordinatorPatchViewModel.kt | unknown_repo | kotlin | package pl.polsl.workflow.manager.client.ui.coordinator.group.patch
import android.app.Application
import androidx.lifecycle.LiveData
import pl.polsl.workflow.manager.client.model.data.Group
import pl.polsl.workflow.manager.client.model.data.GroupPatch
import pl.polsl.workflow.manager.client.model.data.User
import pl.... |
app/src/main/java/com/videoengager/demoapp/AvailabilityActivity.kt | unknown_repo | kotlin | package com.videoengager.demoapp
import android.annotation.SuppressLint
import android.content.Intent
import android.content.SharedPreferences
import android.os.Bundle
import android.view.Gravity
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ProgressBar... |
shared/src/androidMain/kotlin/com/architect/kmpessentials/contacts/KmpContacts.kt | unknown_repo | kotlin | package com.architect.kmpessentials.contacts
import android.content.ContentResolver
import android.content.Intent
import android.provider.ContactsContract
import com.architect.kmpessentials.KmpAndroid
import com.architect.kmpessentials.logging.KmpLogging
import com.architect.kmpessentials.logging.constants.ErrorCodes
... |
app/src/main/java/com/bayraktar/healthybackandneck/ui/Favourite/FavouriteMoveList/MoveListViewModel.kt | unknown_repo | kotlin | package com.bayraktar.healthybackandneck.ui.Favourite.FavouriteMoveList
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.bayraktar.healthybackandneck.data.Models.ExerciseDetailModel.ExerciseDayExercise
i... |
app/src/main/java/me/bakumon/moneykeeper/database/entity/Assets.kt | unknown_repo | kotlin | /*
* Copyright 2018 Bakumon. https://github.com/Bakumon
*
* 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 appli... |
app/src/main/java/eu/kanade/presentation/util/Resources.kt | unknown_repo | kotlin | package eu.kanade.presentation.util
import android.content.res.Resources
import androidx.annotation.ColorInt
import androidx.annotation.DrawableRes
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.graphics.asImageBitmap
import androidx.compose.ui.graphics.p... |
app/src/main/java/com/dkgoody/dtimer/ui/main/MainActivity.kt | unknown_repo | kotlin | package com.dkgoody.dtimer.ui.main
import android.os.Build
import android.os.Bundle
import android.util.Log
import android.view.Menu
import android.view.MenuItem
import android.widget.Toast
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import com.dkgoody.dtimer.DTimerViewModel
imp... |
app/src/main/java/com/to/kotlinmessenger/util/ImageLoader.kt | unknown_repo | kotlin | package com.to.kotlinmessenger.util
import android.graphics.drawable.Drawable
import android.net.Uri
import android.widget.ImageView
import com.bumptech.glide.Glide
import com.bumptech.glide.load.DataSource
import com.bumptech.glide.load.engine.DiskCacheStrategy
import com.bumptech.glide.load.engine.GlideException
imp... |
app/src/main/java/com/example/swiftbargain/ui/cart/view_model/CartViewModel.kt | unknown_repo | kotlin | package com.example.swiftbargain.ui.cart.view_model
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.viewModelScope
import androidx.navigation.toRoute
import com.example.swiftbargain.data.local.room.entity.CartProductEntity
import com.example.swiftbargain.data.models.CouponCodeDto
import com.exampl... |
anko/library/static/commons/src/main/java/dialogs/AndroidSelectors.kt | unknown_repo | kotlin | /*
* Copyright 2016 JetBrains s.r.o.
*
* 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/java/com/haoge/sample/easyandroid/activities/mvp/login/LoginFragment.kt | unknown_repo | kotlin | package com.haoge.sample.easyandroid.activities.mvp.login
import android.os.Bundle
import butterknife.OnClick
import com.haoge.sample.easyandroid.R
import com.haoge.sample.easyandroid.activities.mvp.base.BaseMVPFragment
/**
* @author haoge on 2018/9/4
*/
class LoginFragment: BaseMVPFragment(), LoginView {
val ... |
common-ui/src/main/java/com/skydoves/common_ui/viewholders/ReviewListViewHolder.kt | unknown_repo | kotlin | /*
* Designed and developed by 2019 skydoves (Jaewoong Eum)
*
* 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/com/horizon/lightkvdemo/ui/MainActivity.kt | unknown_repo | kotlin | package com.horizon.lightkvdemo.ui
import android.os.Bundle
import android.text.TextUtils
import android.util.Log
import com.horizon.lightkvdemo.R
import com.horizon.lightkvdemo.base.BaseActivity
import com.horizon.lightkvdemo.config.AppData
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : B... |
app/src/main/java/com/bereguliak/arscheduler/ui/activity/main/MainNavigator.kt | unknown_repo | kotlin | package com.bereguliak.arscheduler.ui.activity.main
import android.support.annotation.UiThread
import com.bereguliak.arscheduler.model.CalendarLocation
@UiThread
interface MainNavigator {
fun showLoadingScreen()
fun showConnectionScreen()
fun showCalendarDetailsScreen(calendar: CalendarLocation)
fun s... |
app/src/main/java/com/vultisig/wallet/ui/screens/keysign/KeysignPeerDiscovery.kt | unknown_repo | kotlin | package com.vultisig.wallet.ui.screens.keysign
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.co... |
note/src/main/java/com/example/note_presentation/component/NoteCard.kt | unknown_repo | kotlin | package com.example.note_presentation.component
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.combinedClickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import an... |
app/src/main/java/com/example/meditationui/Feature.kt | unknown_repo | kotlin | package com.example.meditationui
import androidx.annotation.DrawableRes
import androidx.compose.ui.graphics.Color
data class Feature(
val title :String,
@DrawableRes val iconId:Int,
val lightColor:Color,
val mediumColor:Color,
val darkColor:Color,
)
|
Tutorial1-1Basics/src/main/java/com/smarttoolfactory/tutorial1_1basics/chapter4_state/Tutorial4_2_4Stability.kt | unknown_repo | kotlin | package com.smarttoolfactory.tutorial1_1basics.chapter4_state
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import an... |
app/src/main/java/com/starry/greenstash/widget/configuration/WidgetConfigActivity.kt | unknown_repo | kotlin | /**
* MIT License
*
* Copyright (c) [2022 - Present] <NAME>
*
* 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, co... |
plumber-android/src/main/java/leakcanary/ViewLocationHolderLeakFix.kt | unknown_repo | kotlin | package leakcanary
import android.annotation.SuppressLint
import android.app.Activity
import android.app.Application
import android.os.Build.VERSION
import android.os.Bundle
import android.view.View
import android.view.ViewGroup
import android.widget.FrameLayout
import leakcanary.AndroidLeakFixes.Companion.checkMainTh... |
app/src/main/java/io/homeassistant/companion/android/settings/shortcuts/ManageShortcutsViewModel.kt | unknown_repo | kotlin | package io.homeassistant.companion.android.settings.shortcuts
import android.app.Application
import android.content.Intent
import android.content.pm.ShortcutInfo
import android.content.pm.ShortcutManager
import android.graphics.Bitmap
import android.graphics.PorterDuff
import android.graphics.drawable.Drawable
import ... |
core/src/main/java/be/appwise/core/data/base/TripleTriggerDefaultValue.kt | unknown_repo | kotlin | package be.appwise.core.data.base
import androidx.lifecycle.LiveData
import androidx.lifecycle.MediatorLiveData
/**
* {@link MediatorLiveData} subclass which may observe 3 other {@code LiveData} objects and react on
* {@code OnChanged} events from them. And even manages default values to set when no value has been ... |
app/src/main/java/com/vincent/recipe_mvvm_jetpack/presentation/theme/Theme.kt | unknown_repo | kotlin | package com.vincent.recipe_mvvm_jetpack.presentation.theme
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.MaterialTheme
import androidx.compose.material.ScaffoldState
import androidx.comp... |
app/src/main/java/ch/admin/foitt/pilotwallet/feature/qrscan/presentation/QrScanPermissionScreen.kt | unknown_repo | kotlin | package ch.admin.foitt.pilotwallet.feature.qrscan.presentation
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.activity.result.contract.ActivityResultContracts
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.Si... |
feature-main/src/main/java/com/hoc/flowmvi/ui/main/MainVM.kt | unknown_repo | kotlin | package com.hoc.flowmvi.ui.main
import androidx.lifecycle.viewModelScope
import arrow.core.flatMap
import com.hoc.flowmvi.domain.usecase.GetUsersUseCase
import com.hoc.flowmvi.domain.usecase.RefreshGetUsersUseCase
import com.hoc.flowmvi.domain.usecase.RemoveUserUseCase
import com.hoc.flowmvi.mvi_base.AbstractMviViewMo... |
app/src/main/java/com/example/composedemo/ui/activity/viewmode_string_demo/UiText.kt | unknown_repo | kotlin | package com.example.composedemo.ui.activity.viewmode_string_demo
import android.content.Context
import androidx.annotation.StringRes
import androidx.compose.runtime.Composable
import androidx.compose.ui.res.stringResource
sealed interface UiText {
data class DynamicString(val value: String) : UiText
class Str... |
linea/src/commonMain/kotlin/compose/icons/lineaicons/music/NoteMultiple.kt | unknown_repo | kotlin | package compose.icons.lineaicons.music
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.compose.ui.gr... |
snapshot/src/androidMain/kotlin/com/quickbird/snapshot/Diffing+bitmap.kt | unknown_repo | kotlin | package com.quickbird.snapshot
import android.graphics.Bitmap
import android.graphics.Color
// TODO: Wrap Color
fun Diffing.Companion.bitmap(colorDiffing: Diffing<Int>) = Diffing<Bitmap> { first, second ->
if (first.asByteArray().contentEquals(second.asByteArray())) null
else first.copy(first.config, true).ap... |
photofilterssdk/src/main/java/com/zomato/photofilters/imageprocessors/subfilters/SaturationSubFilter.kt | unknown_repo | kotlin | package com.zomato.photofilters.imageprocessors.subfilters
import android.graphics.Bitmap
import com.zomato.photofilters.imageprocessors.ImageProcessor
import com.zomato.photofilters.imageprocessors.SubFilter
class SaturationSubFilter(val level: Float, override var tag: Any) : SubFilter {
// The Level value is ... |
app/src/main/java/com/example/pocitiselfie/FaceContourGraphic.kt | unknown_repo | kotlin | package com.example.pocitiselfie
import android.graphics.*
import android.graphics.drawable.shapes.RoundRectShape
import android.util.Log
import androidx.annotation.ColorInt
import com.google.mlkit.vision.face.Face
import com.google.mlkit.vision.face.FaceContour
class FaceContourGraphic(
private val overlay: Gra... |
1.0/app/src/main/java/ru/oepak22/simplemusicplayer/screen/playlists/PlayListsActivity.kt | unknown_repo | kotlin | package ru.oepak22.simplemusicplayer.screen.playlists
import android.annotation.SuppressLint
import android.os.Bundle
import android.view.View
import android.widget.EditText
import android.widget.Toast
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclervie... |
feature/listaproduto/src/androidTest/java/com/z1/comparaprecos/feature/listaproduto/presentation/screen/ResumoComparacaoListaScreenTest.kt | unknown_repo | kotlin | package com.z1.comparaprecos.feature.listaproduto.presentation.screen
import androidx.activity.ComponentActivity
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.junit4.createAndroidComposeRule
import androidx.compose.ui.test.onNodeWithText
import androidx.compose.ui.test.onRoot
import... |
src/all/jellyfin/src/eu/kanade/tachiyomi/animeextension/all/jellyfin/Jellyfin.kt | unknown_repo | kotlin | package eu.kanade.tachiyomi.animeextension.all.jellyfin
import android.app.Application
import android.content.Context
import android.content.SharedPreferences
import android.text.InputType
import android.widget.Toast
import androidx.preference.EditTextPreference
import androidx.preference.ListPreference
import android... |
ExoPlayerAdapter/src/exo-analytics-upto-2_16/java/com/mux/stats/sdk/muxstats/SessionDataBindings.kt | unknown_repo | kotlin | package com.mux.stats.sdk.muxstats
import com.google.android.exoplayer2.ExoPlayer
import com.google.android.exoplayer2.SimpleExoPlayer
import com.google.android.exoplayer2.analytics.AnalyticsListener
import com.google.android.exoplayer2.source.hls.HlsManifest
import com.mux.stats.sdk.core.model.SessionTag
import com.m... |
app/src/main/java/eu/zimbelstern/tournant/utils/Converter.kt | unknown_repo | kotlin | package eu.zimbelstern.tournant.utils
import androidx.databinding.InverseMethod
import eu.zimbelstern.tournant.toStringForCooks
import java.text.NumberFormat
@Suppress("unused")
object Converter {
@InverseMethod("hourToTime")
@JvmStatic
fun timeToHour(@Suppress("UNUSED_PARAMETER") oldValue: Int?, value: Int?): St... |
app/src/main/java/com/moemaair/lictionary/feature_dictionary/presentation/WordInfoItem.kt | unknown_repo | kotlin | package com.moemaair.lictionary.feature_dictionary.presentation
import android.annotation.SuppressLint
import android.media.AudioManager
import android.media.MediaPlayer
import android.media.browse.MediaBrowser.MediaItem
import androidx.compose.foundation.layout.*
import androidx.compose.material.Icon
import androidx.... |
app/src/main/java/nerd/tuxmobil/fahrplan/congress/alarms/AlarmServices.kt | unknown_repo | kotlin | @file:JvmName("AlarmServices")
package nerd.tuxmobil.fahrplan.congress.alarms
import android.app.AlarmManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import nerd.tuxmobil.fahrplan.congress.extensions.getAlarmManager
import nerd.tuxmobil.fahrplan.congress.models.Sc... |
app/src/main/kotlin/net/primal/android/core/compose/feed/note/NoteContent.kt | unknown_repo | kotlin | package net.primal.android.core.compose.feed.note
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.layout.Column
import androidx.compose.material3.Surface
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.Modifi... |
core/ktx/src/androidTest/java/androidx/core/graphics/BitmapTest.kt | unknown_repo | kotlin | /*
* Copyright (C) 2017 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 ap... |
sdk/src/main/java/com/exponea/sdk/view/NotificationsPermissionActivity.kt | unknown_repo | kotlin | package com.exponea.sdk.view
import android.Manifest
import android.app.Activity
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Build
import android.os.Bundle
import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
import com.exponea.sdk.receiver.Not... |
source-code/starter-project/app/src/main/java/com/droidcon/easyinvoice/ui/home/nav/TaxNav.kt | unknown_repo | kotlin | /*
* Copyright (c) 2022. Droidcon
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... |
app/src/main/java/com/thkox/homeai/presentation/navigation/WelcomeNavHost.kt | unknown_repo | kotlin | package com.thkox.homeai.presentation.navigation
import android.app.Activity
import android.content.Intent
import androidx.compose.runtime.Composable
import androidx.navigation.NavHostController
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import com.thkox.homeai.data.source... |
app/src/main/java/com/zyqzyq/eyepetizer/ui/view/discover/category/CategoryScrollCardItem.kt | unknown_repo | kotlin | package com.zyqzyq.eyepetizer.ui.view.discover.category
import android.content.Context
import android.content.Intent
import android.graphics.Color
import android.util.AttributeSet
import android.view.View
import android.widget.FrameLayout
import com.youth.banner.BannerConfig
import com.zyqzyq.eyepetizer.R
import com.z... |
app/src/main/kotlin/za/co/dvt/android/showcase/ui/viewapp/screenshots/ScreenshotAdapter.kt | unknown_repo | kotlin | package za.co.dvt.android.showcase.ui.viewapp.screenshots
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.ViewGroup
import timber.log.Timber
import za.co.dvt.android.showcase.databinding.ListItemScreenshotBinding
/**
* @author rebeccafranks
* @since 2017/07/19.
... |
compose/material3/material3/src/commonMain/kotlin/androidx/compose/material3/carousel/CarouselItemScope.kt | unknown_repo | kotlin | /*
* Copyright 2024 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... |
Vinylsg12/app/src/main/java/co/edu/uniandes/vinylsg12/ui/musicians/MusiciansFragment.kt | unknown_repo | kotlin | package co.edu.uniandes.vinylsg12.ui.musicians
import android.animation.ObjectAnimator
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModelProvider
import andr... |
app/common/src/desktopMain/kotlin/com/denchic45/studiversity/ui/components/theme/Typo.kt | unknown_repo | kotlin | package com.denchic45.studiversity.ui.components.theme
import androidx.compose.material3.Typography
import androidx.compose.ui.text.TextStyle
import com.denchic45.studiversity.ui.components.tokens.TypographyKeyTokens
fun Typography.fromToken(value: TypographyKeyTokens): TextStyle {
return when (value) {
T... |
app/src/main/java/eu/kanade/tachiyomi/source/manga/MangaSourceExtensions.kt | unknown_repo | kotlin | package eu.kanade.tachiyomi.source.manga
import android.graphics.drawable.Drawable
import eu.kanade.domain.source.service.SourcePreferences
import eu.kanade.tachiyomi.extension.manga.MangaExtensionManager
import eu.kanade.tachiyomi.source.MangaSource
import tachiyomi.domain.source.manga.model.MangaSourceData
import ta... |
dd-sdk-android/src/main/kotlin/com/datadog/android/v2/api/EventBatchWriter.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.api.storage
import androidx.annotation.W... |
app/src/main/java/vn/loitp/up/a/cv/tv/zoom/ZoomTextViewActivity.kt | unknown_repo | kotlin | package vn.loitp.up.a.cv.tv.zoom
import android.os.Bundle
import com.loitp.annotation.IsFullScreen
import com.loitp.annotation.LogTag
import com.loitp.core.base.BaseActivityFont
import com.loitp.core.common.NOT_FOUND
import com.loitp.core.ext.setSafeOnClickListenerElastic
import vn.loitp.R
import vn.loitp.databinding.... |
health/connect/connect-client/src/main/java/androidx/health/platform/client/request/UnregisterFromDataNotificationsRequest.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... |
data/src/test/java/com/hoc/flowmvi/data/UserRepositoryImplRealAPITest.kt | unknown_repo | kotlin | package com.hoc.flowmvi.data
import android.util.Log
import com.hoc.flowmvi.core.dispatchers.AppCoroutineDispatchers
import com.hoc.flowmvi.domain.repository.UserRepository
import com.hoc.flowmvi.test_utils.rightValueOrThrow
import java.time.LocalDateTime
import java.time.format.DateTimeFormatter
import kotlin.test.Te... |
library-mvvmlazy/src/main/java/com/rui/mvvmlazy/utils/constant/MemoryConstants.kt | unknown_repo | kotlin | package com.rui.mvvmlazy.utils.constant
import com.rui.mvvmlazy.utils.app.PathUtils.Companion.getExtStoragePath
import com.rui.mvvmlazy.utils.app.PathUtils.Companion.getExtDownloadsPath
import com.rui.mvvmlazy.utils.app.PathUtils.Companion.getExtPicturesPath
import com.rui.mvvmlazy.utils.app.PathUtils.Companion.getExt... |
MapboxSearch/sample/src/main/java/com/mapbox/search/sample/api/OfflineSearchAlongRouteExampleActivity.kt | unknown_repo | kotlin | package com.mapbox.search.sample.api
import android.Manifest
import android.content.Context
import android.content.pm.PackageManager
import android.os.Bundle
import android.util.Log
import android.view.View
import android.view.inputmethod.EditorInfo
import android.view.inputmethod.InputMethodManager
import android.wid... |
app/src/main/java/com/solana/mwallet/ui/signpayload/SignPayloadFragment.kt | unknown_repo | kotlin | /*
* Copyright (c) 2022 Solana Mobile Inc.
*/
package com.solana.mwallet.ui.signpayload
import android.net.Uri
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.activityViewModels
impo... |
app/src/main/java/com/mohmmed/mosa/eg/towmmen/data/local/db/migration/Migration_5_6.kt | unknown_repo | kotlin | package com.mohmmed.mosa.eg.towmmen.data.local.db.migration
import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase
val migration_5_6 = object: Migration(5, 6){
override fun migrate(db: SupportSQLiteDatabase) {
db.execSQL(" ALTER TABLE invoice_items ADD COLUMN 'purchaseDa... |
app/src/main/java/com/example/androidcurriculum/data/LoginDataSource.kt | unknown_repo | kotlin | package com.example.androidcurriculum.data
import android.database.Cursor
import com.example.androidcurriculum.Database.MyDatabaseHelper
import com.example.androidcurriculum.MyApplication
import com.example.androidcurriculum.data.model.LoggedInUser
/**
* Class that handles authentication w/ login credentials and ret... |
app/src/main/java/org/d3if2146/hitungbmi/ui/histori/HistoriViewModel.kt | unknown_repo | kotlin | package org.d3if2146.hitungbmi.ui.histori
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import org.d3i... |
shared/src/commonMain/kotlin/dev/sasikanth/rss/reader/placeholder/PlaceholderScreen.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 agreed to in wr... |
lightbulb-easyrecyclerview/src/main/java/com/github/rooneyandshadows/lightbulb/easyrecyclerview/layout_managers/HorizontalFlowLayoutManager.kt | unknown_repo | kotlin | package com.github.rooneyandshadows.lightbulb.easyrecyclerview.layout_managers
import androidx.recyclerview.widget.RecyclerView
import com.github.rooneyandshadows.lightbulb.easyrecyclerview.EasyRecyclerView
import com.github.rooneyandshadows.lightbulb.recycleradapters.abstraction.EasyRecyclerAdapter
import com.github.... |
app/src/androidTest/java/com/noisyninja/androidlistpoc/modules/NetworkModuleTest.kt | unknown_repo | kotlin | package com.noisyninja.androidlistpoc.modules
import android.support.test.runner.AndroidJUnit4
import com.noisyninja.androidlistpoc.BuildConfig
import com.noisyninja.androidlistpoc.BuildConfig.RESULT_COUNT
import com.noisyninja.androidlistpoc.layers.network.NetworkModule
import okhttp3.OkHttpClient
import okhttp3.logg... |
feature/timers/presentation/src/commonMain/kotlin/org/timemates/app/timers/ui/TimerItem.kt | unknown_repo | kotlin | package io.timemates.app.timers.ui
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
impo... |
client_delivery/shared/src/commonMain/kotlin/presentation/login/composable/WrongPermissionBottomSheet.kt | unknown_repo | kotlin | package presentation.login.composable
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.wrapContentHeight
import androidx.compo... |
app/src/main/java/com/spring/musk/antibloater/viewmodels/MainActivityViewModel.kt | unknown_repo | kotlin | package com.spring.musk.antibloater.viewmodels
import android.app.Application
import android.os.Build
import androidx.core.content.edit
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import android.preference.PreferenceManager
import androidx.ann... |
app/src/test/java/com/mustafa/movieguideapp/viewmodel/MovieSearchViewModelTest.kt | unknown_repo | kotlin | package com.mustafa.movieguideapp.viewmodel
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Observer
import com.mustafa.movieguideapp.models.Resource
import com.mustafa.movieguideapp.models.entity.Movie
import com.mustafa.movieguide... |
compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/text/input/UndoState.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-features/show-details/src/main/kotlin/com/thomaskioko/showdetails/SimilarShowsScreen.kt | unknown_repo | kotlin | package com.thomaskioko.showdetails
import androidx.compose.runtime.Composable
@Composable
fun SimilarShowsScreen() {
}
|
app/src/main/java/com/login/demo/appview/authentication/login/view/LoginFragment.kt | unknown_repo | kotlin | package com.login.demo.appview.authentication.login.view
import android.os.Bundle
import android.view.View
import androidx.databinding.ViewDataBinding
import androidx.lifecycle.Observer
import com.login.base.base.BaseFragment
import com.login.base.base.IFragmentState
import com.login.base.model.Resource
import com.log... |
exercises/exercise_13/StepCounter/app/src/main/java/fi/tuni/sinipelto/stepcounter/UserPrompt.kt | unknown_repo | kotlin | package fi.tuni.sinipelto.stepcounter
import android.app.AlertDialog
import android.content.Context
import android.content.DialogInterface
// Class for creating yes-no, neutral, or non-interactive dialog prompts to the user.
// Allows for either accept-only or both accept/deny dialogs with caller-provided action call... |
exercises/exercise_13/StepCounter/app/src/main/java/fi/tuni/sinipelto/stepcounter/UserPrompt.kt | unknown_repo | kotlin | package fi.tuni.sinipelto.stepcounter
import android.app.AlertDialog
import android.content.Context
import android.content.DialogInterface
// Class for creating yes-no, neutral, or non-interactive dialog prompts to the user.
// Allows for either accept-only or both accept/deny dialogs with caller-provided action call... |
app/src/main/java/com/example/efpro/notizen/Activities/LoginActivity.kt | unknown_repo | kotlin | package com.example.efpro.notizen.Activities
/*This is an activity from Firebase al copyrights reserved*/
/*We took these activity from Firebase and make some changes*/
import android.content.Intent
import android.os.Bundle
import android.text.TextUtils
import android.util.Log
import android.view.View
import android.v... |
networksurvey/src/main/java/com/craxiom/networksurvey/ui/wifi/WifiSpectrumScreen.kt | unknown_repo | kotlin | package com.craxiom.networksurvey.ui.wifi
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
import androidx.compose.fo... |
app/src/main/java/com/mobjoy/gemini_tryout/MainActivity.kt | unknown_repo | kotlin | package com.mobjoy.gemini_tryout
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.appcompat.app.AppCompatDelegate
import androidx.core.view.WindowCompat
import androidx.core.view.isVisible
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.lifecycleScope
impor... |
spark/src/main/kotlin/com/adevinta/spark/components/toggles/SwitchDefaults.kt | unknown_repo | kotlin | /*
* Copyright (c) 2023 Adevinta
*
* 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, publish, d... |
app/src/main/kotlin/com/glodanif/bluetoothchat/data/model/MessagesStorageImpl.kt | unknown_repo | kotlin | package com.glodanif.bluetoothchat.data.model
import android.content.Context
import android.os.Handler
import com.glodanif.bluetoothchat.data.database.Storage
import com.glodanif.bluetoothchat.data.database.MessagesDao
import com.glodanif.bluetoothchat.data.entity.ChatMessage
import java.io.File
import kotlin.concurre... |
feature_feed_url_hook/src/main/java/com/phicdy/mycuration/feedurlhook/FeedUrlHookPresenter.kt | unknown_repo | kotlin | package com.phicdy.mycuration.feedurlhook
import android.content.Intent
import com.phicdy.mycuration.data.repository.RssRepository
import com.phicdy.mycuration.domain.rss.RssParseExecutor
import com.phicdy.mycuration.domain.rss.RssParseResult
import com.phicdy.mycuration.domain.rss.RssParser
import com.phicdy.mycurati... |
app/src/main/java/com/pri/architecture_boilerplate/binding/FragmentBindingAdapters.kt | unknown_repo | kotlin | /*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
fetch2/src/main/java/com/tonyodev/fetch2/database/migration/MigrationTwoToThree.kt | unknown_repo | kotlin | package com.tonyodev.fetch2.database.migration
import android.arch.persistence.db.SupportSQLiteDatabase
import com.tonyodev.fetch2.EnqueueAction
import com.tonyodev.fetch2.database.DownloadDatabase
class MigrationTwoToThree : Migration(2, 3) {
override fun migrate(database: SupportSQLiteDatabase) {
datab... |
shared/ui-widget/src/main/java/ru/maksonic/rdcompose/shared/ui_widget/viewstate/LoadingViewState.kt | unknown_repo | kotlin | package ru.maksonic.rdcompose.shared.ui_widget.viewstate
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.size
import androidx.compose.material.CircularProgressIndicator
import and... |
android-sdk/src/main/java/webtrekk/android/sdk/Webtrekk.kt | unknown_repo | kotlin | /*
* MIT License
*
* Copyright (c) 2019 Webtrekk GmbH
*
* 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, co... |
app/src/main/java/org/bxkr/octodiary/screens/navsections/daybook/CalendarRow.kt | unknown_repo | kotlin | package org.bxkr.octodiary.screens.navsections.daybook
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.fo... |
features/characters_favorites/src/test/kotlin/com/vmadalin/dynamicfeatures/caractersfavorites/ui/favorite/adapter/CharactersFavoriteTouchHelperTest.kt | unknown_repo | kotlin | /*
* Copyright 2021 vyshas
*
* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.