file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/tech/salroid/filmy/fragment/CrewFragment.kt | unknown_repo | kotlin | package tech.salroid.filmy.fragment
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.app.ActivityOptionsCompat
import androidx.core.util.Pair
import androidx.fragment.app.Fragment
import androidx.recycl... |
app/src/main/java/com/rajchenbergstudios/hoygenda/ui/core/pastday/DayDetailsViewModel.kt | unknown_repo | kotlin | package com.rajchenbergstudios.hoygenda.ui.core.pastday
import androidx.lifecycle.*
import com.rajchenbergstudios.hoygenda.data.day.Day
import com.rajchenbergstudios.hoygenda.data.prefs.SortOrder
import com.rajchenbergstudios.hoygenda.data.today.journalentry.JournalEntry
import com.rajchenbergstudios.hoygenda.data.tod... |
feature-staking-impl/src/main/java/jp/co/soramitsu/feature_staking_impl/presentation/staking/StakingViewModel.kt | unknown_repo | kotlin | package jp.co.soramitsu.feature_staking_impl.presentation.staking
import androidx.lifecycle.LiveData
import androidx.lifecycle.viewModelScope
import jp.co.soramitsu.common.account.AddressIconGenerator
import jp.co.soramitsu.common.account.AddressModel
import jp.co.soramitsu.common.base.BaseViewModel
import jp.co.soram... |
app/src/main/java/org/p2p/wallet/common/mvp/BaseMvpActivity.kt | unknown_repo | kotlin | package org.p2p.wallet.common.mvp
import android.os.Bundle
import android.view.View
import android.view.ViewGroup
import androidx.annotation.CallSuper
import androidx.appcompat.app.AppCompatActivity
import com.google.android.material.snackbar.Snackbar
import org.p2p.core.common.TextContainer
import org.p2p.uikit.nativ... |
app/src/main/java/xhh/example/com/fristproject/mydrawable/InsetActivity.kt | unknown_repo | kotlin | package xhh.example.com.fristproject.mydrawable
import android.graphics.drawable.ClipDrawable
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_clip.*
import xhh.example.com.fristproject.R
class InsetActivity : AppCompatActivity() {
override f... |
editadapterlib/src/main/java/top/i97/editadapterlib/adapter/BaseQuickEditModeAdapter.kt | unknown_repo | kotlin | /*
MIT License
Copyright (c) 2020 Plain
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, distribu... |
drop-in/src/main/java/com/adyen/checkout/dropin/internal/ui/BacsDirectDebitDialogFragment.kt | unknown_repo | kotlin | /*
* Copyright (c) 2021 Adyen N.V.
*
* This file is open source and available under the MIT license. See the LICENSE file for more info.
*
* Created by ozgur on 19/11/2021.
*/
package com.adyen.checkout.dropin.internal.ui
import android.app.Dialog
import android.os.Bundle
import android.view.LayoutInflater
impo... |
src/main/java/com/fynd/nitrozen/nitrozeninput/drawer/ErrorTextDrawer.kt | unknown_repo | kotlin | package com.fynd.nitrozen.nitrozeninput.drawer
import android.graphics.Typeface
import android.text.TextUtils
import android.view.Gravity
import android.view.View
import android.widget.LinearLayout
import android.widget.TextView
import androidx.core.content.ContextCompat
import androidx.core.content.res.ResourcesCompa... |
shcDecoder/src/androidTest/java/ca/bc/gov/shcdecoder/BcCardVerifierTest.kt | unknown_repo | kotlin | package ca.bc.gov.shcdecoder
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
import ca.bc.gov.shcdecoder.model.ImmunizationStatus
import kotlinx.coroutines.runBlocking
import org.junit.Assert.assertEquals
import org.junit.Before
import org.junit.Test
impor... |
app/src/main/java/com/primalabs/primatodo/ui/MainActivity.kt | unknown_repo | kotlin | package com.primalabs.primatodo.ui
import android.os.Bundle
import androidx.activity.compose.setContent
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.runtime.*
import androidx.compose.ui.platform.LocalContext
import androidx.hilt.navigation.HiltViewModelFactory
import androidx.lifecycle.viewm... |
photoselector/src/main/java/com/kelin/photoselector/callback/factory/TakePictureCallbackFactory.kt | unknown_repo | kotlin | package com.kelin.photoselector.callback.factory
import android.app.Activity
import android.content.ContentValues
import android.content.Context
import android.content.Intent
import android.media.MediaMetadataRetriever
import android.media.MediaScannerConnection
import android.os.*
import android.provider.MediaStore
i... |
Example/TestApp/src/main/java/org/audienzz/mobile/testapp/adapter/GamRenderApiInterstitialAdHolder.kt | unknown_repo | kotlin | package org.audienzz.mobile.testapp.adapter
import android.app.Activity
import android.content.res.Configuration
import android.view.ViewGroup
import org.audienzz.mobile.api.data.AudienzzAdUnitFormat
import org.audienzz.mobile.api.exceptions.AudienzzAdException
import org.audienzz.mobile.api.rendering.AudienzzIntersti... |
src/main/kotlin/ui/packages/PackagesViewModel.kt | unknown_repo | kotlin | package org.ossreviewtoolkit.workbench.ui.packages
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.launch
import org.ossreviewtoolkit.model.Identifier
import org.ossreviewt... |
lib/src/main/java/com/niallermoran/charteasy/Helper.kt | unknown_repo | kotlin | import android.graphics.Color
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.ui.text.TextMeasurer
import androidx.compose.ui.unit.Density
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.LayoutDirection
import androidx.compose.ui.unit.dp
import com.niallermoran.chartea... |
shipments/src/androidTest/java/com/calebk/shipments/shipment/ShipmentScreenTest.kt | unknown_repo | kotlin | /*
* Copyright 2024 Movemate
*
* 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... |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/Trillium.kt | unknown_repo | kotlin | package me.localx.icons.rounded.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
im... |
app/src/main/java/com/lovenottiesmobile/lovenotties_v1/LoadingActivity.kt | unknown_repo | kotlin | package com.lovenottiesmobile.lovenotties_v1
import android.content.Intent
import android.graphics.drawable.AnimationDrawable
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.LinearLayout
import android.widget.TextView
import com.google.android.mat... |
presentation/src/main/java/com/krakert/tracker/ui/tracker/overview/TrackerOverviewScreen.kt | unknown_repo | kotlin | package com.krakert.tracker.ui.tracker.overview
import androidx.compose.foundation.clickable
import androidx.compose.foundation.focusable
import androidx.compose.foundation.gestures.animateScrollBy
import androidx.compose.foundation.gestures.scrollBy
import androidx.compose.foundation.layout.Arrangement
import android... |
app/common/src/commonJvmMain/kotlin/com/denchic45/studiversity/ui/studygroup/members/StudyGroupMembersComponent.kt | unknown_repo | kotlin | package com.denchic45.studiversity.ui.studygroup.members
import com.arkivanov.decompose.ComponentContext
import com.denchic45.studiversity.api.role.model.Capability
import com.denchic45.studiversity.api.role.model.Role
import com.denchic45.studiversity.domain.model.GroupMembers
import com.denchic45.studiversity.domain... |
app/src/main/java/com/tamzi/speakers/navigation/SpeakerNavHost.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 req... |
app/src/main/java/com/example/myapplication/widget/FGandBGWidgets/BuildRequest.kt | unknown_repo | kotlin | package com.example.myapplication.widget.FGandBGWidgets
import androidx.compose.runtime.mutableStateOf
import okhttp3.FormBody
import okhttp3.Request
var selectedColors=null
val httpLink="https://183a-2400-adc5-458-8a00-8918-3c29-6c5f-9880.ngrok-free.app"
val url=httpLink+"/req"
fun buildRequest(formBody: FormBody)... |
app/src/main/java/com/example/myapplication/widget/FGandBGWidgets/BuildRequest.kt | unknown_repo | kotlin | package com.example.myapplication.widget.FGandBGWidgets
import androidx.compose.runtime.mutableStateOf
import okhttp3.FormBody
import okhttp3.Request
var selectedColors=null
val httpLink="https://183a-2400-adc5-458-8a00-8918-3c29-6c5f-9880.ngrok-free.app"
val url=httpLink+"/req"
fun buildRequest(formBody: FormBody)... |
JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/ext/download/DownLoadManager.kt | unknown_repo | kotlin | package me.hgj.jetpackmvvm.ext.download
import android.os.Looper
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.isActive
import kotlinx.coroutines.withContext
import me.hgj.jetpackmvvm.ext.util.logi
import okhttp3.OkHttpClient
import retrofit2.Retrofit
import j... |
solar/src/main/java/com/chiksmedina/solar/boldduotone/call/RecordMinimalistic.kt | unknown_repo | kotlin | package com.chiksmedina.solar.boldduotone.call
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.Companio... |
plugins/parcelize/parcelize-compiler/testData/box/functions.kt | unknown_repo | kotlin | // WITH_STDLIB
// LAMBDAS: CLASS
@file:JvmName("TestKt")
package test
import kotlinx.android.parcel.*
import android.os.Parcel
import android.os.Parcelable
@Parcelize
data class Test(val callback: () -> Int = { 0 }, val suspendCallback: suspend () -> Int = { 0 }) : Parcelable
fun box() = parcelTest { parcel ->
... |
performance/performance/src/main/java/com/emergetools/test/EmergeLocalJUnit4ClassRunner.kt | unknown_repo | kotlin | package com.emergetools.test
import androidx.benchmark.perfetto.ExperimentalPerfettoCaptureApi
import androidx.benchmark.perfetto.ExperimentalPerfettoTraceProcessorApi
import androidx.benchmark.perfetto.PerfettoTrace
import androidx.benchmark.perfetto.PerfettoTraceProcessor
import androidx.test.internal.runner.junit4.... |
app/src/main/java/com/jthou/wanandroidkotlin/fragment/KnowledgeSystemFragment.kt | unknown_repo | kotlin | package com.jthou.wanandroidkotlin.fragment
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.lifecycle.Observer
import androidx.recyclerview.widget.LinearLayoutManager
import com.jthou.wanandroidkotlin.adapter.KnowledgeSystemAdapter
impo... |
dicoding/belajar-fundamental-aplikasi-android/AndroidKtxSingleEvent/app/src/main/java/id/my/mrgsrylm/androidktxsingleevent/ReviewAdapter.kt | unknown_repo | kotlin | package id.my.mrgsrylm.androidktxsingleevent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
class ReviewAdapter(private val listReview: List<String>) :
RecyclerView.Adapter<ReviewAdapter.View... |
composeApp/src/commonMain/kotlin/data/EmojiList.kt | unknown_repo | kotlin | package data
import androidx.compose.ui.graphics.Color
import kotlinx.collections.immutable.toImmutableList
import ui.screen.emojis.model.EmojiUiModel
object EmojiList {
private val emojiList by lazy {
listOf(
"\uD83D\uDE00", // 😀 Grinning Face
"\uD83D\uDE01", // 😁 Beaming Face ... |
app/src/main/java/com/serhatd/streamtapedownloader/ui/helper/ToastManager.kt | unknown_repo | kotlin | package com.serhatd.streamtapedownloader.ui.helper
import android.content.Context
import android.widget.Toast
import com.serhatd.streamtapedownloader.R
class ToastManager(private val context: Context) {
fun showMessage(toastMessage: ToastMessage, message: String = "") {
val msg = when(toastMessage) {
... |
app/src/main/java/com/sinthoras/randograf/cardviews/CardView.kt | unknown_repo | kotlin | package com.sinthoras.randograf.cardviews
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.sinthoras.randograf.cards.Card
abstract class CardView protected constructor(contentLayerID: Int) : Fragment(con... |
app/src/main/java/com/projectAnya/stunthink/presentation/screen/monitoring/child/list/ChildListViewModel.kt | unknown_repo | kotlin | package com.projectAnya.stunthink.presentation.screen.monitoring.child.list
import androidx.compose.runtime.State
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.projectAnya.stunthink.domain.common.Resource
import com.projectAnya.st... |
app/src/androidTest/java/com/adammcneilly/toa/addtask/ui/AddTaskContentTest.kt | unknown_repo | kotlin | package com.adammcneilly.toa.addtask.ui
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.assertIsFocused
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.compose.ui.test.onNodeWithTag
import androidx.compose.ui.test.onNodeWithText
import com.adammcneilly.toa.add... |
app/src/main/java/com/example/aifash/ui/users/VoucherAdapter.kt | unknown_repo | kotlin | package com.example.aifash.ui.users
import android.content.Context
import android.content.SharedPreferences
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.... |
ospf-kotlin-utils/src/main/fuookami/ospf/kotlin/utils/parallel/SumOf.kt | unknown_repo | kotlin | package fuookami.ospf.kotlin.utils.parallel
import kotlinx.coroutines.*
import fuookami.ospf.kotlin.utils.math.*
import fuookami.ospf.kotlin.utils.error.*
import fuookami.ospf.kotlin.utils.operator.*
import fuookami.ospf.kotlin.utils.functional.*
suspend inline fun <T, U> Iterable<T>.sumOfParallelly(
constants: A... |
library/src/main/java/com/github/pelmenstar1/rangecalendar/selection/DefaultSelectionTransitionController.kt | unknown_repo | kotlin | package com.github.pelmenstar1.rangecalendar.selection
import android.graphics.PointF
import android.graphics.RectF
import androidx.core.graphics.component1
import androidx.core.graphics.component2
import com.github.pelmenstar1.rangecalendar.CellMeasureManager
import com.github.pelmenstar1.rangecalendar.utils.lerp
cl... |
app/src/main/java/com/raion/furnitale/ui/categories/outdoor/OutdoorFragment.kt | unknown_repo | kotlin | package com.raion.furnitale.ui.categories.outdoor
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.viewbinding.library.fragment.viewBinding
import androidx.recyclerview.widget.GridLayoutManager
import... |
android/app/src/main/java/com/algorand/android/modules/inapppin/deletealldata/ui/DeleteAllDataConfirmationBottomSheet.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/us/egek/proteinbar/sample/MainActivity.kt | unknown_repo | kotlin | package com.wildbook.wildbookmobile
import android.os.Bundle
import android.support.design.widget.Snackbar
import android.support.v7.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
... |
app/src/main/java/tipz/viola/webview/HitTestAlertDialog.kt | unknown_repo | kotlin | // Copyright (c) 2023-2024 Tipz Team
// SPDX-License-Identifier: Apache-2.0
package tipz.viola.webview
import android.content.Context
import android.content.DialogInterface
import android.content.Intent
import android.graphics.BitmapFactory
import android.net.Uri
import android.os.Bundle
import android.view.LayoutInf... |
mcumgr-core/src/main/java/io/runtime/mcumgr/transfer/Uploader.kt | unknown_repo | kotlin | package io.runtime.mcumgr.transfer
import io.runtime.mcumgr.McuMgrScheme
import kotlinx.coroutines.channels.ReceiveChannel
import java.lang.IllegalArgumentException
import kotlin.math.min
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.MutableStateFlow
import... |
QuaBionicApp/app/src/main/java/com/bionichamza/quabionicapp/data/RemoteDataSource.kt | unknown_repo | kotlin | package com.bionichamza.quabionicapp.data
import android.util.JsonToken
import com.bionichamza.quabionicapp.data.network.ProstheticsAPI
import com.bionichamza.quabionicapp.models.InspirationWord
import com.bionichamza.quabionicapp.models.Prosthetics
import com.bionichamza.quabionicapp.models.ProstheticsInfo
import ret... |
app/src/main/java/com/ezpnix/writeon/presentation/screens/edit/components/CustomTextField.kt | unknown_repo | kotlin | package com.ezpnix.writeon.presentation.screens.edit.components
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.Text
import androidx.compose.mater... |
CV_App/app/src/main/java/com/app/cv/ReferencesActivity.kt | unknown_repo | kotlin | package com.app.cv
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_contact.*
import kotlinx.android.synthetic.main.activity_references.*
class ReferencesActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
... |
story/src/main/java/com/yavuzmobile/story/CombinedAnimation.kt | unknown_repo | kotlin | package com.yavuzmobile.story
import android.animation.PropertyValuesHolder
import android.animation.ValueAnimator
import android.content.Context
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.RectF
import android.graphics.SweepGradient
import android.util.AttributeSet
import andr... |
app/src/main/java/com/nanchen/rxjava2examples/module/rxjava2/anmis/item/RxAnmiatorActivity.kt | unknown_repo | kotlin | package com.nanchen.rxjava2examples.module.rxjava2.anmis.item
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import com.nanchen.rxjava2examples.R
/**
* Description:
* Author: PC306
* Date: 2019/5/26
*/
class RxAnmiatorActivity:AppCompatActivity() {
override fun onCreate(savedInstan... |
android/src/main/java/com/rnvideoplayer/ui/controls/BottomControls.kt | unknown_repo | kotlin | package com.rnvideoplayer.ui.controls
import android.annotation.SuppressLint
import android.content.Context
import android.util.TypedValue
import android.view.Gravity
import android.view.ViewGroup
import android.widget.FrameLayout
import android.widget.ImageButton
import android.widget.LinearLayout
import androidx.ann... |
manager/src/main/java/com/markoid/manager/managers/MapsManager.kt | unknown_repo | kotlin | package com.markoid.manager.managers
import android.content.Context
import android.content.res.Resources
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.PorterDuff
import android.util.Log
import android.view.LayoutInflater
import android.view.View
imp... |
pushreceiver/src/main/java/pro/devonics/push/PushCache.kt | unknown_repo | kotlin | package pro.devonics.push
import android.content.Context
private const val TAG = "PushCache"
class PushCache {
private val PUSH_CACHE = "push_cache"
private val REGISTRATION_ID = "registration_id"
private val SUBSCRIBE_STATUS = "subscribe_status"
private val INTERNAL_ID = "internal_id"
private v... |
timber-lint/src/test/java/timber/lint/WrongTimberUsageDetectorTest.kt | unknown_repo | kotlin | package timber.lint
import com.android.tools.lint.checks.infrastructure.TestFiles.java
import com.android.tools.lint.checks.infrastructure.TestFiles.kotlin
import com.android.tools.lint.checks.infrastructure.TestFiles.manifest
import com.android.tools.lint.checks.infrastructure.TestLintTask.lint
import org.junit.Test
... |
app/src/main/java/com/certified/audionote/ui/NotesViewModel.kt | unknown_repo | kotlin | /*
* Copyright (c) 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 i... |
android/src/main/kotlin/com/cjx/x5_webview/JavascriptChannel.kt | unknown_repo | kotlin | package com.cjx.x5_webview
import android.content.Context
import android.os.Handler
import android.os.Looper
import android.webkit.JavascriptInterface
import io.flutter.plugin.common.MethodChannel
class JavascriptChannel(val name: String, val channel: MethodChannel, val context: Context) {
@JavascriptInterface
... |
app/src/main/java/bruhcollective/itaysonlab/jetispot/ui/dac/components_home/ToolbarComponent2Binder.kt | unknown_repo | kotlin | package bruhcollective.itaysonlab.jetispot.ui.dac.components_home
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.statusBarsPadding
import androidx.compose.foundation.shape.... |
app/src/androidTest/java/ru/claus42/anothertodolistapp/tests/robots/TodoItemListTestRobot.kt | unknown_repo | kotlin | package ru.claus42.anothertodolistapp.tests.robots
import androidx.recyclerview.widget.RecyclerView
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.ViewActions
import androidx.test.espresso.contrib.RecyclerViewActions
import androidx.test.espresso.matcher.ViewMatchers
import androidx... |
app/src/main/java/com/vpr/scheduleapp/data/database/schedule/converters/DirectionConverter.kt | unknown_repo | kotlin | package com.vpr.scheduleapp.data.database.schedule.converters
import androidx.room.TypeConverter
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import com.vpr.scheduleapp.data.database.schedule.entity.DirectionEntity
class DirectionConverter {
@TypeConverter
fun fromList(value: List<Dire... |
compose/material3/material3/src/androidUnitTest/kotlin/androidx/compose/material3/carousel/MultiBrowseTest.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... |
app/src/main/kotlin/com/aquamorph/frcmanager/fragments/AwardFragment.kt | unknown_repo | kotlin | package com.aquamorph.frcmanager.fragments
import android.content.SharedPreferences
import android.os.Bundle
import android.os.SystemClock
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.aquamorph.frcmanager.R
import com.aquamorph.frcmanager.adapters.AwardAdapter
im... |
ECommerceTrainingProject/app/src/main/java/com/training/ecommerce/ui/home/MainActivity.kt | unknown_repo | kotlin | package com.training.ecommerce.ui.home
import android.app.ActivityOptions
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.util.Log
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.core.splashscreen.SplashScreen.Companion.i... |
rxmusicplayer/src/main/java/com/orfium/rx/musicplayer/playback/BasePlayback.kt | unknown_repo | kotlin | package com.orfium.rx.musicplayer.playback
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.media.AudioAttributes
import android.media.AudioFocusRequest
import android.media.AudioManager
import android.net.wifi.Wifi... |
app/src/main/java/com/github/leonardoz/kanbapp/view/fragment/BoardsListFragment.kt | unknown_repo | kotlin | package com.github.leonardoz.kanbapp.view.fragment
import android.app.AlertDialog
import android.content.DialogInterface
import android.os.Bundle
import android.view.LayoutInflater
import android.view.MenuItem
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.fragment.a... |
app/src/main/java/com/jinwoo/machine_learning_kit/MainActivity.kt | unknown_repo | kotlin | package com.jinwoo.machine_learning_kit
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_main.*
import org.jetbrains.anko.sdk27.coroutines.onClick
import org.jetbrains.anko.startActivity
class MainActivity: AppCompatActivity() {
override fun o... |
glib-core/src/main/java/com/glib/core/ui/pager/GViewPager.kt | unknown_repo | kotlin | package com.glib.core.ui.pager
import android.content.Context
import androidx.viewpager.widget.PagerAdapter
import androidx.viewpager.widget.ViewPager
import android.util.AttributeSet
import com.glib.core.ui.Ui
import com.glib.core.ui.view.ViewHelper
import java.util.*
class GViewPager : ViewPager {
private var h... |
next/kmp/browser/src/mobileMain/kotlin/org/dweb_browser/browser/desk/render/deskHelper.mobile.kt | unknown_repo | kotlin | package org.dweb_browser.browser.desk.render
import androidx.compose.foundation.gestures.awaitDragOrCancellation
import androidx.compose.foundation.gestures.awaitEachGesture
import androidx.compose.foundation.gestures.awaitFirstDown
import androidx.compose.foundation.gestures.awaitTouchSlopOrCancellation
import androi... |
yetutil/src/main/java/yet/ui/widget/listview/itemview/TextItemView.kt | unknown_repo | kotlin | package yet.ui.widget.listview.itemview
import android.content.Context
import android.graphics.drawable.Drawable
import android.support.annotation.DrawableRes
import android.widget.TextView
import yet.theme.IconSize
import yet.theme.Space
import yet.ui.ext.*
import yet.ui.res.D
import yet.ui.res.sized
/**
* Created ... |
app/src/main/java/com/vitorpamplona/amethyst/ui/note/types/PrivateMessage.kt | unknown_repo | kotlin | /**
* Copyright (c) 2024 <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,
* copy, modify, merge, publish, di... |
conductor/src/test/java/com/bluelinelabs/conductor/util/ActivityProxy.kt | unknown_repo | kotlin | package com.bluelinelabs.conductor.util
import android.content.pm.ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE
import android.content.pm.ActivityInfo.SCREEN_ORIENTATION_PORTRAIT
import android.os.Bundle
import androidx.annotation.IdRes
import com.bluelinelabs.conductor.R
import org.robolectric.Robolectric
class Activity... |
app/src/main/java/com/kylecorry/trail_sense/tools/weather/infrastructure/subsystem/WeatherSubsystem.kt | unknown_repo | kotlin | package com.kylecorry.trail_sense.weather.infrastructure.subsystem
import android.annotation.SuppressLint
import android.content.Context
import com.kylecorry.andromeda.core.cache.MemoryCachedValue
import com.kylecorry.andromeda.core.topics.ITopic
import com.kylecorry.andromeda.core.topics.Topic
import com.kylecorry.an... |
app/src/main/kotlin/com/digian/clean/features/movies/presentation/MoviesActivity.kt | unknown_repo | kotlin | package com.digian.clean.features.movies
import android.os.Bundle
import androidx.annotation.VisibleForTesting
import androidx.appcompat.app.AppCompatActivity
import androidx.test.espresso.IdlingResource
import com.digian.clean.R
import com.digian.clean.features.movies.presentation.IdlingResource.SimpleIdlingResource
... |
app/src/main/java/com/example/c_19tracker/StateAdapter.kt | unknown_repo | kotlin | package com.example.c_19tracker
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.BaseAdapter
import kotlinx.android.synthetic.main.item_list.view.*
class StateAdapter (val list: List<StatewiseItem>): BaseAdapter(){
override fun getView(position: Int, ... |
common/compose/src/main/kotlin/team/duckie/app/android/common/compose/ui/dialog/SelectableItemBottomSheetDialog.kt | unknown_repo | kotlin | /*
* Designed and developed by Duckie Team, 2022
*
* Licensed under the MIT.
* Please see full license: https://github.com/duckie-team/duckie-android/blob/develop/LICENSE
*/
@file:OptIn(ExperimentalMaterialApi::class)
package team.duckie.app.android.common.compose.ui.dialog
import androidx.compose.foundation.la... |
app/src/main/java/com/cameronvwilliams/raise/util/ActiveCardDiffCallback.kt | unknown_repo | kotlin | package com.cameronvwilliams.raise.util
import androidx.recyclerview.widget.DiffUtil
import com.cameronvwilliams.raise.data.model.ActiveCard
class ActiveCardDiffCallback(private val current: List<ActiveCard>, private val next: List<ActiveCard>) : DiffUtil.Callback() {
override fun areItemsTheSame(oldItemPosition:... |
app/src/main/java/com/lnpdit/sunnyweather/test/http/MyRepository.kt | unknown_repo | kotlin | package com.lnpdit.sunnyweather.test.http
import androidx.lifecycle.liveData
import com.lnpdit.sunnyweather.test.login.model.LoginRequest
import com.lnpdit.sunnyweather.test.login.network.LoginNetwork
import kotlinx.coroutines.Dispatchers
import kotlin.coroutines.CoroutineContext
/**
* Created by HePeng on 2023/7/13... |
feature-staking-impl/src/main/java/jp/co/soramitsu/staking/impl/presentation/staking/rebond/custom/CustomRebondFragment.kt | unknown_repo | kotlin | package jp.co.soramitsu.staking.impl.presentation.staking.rebond.custom
import androidx.fragment.app.viewModels
import androidx.lifecycle.lifecycleScope
import coil.ImageLoader
import dagger.hilt.android.AndroidEntryPoint
import dev.chrisbanes.insetter.applyInsetter
import jp.co.soramitsu.common.base.BaseFragment
impo... |
app/src/main/java/com/example/okcredit/Navigation/AccountFragmentActivity.kt | unknown_repo | kotlin | package com.example.okcredit.Navigation
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.example.okcredit.R
class AccountFragmentActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentVie... |
app/src/main/java/com/relieve/android/screen/fragment/walkthrough/WalkthroughFragment.kt | unknown_repo | kotlin | package com.relieve.android.screen.fragment.walkthrough
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentPagerAdapter
import androidx.navigation.fragment.findNavController
import... |
sceneview/src/main/java/io/github/sceneview/Filament.kt | unknown_repo | kotlin | package io.github.sceneview
import android.opengl.EGLContext
import com.google.android.filament.*
import com.google.android.filament.gltfio.AssetLoader
import com.google.android.filament.gltfio.Gltfio
import com.google.android.filament.gltfio.ResourceLoader
import com.google.android.filament.gltfio.UbershaderProvider
... |
apps/mobile/src/main/kotlin/dev/marlonlom/cappajv/ui/theme/Theme.kt | unknown_repo | kotlin | /*
* Copyright 2024 Marlonlom
* SPDX-License-Identifier: Apache-2.0
*/
package dev.marlonlom.apps.cappajv.ui.theme
import android.app.Activity
import android.os.Build
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.... |
components/share/uploader/src/main/kotlin/com/flipperdevices/uploader/compose/content/ComposableSheetPending.kt | unknown_repo | kotlin | package com.flipperdevices.uploader.compose.content
import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
impor... |
app/src/main/java/com/xiaoxin/toolkit/http/BaseException.kt | unknown_repo | kotlin | //package com.xiaoxin.toolkit.http
//
//import android.net.ParseException
//import android.util.Log
//import android.util.MalformedJsonException
//import com.google.gson.JsonParseException
//import com.xiaoxin.toolkit.HttpResponse
//import org.json.JSONException
//import retrofit2.HttpException
//import java.io.FileNot... |
Tutorial1-1Paging-Room/src/main/java/com/smarttoolfactory/tutorial1_1pagingwithdb/WordRepository.kt | unknown_repo | kotlin | package com.smarttoolfactory.tutorial1_1pagingwithdb
import android.app.Application
import androidx.lifecycle.LiveData
import androidx.paging.DataSource
import androidx.paging.LivePagedListBuilder
import androidx.paging.PagedList
import com.smarttoolfactory.tutorial1_1pagingwithdb.data.Word
import com.smarttoolfactory... |
app/src/main/java/com/elementary/tasks/settings/calendar/CalendarSettingsFragment.kt | unknown_repo | kotlin | package com.elementary.tasks.settings.calendar
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.elementary.tasks.R
import com.elementary.tasks.core.os.Permissions
import com.elementary.tasks.core.utils.GoogleCalendarUtils
import com.elementar... |
composeApp/src/commonMain/kotlin/com/calvin/box/movie/navigation/ScreenContainer.kt | unknown_repo | kotlin | package com.calvin.box.movie.navigation
import androidx.compose.runtime.compositionLocalOf
import cafe.adriel.voyager.core.screen.Screen
import com.calvin.box.movie.model.VideoModel
interface ScreenContainer {
fun goToVideoPlayerScreen(currentVideo: VideoModel): Screen
}
val LocalScreenContainer =
compositi... |
app/src/test/java/reach52/marketplace/community/Common.kt | unknown_repo | kotlin | package reach52.marketplace.community
import android.content.Context
import android.net.ConnectivityManager
import android.net.NetworkCapabilities
import android.net.NetworkInfo
import io.reactivex.android.plugins.RxAndroidPlugins
import io.reactivex.schedulers.Schedulers
import org.mockito.Mockito
fun <T> When(metho... |
app/src/main/java/com/cuong/moviehero/ui/components/TitleBar.kt | unknown_repo | kotlin | package com.cuong.moviehero.ui.components
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import androidx.compose.runtime.Composable... |
androidApp/src/main/java/com/ramitsuri/podcasts/android/ui/ThemePreview.kt | unknown_repo | kotlin | package com.ramitsuri.podcasts.android.ui
import android.content.res.Configuration
import androidx.compose.material3.Surface
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
@Preview(uiMode = Configuration.UI_MODE_NIGHT_YES, showBackground = true, name = "Dark")
@Preview(u... |
app/src/main/java/com/kardia/membership/features/utils/AppLog.kt | unknown_repo | kotlin | package com.kardia.membership.features.utils
import android.util.Log
import com.kardia.membership.BuildConfig
class AppLog {
companion object {
@JvmStatic
fun e(tag: String, message: String) {
if (BuildConfig.DEBUG) Log.e(tag, message)
}
fun e(tag: String, message: Str... |
app/src/main/java/com/petnagy/superexchange/databinding/RecyclerViewBindingAdapter.kt | unknown_repo | kotlin | package com.petnagy.superexchange.databinding
import android.databinding.BindingAdapter
import android.support.annotation.LayoutRes
import android.support.v7.widget.GridLayoutManager
import android.support.v7.widget.RecyclerView
import com.petnagy.superexchange.recyclerview.ListItemViewModel
import com.petnagy.superex... |
core/src/main/java/org/futo/circles/core/feature/whats_new/WhatsNewDialog.kt | unknown_repo | kotlin | package org.futo.circles.core.feature.whats_new
import android.app.ActionBar
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.graphics.drawable.InsetDrawable
import android.os.Bundle
import android.text.method.ScrollingMovementMethod
import andr... |
demo-exoplayer/src/main/java/toro/demo/exoplayer/DemoItemsFragment.kt | unknown_repo | kotlin | /*
* Copyright (c) 2018 Nam Nguyen, nam@ene.im
*
* 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... |
marvel-app-stater-main/app/src/main/java/daniel/lop/io/marvelappstarter/data/local/MarvelConverters.kt | unknown_repo | kotlin | package daniel.lop.io.marvelappstarter.data.local
import androidx.room.TypeConverter
import com.google.gson.Gson
import daniel.lop.io.marvelappstarter.data.model.ThumbnailModel
class MarvelConverters {
@TypeConverter
fun fromThumbnail(thumbnailModel: ThumbnailModel) : String = Gson().toJson(thumbnailModel)
... |
app/src/main/java/com/ahmet/kotlinanimalapp/service/AnimalDatabase.kt | unknown_repo | kotlin | package com.ahmet.kotlinanimalapp.service
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.ahmet.kotlinanimalapp.model.Model2
@Database(entities = [Model2::class], version = 1)
abstract class AnimalDatabase:RoomDatabase() {
abstra... |
common/src/main/java/com/revenuecat/purchases/common/Backend.kt | unknown_repo | kotlin | // Purchases
//
// Copyright © 2019 RevenueCat, Inc. All rights reserved.
//
package com.revenuecat.purchases.common
import android.net.Uri
import com.revenuecat.purchases.PurchaserInfo
import com.revenuecat.purchases.PurchasesError
import com.revenuecat.purchases.PurchasesErrorCode
import com.revenuecat.purchases.... |
app/src/main/java/com/suyash/creditmanager/presentation/cc_detail/CCDetailViewModel.kt | unknown_repo | kotlin | package com.suyash.creditmanager.presentation.cc_detail
import androidx.datastore.core.DataStore
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.suyash.creditmanager.data.settings.AppSettings
import com.suyash.creditmanager.domain.model... |
app/src/main/java/com/example/skindiseasedetectionapp/model/UserModel.kt | unknown_repo | kotlin | package com.example.skindiseasedetectionapp.model
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
data class UserModel(
var userId : String? = null,
var email: String? = null,
var name: String? = null,
var default_profile: Int? = null,
var photo_profile: String? = null,
... |
app/src/androidTest/java/com/freshdigitable/udonroad2/user/UserActivityRobot.kt | unknown_repo | kotlin | /*
* Copyright (c) 2020. Matsuda, Akihit (akihito104)
*
* 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 applic... |
app/src/main/java/com/challenge/bluelabsmovieapp/SplashScreen.kt | unknown_repo | kotlin | package com.challenge.bluelabsmovieapp
import android.animation.Animator
import android.animation.AnimatorListenerAdapter
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Handler
import android.view.View
import android.widget.ImageView
import andr... |
glance/glance-appwidget-testing/samples/src/main/java/androidx/glance/appwidget/testing/samples/IsolatedGlanceComposableTestSamples.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/com/harissabil/meakanu/ui/home/HomeFragment.kt | unknown_repo | kotlin | package com.harissabil.meakanu.ui.home
import android.os.Bundle
import android.view.Gravity
import android.view.LayoutInflater
import android.view.Menu
import android.view.MenuInflater
import android.view.MenuItem
import android.view.View
import android.view.ViewGroup
import android.widget.PopupMenu
import android.wid... |
recorder-core/src/main/java/me/shetj/recorder/core/BaseRecorder.kt | unknown_repo | kotlin | package me.shetj.recorder.core
import android.content.Context
import android.media.MediaRecorder
import android.net.Uri
import android.util.Log
import me.shetj.player.PlayerListener
import java.io.File
import kotlin.math.sqrt
abstract class BaseRecorder {
private val TAG = this.javaClass.simpleName
//region ... |
core/src/main/java/com/flyview/core/utils/DecomposeUtils.kt | unknown_repo | kotlin | package com.flyview.core.utils
import com.arkivanov.decompose.ComponentContext
import com.arkivanov.decompose.value.Value
import com.arkivanov.essenty.instancekeeper.InstanceKeeper
import com.arkivanov.essenty.lifecycle.Lifecycle
import com.arkivanov.essenty.lifecycle.doOnDestroy
import kotlinx.coroutines.CoroutineSco... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.