file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/com/funnypaper/simme/data/local/entity/SplineEntity.kt | unknown_repo | kotlin | package com.funnypaper.simme.data.local.entity
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.ForeignKey
import androidx.room.Index
import androidx.room.PrimaryKey
import com.funnypaper.simme.domain.model.SplineModel
@Entity(
tableName = "spline",
foreignKeys = [
Fore... |
app/src/test/java/com/openwallet/ui/activity/fragment/resetpassword/model/ResetPasswordViewModelTest.kt | unknown_repo | kotlin | package com.openwallet.ui.activity.fragment.resetpassword.model
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.lifecycle.MutableLiveData
import com.google.gson.JsonObject
import com.openwallet.app.AppViewModel
import com.openwallet.app.OpenWalletApplication
import com.openwallet.ext... |
app/src/main/java/com/jaiselrahman/wastatus/ui/playlist/PlaylistViewModel.kt | unknown_repo | kotlin | package com.jaiselrahman.wastatus.ui.videos
import androidx.lifecycle.LiveData
import androidx.lifecycle.Transformations
import androidx.lifecycle.ViewModel
import androidx.paging.LivePagedListBuilder
import androidx.paging.PagedList
import com.jaiselrahman.wastatus.data.PlaylistDataSource
import com.jaiselrahman.wast... |
app-compose/src/androidTest/java/com/example/android/trackr/compose/ui/TagGroupTest.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... |
admin/app/src/main/java/com/yazan98/groupyadmin/screens/ProfileScreen.kt | unknown_repo | kotlin | package com.yazan98.groupyadmin.screens
import android.content.Intent
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import com.google.firebase.auth.FirebaseAuth
import com.yazan98.groupyadmin.R
import com.yazan98.groupyadmin.logic.ProfileRepository
import com.yazan98... |
cgps-core/src/main/java/com/genius/cgps/HardwareCGPS.kt | unknown_repo | kotlin | @file:Suppress("UNUSED")
package com.genius.cgps
import android.Manifest
import android.content.Context
import android.location.*
import android.os.Build
import android.os.Bundle
import androidx.annotation.IntRange
import androidx.core.content.ContextCompat
import kotlinx.coroutines.*
import kotlinx.coroutines.channe... |
editor/src/main/java/good/damn/editor/anchors/internal/VEIAnchorableInternal.kt | unknown_repo | kotlin | package good.damn.editor.anchors.internal
import android.graphics.Canvas
import android.graphics.PointF
interface VEIAnchorableInternal {
fun draw(
canvas: Canvas
)
fun checkAnchor(
from: PointF,
to: PointF,
touch: PointF
): PointF?
} |
sample/src/main/java/xyz/louiscad/splittiessample/AppInit.kt | unknown_repo | kotlin | /*
* Copyright (c) 2017. <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 w... |
features/dd-sdk-android-session-replay/src/main/kotlin/com/datadog/android/sessionreplay/internal/recorder/mapper/UnsupportedViewMapper.kt | unknown_repo | kotlin | /*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2016-Present Datadog, Inc.
*/
package com.datadog.android.sessionreplay.internal.recorder.mapper
i... |
sd-client-app/src/jvmMain/kotlin/de/lostmekka/sdwuic/Main.kt | unknown_repo | kotlin | package de.lostmekka.sdwuic
import androidx.compose.desktop.ui.tooling.preview.Preview
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.material.Button
import androidx.compose.material.Checkbox
import androidx.compose.material.CircularProgressIndica... |
app/src/main/java/io/chaldeaprjkt/gamespace/gamebar/SessionService.kt | unknown_repo | kotlin | /*
* Copyright (C) 2021 Chaldeaprjkt
*
* 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/org/y20k/transistor/MainActivity.kt | unknown_repo | kotlin | /*
* MainActivity.kt
* Implements the MainActivity class
* MainActivity is the default activity that can host the player fragment and the settings fragment
*
* This file is part of
* TRANSISTOR - Radio App for Android
*
* Copyright (c) 2015-21 - Y20K.org
* Licensed under the MIT-License
* http://opensource.or... |
app/src/main/java/com/breezebengaldetergentproducts/features/damageProduct/api/GetDamageProductListRegRepository.kt | unknown_repo | kotlin | package com.breezebengaldetergentproducts.features.damageProduct.api
import android.content.Context
import android.net.Uri
import android.text.TextUtils
import android.util.Log
import com.breezebengaldetergentproducts.app.FileUtils
import com.breezebengaldetergentproducts.base.BaseResponse
import com.breezebengaldeter... |
compose/ui/ui/src/androidInstrumentedTest/kotlin/androidx/compose/ui/input/InputInLayerTest.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/java/info/juanmendez/breedgallery/ui/breedlist/viewmodel/BreedObservable.kt | unknown_repo | kotlin | package info.juanmendez.breedgallery.ui.breedlist.viewmodel
import android.databinding.BaseObservable
import android.databinding.Bindable
import info.juanmendez.breedgallery.BR
import info.juanmendez.breedgallery.models.Breed
/**
* Created by <NAME> on 2/15/18.
*
* This is an observable used for recyclerView holde... |
app/src/main/java/net/xaethos/trackernotifier/StoryActivity.kt | unknown_repo | kotlin | package net.xaethos.trackernotifier
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.support.design.widget.CollapsingToolbarLayout
import android.support.design.widget.TabLayout
import android.support.v4.app.FragmentPagerAdapter
import android.support.v4.view.ViewPag... |
navigation-material/src/main/java/com/google/accompanist/navigation/material/SheetContentHost.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 applic... |
app/src/main/java/com/mateuszcholyn/wallet/frontend/view/screen/categoryScreen/CategoryFormStateless.kt | unknown_repo | kotlin | package com.mateuszcholyn.wallet.frontend.view.screen.categoryScreen
import android.annotation.SuppressLint
import androidx.annotation.StringRes
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.comp... |
app/src/main/java/com/jacktor/batterylab/interfaces/views/MenuInterface.kt | unknown_repo | kotlin | package com.jacktor.batterylab.interfaces.views
import android.content.ClipData
import android.content.ClipboardManager
import android.content.Context
import android.content.Intent
import android.os.Build
import android.view.LayoutInflater
import android.widget.Toast
import androidx.appcompat.content.res.AppCompatRes... |
sample/src/main/java/net/mm2d/webclip/SettingsFragment.kt | unknown_repo | kotlin | /*
* Copyright (c) 2019 大前良介 (OHMAE Ryosuke)
*
* This software is released under the MIT License.
* http://opensource.org/licenses/MIT
*/
package net.mm2d.webclip
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import androidx.preference.PreferenceFragmentCompat
import net.mm2d.webc... |
app/src/test/java/FileReader.kt | unknown_repo | kotlin | package com.learning.mygenai
import androidx.appcompat.widget.ThemedSpinnerAdapter.Helper
import java.io.InputStreamReader
object FileReader {
fun readFile(file:String):String {
val inputStream=Helper::class.java.getResourceAsStream(file)
val builder=StringBuilder()
val inputStreamReader=... |
core/src/main/java/io/blockv/core/client/Blockv.kt | unknown_repo | kotlin | /*
* BlockV AG. Copyright (c) 2018, all rights reserved.
*
* Licensed under the BlockV SDK License (the "License"); you may not use this file or the BlockV SDK except in
* compliance with the License accompanying it. Unless required by applicable law or agreed to in writing, the BlockV
* SDK distributed under ... |
app/src/main/java/com/henrikherzig/playintegritychecker/attestation/Requests.kt | unknown_repo | kotlin | package com.henrikherzig.playintegritychecker.attestation
import android.content.ContentValues
import android.util.Log
import okhttp3.OkHttpClient
import okhttp3.Request
import okhttp3.Response
import okhttp3.ResponseBody
import org.json.JSONObject
/**
* sends generic api call and checks for errors in the response
... |
core/network/src/main/java/com/mburakcakir/network/di/NetworkModule.kt | unknown_repo | kotlin | package com.mburakcakir.network.di
import android.content.Context
import com.chuckerteam.chucker.api.ChuckerInterceptor
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.hilt.components.SingletonComponent
import okhttp3.OkHtt... |
plugins/package-search/src/com/jetbrains/packagesearch/intellij/plugin/ui/toolwindow/ToolWindowUtils.kt | unknown_repo | kotlin | package com.jetbrains.packagesearch.intellij.plugin.ui.toolwindow
import com.intellij.openapi.actionSystem.ActionGroup
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.project.Project
import com.intellij.openapi.wm.ToolWindow
import com.intellij.openapi.wm.ex.ToolWindowEx
import com.intell... |
app/src/main/java/tool/xfy9326/schedule/utils/DownloadUtils.kt | unknown_repo | kotlin | package tool.xfy9326.schedule.utils
import android.app.DownloadManager
import android.content.Context
import android.net.Uri
import android.os.Environment
import androidx.core.content.getSystemService
import androidx.core.net.toUri
import io.github.xfy9326.atools.ui.openUrlInBrowser
import tool.xfy9326.schedule.kt.PRO... |
app/src/main/java/com/abdallah_abdelazim/asteroidradar/MainActivity.kt | unknown_repo | kotlin | package com.abdallah_abdelazim.asteroidradar
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.findNavController
import androidx.navigation.fragment.NavHostFragment
import androidx.navigation.ui.AppBarConfiguration
import androidx.navigation.ui.navigateUp
import androi... |
app/src/main/java/com/andria/wordcounter/di/wordcounter/WordCounterComponent.kt | unknown_repo | kotlin | package com.andria.wordcounter.di.wordcounter
import android.app.Activity
import com.andria.wordcounter.bookSelectionScreen.BookSelectionActivity
import com.andria.wordcounter.wordCountScreen.WordCountActivity
import dagger.Subcomponent
import dagger.android.AndroidInjector
@Subcomponent(modules = [WordCounterModule:... |
app/src/main/java/com/github/satoshun/example/StackCardExampleActivity.kt | unknown_repo | kotlin | package com.github.satoshun.example
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
class StackCardExampleActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.stack_card_act)
}
}
|
app/src/main/java/com/github/satoshun/example/StackCardExampleActivity.kt | unknown_repo | kotlin | package com.github.satoshun.example
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
class StackCardExampleActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.stack_card_act)
}
}
|
app/src/main/java/com/lighttigerxiv/simple/mp/compose/screens/main/artist/artist_select_cover/SelectArtistCoverScreen.kt | unknown_repo | kotlin | package com.lighttigerxiv.simple.mp.compose.screens.main.artist.artist_select_cover
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.drawable.Drawable
import android.util.Base64
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import and... |
app/src/main/java/com/bluelock/realdownloader/util/BroadcastService.kt | unknown_repo | kotlin | package com.bluelock.realdownloader.util
import android.app.DownloadManager
import android.app.Service
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.os.Environment
import android.os.IBinder
import android.util.Lo... |
syftlib/src/test/java/org/openmined/syft/integration/AuthenticationTest.kt | unknown_repo | kotlin | package org.openmined.syft.integration
import android.net.NetworkCapabilities
import com.nhaarman.mockitokotlin2.any
import com.nhaarman.mockitokotlin2.argumentCaptor
import com.nhaarman.mockitokotlin2.never
import com.nhaarman.mockitokotlin2.spy
import com.nhaarman.mockitokotlin2.verify
import org.junit.Test
import o... |
Corona-Warn-App/src/test/java/de/rki/coronawarnapp/util/DataBindingAdaptersTest.kt | unknown_repo | kotlin | package de.rki.coronawarnapp.util
import android.content.Context
import android.content.res.Resources
import android.graphics.drawable.Drawable
import android.widget.Switch
import com.airbnb.lottie.LottieAnimationView
import com.airbnb.lottie.LottieDrawable
import de.rki.coronawarnapp.R
import de.rki.coronawarnapp.uti... |
app/src/main/java/com/opsc/timesync/ui/report/ReportFragment.kt | unknown_repo | kotlin | package com.opsc.timesync.ui.report
import android.app.DatePickerDialog
import android.os.Build
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 android.widget.Butt... |
kotlin/samples/tictactoe/app/src/main/java/com/squareup/sample/mainactivity/MainActivity.kt | unknown_repo | kotlin | /*
* Copyright 2017 Square Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
baseKit/src/main/java/me/shetj/base/tools/app/Tim.kt | unknown_repo | kotlin | package me.shetj.base.tools.app
import android.util.Log
import timber.log.Timber
import java.io.File
object Tim {
private val LOG_FILE_PATH = Utils.app.externalCacheDir?.path + File.separator + "baseLog.test"
/**
* 设置log自动在debug打开,在release关闭
* @param isDebug
*/
fun setLogAuto(isDebug: Boo... |
camera/integration-tests/extensionstestapp/src/main/java/androidx/camera/integration/extensions/utils/PermissionUtil.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... |
noty-android/app/composeapp/src/androidTest/java/dev/shreyaspatil/noty/composeapp/component/ConnectivityStatusTest.kt | unknown_repo | kotlin | /*
* Copyright 2020 <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... |
noty-android/app/composeapp/src/androidTest/java/dev/shreyaspatil/noty/composeapp/component/ConnectivityStatusTest.kt | unknown_repo | kotlin | /*
* Copyright 2020 <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... |
dd-sdk-android/src/main/kotlin/com/datadog/android/rum/internal/instrumentation/GesturesTrackingStrategy.kt | unknown_repo | kotlin | /*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2016-Present Datadog, Inc.
*/
package com.datadog.android.rum.internal.instrumentation
import andr... |
core/designsystem/src/test/kotlin/com/merxury/blocker/core/designsystem/BackgroundScreenshotTests.kt | unknown_repo | kotlin | /*
* Copyright 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
app/src/main/java/me/devsaki/hentoid/viewmodels/QueueViewModel.kt | unknown_repo | kotlin | package me.devsaki.hentoid.viewmodels
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MediatorLiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import androidx.work.ExistingWorkPolicy
import... |
app/src/main/java/xyz/teamgravity/swipetodeleteedit/MainViewModel.kt | unknown_repo | kotlin | package xyz.teamgravity.swipetodeleteedit
import androidx.lifecycle.ViewModel
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.flow.update
class MainViewModel : ViewModel() {
private val _names = MutableS... |
3ds2/src/main/java/com/adyen/checkout/adyen3ds2/Adyen3DS2Component.kt | unknown_repo | kotlin | /*
* Copyright (c) 2019 <NAME>.
*
* This file is open source and available under the MIT license. See the LICENSE file for more info.
*
* Created by caiof on 7/5/2019.
*/
package com.adyen.checkout.adyen3ds2
import android.app.Activity
import android.content.Intent
import androidx.lifecycle.LifecycleOwner
import... |
libs/hiltLib041/src/main/java/hilt/benchmark/hiltLib041/HiltLib041ViewModel.kt | unknown_repo | kotlin | package hilt.benchmark.hiltLib041
import androidx.lifecycle.ViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject
@HiltViewModel
class HiltLib041ViewModel @Inject constructor() : ViewModel()
|
sample/src/main/java/com/tyganeutronics/activator/KotlinActivity.kt | unknown_repo | kotlin | package com.tyganeutronics.activator
import android.os.Bundle
import android.view.View
import android.widget.AdapterView
import android.widget.ArrayAdapter
import android.widget.CompoundButton
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.AppCompatCheckBox
import androidx.appcompat.w... |
sample/inbox/src/main/java/com/walletconnect/sample/web3inbox/ui/routes/W3ISampleNavGraph.kt | unknown_repo | kotlin | @file:OptIn(ExperimentalMaterialNavigationApi::class)
package com.walletconnect.sample.web3inbox.ui.routes
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.unit.dp
import androidx.navigation... |
app/src/main/java/com/example/androidweather/db/CityDao.kt | unknown_repo | kotlin | package com.example.androidweather.db
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import io.reactivex.rxjava3.core.Single
@Dao
interface CityDao {
@Query("SELECT * FROM city ORDER BY last_searched_at DESC LIMIT 1")
fun getLastSearchedCit... |
app/src/main/java/com/marknkamau/justjava/utils/NotificationHelper.kt | unknown_repo | kotlin | package com.thuylinhtran.FoodKotlin.utils
import android.app.NotificationChannel
import android.app.NotificationManager
import android.content.Context
import android.os.Build
import androidx.annotation.RequiresApi
import androidx.core.app.NotificationCompat
import androidx.core.content.ContextCompat
import com.marknju... |
vector/src/main/java/im/vector/riotx/features/crypto/verification/qrconfirmation/VerificationQrScannedByOtherFragment.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 ... |
core/resources/src/main/java/com/sapiest/vaultspace/core/resources/ResourcesProvider.kt | unknown_repo | kotlin | package com.sapiest.vaultspace.core.resources
import android.graphics.drawable.Drawable
import androidx.annotation.ColorRes
import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
interface ResourcesProvider {
fun getString(@StringRes resId: Int): String
fun getColor(@ColorRes resId: Int):... |
core/resources/src/main/java/com/sapiest/vaultspace/core/resources/ResourcesProvider.kt | unknown_repo | kotlin | package com.sapiest.vaultspace.core.resources
import android.graphics.drawable.Drawable
import androidx.annotation.ColorRes
import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
interface ResourcesProvider {
fun getString(@StringRes resId: Int): String
fun getColor(@ColorRes resId: Int):... |
app/src/main/java/jp/gr/aqua/dropbox/provider/MainActivity.kt | unknown_repo | kotlin | package jp.gr.aqua.dropbox.provider
import android.os.Bundle
import android.provider.DocumentsContract
import androidx.appcompat.app.AppCompatActivity
import com.dropbox.core.android.Auth
import jp.gr.aqua.dropbox.provider.databinding.ActivityMainBinding
class MainActivity : AppCompatActivity() {
private val pr... |
demo/src/main/java/otpview/demo/ToggleController.kt | unknown_repo | kotlin | package otpview.demo
import android.widget.Checkable
internal abstract class ToggleController(private val checkable: Checkable) {
fun setActive(newActive: Boolean) {
checkable.isChecked = newActive
if (newActive) {
onActive()
} else {
onInactive()
}
}
abstract fun onActive()
abst... |
demo-app/src/main/java/com/github/mrbean355/android/demo/CountryListActivity.kt | unknown_repo | kotlin | package com.github.mrbean355.android.demo
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.SearchView
import androidx.recyclerview.widget.RecyclerView
import com.github.mrbean355.a... |
app/src/main/java/dev/koffein/shoppingreminder/fragments/ItemEditDialog.kt | unknown_repo | kotlin | package dev.koffein.shoppingreminder.fragments
import android.app.Dialog
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import androidx.core.os.bundleOf
import androidx.fragment.app.activityViewModels
import androidx.fragment.app.setFragmentResult
import co... |
core/src/main/java/com/mksoftware101/core/datetime/AndroidThreeTenDateTime.kt | unknown_repo | kotlin | package com.mksoftware101.core.datetime
import android.app.Application
import com.jakewharton.threetenabp.AndroidThreeTen
object AndroidThreeTenDateTime {
fun initialize(context: Application) {
AndroidThreeTen.init(context)
}
} |
app/src/main/java/com/santansarah/blescanner/presentation/scan/device/Device.kt | unknown_repo | kotlin | package com.santansarah.blescanner.presentation.scan.device
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.MoreVert
import androidx.c... |
app/src/main/java/com/example/myfirstproject/MainActivity.kt | unknown_repo | kotlin | package com.example.myfirstproject
import android.annotation.SuppressLint
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import android.widget.EditText
import android.widget.TextView
import android.widget.Toast
class MainActivity : A... |
app/src/main/java/io/bibuti/opennews/data/db/NewsDao.kt | unknown_repo | kotlin | package io.bibuti.opennews.data.db
import androidx.paging.PagingSource
import androidx.room.*
/**
* Defining the DAOs for performing DB operations
*/
@Dao
interface NewsDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
suspend fun saveNews(news: List<SingleNewsItem>)
@Query("select * from news_ta... |
app/src/main/java/com/example/jsonplaceholder/ui/login/LoginScreen.kt | unknown_repo | kotlin | package com.example.jsonplaceholder.ui.login
import android.annotation.SuppressLint
import android.app.Activity
import android.widget.Toast
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.activity.result.contract.ActivityResultContracts
import androidx.compose.foundation.Image
import... |
android/khajit/app/src/main/java/com/project/khajit_app/activity/ui/other_profile/OtherUserProfile.kt | unknown_repo | kotlin | package com.project.khajit_app.activity.ui.other_profile
import android.graphics.Color
import androidx.lifecycle.ViewModelProviders
import android.os.Bundle
import android.text.method.ScrollingMovementMethod
import android.util.Log
import android.view.KeyEvent
import androidx.fragment.app.Fragment
import android.view.... |
biometric/src/main/java/dev/skomlach/biometric/compat/engine/internal/face/miui/impl/Miui3DFaceManagerImpl.kt | unknown_repo | kotlin | /*
* Copyright (c) 2023 <NAME> aka Salat-Cx65; Original project https://github.com/Salat-Cx65/AdvancedBiometricPromptCompat
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy ... |
app/src/main/java/com/quixom/apps/deviceinfo/views/CPUView.kt | unknown_repo | kotlin | package com.quixom.apps.deviceinfo.views
import android.view.Gravity
import android.widget.LinearLayout
import com.quixom.apps.deviceinfo.fragments.CPUFragment
import org.jetbrains.anko.*
/**
* Created by akif on 9/25/17.
*/
class CPUView : AnkoComponent<CPUFragment> {
private lateinit var ankoContext: AnkoCon... |
compose/ui/ui-test/src/commonMain/kotlin/androidx/compose/ui/test/TestOwner.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... |
font-awesome/src/commonMain/kotlin/compose/icons/fontawesomeicons/solid/KissWinkHeart.kt | unknown_repo | kotlin | package compose.icons.fontawesomeicons.solid
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Butt
import androidx.compose.ui.graphics.StrokeJoin.Miter
import androidx.compose.... |
font-awesome/src/commonMain/kotlin/compose/icons/fontawesomeicons/solid/KissWinkHeart.kt | unknown_repo | kotlin | package compose.icons.fontawesomeicons.solid
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Butt
import androidx.compose.ui.graphics.StrokeJoin.Miter
import androidx.compose.... |
app/src/main/java/com/guru/composecookbook/ui/learnwidgets/AppBars.kt | unknown_repo | kotlin | package com.guru.composecookbook.ui.learnwidgets
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material.*
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowB... |
sample/src/main/kotlin/br/com/zup/beagle/sample/BeagleUiSampleApplication.kt | unknown_repo | kotlin | /*
* Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA
*
* 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... |
mvvm/src/main/java/com/taonce/mvvm/util/LogUtils.kt | unknown_repo | kotlin | package com.moyoi.library_base.utils
import android.util.Log
/**
* 常用的日志打印类
*/
const val COMMON_TAG = "WanAndroid"
private const val IS_SHOW_LOG: Boolean = true
fun showDebug(
msg: String,
tag: String = COMMON_TAG
) {
if (IS_SHOW_LOG) {
Log.d(tag, zipLogMsg(msg))
}
}
fun showError(
m... |
examples/androidx-samples/src/main/java/org/koin/sample/sandbox/navigation/NavFragmentA.kt | unknown_repo | kotlin | package org.koin.sample.androidx.navigation
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import androidx.navigation.fragment.findNavController
import org.koin.androidx.navigation.koi... |
components/bridge/impl/src/main/java/com/flipperdevices/bridge/impl/manager/service/FlipperVersionApiImpl.kt | unknown_repo | kotlin | package com.flipperdevices.bridge.impl.manager.service
import android.bluetooth.BluetoothGatt
import android.bluetooth.BluetoothGattCharacteristic
import androidx.datastore.core.DataStore
import com.flipperdevices.bridge.api.manager.ktx.state.FlipperSupportedState
import com.flipperdevices.bridge.api.manager.service.F... |
samples/kaspresso-sample/src/androidTest/kotlin/com/kaspersky/kaspressample/docloc_tests/advanced/AdvancedScreenshotSampleTestLegacy.kt | unknown_repo | kotlin | package com.kaspersky.kaspressample.docloc_tests.advanced
import android.graphics.Color
import androidx.fragment.app.testing.launchFragmentInContainer
import com.kaspersky.kaspressample.docloc.ScreenshotSampleFragment
import com.kaspersky.kaspressample.docloc.ScreenshotSampleView
import com.kaspersky.kaspresso.annotat... |
app/src/main/java/xyz/teamgravity/todo/data/local/converter/TodoConverter.kt | unknown_repo | kotlin | package xyz.teamgravity.todo.data.local.converter
import androidx.room.TypeConverter
import java.util.*
class TodoConverter {
@TypeConverter
fun dateToLong(value: Date): Long {
return value.time
}
@TypeConverter
fun longToDate(value: Long): Date {
return Date(value)
}
} |
android/app/src/main/java/com/thedevgang/liga/presentation/ui/players/PlayersViewModel.kt | unknown_repo | kotlin | package com.thedevgang.liga.presentation.ui.players
import androidx.lifecycle.ViewModel
class PlayersViewModel : ViewModel() {
// TODO: Implement the ViewModel
}
|
vector/src/main/java/vmodev/clearkeep/viewmodels/FeedBackFragmentViewModel.kt | unknown_repo | kotlin | package vmodev.clearkeep.viewmodels
import androidx.lifecycle.LiveData
import vmodev.clearkeep.repositories.FeedbackRepository
import vmodev.clearkeep.rests.models.responses.FeedbackResponse
import vmodev.clearkeep.viewmodelobjects.Resource
import vmodev.clearkeep.viewmodels.interfaces.AbstractFeedBackFragmentViewMode... |
feature/profile/src/main/java/com/niyaj/profile/components/AccountInfoBox.kt | unknown_repo | kotlin | /*
* Copyright 2024 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... |
videoplayerapp/src/main/java/com/example/android/videoplayersample/MediaCatalog.kt | unknown_repo | kotlin | /*
* Copyright 2018 Google LLC. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
build/icons/compose/vitaminicons/fill/Barcode.kt | unknown_repo | kotlin | package com.decathlon.vitamin.compose.vitaminicons.fill
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin... |
app/src/main/java/com/example/hotpopcorn/view/main/MainActivity.kt | unknown_repo | kotlin | package com.example.hotpopcorn.view.main
import android.content.Intent
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.SearchView
import androidx.lifecycle.ViewModelProvider
import a... |
Android/App_qixiashan/App/src/main/java/com/zktony/android/ui/upgradeMode.kt | unknown_repo | kotlin | package com.zktony.android.ui
import android.content.Context
import android.graphics.Color.rgb
import android.os.Build
import android.os.storage.StorageManager
import android.util.Log
import android.widget.Toast
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.ExperimentalFoundationAp... |
app/src/main/java/com/harshalv/jetpackcompose/model/MockData.kt | unknown_repo | kotlin | package com.harshalv.jetpackcompose.model
import android.icu.text.SimpleDateFormat
import android.util.Log
import com.harshalv.jetpackcompose.R
import java.util.Calendar
import java.util.Date
import java.util.Locale
object MockData {
val topNewsList = listOf<NewsData>(
NewsData(
1,
... |
app/src/main/java/com/example/mrakopediareader/api/Queue.kt | unknown_repo | kotlin | package com.example.mrakopediareader.api
import android.content.Context
import com.android.volley.Request
import com.android.volley.RequestQueue
import com.android.volley.RetryPolicy
import com.android.volley.toolbox.JsonArrayRequest
import com.android.volley.toolbox.JsonObjectRequest
import com.android.volley.toolbox... |
loader/src/main/java/com/pyamsoft/pydroid/loader/glide/GlideLoader.kt | unknown_repo | kotlin | /*
* Copyright 2020 <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/github/unborn2016/mykotlindemo/BaseApplication.kt | unknown_repo | kotlin | package com.github.unborn2016.mykotlindemo
import android.annotation.SuppressLint
import android.app.Application
import android.content.Context
/**
* Created by Unborn on 2021/7/7.
*/
class BaseApplication : Application() {
companion object {
const val TOKEN = "123"
@SuppressLint("StaticFieldL... |
legacy/core/src/commonMain/kotlin/atom/Buttons.kt | unknown_repo | kotlin | package opensavvy.decouple.core.atom
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.runtime.setValue
import kotlinx.coroutines.CoroutineScope
import opensavvy.decouple.core.UI
import opensavvy.decouple.c... |
data/src/main/java/com/hackertronix/model/countries/Latest.kt | unknown_repo | kotlin | package com.hackertronix.model.countries
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
@Entity
data class Latest(
@PrimaryKey(autoGenerate = true)
val id: Int = 0,
@Json(name = "confirmed")
... |
app/src/main/java/com/oguzdogdu/wallieshd/presentation/detail/DetailViewModel.kt | unknown_repo | kotlin | package com.oguzdogdu.wallieshd.presentation.detail
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.oguzdogdu.domain.model.favorites.FavoriteImages
import com.oguzdogdu.domain.repository.DataStore
import com.oguzdogdu.domain.usecase.auth.GetCheckUserAuthStateUseCase
import com.o... |
app/src/main/java/com/example/sunnyweather/ui/place/PlaceAdapter.kt | unknown_repo | kotlin | package com.example.sunnyweather.ui.place
import android.content.Intent
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.RecyclerView
import com.exam... |
app/src/main/java/com/theone/music/viewmodel/MusicInfoViewModel.kt | unknown_repo | kotlin | package com.theone.music.viewmodel
import android.util.Log
import androidx.lifecycle.viewModelScope
import com.theone.music.data.model.CollectionEvent
import com.theone.music.data.model.Music
import com.theone.music.data.repository.DataRepository
import com.theone.common.callback.databind.BooleanObservableField
import... |
test/libs/src/main/java/id/apwdevs/app/libs/util/RecyclerTestAdapter.kt | unknown_repo | kotlin | package id.apwdevs.app.libs.util
import android.annotation.SuppressLint
import android.util.Log
import android.view.View
import android.view.ViewGroup
import androidx.paging.PagingDataAdapter
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView
import id.apwdevs.app.data.source... |
imagekit/src/test/java/com/imagekit/android/preprocess/ImageUploadPreprocessorTest.kt | unknown_repo | kotlin | package com.imagekit.android.preprocess
import android.app.Application
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.Point
import com.imagekit.android.ImageKit
import org.junit.After
import org.junit.Assert.*
import org.junit.Before
import org.junit.Test
import org.junit.... |
libandroid-navigation/src/main/java/com/mapbox/services/android/navigation/v5/internal/navigation/NavigationLifecycleMonitor.kt | unknown_repo | kotlin | package com.mapbox.services.android.navigation.v5.internal.navigation
import android.app.Activity
import android.app.Application
import android.content.res.Configuration
import android.os.Bundle
import java.util.ArrayList
internal class NavigationLifecycleMonitor(
application: Application
) : Application.Activity... |
stretchez/src/main/java/me/shangdelu/stretchez/ui/main/ui/dashboard/StretchPlanListFragment.kt | unknown_repo | kotlin | package me.shangdelu.stretchez.ui.main.ui.dashboard
import android.graphics.Color
import android.os.Bundle
import android.view.*
import android.widget.TextView
import androidx.coordinatorlayout.widget.CoordinatorLayout
import androidx.core.view.MenuHost
import androidx.core.view.MenuProvider
import androidx.fragment.a... |
RxKit/src/main/java/com/tamsiree/rxkit/RxSPTool.kt | unknown_repo | kotlin | package com.tamsiree.rxkit
import android.content.Context
/**
* SharedPreferences工具类
*
* @author tamsiree
* @date 2016/1/24
*/
object RxSPTool {
private const val JSON_CACHE = "JSON_CACHE"
/**
* 存入自定义的标识的数据 可以近似的看作网络下载数据的缓存
* 单条方式存入
*
* @param context 使用的上下文
* @param tag 存入内... |
brd-android/registration/src/main/java/com/fabriik/registration/ui/views/EnterCodeView.kt | unknown_repo | kotlin | package com.fabriik.registration.ui.views
import android.content.Context
import android.graphics.*
import android.text.InputFilter
import android.text.InputType
import android.util.AttributeSet
import android.view.inputmethod.EditorInfo
import androidx.appcompat.widget.AppCompatEditText
import androidx.core.content.Co... |
InkBetterAndroidViews/src/main/java/com/inlacou/inkbetterandroidviews/listenerstoflow/OnLongTouchIncrementFiringSpeedFlow.kt | unknown_repo | kotlin | package com.inlacou.inkbetterandroidviews.listenerstoflow
import android.view.MotionEvent
import android.view.View
import io.reactivex.rxjava3.core.ObservableEmitter
import io.reactivex.rxjava3.core.ObservableOnSubscribe
import kotlinx.coroutines.channels.ProducerScope
import kotlinx.coroutines.channels.awaitClose
im... |
domain/src/main/java/com/example/domain/entity/pharmacySendRequest/FindNearstPharmacy.kt | unknown_repo | kotlin | package com.example.domain.entity.pharmacySendRequest
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
data class FindNearestPharmacy(
val products: List<String>
): Parcelable |
domain/src/main/java/com/example/domain/entity/pharmacySendRequest/FindNearstPharmacy.kt | unknown_repo | kotlin | package com.example.domain.entity.pharmacySendRequest
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
data class FindNearestPharmacy(
val products: List<String>
): Parcelable |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.