file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/eu/kanade/tachiyomi/ui/source/browse/BrowseSourceGridHolder.kt | unknown_repo | kotlin | package eu.kanade.tachiyomi.ui.source.browse
import android.app.Activity
import android.view.View
import androidx.core.view.isVisible
import androidx.recyclerview.widget.RecyclerView
import coil.Coil
import coil.clear
import coil.request.ImageRequest
import eu.davidea.flexibleadapter.FlexibleAdapter
import eu.davidea.... |
app/src/main/java/com/zacharee1/systemuituner/views/WriteSettingsView.kt | unknown_repo | kotlin | package com.zacharee1.systemuituner.views
import android.content.Context
import android.util.AttributeSet
import androidx.constraintlayout.widget.ConstraintLayout
import com.zacharee1.systemuituner.data.SettingsType
import com.zacharee1.systemuituner.databinding.DialogWriteSettingBinding
import com.zacharee1.systemuit... |
ui/src/main/kotlin/gq/kirmanak/mealient/ui/Theme.kt | unknown_repo | kotlin | package gq.kirmanak.mealient
import android.os.Build
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.darkColorScheme
import androidx.compose.material3.dynamicDarkColorScheme
import androidx.compose.material3.dynamicLightColorSchem... |
sketch-core/src/androidTest/kotlin/com/github/panpf/sketch/core/test/request/internal/EngineRequestInterceptorTest.kt | unknown_repo | kotlin | /*
* Copyright (C) 2022 panpf <<EMAIL>>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
app/src/main/java/com/m3rc/beerbox/app/beer/BeerDetailsBottomDialog.kt | unknown_repo | kotlin | package com.m3rc.beerbox.app.beer
import android.content.res.ColorStateList
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.bumptech.glide.Glide
import com.bumptech.glide.load.resource.drawable.DrawableTransitionOptions
import com.google.and... |
AndroidKotlinDemo/app/src/main/java/com/yueban/androidkotlindemo/demo/paging/ui/SearchRepositoriesActivity.kt | unknown_repo | kotlin | package com.yueban.androidkotlindemo.demo.paging.ui
import android.os.Bundle
import android.util.Log
import android.view.KeyEvent
import android.view.View
import android.view.inputmethod.EditorInfo
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.Observer
import and... |
app/src/main/java/com/lvp/autodownloader/ui/theme/Color.kt | unknown_repo | kotlin | package com.lvp.autodownloader.ui.theme
import androidx.compose.ui.graphics.Color
val MainThemeColor = Color(0xFFCFA435)
val DisableColor = Color(0xFFC5C5C5)
val EnableColor = Color(0xFF141414)
val SuggestColor = Color(0xFF1E7917)
val GreenColor = Color(0xFF1E7917)
val BackgroundColor = Color(0xFFF0F0F0)
const val Re... |
app/src/main/java/com/hfut/schedule/ui/Activity/success/cube/Settings/Items/MyAPIItem.kt | unknown_repo | kotlin | package com.hfut.schedule.ui.ComposeUI.Settings.Items
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Card
import androidx.compose.material3.CardDefaults
import androidx.compose.mater... |
fingerprint/src/main/java/com/fingerprintjs/android/fingerprint/device_id_providers/MediaDrmIdProvider.kt | unknown_repo | kotlin | package com.fingerprintjs.android.fingerprint.device_id_providers
import android.media.MediaDrm
import android.os.Build
import com.fingerprintjs.android.fingerprint.tools.DeprecationMessages
import com.fingerprintjs.android.fingerprint.tools.executeSafe
import java.security.MessageDigest
import java.util.UUID
@Depr... |
app/src/main/java/com/example/achadin/adapter/ChatsAdapter.kt | unknown_repo | kotlin | package com.example.achadin.adapter
import android.content.Context
import android.content.DialogInterface
import android.content.Intent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.RelativeLayout
import android.widget.Te... |
core/src/main/java/com/example/core/di/components/CoreComponent.kt | unknown_repo | kotlin | package com.example.core.di.components
import android.content.Context
import com.example.core.di.modules.CoreModule
import com.example.core.di.modules.DatabaseModule
import com.example.data.di.DataModule
import com.example.domain.repository.CompetitionsRepository
import dagger.BindsInstance
import dagger.Component
imp... |
stripecardscan/src/main/java/com/stripe/android/stripecardscan/framework/image/BitmapExtensions.kt | unknown_repo | kotlin | package com.stripe.android.stripecardscan.framework.image
import android.graphics.Bitmap
import androidx.annotation.CheckResult
/**
* Convert a [Bitmap] to an [MLImage] for use in ML models.
*/
@CheckResult
internal fun Bitmap.toMLImage(mean: Float = 0F, std: Float = 255F) = MLImage(this, mean, std)
/**
* Convert... |
app/src/main/java/com/kickstarter/ui/activities/compose/login/KSLoginDropdownMenu.kt | unknown_repo | kotlin | package com.kickstarter.ui.activities.compose.login
import androidx.compose.foundation.background
import androidx.compose.material.DropdownMenu
import androidx.compose.material.DropdownMenuItem
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import a... |
app/src/main/java/dev/olog/fortnightly/presentation/base/DataBoundViewHolder.kt | unknown_repo | kotlin | package dev.olog.fortnightly.presentation.base
import android.view.View
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.LifecycleRegistry
import androidx.recyclerview.widget.RecyclerView
class DataBoundViewHolder(view: View) : RecyclerView.ViewHolder(view),
L... |
app/src/main/java/com/telenav/osv/map/viewmodel/MapViewModelFactory.kt | unknown_repo | kotlin | package com.telenav.osv.map.viewmodel
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.telenav.osv.application.ApplicationPreferences
import com.telenav.osv.data.location.datasource.LocationLocalDataSource
import com.telenav.osv.data.user.datasource.UserDataSource
import com.t... |
common/src/main/java/me/wcy/common/ext/ContextEx.kt | unknown_repo | kotlin | package me.wcy.common.ext
import android.app.Activity
import android.content.Context
import androidx.viewbinding.ViewBinding
fun Activity?.setAlpha(alpha: Float) {
if (this == null) {
return
}
val lp = window.attributes
lp.alpha = alpha
window.attributes = lp
}
val ViewBinding.context: Co... |
app/src/main/java/com/example/test_ci_cd/MainActivity.kt | unknown_repo | kotlin | package com.example.test_ci_cd
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.MaterialTheme
import androidx.compose.mate... |
app/src/main/java/com/zmj/relearnandroid/view/lesson13textmeasure/SportView.kt | unknown_repo | kotlin | package com.zmj.relearnandroid.view.lesson13textmeasure
import android.content.Context
import android.graphics.*
import android.util.AttributeSet
import android.view.View
import androidx.core.content.res.ResourcesCompat
import com.zmj.relearnandroid.R
import com.zmj.relearnandroid.view.dp
/**
* Author : Zmj
* Blog ... |
app/src/main/java/com/kvl/cyclotrack/TripDetailsUtilities.kt | unknown_repo | kotlin | package com.kvl.cyclotrack
import android.graphics.Color
import android.location.Location
import com.github.mikephil.charting.charts.LineChart
import com.github.mikephil.charting.components.AxisBase
import com.github.mikephil.charting.components.XAxis
import com.github.mikephil.charting.formatter.ValueFormatter
import... |
app/src/main/java/hu/csabapap/seriesreminder/utils/PicassoTransformation.kt | unknown_repo | kotlin | package hu.csabapap.seriesreminder.utils
import android.graphics.*
import com.squareup.picasso.Transformation
class RoundedTransformation(private val radius: Float? = null, private val margin: Float = 0f) : Transformation {
override fun transform(source: Bitmap): Bitmap {
val paint = Paint().apply {
... |
app/src/main/java/com/padc/ecommerce/views/items/ProductDetailsViewItem.kt | unknown_repo | kotlin | package com.padc.ecommerce.views.items
import android.content.Context
import android.util.AttributeSet
import android.widget.FrameLayout
import com.bumptech.glide.Glide
import com.padc.ecommerce.data.vos.ProductImageVO
import kotlinx.android.synthetic.main.view_item_product.view.*
class ProductDetailsViewItem : Frame... |
app/src/main/java/vn/loitp/app/activity/customviews/viewpager/refreshviewpager/RefreshViewPagerActivity.kt | unknown_repo | kotlin | package vn.loitp.app.activity.customviews.viewpager.refreshviewpager
import android.os.Bundle
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentStatePagerAdapter
import com.annotation.IsFullScreen
import com.annotation.LogTag
import com.core.base.Ba... |
core/testing/src/main/java/com/hisui/kanna/core/testing/repository/TestBookRepository.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 wr... |
app/src/main/java/com/example/towntrekker/pagini/main/vizualizare_urmareste_urmaritori_recyclerview/VizualizareUrmaresteUrmaritoriAdapter.kt | unknown_repo | kotlin | package com.example.towntrekker.pagini.main.vizualizare_urmareste_urmaritori_recyclerview
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.example.towntrekker.ActivityMain
import c... |
composeApp/src/commonMain/kotlin/screens/DevicesScreen.kt | unknown_repo | kotlin | package screens
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
i... |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/DriverWoman.kt | unknown_repo | kotlin | package me.localx.icons.rounded.filled
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
... |
wallet/src/main/java/com/android/identity_credential/wallet/SelfSignedMdlIssuingAuthority.kt | unknown_repo | kotlin | package com.android.identity_credential.wallet
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import com.android.identity.cbor.Cbor
import com.android.identity.cbor.CborArray
import com.android.identity.cbor.toDataItemDateTimeString
import com.android.identity.cbor.toDataItemFullDate
import com.a... |
straight/src/commonMain/kotlin/me/localx/icons/straight/filled/TemperatureDown.kt | unknown_repo | kotlin | package me.localx.icons.straight.filled
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... |
on_audio_query/android/src/main/kotlin/com/lucasjosino/on_audio_query/interfaces/OnPermissionManagerInterface.kt | unknown_repo | kotlin | package com.lucasjosino.on_audio_query.interfaces
import android.content.Context
/** OnPermissionManagerInterface */
interface OnPermissionManagerInterface {
fun onPermissionStatus(context: Context? = null) : Boolean
fun onRequestPermission()
fun onRetryRequestPermission()
} |
Core/src/main/kotlin/org/brightify/reactant/controller/ViewController.kt | unknown_repo | kotlin | package org.brightify.reactant.controller
import android.app.Activity
import android.view.View
import android.view.ViewGroup
import android.view.inputmethod.InputMethodManager
import android.widget.FrameLayout
import io.reactivex.Observable
import io.reactivex.disposables.CompositeDisposable
import org.brightify.react... |
welite-core/src/test/java/com/ealva/welite/db/expr/ConditionsTests.kt | unknown_repo | kotlin | /*
* Copyright 2020 eAlva.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 required by applicable law or agreed to in... |
app/src/main/java/com/hoangtien2k3/themoviedb/common/MyCountDownTimer.kt | unknown_repo | kotlin | package com.hoangtien2k3.themoviedb.common
import android.os.CountDownTimer
class MyCountDownTimer(startTime: Long, interval: Long, private val func: () -> Unit) :
CountDownTimer(startTime, interval) {
override fun onFinish() = func()
override fun onTick(timer: Long) {}
} |
app/src/main/java/com/finalproject/group14/noteapp/utility/StoreRetrieveData.kt | unknown_repo | kotlin | package com.finalproject.group14.noteapp.utility
import android.content.Context
import org.json.JSONArray
import org.json.JSONException
import org.json.JSONTokener
import java.io.BufferedReader
import java.io.FileInputStream
import java.io.FileNotFoundException
import java.io.FileOutputStream
import java.io.IOExcept... |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/filled/ArrowMaximizeVertical.kt | unknown_repo | kotlin |
package com.konyaco.fluent.icons.filled
import androidx.compose.ui.graphics.vector.ImageVector
import com.konyaco.fluent.icons.Icons
import com.konyaco.fluent.icons.fluentIcon
import com.konyaco.fluent.icons.fluentPath
public val Icons.Filled.ArrowMaximizeVertical: ImageVector
get() {
if (_arrowMaximize... |
app/src/main/java/za/co/varsitycollege/st10204772/opsc7312_poe/Register_Image_Upload.kt | unknown_repo | kotlin | package za.co.varsitycollege.st10204772.opsc7312_poe
import android.content.Intent
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.ImageDecoder
import android.net.Uri
import android.os.Build
import android.os.Bundle
import android.provider.MediaStore
import android.util.Log... |
composeApp/src/commonMain/kotlin/jp/albites/btree/view/screen/theme/ThemeScreen.kt | unknown_repo | kotlin | package jp.albites.btree.view.screen.theme
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.material.icons.Icons
import androidx.compose.mate... |
app/src/main/java/com/gtech/prodialog/MainActivity.kt | unknown_repo | kotlin | package com.gtech.prodialog
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.gtech.pro_dialog.ProDialog
import com.gtech.prodialog.databinding.ActivityMainBinding
class MainActivity : AppCompatActivity() {
private lateinit var binding: ActivityMainBinding
override fun onCr... |
app/src/main/java/dev/tcode/thinmp/view/screen/PlaylistDetailScreen.kt | unknown_repo | kotlin | package dev.tcode.thinmp.view.screen
import androidx.compose.foundation.background
import androidx.compose.foundation.gestures.detectTapGestures
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foun... |
app/src/main/java/xyz/teamgravity/notepad/presentation/theme/Theme.kt | unknown_repo | kotlin | package xyz.teamgravity.notepad.presentation.theme
import android.app.Activity
import android.os.Build
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.*
import androidx.compose.runtime.Composable
import androidx.compose.runtime.SideEffect
import androidx.compose.ui.graphics.toA... |
app/src/main/kotlin/com/ave/vastgui/app/activity/FileActivity.kt | unknown_repo | kotlin | /*
* Copyright 2022 VastGui <EMAIL>
*
* 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 ... |
solar/src/main/java/com/chiksmedina/solar/bold/users/UserPlus.kt | unknown_repo | kotlin | package com.chiksmedina.solar.bold.users
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion... |
photoeditor/src/androidTest/java/ja/burhanrashid52/photoeditor/DrawingViewUndoRedoTest.kt | unknown_repo | kotlin | package ja.burhanrashid52.photoeditor
import androidx.test.ext.junit.runners.AndroidJUnit4
import ja.burhanrashid52.photoeditor.shape.ShapeAndPaint
import junit.framework.TestCase.assertEquals
import junit.framework.TestCase.assertFalse
import org.junit.Test
import org.junit.runner.RunWith
import org.mockito.Mockito
... |
app/src/main/java/top/chilfish/chillchat/data/repository/MessageRepository.kt | unknown_repo | kotlin | package top.chilfish.chillchat.data.repository
import android.util.Log
import com.drake.net.Get
import io.socket.client.Socket
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext
import kotlinx.serialization.encod... |
shared/src/commonMain/kotlin/com/somabits/spanish/ui/product/DataPackCard.kt | unknown_repo | kotlin | package com.somabits.spanish.ui.product
import androidx.compose.foundation.background
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.foun... |
aspoet/src/main/kotlin/com/google/androidstudiopoet/generators/project/GradlewGenerator.kt | unknown_repo | kotlin | /*
Copyright 2017 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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... |
apriltagdetection/src/main/java/com/apriltagdetection/config/model/ApriltagDetection.kt | unknown_repo | kotlin | package com.apriltagdetection.config.model
import android.util.Size
class ApriltagDetection {
// The decoded ID of the tag
var id: Int = 0
// How many error bits were corrected? Note: accepting large numbers of
// corrected errors leads to greatly increased false positive rates.
// NOTE: As of th... |
app/src/main/java/eu/ginlo_apps/ginlo/services/LoadPendingTimedMessagesTask.kt | unknown_repo | kotlin | // Copyright (c) 2020-2024 ginlo.net GmbH
package eu.ginlo_apps.ginlo.services
import android.content.Intent
import androidx.core.app.JobIntentService
import eu.ginlo_apps.ginlo.context.SimsMeApplication
import eu.ginlo_apps.ginlo.exception.LocalizedException
import eu.ginlo_apps.ginlo.greendao.MessageDao
import eu.gi... |
appAndroid/src/main/java/io/github/manuelernesto/meukumbu/ui/send/SendFragment.kt | unknown_repo | kotlin | package io.github.manuelernesto.meukumbu.ui.send
import androidx.lifecycle.ViewModelProvider
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import io.github.manuelernesto.meukumbu.R
class SendFragment : Fragment(... |
app/src/main/java/com/vlv/githubapicompose/ui/screens/home/widget/Search.kt | unknown_repo | kotlin | package com.vlv.githubapicompose.ui.screens.home.widget
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.foundation.text.KeyboardActions
... |
app/src/main/java/com/sdss/workout/setup/SetupFinishScreen.kt | unknown_repo | kotlin | package com.sdss.workout.setup
import android.content.Intent
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.comp... |
character-search/src/test/java/com/leinaro/character_search/CharacterSearchViewModelTest.kt | unknown_repo | kotlin | package com.leinaro.character_search
import androidx.paging.Pager
import com.leinaro.domain.ui_models.CharacterUiModel
import com.leinaro.domain.usecases.GetCharactersUseCase
import io.mockk.MockKAnnotations
import io.mockk.every
import io.mockk.impl.annotations.MockK
import io.mockk.mockk
import io.mockk.verify
impor... |
app/src/test/java/com/gabcode/compassabout/ui/AboutViewModelTest.kt | unknown_repo | kotlin | package com.gabcode.compassabout.ui
import android.util.Log
import com.gabcode.compassabout.domain.FindCharSequenceOccurrencesUseCase
import com.gabcode.compassabout.domain.FindEveryTenthCharacterUseCase
import com.gabcode.compassabout.domain.GrabContentUseCase
import com.gabcode.compassabout.domain.TenthCharacterDoma... |
app/src/test/java/com/gabcode/compassabout/ui/AboutViewModelTest.kt | unknown_repo | kotlin | package com.gabcode.compassabout.ui
import android.util.Log
import com.gabcode.compassabout.domain.FindCharSequenceOccurrencesUseCase
import com.gabcode.compassabout.domain.FindEveryTenthCharacterUseCase
import com.gabcode.compassabout.domain.GrabContentUseCase
import com.gabcode.compassabout.domain.TenthCharacterDoma... |
app/src/test/java/dev/zezula/books/viewmodel/ShelvesViewModelTest.kt | unknown_repo | kotlin | package dev.zezula.books.viewmodel
import dev.zezula.books.MainDispatcherRule
import dev.zezula.books.data.model.shelf.previewShelfEntities
import dev.zezula.books.data.source.db.ShelfAndBookDao
import dev.zezula.books.di.appUnitTestModule
import dev.zezula.books.ui.screen.shelves.ShelvesViewModel
import kotlinx.corou... |
kohii-sample/src/main/java/kohii/v1/sample/ui/overlay/VideoItemHolder.kt | unknown_repo | kotlin | /*
* Copyright (c) 2019 <NAME>, <EMAIL>
*
* 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... |
vector/src/main/java/im/vector/app/core/ui/views/QrCodeImageView.kt | unknown_repo | kotlin | /*
* Copyright 2020 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 ... |
arranger-runtime/src/main/java/dev/mkeeda/arranger/runtime/Run.kt | unknown_repo | kotlin | package dev.mkeeda.arranger.runtime
import androidx.compose.runtime.BroadcastFrameClock
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Composition
import androidx.compose.runtime.CompositionContext
import androidx.compose.runtime.Recomposer
import androidx.compose.runtime.snapshots.Snapshot... |
app/src/main/java/com/example/android/politicalpreparedness/election/VoterInfoViewModel.kt | unknown_repo | kotlin | package com.example.android.politicalpreparedness.election
import android.content.Context
import android.content.Intent
import android.net.Uri
import androidx.lifecycle.*
import com.example.android.politicalpreparedness.network.models.Address
import com.example.android.politicalpreparedness.network.models.Division
imp... |
ground/src/main/java/com/google/android/ground/ui/datacollection/tasks/polygon/DrawAreaTaskMapFragment.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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
ui/ui-core/src/commonMain/kotlin/androidx/ui/core/gesture/GestureUtils.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... |
Tutorial1-1Basics/src/main/java/com/smarttoolfactory/tutorial1_1basics/chapter6_graphics/Tutorial6_13BorderProgressTimer.kt | unknown_repo | kotlin | package com.smarttoolfactory.tutorial1_1basics.chapter6_graphics
import androidx.compose.animation.core.Animatable
import androidx.compose.animation.core.LinearEasing
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animation.core.tween
import androidx.compose.foundation.Canvas
import... |
examples/src/main/kotlin/com/algolia/instantsearch/examples/showcase/view/highlighting/HighlightingShowcase.kt | unknown_repo | kotlin | package com.algolia.instantsearch.examples.showcase.view.highlighting
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.algolia.instantsearch.core.connection.ConnectionHandler
import com.algolia.instantsearch.core.hits.connectHitsView
import com.algolia.instantsearch.examples.R
import... |
core/designsystem/src/main/java/com/jerryalberto/mmas/core/designsystem/theme/Theme.kt | unknown_repo | kotlin | package com.jerryalberto.mmas.core.designsystem.theme
import android.app.Activity
import android.os.Build
import androidx.annotation.VisibleForTesting
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.darkColorScheme
import android... |
client/app/src/main/java/com/healthc/app/presentation/auth/register/UserInfoFragment.kt | unknown_repo | kotlin | package com.example.healthc.presentation.auth.register
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
import an... |
core/src/main/java/io/karte/android/core/logger/Appender.kt | unknown_repo | kotlin | //
// Copyright 2020 PLAID, 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... |
app/src/main/java/cn/cqautotest/sunnybeach/ui/activity/UserCenterActivity.kt | unknown_repo | kotlin | package cn.cqautotest.sunnybeach.ui.activity
import android.annotation.SuppressLint
import androidx.activity.viewModels
import androidx.core.content.ContextCompat
import by.kirich1409.viewbindingdelegate.viewBinding
import cn.cqautotest.sunnybeach.R
import cn.cqautotest.sunnybeach.app.AppActivity
import cn.cqautotest.... |
app/src/main/java/com/teobaranga/monica/contacts/detail/activities/edit/ui/EditContactActivityUiState.kt | unknown_repo | kotlin | package com.teobaranga.monica.contacts.detail.activities.edit.ui
import androidx.compose.foundation.text.input.TextFieldState
import androidx.compose.runtime.Stable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateListOf
import androidx.compose.runtime.mutableStateOf
import androidx... |
core/src/main/java/at/specure/data/dao/CellLocationDao.kt | unknown_repo | kotlin | package at.specure.data.dao
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import androidx.room.Transaction
import at.specure.data.Tables
import at.specure.data.entity.CellLocationRecord
@Dao
interface CellLocationDao {
@Query("SELECT * fro... |
app/src/main/java/com/example/android/politicalpreparedness/election/VoterInfoViewModelFactory.kt | unknown_repo | kotlin | package com.example.android.politicalpreparedness.election
import android.app.Application
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.example.android.politicalpreparedness.network.models.Election
class VoterInfoViewModelFactory(
private val election: Election,
pr... |
app/src/main/java/com/twobbble/view/adapter/ItemShotAdapter.kt | unknown_repo | kotlin | package com.twobbble.view.adapter
import android.animation.AnimatorInflater
import android.animation.AnimatorSet
import android.animation.ObjectAnimator
import android.support.v7.widget.CardView
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.MotionEvent
import andr... |
app/src/test/java/com/stevesoltys/seedvault/transport/backup/ApkBackupTest.kt | unknown_repo | kotlin | package com.stevesoltys.seedvault.transport.backup
import android.content.pm.ApplicationInfo.FLAG_SYSTEM
import android.content.pm.ApplicationInfo.FLAG_TEST_ONLY
import android.content.pm.ApplicationInfo.FLAG_UPDATED_SYSTEM_APP
import android.content.pm.InstallSourceInfo
import android.content.pm.PackageInfo
import an... |
app/src/main/java/com/jesen/cod/gitappkotlin/utils/NaviViewExt.kt | unknown_repo | kotlin | import android.annotation.SuppressLint
import android.support.annotation.IdRes
import android.support.design.widget.NavigationView
import android.support.v4.view.GravityCompat
import android.support.v4.view.ViewCompat
import android.support.v4.widget.DrawerLayout
import android.support.v7.view.menu.MenuItemImpl
import ... |
core/src/main/java/com/loitp/views/layout/roundable/LRoundableLayout.kt | unknown_repo | kotlin | package com.views.layout.roundablelayout
import android.annotation.TargetApi
import android.content.Context
import android.graphics.*
import android.graphics.drawable.GradientDrawable
import android.os.Build
import android.util.AttributeSet
import android.view.View
import android.view.ViewOutlineProvider
import androi... |
app/src/main/java/com/jonnyhsia/storybook/ui/SwipeItemTouchHelper.kt | unknown_repo | kotlin | package com.jonnyhsia.storybook.ui
import android.graphics.Canvas
import android.support.v4.content.ContextCompat
import android.support.v7.widget.RecyclerView
import android.support.v7.widget.helper.ItemTouchHelper
import com.jonnyhsia.storybook.app.App
import com.jonnyhsia.storybook.R
import com.jonnyhsia.storybook.... |
app/src/main/kotlin/com/github/yuriybudiyev/sketches/core/data/repository/implementation/MediaStoreRepositoryImpl.kt | unknown_repo | kotlin | /*
* MIT License
*
* 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, m... |
app/src/main/java/com/redbeanlatte11/factchecker/ui/more/DonationViewModel.kt | unknown_repo | kotlin | package com.redbeanlatte11.factchecker.ui.more
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.redbeanlatte11.factchecker.Event
import com.redbeanlatte11.factchecker.R
import com.redbeanlatte11.factchec... |
app/src/main/java/io/cricket/app/ui/modules/forgot_password/forgot_message/ForgotPasswordMsgVM.kt | unknown_repo | kotlin | package io.cricket.app.ui.modules.forgot_password.forgot_message
import android.os.Bundle
import io.cricket.app.base.BaseStepsViewModel
import io.cricket.app.ui.modules.new_password.NewPasswordFragment
import io.cricket.app.utils.Constants
import javax.inject.Inject
class ForgotPasswordMsgVM @Inject constructor() : B... |
ffc/src/main/kotlin/ffc/android/SoftKeyboard.kt | unknown_repo | kotlin | package ffc.android
import android.app.Activity
import android.view.View
import android.view.inputmethod.InputMethodManager
/**
* from https://stackoverflow.com/a/17789187
*/
fun Activity?.hideSoftKeyboard() {
if (this == null)
return
//Find the currently focused view, so we can grab the correct win... |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/tracing/ui/TracingExplanationDialog.kt | unknown_repo | kotlin | package de.rki.coronawarnapp.tracing.ui
import android.content.Context
import de.rki.coronawarnapp.R
import de.rki.coronawarnapp.ui.main.home.HomeFragment
import de.rki.coronawarnapp.util.DialogHelper
import javax.inject.Inject
class TracingExplanationDialog @Inject constructor(
private val homeFragment: HomeFrag... |
app/src/main/java/com/michelAdrien/AMTT0121/view/device/DeviceFragmentAbs.kt | unknown_repo | kotlin | package com.michelAdrien.AMTT0121.view.device
import androidx.fragment.app.Fragment
import com.michelAdrien.AMTT0121.view.MainFragmentFactory
import com.michelAdrien.AMTT0121.viewModel.device.DeviceViewModelAbs
import dagger.hilt.android.AndroidEntryPoint
@AndroidEntryPoint
abstract class DeviceFragmentAbs : Fragment... |
straight/src/commonMain/kotlin/me/localx/icons/straight/filled/Circle1.kt | unknown_repo | kotlin | package me.localx.icons.straight.filled
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... |
app/src/main/java/com/joeltcollins/unicornpi/SettingsActivity.kt | unknown_repo | kotlin | package com.joeltcollins.unicornpi
import android.os.Bundle
import android.preference.PreferenceActivity
import android.preference.PreferenceFragment
/**
* A [PreferenceActivity] that presents a set of application settings. On
* handset devices, settings are presented as a single list. On tablets,
* settings are ... |
presentation/mypage/src/main/java/com/depromeet/threedays/mypage/MyPageViewModel.kt | unknown_repo | kotlin | package com.depromeet.threedays.mypage
import androidx.lifecycle.viewModelScope
import com.depromeet.threedays.core.BaseViewModel
import com.depromeet.threedays.core.extensions.Empty
import com.depromeet.threedays.domain.exception.ThreeDaysException
import com.depromeet.threedays.domain.usecase.member.GetMyInfoUseCase... |
app/src/main/java/com/crazzylab/rdwallpapers/model/repository/ThemeRepository.kt | unknown_repo | kotlin | package com.crazzylab.rdwallpapers.model.repository
import android.support.v7.app.AppCompatActivity
import com.crazzylab.rdwallpapers.model.data.storage.Prefs
import com.crazzylab.rdwallpapers.model.system.ResourceManager
import javax.inject.Inject
import com.crazzylab.rdwallpapers.R
/**
* Created by Михаил on 29.01... |
android/src/main/java/com/drpogodin/reactnativeaudio/InputAudioStream.kt | unknown_repo | kotlin | package com.drpogodin.reactnativeaudio
import android.media.AudioFormat
import android.media.AudioRecord
import kotlin.math.max
/**
* Represents an input audio stream.
* @param audioSource Audio source. Valid values are:
* https://developer.android.com/reference/android/media/MediaRecorder.AudioSource#summary
* @... |
KCleanArchitectureApp/appdagger/src/main/java/com/woowrale/kcleanarchitecture/ui/search/remote/RemoteSearchActivity.kt | unknown_repo | kotlin | package com.woowrale.kcleanarchitecture.ui.search.local
import android.os.Bundle
import android.util.Log
import android.view.MenuItem
import androidx.recyclerview.widget.DefaultItemAnimator
import androidx.recyclerview.widget.DividerItemDecoration
import androidx.recyclerview.widget.LinearLayoutManager
import com.jake... |
app-wasm/src/wasmJsMain/kotlin/Main.kt | unknown_repo | kotlin | import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.Scaffold
import androidx.compose.material.Text
import androidx.compose.material.TopAppBar
import androidx.compose.runtime.produceState
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.Modifier
import and... |
app-wasm/src/wasmJsMain/kotlin/Main.kt | unknown_repo | kotlin | import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.Scaffold
import androidx.compose.material.Text
import androidx.compose.material.TopAppBar
import androidx.compose.runtime.produceState
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.Modifier
import and... |
app/src/main/java/com/lonard/camerlangproject/mvvm/LibraryViewModel.kt | unknown_repo | kotlin | package com.lonard.camerlangproject.mvvm
import androidx.lifecycle.ViewModel
class LibraryViewModel(private val libraryRepo: LibraryRepository): ViewModel() {
fun retrieveLibraryEntriesList() = libraryRepo.retrieveLibraryEntriesList()
fun retrieveLibraryEntriesListWithSearchQuery(q: String) = libraryRepo.re... |
library/skin/src/main/java/cn/android52/sunnybeach/skin/attr/SkinAttrType.kt | unknown_repo | kotlin | package cn.android52.sunnybeach.skin.attr
import android.content.res.ColorStateList
import android.graphics.drawable.Drawable
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import cn.android52.sunnybeach.skin.manager.SkinManager
/**
* author : <NAME>
* github : https:/... |
presentation/src/commonMain/kotlin/ireader/presentation/core/ui/AdvanceSettingSpec.kt | unknown_repo | kotlin | package ireader.presentation.core.ui
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.runtime.Composable
import cafe.adriel.voyager.navigator.LocalNavigator
import cafe.adriel.voyager.navigator.currentOrThrow
import ireader.i18n.localize
import ireader.presentation.core.VoyagerScreen... |
app/src/main/java/com/example/litemsg/ui/comment/CommentActivity.kt | unknown_repo | kotlin | package com.example.litemsg.ui.comment
import android.annotation.SuppressLint
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.RelativeLayout
import android.widget.TextView
import androidx.appcompat.widget.Toolbar
import androidx.recyclerview.widge... |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/broken/Playadd.kt | unknown_repo | kotlin | package moe.tlaster.icons.vuesax.vuesaxicons.broken
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.... |
DADMApp/app/src/main/java/com/example/dadmapp/data/UserRepository.kt | unknown_repo | kotlin | package com.example.dadmapp.data
import android.util.Log
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.core.edit
import androidx.datastore.preferences.core.stringPreferencesKey
import com.example.dadmapp.exceptions.LoginException
i... |
src/main/kotlin/ui/settings/reducer/MoveUpCategoryReducer.kt | unknown_repo | kotlin | package ui.settings.reducer
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.MutableStateFlow
import ui.settings.SettingsEffect
import ui.settings.SettingsState
import util.swap
import javax.inject.Inject
interface MoveUpCategoryReducer {
ope... |
ui/ui-text-core/src/androidMain/kotlin/androidx/compose/ui/text/platform/extensions/TextPaintExtensions.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/github/ihsg/demo/ui/whole/WholePatternSettingActivity.kt | unknown_repo | kotlin | package com.github.ihsg.demo.ui.whole
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.View
import androidx.core.content.ContextCompat
import com.github.ihsg.base.BaseActivity
import com.github.ihsg.demo.R
import com.github.ihsg.demo.databinding.ActivityWholePat... |
app/src/main/java/com/tcs/ecom/utility/Util.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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
Bi-tu/app/src/main/java/com/kotuz/mesajbulutu/telegramGiris.kt | unknown_repo | kotlin | package com.kotuz.mesajbulutu
import android.content.Intent
import android.net.Uri
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_telegram_giris.*
class telegramGiris : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?... |
android/ui/mobile/src/google/kotlin/com/oztechan/ccc/android/ui/mobile/util/AppReviewUtil.kt | unknown_repo | kotlin | /*
* Copyright (c) 2020 <NAME>. All rights reserved.
*/
package com.oztechan.ccc.android.util
import android.app.Activity
import com.google.android.play.core.review.ReviewManagerFactory
fun requestAppReview(
activity: Activity
) = ReviewManagerFactory.create(activity).apply {
requestReviewFlow().addOnComple... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.