file_path stringlengths 6 261 | repository stringclasses 1
value | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
ui/src/test/java/ru/tinkoff/acquiring/sdk/redesign/cards/list/CardsDeleteViewModelTest.kt | unknown_repo | kotlin | package ru.tinkoff.acquiring.sdk.redesign.cards.list
import androidx.lifecycle.SavedStateHandle
import app.cash.turbine.test
import common.MutableCollector
import common.assertByClassName
import kotlinx.coroutines.*
import kotlinx.coroutines.flow.MutableStateFlow
import org.junit.Test
import org.mockito.kotlin.any
imp... |
androidApp/src/main/java/press/editor/UrlPopupMenu.kt | unknown_repo | kotlin | package press.editor
import android.content.Context
import android.graphics.Point
import android.text.style.URLSpan
import android.view.View
import androidx.appcompat.view.menu.MenuPopupHelper
import androidx.appcompat.widget.PopupMenu
import me.saket.press.shared.localization.strings
import press.extensions.reflect
... |
compose/ui/ui/src/test/kotlin/androidx/compose/ui/graphics/GraphicsLayerScopeTest.kt | unknown_repo | kotlin | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
app/src/main/java/com/umang/reminderapp/ui/components/ToDoItemCards/ToDoItemCardClicked.kt | unknown_repo | kotlin | package com.umang.reminderapp.ui.components.ToDoItemCards
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.Spacer
import ... |
app/src/main/java/com/example/jetpackcomposesample/presentation/RecipeApplication.kt | unknown_repo | kotlin | package com.example.jetpackcomposesample.presentation
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class RecipeApplication : Application() {
} |
qrose-oned/src/commonMain/kotlin/io/github/alexzhirkevich/qrose/oned/Code128Painter.kt | unknown_repo | kotlin | package io.github.alexzhirkevich.qrose.oned
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Stable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.remember
import androidx.compose.runtime.rememberUpdatedState
import androidx.compose.ui.graphics.Brush
import androidx.... |
app/src/main/java/data/repository/ItemRepository.kt | unknown_repo | kotlin | package data.repository
import android.app.Application
import data.local_db.ItemDao
import data.local_db.ItemDataBase
import data.model.Item
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
class ItemRepository(application: Application) {
private val itemDao: ItemDao? = ItemDataBase.ge... |
android/engine/src/test/java/org/smartregister/fhircore/engine/ui/userprofile/UserProfileViewModelTest.kt | unknown_repo | kotlin | /*
* Copyright 2021 Ona Systems, 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 agr... |
app/src/main/java/com/teaphy/diffutildemo/callback/DiffCallback.kt | unknown_repo | kotlin | package com.teaphy.diffutildemo.callback
import android.os.Bundle
import android.support.v7.util.DiffUtil
import com.teaphy.diffutildemo.bean.DiffBean
import com.teaphy.diffutildemo.global.KEY_DESC
/**
* @desc
* @author Tiany
* @date 2018/4/2 0002
*/
class DiffCallback(private val oldList: List<DiffBean>, priva... |
app/src/main/java/com/example/lemonade/MainActivity.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 app... |
maplibre/app/src/main/java/danbroid/util/demo/SimpleMapActivity.kt | unknown_repo | kotlin | package danbroid.util.demo
import android.os.Bundle
import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import com.mapbox.mapboxsdk.camera.CameraPosition
import com.mapbox.mapboxsdk.geometry.LatLng
import com.mapbox.mapboxsdk.maps.MapView
import com.mapbox.mapboxsdk.maps.MapboxMap
import com.m... |
app/src/main/java/dev/tcode/thinmp/view/screen/MainScreen.kt | unknown_repo | kotlin | package dev.tcode.thinmp.view.screen
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.gestures.detectTapGestures
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.found... |
core-ui/src/main/kotlin/com/laomuji666/compose/core/ui/we/icons/ChatsSelect.kt | unknown_repo | kotlin | package com.laomuji666.compose.core.ui.we.icons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.path
import androidx.compose.ui.uni... |
app/src/main/java/com/kcteam/features/viewAllOrder/presentation/OrderSizeQtyDetailsDelAdapter.kt | unknown_repo | kotlin | package com.breezefieldsalesgypmart.features.viewAllOrder.presentation
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.breezefieldsalesgypmart.R
import com.breezefieldsalesgypmart.app.ut... |
common/all/src/commonMain/kotlin/com/tunjid/me/common/ui/settings/SettingsRoute.kt | unknown_repo | kotlin | /*
* Copyright 2021 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/app/tivi/inject/ApplicationComponent.kt | unknown_repo | kotlin | /*
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... |
app/src/main/java/com/kcteam/features/report/presentation/AchievementAdapter.kt | unknown_repo | kotlin | package com.prakashspicesfsm.features.report.presentation
import android.content.Context
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.RecyclerView
import android.text.TextUtils
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.prakash... |
app/src/main/java/dialog/AddDrawingDialogFragment.kt | unknown_repo | kotlin | package dialog
import ViewModel.DrawingViewModel
import android.app.Activity.RESULT_OK
import android.app.AlertDialog
import android.app.Dialog
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.widget.Button
import android.widget.ImageView
import android.widget.Toast
import a... |
app/src/main/java/zero/friends/gostopcalculator/util/TabKeyboardDownModifier.kt | unknown_repo | kotlin | package zero.friends.gostopcalculator.util
import androidx.compose.foundation.gestures.detectTapGestures
import androidx.compose.runtime.Composable
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.Modifier
import androidx.compose.ui.input.pointer.pointerInput
import androidx.compose.ui.pl... |
app/src/main/java/dev/farouk/depensy/ui/expenses/ExpensesViewModel.kt | unknown_repo | kotlin | package dev.farouk.depensy.ui.expenses
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import dev.farouk.depensy.data.models.Expense
import dev.farouk.depensy.data.repository.ExpensesRepository
/**
* The viewModel for [ExpensesFragment]
*/
class ExpensesViewModel internal constructor(expenses... |
lattekit-core/src/main/java/io/lattekit/view/LatteTemplateRecyclerAdapter.kt | unknown_repo | kotlin | package io.lattekit.view
import android.support.v7.widget.RecyclerView
import android.view.View
import android.view.ViewGroup
import android.widget.FrameLayout
import java.lang.reflect.ParameterizedType
/**
* Created by maan on 3/25/16.
*/
class LatteTemplateRecyclerAdapter(parentView : LatteView) : RecyclerView.Ad... |
compose/desktop/desktop/samples/src/jvmMain/kotlin/androidx/compose/desktop/examples/popupexample/MenuItems.jvm.kt | unknown_repo | kotlin | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
app/src/main/java/com/amitranofinzi/vimata/data/dao/CollectionDao.kt | unknown_repo | kotlin | package com.amitranofinzi.vimata.data.dao
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import androidx.room.Update
import com.amitranofinzi.vimata.data.model.Collection
@Dao
interface CollectionDao {
/**
* Retrieves a list of Collect... |
library/src/main/java/com/androidbolts/library/LocationManager.kt | unknown_repo | kotlin | package com.androidbolts.library
import android.app.Activity
import android.content.Context
import android.util.Log
import androidx.fragment.app.Fragment
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleObserver
import androidx.lifecycle.OnLifecycleEvent
import com.androidbolts.library.gps.GpsMan... |
expandablehinttext/src/main/java/com/tomlonghurst/expandablehinttext/ViewHelper.kt | unknown_repo | kotlin | package com.ahmedessamedeen.prettyedittext
import android.content.Context
internal object ViewHelper {
internal fun getDp(context: Context, int: Int): Int {
val scale = context.resources.displayMetrics.density
return (int * scale + 0.5f).toInt()
}
} |
app/src/main/java/io/wookey/wallet/data/dao/WalletDao.kt | unknown_repo | kotlin | package io.wookey.wallet.data.dao
import android.arch.lifecycle.LiveData
import android.arch.persistence.room.*
import io.wookey.wallet.data.entity.Wallet
@Dao
interface WalletDao {
/**
* Insert a wallet in the database. If the wallet already exists, ignore it.
*
* @param wallet the wallet to be i... |
solar/src/main/java/com/chiksmedina/solar/lineduotone/businessstatistic/DiagramUp.kt | unknown_repo | kotlin | package com.chiksmedina.solar.lineduotone.businessstatistic
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.Round
import androidx.compose.ui.graphics.Strok... |
app/src/main/java/com/android/core/arch/utils/app/CommonUtils.kt | unknown_repo | kotlin | package com.android.core.arch.utils.app
import android.annotation.SuppressLint
import android.app.ProgressDialog
import android.content.Context
import android.content.res.AssetManager
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.provider.Settings
import android.telephony.... |
features/times/src/main/java/com/metinkale/prayer/times/utils/ExportController.kt | unknown_repo | kotlin | /*
* Copyright (c) 2013-2023 Metin Kale
*
* 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 ag... |
app/src/main/java/dev/braian/goalbit/view/activities/MainActivity.kt | unknown_repo | kotlin | package dev.braian.goalbit.view.activities
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.ContextCompat
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
import androidx.fragment.app.Fragment
import com.goo... |
app/src/main/java/com/nora/covdecem/data/database/dao/CaseDao.kt | unknown_repo | kotlin | package com.nora.covdecem.data.database.dao
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.nora.covdecem.data.database.entity.CaseEntity
@Dao
interface CaseDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
suspend fun in... |
app/src/main/java/dev/shorthouse/coinwatch/ui/screen/search/SearchViewModel.kt | unknown_repo | kotlin | package dev.shorthouse.coinwatch.ui.screen.search
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.compose.runtime.snapshotFlow
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt... |
app/src/main/java/my/app/canvas/DrawPencil.kt | unknown_repo | kotlin | package com.ferodev.simplepaint.canvas
import android.graphics.Color
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import android.content.Context
import android.graphics.Canvas
import android.graphics.Paint
import android.util.AttributeSet
import android.view.MotionEvent
import android... |
app/src/main/java/my/app/canvas/DrawPencil.kt | unknown_repo | kotlin | package com.ferodev.simplepaint.canvas
import android.graphics.Color
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import android.content.Context
import android.graphics.Canvas
import android.graphics.Paint
import android.util.AttributeSet
import android.view.MotionEvent
import android... |
android-kotlin-notifications-start/app/src/main/java/com/example/android/eggtimernotifications/receiver/AlarmReceiver.kt | unknown_repo | kotlin | /*
* Copyright (C) 2019 Google 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... |
android-app/src/main/java/com/github/aivanovski/testswithme/android/presentation/screens/flow/model/FlowState.kt | unknown_repo | kotlin | package com.github.aivanovski.testswithme.android.presentation.screens.flow.model
import androidx.compose.runtime.Immutable
import com.github.aivanovski.testswithme.android.entity.ErrorMessage
import com.github.aivanovski.testswithme.android.presentation.core.cells.BaseCellViewModel
import com.github.aivanovski.testsw... |
ui/ui-core/integration-tests/ui-core-demos/src/main/java/androidx/ui/core/demos/focus/FocusableDemo.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/com/pr0gramm/app/Instant.kt | unknown_repo | kotlin | package com.pr0gramm.app
import android.os.Parcel
import android.os.Parcelable
import com.pr0gramm.app.parcel.Freezable
import com.pr0gramm.app.parcel.Unfreezable
import com.pr0gramm.app.parcel.creator
import com.pr0gramm.app.util.logger
import org.slf4j.Logger
import java.text.SimpleDateFormat
import java.util.*
impo... |
tasks-app-desktop/src/main/kotlin/mainApp.kt | unknown_repo | kotlin | /*
* Copyright (c) 2024 Olivier Patry
*
* 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, publi... |
app/src/main/java/demo/simple/checker/App.kt | unknown_repo | kotlin | package demo.simple.checker
import android.app.Application
import me.simple.checker.HeGuiChecker
class App : Application() {
override fun onCreate() {
super.onCreate()
// HeGuiChecker.SHOW_LOG = false
// HeGuiChecker.SHOW_TOAST = false
}
} |
wear/wear-watchface-style/src/main/java/androidx/wear/watchface/style/UserStyleSetting.kt | unknown_repo | kotlin | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
app/src/main/java/com/matthew/carvalhodagenais/coinhuntingbuddy/ui/components/FindListItem.kt | unknown_repo | kotlin | package com.matthew.carvalhodagenais.coinhuntingbuddy.ui.components
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.padding
import androidx.compose.material.Text
import androidx.compose... |
library/src/main/java/com/herry/libs/draw/DrawView.kt | unknown_repo | kotlin | package com.herry.libs.draw
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.util.AttributeSet
import android.view.MotionEvent
import android.view.View
import an... |
app/src/main/kotlin/com/softteco/template/ui/components/PermissionDialog.kt | unknown_repo | kotlin | package com.softteco.template.ui.components
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material3.AlertDialog
import androidx.compose.material3.Button
import androidx.compose.material3.ButtonDefaults
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
im... |
app/src/main/java/com/example/meuprimeiroprojeto/ResultActivity.kt | unknown_repo | kotlin | package com.example.meuprimeiroprojeto
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.MenuItem
import android.widget.TextView
class ResultActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
... |
app/src/main/java/com/celzero/bravedns/adapter/ConnectionTrackerAdapter.kt | unknown_repo | kotlin | /*
Copyright 2020 RethinkDNS and its authors
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 writing, ... |
app/src/main/java/com/capan/truefalse/TrueFalseApplication.kt | unknown_repo | kotlin | package com.capan.truefalse
import android.app.Application
import com.capan.truefalse.di.appModule
import com.capan.truefalse.di.firebaseModule
import com.capan.truefalse.di.questionModule
import org.koin.android.ext.koin.androidContext
import org.koin.android.ext.koin.androidLogger
import org.koin.core.context.Global... |
core/data/src/main/java/org/expenny/core/data/repository/RecordRepositoryImpl.kt | unknown_repo | kotlin | package org.expenny.core.data.repository
import androidx.room.withTransaction
import kotlinx.coroutines.flow.*
import org.expenny.core.common.extensions.mapFlatten
import org.expenny.core.common.types.RecordType
import org.expenny.core.common.types.TransactionType
import org.expenny.core.data.mapper.DataMapper.toEntit... |
pillarbox-player/src/main/java/ch/srgssr/pillarbox/player/extension/Player.kt | unknown_repo | kotlin | /*
* Copyright (c) SRG SSR. All rights reserved.
* License information is available from the LICENSE file.
*/
package ch.srgssr.pillarbox.player.extension
import androidx.media3.common.MediaItem
import androidx.media3.common.Player
import androidx.media3.common.Timeline.Window
import androidx.media3.exoplayer.dash.... |
app/src/main/java/com/ozlem/superheroproject/MainActivity.kt | unknown_repo | kotlin | package com.ozlem.superheroproject
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
// MainActivity ve XML arasındaki senkronizasyonu sağlamak için:
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
// Bir değişkene h... |
features/bible/src/main/kotlin/app/ss/bible/ToolbarComponent.kt | unknown_repo | kotlin | /*
* Copyright (c) 2022. Adventech <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge... |
serenity-app/src/main/java/us/nineworlds/serenity/ui/leanback/search/CardPresenter.kt | unknown_repo | kotlin | /**
* The MIT License (MIT)
* Copyright (c) 2012 <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, modi... |
app/src/main/java/eu/kanade/tachiyomi/data/backup/restore/BackupRestoreJob.kt | unknown_repo | kotlin | package eu.kanade.tachiyomi.data.backup.restore
import android.content.Context
import android.content.pm.ServiceInfo
import android.net.Uri
import android.os.Build
import androidx.core.net.toUri
import androidx.work.CoroutineWorker
import androidx.work.ExistingWorkPolicy
import androidx.work.ForegroundInfo
import andr... |
app/src/main/java/eu/kanade/tachiyomi/data/backup/restore/BackupRestoreJob.kt | unknown_repo | kotlin | package eu.kanade.tachiyomi.data.backup.restore
import android.content.Context
import android.content.pm.ServiceInfo
import android.net.Uri
import android.os.Build
import androidx.core.net.toUri
import androidx.work.CoroutineWorker
import androidx.work.ExistingWorkPolicy
import androidx.work.ForegroundInfo
import andr... |
app/src/main/java/com/wuruoye/know/ui/home/ReviewFragment.kt | unknown_repo | kotlin | package com.wuruoye.know.ui.home
import android.os.Bundle
import android.view.View
import com.wuruoye.know.R
import com.wuruoye.know.ui.home.contract.ReviewContract
import com.wuruoye.library.ui.WBaseFragment
/**
* Created : wuruoye
* Date : 2019/3/6 23:24.
* Description :
*/
class ReviewFragment : WBaseFragment... |
wearapp/src/main/java/com/thewizrd/simpleweather/utils/InputMethodUtils.kt | unknown_repo | kotlin | package com.thewizrd.simpleweather.utils
import android.content.Context
import android.view.View
import android.view.inputmethod.InputMethodManager
fun View.showInputMethod() {
val imm =
this.context.getSystemService(Context.INPUT_METHOD_SERVICE) as? InputMethodManager ?: return
imm.showSoftInput(this... |
wearapp/src/main/java/com/thewizrd/simpleweather/utils/InputMethodUtils.kt | unknown_repo | kotlin | package com.thewizrd.simpleweather.utils
import android.content.Context
import android.view.View
import android.view.inputmethod.InputMethodManager
fun View.showInputMethod() {
val imm =
this.context.getSystemService(Context.INPUT_METHOD_SERVICE) as? InputMethodManager ?: return
imm.showSoftInput(this... |
room/room-runtime/src/test/java/androidx/room/util/UUIDUtilTest.kt | unknown_repo | kotlin | /*
* Copyright 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 applica... |
app/src/main/java/dev/alibagherifam/mentha/camera/CameraScreen.kt | unknown_repo | kotlin | package dev.alibagherifam.mentha.camera
import androidx.camera.view.PreviewView
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxHeight
i... |
notion-console/src/jvmMain/kotlin/io/ashdavies/notion/Main.kt | unknown_repo | kotlin | package io.ashdavies.notion
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import com.jakewharton.mosaic.Text
import com.jakewharton.mosaic.runMosaic... |
bitcoincore/src/main/kotlin/io/horizontalsystems/bitcoincore/models/SentTransaction.kt | unknown_repo | kotlin | package io.horizontalsystems.bitcoincore.models
import android.arch.persistence.room.Entity
import android.arch.persistence.room.PrimaryKey
@Entity
class SentTransaction() {
@PrimaryKey
var hash = byteArrayOf()
var firstSendTime: Long = System.currentTimeMillis()
var lastSendTime: Long = System.curre... |
compose/ui/ui/src/androidMain/kotlin/androidx/compose/ui/platform/actionmodecallback/TextActionModeCallback.android.kt | unknown_repo | kotlin | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
data/src/test/java/com/jbkalit/data/source/PostRemoteDataSourceTest.kt | unknown_repo | kotlin | package com.jbkalit.data.source
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import com.jbkalit.data.scheduler.BaseSchedulerProvider
import com.jbkalit.data.scheduler.SchedulerProvider
import com.jbkalit.data.service.PostService
import com.jbkalit.data.source.post.remote.PostRemoteDataSource
impo... |
ProductsList/app/src/main/java/br/com/productslist/presentation/products/ProductScreen.kt | unknown_repo | kotlin | package br.com.productslist.presentation.products
import androidx.compose.foundation.layout.Column
import androidx.compose.material.Scaffold
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.ui.Modifier
import androidx.compose.ui.tooling.preview.Preview
i... |
app/src/main/java/com/oceanknight/wanandroid/base/App.kt | unknown_repo | kotlin | package com.oceanknight.wanandroid.base
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class App: Application() {
} |
sample/src/main/java/com/longquan/ui/AuthActivity.kt | unknown_repo | kotlin | package com.longquan.ui
import android.content.Context
import android.net.ProxyInfo
import android.net.Uri
import android.os.Build
import android.os.Bundle
import android.os.SystemClock
import android.provider.Settings
import android.util.Log
import android.view.View
import android.webkit.WebSettings
import android.we... |
app/src/main/java/ru/resodostudios/flick/feature/movies/presentation/components/MovieCard.kt | unknown_repo | kotlin | package ru.resodostudios.flick.feature.movies.presentation.components
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.defaultMinSize
import androidx.compose.foundation.layout.f... |
extension-compose/src/main/java/com/mapbox/maps/extension/compose/style/layers/generated/LayerProperties.kt | unknown_repo | kotlin | // This file is generated.
package com.mapbox.maps.extension.compose.style.layers.generated
import androidx.compose.runtime.Immutable
import com.mapbox.bindgen.Value
import com.mapbox.maps.MapboxExperimental
import com.mapbox.maps.extension.compose.style.internal.ComposeTypeUtils
import com.mapbox.maps.extension.styl... |
app/src/main/java/de/jannis_jahr/motioncapturingapp/ui/user/UserFragment.kt | unknown_repo | kotlin | package de.jannis_jahr.motioncapturingapp.ui.user
import android.net.Uri
import android.os.Bundle
import android.view.*
import androidx.fragment.app.Fragment
import de.jannis_jahr.motioncapturingapp.R
import de.jannis_jahr.motioncapturingapp.ui.observers.AddVideoObservable
import de.jannis_jahr.motioncapturingapp.ui.o... |
src/de/serienstream/src/eu/kanade/tachiyomi/animeextension/de/serienstream/Serienstream.kt | unknown_repo | kotlin | package eu.kanade.tachiyomi.animeextension.de.serienstream
import android.app.Application
import android.content.SharedPreferences
import android.text.InputType
import android.util.Log
import android.widget.Toast
import androidx.preference.EditTextPreference
import androidx.preference.ListPreference
import androidx.pr... |
sbhyi-akts/src/main/java/com/outs/utils/android/IntentExt.kt | unknown_repo | kotlin | package com.outs.utils.android
import android.app.Activity
import android.os.Bundle
import androidx.core.os.bundleOf
import androidx.fragment.app.Fragment
/**
* author: Outs3
* e-mail: 3.3nosekai@gmail.com
* date: 2021/4/27 15:37
* desc:
*/
fun Activity.injectIntent() = inject(intent?.extras)
inline fun <reifie... |
app/src/main/java/com/petnagy/navigatordemo/modules/dashboard/PreferenceFragment.kt | unknown_repo | kotlin | package com.petnagy.navigatordemo.modules.dashboard
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.lifecycle.Observer
import androidx... |
app/src/main/java/com/syncday/lab/SecondAdapter.kt | unknown_repo | kotlin | package com.syncday.lab
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.syncday.lab.databinding.ItemMainBinding
class Secon... |
plugins/kotlin/idea/src/org/jetbrains/kotlin/idea/quickfix/MakeFieldPublicFix.kt | unknown_repo | kotlin | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.kotlin.idea.quickfix
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.project.Project
import com.intellij.psi.util.elementType
import org.jetbrains.kotlin.... |
core/src/main/java/org/linus/core/utils/extension/ModifierExt.kt | unknown_repo | kotlin | package org.linus.core.utils.extension
import androidx.compose.foundation.layout.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.composed
import androidx.compose.ui.platform.LocalConfiguration
import androidx.compose.ui.un... |
app/src/main/java/app/eluvio/wallet/screens/property/DynamicPageLayoutState.kt | unknown_repo | kotlin | package app.eluvio.wallet.screens.property
import androidx.compose.runtime.Immutable
import androidx.compose.ui.text.AnnotatedString
import androidx.media3.exoplayer.source.MediaSource
import app.eluvio.wallet.data.FabricUrl
import app.eluvio.wallet.data.entities.MediaEntity
import app.eluvio.wallet.data.entities.Rede... |
bitapp/src/main/java/com/atech/bit/ui/activity/main/toggleDrawer.kt | unknown_repo | kotlin | package com.atech.bit.ui.activity.main
import androidx.compose.material3.DrawerValue
fun toggleDrawer(communicatorViewModel: MainViewModel) =
if (communicatorViewModel.toggleDrawerState.value == DrawerValue.Closed)
DrawerValue.Open else DrawerValue.Closed |
core/common/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/core/common/job_util.kt | unknown_repo | kotlin | package de.tum.informatics.www1.artemis.native_app.core.common
import androidx.work.BackoffPolicy
import androidx.work.Constraints
import androidx.work.Data
import androidx.work.ListenableWorker
import androidx.work.NetworkType
import androidx.work.OneTimeWorkRequest
import androidx.work.OneTimeWorkRequestBuilder
impo... |
core/common/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/core/common/job_util.kt | unknown_repo | kotlin | package de.tum.informatics.www1.artemis.native_app.core.common
import androidx.work.BackoffPolicy
import androidx.work.Constraints
import androidx.work.Data
import androidx.work.ListenableWorker
import androidx.work.NetworkType
import androidx.work.OneTimeWorkRequest
import androidx.work.OneTimeWorkRequestBuilder
impo... |
wear/wear/src/androidTest/java/androidx/wear/widget/ArcLayoutTest.kt | unknown_repo | kotlin | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
core/src/commonMain/kotlin/com/maxkeppeker/sheets/core/CoreView.kt | unknown_repo | kotlin | /*
* Copyright (C) 2022-2023. <NAME> (https://www.maxkeppeler.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... |
demo/src/desktopMain/kotlin/org/pushingpixels/aurora/demo/svg/flags/gb.kt | unknown_repo | kotlin | package org.pushingpixels.aurora.demo.svg.flags
import androidx.compose.ui.geometry.*
import androidx.compose.ui.graphics.*
import androidx.compose.ui.graphics.drawscope.DrawScope
import androidx.compose.ui.graphics.drawscope.Fill
import androidx.compose.ui.graphics.drawscope.Stroke
import androidx.compose.ui.graphics... |
presentation/src/main/java/com/anytypeio/anytype/presentation/templates/TemplateBlankViewModel.kt | unknown_repo | kotlin | package com.anytypeio.anytype.presentation.templates
import androidx.lifecycle.viewModelScope
import com.anytypeio.anytype.core_models.Block
import com.anytypeio.anytype.core_models.Id
import com.anytypeio.anytype.core_models.ObjectType
import com.anytypeio.anytype.core_models.ObjectTypeIds
import com.anytypeio.anytyp... |
app/src/main/java/com/example/ktdemo/MainActivity.kt | unknown_repo | kotlin | package com.example.ktdemo
import android.annotation.SuppressLint
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.provider.Settings.Global
import android.view.View
import android.view.ViewTreeObserver
import android.widget.Button
import android.widg... |
app/src/main/java/cn/wthee/pcrtool/ui/tool/storyevent/StoryEventListViewModel.kt | unknown_repo | kotlin | package cn.wthee.pcrtool.ui.tool.storyevent
import androidx.compose.runtime.Immutable
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import cn.wthee.pcrtool.data.db.repository.EventRepository
import cn.wthee.pcrtool.data.db.view.StoryEventData
import cn.wthee.pcrtool.ui.LoadingState
impor... |
app/src/main/java/com/paradise/ptpt/one/ui/running/reference/ReferenceRunningFragment.kt | unknown_repo | kotlin | package com.paradise.ptpt.one.ui.running.reference
import android.util.Log
import android.view.View
import androidx.lifecycle.Observer
import androidx.recyclerview.widget.LinearLayoutManager
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.auth.ktx.auth
import com.google.firebase.database.Databa... |
vector/src/main/java/im/vector/app/features/roomdirectory/picker/RoomDirectoryItem.kt | unknown_repo | kotlin | /*
* Copyright 2019 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... |
app/src/main/java/dev/kxxcn/maru/view/register/RegisterFragment.kt | unknown_repo | kotlin | package dev.kxxcn.maru.view.register
import android.app.DatePickerDialog
import android.os.Bundle
import android.view.LayoutInflater
import android.view.MotionEvent
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.viewModels
import androidx.lifecycle.Observer
import androidx.lifecycl... |
presentation/src/main/kotlin/com/kazakago/blueprint/presentation/hierarchy/githuborgs/GithubOrgRow.kt | unknown_repo | kotlin | package com.kazakago.blueprint.presentation.view.hierarchy.github
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import androidx.compose.material3.Text
import androidx.comp... |
OpenNSFW/src/main/java/com/zwy/opennsfw/core/Config.kt | unknown_repo | kotlin | package com.zwy.opennsfw.core
import android.content.Context
data class Config(
/**
* 是否开启GPU加速
*/
var isOpenGPU: Boolean = true,
var numThreads: Int = 1,
var context: Context?
) |
feature/discover/view/implementation/src/main/kotlin/com/savvasdalkitsis/uhuruphotos/feature/discover/view/implementation/ui/SearchField.kt | unknown_repo | kotlin | /*
Copyright 2022 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distribu... |
app/src/main/java/org/ergoplatform/android/transactions/ChooseSpendingWalletFragmentDialog.kt | unknown_repo | kotlin | package org.ergoplatform.android.transactions
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.navigation.NavOptions
import androidx.navigation.fragment.NavHostFragment
import org.ergoplatform.android.*
import org.ergoplatform.android.da... |
lib-test/src/main/java/io/sellmair/kompass/app/Identified.kt | unknown_repo | kotlin | package io.sellmair.kompass.app
import android.graphics.Color
enum class Target {
FragmentOne,
FragmentTwo,
FragmentThree,
FragmentFour,
FragmentFive,
FragmentSix,
FragmentSeven,
FragmentEight,
FragmentNine,
FragmentTen,
ViewOne,
ViewTwo,
ViewThree,
ViewFour,
... |
feature/qrcode/src/main/kotlin/com/masselis/tpmsadvanced/qrcode/interfaces/QRCodeViewModel.kt | unknown_repo | kotlin | package com.masselis.tpmsadvanced.qrcode.interfaces
import androidx.camera.view.CameraController
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.masselis.tpmsadvanced.core.feature.usecase.CurrentVehicleUseCase
import com.masselis.tpmsadvanced.data.vehicle.model.Vehicle
import co... |
commons/ui/src/main/java/es/littledavity/commons/ui/navigation/NavigationCommand.kt | unknown_repo | kotlin | /*
* Copyright 2021 dalodev
*/
package es.littledavity.commons.ui.navigation
import androidx.navigation.NavDirections
import androidx.navigation.fragment.FragmentNavigator
sealed class NavigationCommand {
data class To(val directions: NavDirections, val extras: FragmentNavigator.Extras? = null) : NavigationComm... |
feature-staking-impl/src/main/java/io/novafoundation/nova/feature_staking_impl/presentation/validators/parcel/StakeTargetDetailsParcelModel.kt | unknown_repo | kotlin | package io.novafoundation.nova.feature_staking_impl.presentation.validators.parcel
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
@Parcelize
class StakeTargetDetailsParcelModel(
val accountIdHex: String,
val isSlashed: Boolean,
val stake: StakeTargetStakeParcelModel,
val identity... |
app/src/main/java/com/laotoua/dawnislandk/util/GlobalExtensions.kt | unknown_repo | kotlin | /*
* Copyright 2020 Fishballzzz
* *
* * 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... |
urbanairship-core/src/test/java/com/urbanairship/channel/ChannelBatchUpdateManagerTest.kt | unknown_repo | kotlin | package com.urbanairship.channel
import android.content.Context
import androidx.test.core.app.ApplicationProvider
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.urbanairship.PreferenceDataStore
import com.urbanairship.audience.AudienceOverrides
import com.urbanairship.audience.AudienceOverridesProvide... |
mvvm-dagger/src/main/java/com/nphau/android/shared/screens/UIBehaviour.kt | unknown_repo | kotlin | package com.imstudio.android.shared.screens
import android.os.Bundle
interface UIBehaviour {
fun showError(message: String?)
fun onSyncViews(savedInstanceState: Bundle?)
fun onSyncEvents()
fun onSyncData()
fun makeVibrator()
fun doNotCare()
fun showLoading(isShow: Boolean, timeout: ... |
saved-sites/saved-sites-impl/src/main/java/com/duckduckgo/savedsites/impl/sync/SavedSiteSyncPausedViewModel.kt | unknown_repo | kotlin | /*
* Copyright (c) 2023 DuckDuckGo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.