file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
lib/src/main/java/io/ashkay/crashgrabber/api/CrashGrabber.kt | unknown_repo | kotlin | package io.ashkay.crashgrabber.api
import android.content.Context
import android.content.Intent
import android.content.pm.ShortcutInfo
import android.content.pm.ShortcutManager
import android.graphics.drawable.Icon
import android.os.Build
import android.util.Log
import androidx.core.content.getSystemService
import cra... |
compiler-plugin-ksp/src/main/kotlin/com/ing/zkflow/processors/serialization/hierarchy/types/Basic.kt | unknown_repo | kotlin | package com.ing.zkflow.processors.serialization.hierarchy.types
import com.google.devtools.ksp.symbol.KSTypeReference
import com.ing.zkflow.processors.serialization.hierarchy.SerializingHierarchy
import com.ing.zkflow.serialization.serializer.WrappedFixedLengthKSerializerWithDefault
import com.ing.zkflow.tracking.Trac... |
app/src/main/java/com/example/fuelrecords/EditActivity.kt | unknown_repo | kotlin | package com.example.fuelrecords
import android.content.Context
import android.content.Intent
import android.content.SharedPreferences
import android.os.Bundle
import android.view.View
import android.widget.AdapterView
import android.widget.ArrayAdapter
import androidx.appcompat.app.AppCompatActivity
import androidx.co... |
Code/core/presentation/designsystem/src/main/java/com/istudio/core/presentation/designsystem/dimen/CustomDimens.kt | unknown_repo | kotlin | package com.istudio.core.presentation.designsystem.dimen
import androidx.compose.material3.windowsizeclass.WindowSizeClass
import androidx.compose.material3.windowsizeclass.WindowWidthSizeClass
import androidx.compose.runtime.staticCompositionLocalOf
import com.istudio.core.presentation.designsystem.dimen.screens.Intr... |
app/src/main/java/com/example/mcard/domain/viewModels/basic/other/SettingsViewModel.kt | unknown_repo | kotlin | package com.example.mcard.domain.viewModels.basic.other
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.example.mcard.R
import com.example.mcard.domain.models.basic.other.SettingsModel
import com.example.mcard.repository.di.AppComponent
i... |
app/src/main/java/com/example/project_music/adapters/base_adapters/BaseAdapterCallBack.kt | unknown_repo | kotlin | package com.example.project_music.adapters.base_adapters
import android.view.View
interface BaseAdapterCallBack<T> {
fun onItemClick(model: T, view: View)
fun onLongClick(model: T, view: View)
}
|
app/src/main/java/com/example/libbit/MakeReservationFragment.kt | unknown_repo | kotlin | package com.example.libbit
import android.R
import android.app.AlertDialog
import android.app.DatePickerDialog
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ArrayAdapter
import android.widget.Spinner
import android.widget.Toast
... |
feature/core/src/main/kotlin/com/masselis/tpmsadvanced/core/feature/ioc/VehicleModule.kt | unknown_repo | kotlin | package com.masselis.tpmsadvanced.core.feature.ioc
import com.masselis.tpmsadvanced.core.feature.usecase.VehicleStateFlowUseCase
import com.masselis.tpmsadvanced.data.car.model.Vehicle
import dagger.Module
import dagger.Provides
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.SupervisorJob
import ko... |
android-core/designsystem/src/main/kotlin/com/thomaskioko/tvmaniac/compose/theme/Colors.kt | unknown_repo | kotlin | package com.thomaskioko.tvmaniac.compose.theme
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.compositeOver
import androidx.compose.ui.graphics.luminance
import kotlin.math.max
import kotlin.math.m... |
sample/src/commonMain/kotlin/com/dokar/sonner/sample/ViewModelSample.kt | unknown_repo | kotlin | @file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
package com.dokar.sonner.sample
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.ExperimentalLayoutApi
import androidx... |
pager/src/androidTest/java/com/google/accompanist/pager/VerticalPagerTest.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... |
example/shared/src/androidMain/kotlin/com/splendo/kaluga/example/shared/viewmodel/permissions/NotificationPermissionViewModel.kt | unknown_repo | kotlin | /*
Copyright 2023 Splendo Consulting B.V. The Netherlands
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by appli... |
app/src/main/java/com/axondragonscale/wallmatic/ui/common/TabHeader.kt | unknown_repo | kotlin | package com.axondragonscale.wallmatic.ui.common
import android.content.res.Configuration
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.mater... |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/regular/StarEdit.kt | unknown_repo | kotlin |
package com.konyaco.fluent.icons.regular
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.Regular.StarEdit: ImageVector
get() {
if (_starEdit != null) {
... |
app/src/main/java/com/tekfoods/features/activities/presentation/ActivityShopListFragment.kt | unknown_repo | kotlin | package com.bengaldetergentfsm.features.activities.presentation
import android.content.Context
import android.os.Bundle
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import android.text.TextUtils
import android.view.LayoutInflater
import android.view.View
impo... |
app/src/main/java/com/funs/eye/ui/community/commend/detail/UgcDetailAdapter.kt | unknown_repo | kotlin | package com.funs.eye.ui.community.commend.detail
import android.view.View
import android.view.ViewGroup
import android.widget.FrameLayout
import android.widget.ImageView
import android.widget.LinearLayout
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import androidx.viewpager2.widget.... |
app/src/main/java/com/example/android_study/android/webview/interaction/js_call_android/JsInteractionActivity.kt | unknown_repo | kotlin | package com.example.android_study.android.webview.interaction.js_call_android
import android.os.Bundle
import com.example.android_study.R
import com.example.android_study._base.BaseActivity
import kotlinx.android.synthetic.main.activity_android_webview_interaction_js_call.*
class JsInteractionActivity : BaseActivity(... |
app/src/main/java/com/kcteam/features/shopdetail/presentation/api/addcollection/AddCollectionRepo.kt | unknown_repo | kotlin | package com.breezefsmparas.features.shopdetail.presentation.api.addcollection
import android.content.Context
import android.net.Uri
import android.text.TextUtils
import com.breezefsmparas.app.FileUtils
import com.breezefsmparas.base.BaseResponse
import com.breezefsmparas.features.dashboard.presentation.DashboardActivi... |
app/src/main/java/com/hfut/schedule/ui/Activity/success/cube/Settings/Monet/MonetColorItem.kt | unknown_repo | kotlin | package com.hfut.schedule.ui.ComposeUI.Settings.Monet
import android.annotation.SuppressLint
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.expandVertically
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.animation.scale... |
app/src/main/java/id/dtprsty/chatttoy/main/adapter/HolderMessageTo.kt | unknown_repo | kotlin | package id.dtprsty.chatttoy.main.adapter
import android.view.View
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.bumptech.glide.request.RequestOptions
import id.dtprsty.chatttoy.R
import id.dtprsty.chatttoy.data.Message
import id.dtprsty.chatttoy.data.UserInfo
import kotlin... |
app/src/main/java/com/readbeard/openbrewery/app/App.kt | unknown_repo | kotlin | package com.readbeard.openbrewery.app
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
import timber.log.Timber
@HiltAndroidApp
class App : Application() {
override fun onCreate() {
super.onCreate()
if (BuildConfig.DEBUG) {
Timber.plant(Timber.DebugTree())
... |
network/src/main/java/androidx/essentials/network/DataStore.kt | unknown_repo | kotlin | package androidx.essentials.network
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.*
import androidx.lifecycle.MediatorLiveData
import androidx.lifecycle.asLiveData
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.flow.map
import kotlinx.coroutines.launch
import k... |
newcall_library/src/main/java/com/cmcc/newcalllib/adapter/ar/local/LocalARAdapter.kt | unknown_repo | kotlin | /*
* Copyright (c) 2022 China Mobile Communications Group Co.,Ltd. All rights reserved.
*
* Licensed under the XXXX License, Version X.X (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://xxxxxxx/licenses/LICENSE-X.X
*
* Unl... |
app/src/main/java/com/meuus90/imagesearch/model/data/source/local/BaseDao.kt | unknown_repo | kotlin | package com.meuus90.daumbooksearch.model.data.source.local
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Update
interface BaseDao<T> {
@Insert(onConflict = OnConflictStrategy.REPLACE)
suspend fun insert(vararg obj: T)
@Insert(onConfli... |
app/src/main/java/com/example/android/politicalpreparedness/election/ElectionsFragment.kt | unknown_repo | kotlin | package com.example.android.politicalpreparedness.election
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavController
import com.example.android.politicalpreparedness.data... |
media/src/test/kotlin/fr/nihilus/music/media/playlists/PlaylistFixtures.kt | unknown_repo | kotlin | /*
* Copyright 2022 Thibault Seisel
*
* 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... |
media/src/test/kotlin/fr/nihilus/music/media/playlists/PlaylistFixtures.kt | unknown_repo | kotlin | /*
* Copyright 2022 Thibault Seisel
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
app/src/main/java/com/scnr/MainActivity.kt | unknown_repo | kotlin | package com.scnr
import android.os.Bundle
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.lifecycle.ViewModelProvider
import androidx.viewpager2.adapter.FragmentStateAdapter
import androidx.viewpager2.widget.ViewPager2
import com.scnr.ui.CameraXFragment
import com.sc... |
sample/androidApp/src/main/java/com/attafitamim/kabin/sample/android/MainActivity.kt | unknown_repo | kotlin | package com.attafitamim.kabin.sample.android
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.attafitamim.kabin.core.database.KabinDatabaseConfiguration
import com.attafitamim.kabin.local.Playground
class MainActivity : AppCompatActivity() {
private val playground: Playground b... |
constraintlayout/compose/src/main/java/androidx/constraintlayout/compose/ConstraintSetParser.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... |
src/main/java/graphene/rpc/Clients.kt | unknown_repo | kotlin | package graphene.rpc
import graphene.app.API
import graphene.app.APIType
import graphene.extension.info
import graphene.serializers.GRAPHENE_JSON_PLATFORM_SERIALIZER
import io.ktor.client.*
import io.ktor.client.engine.cio.*
import io.ktor.client.plugins.contentnegotiation.*
import io.ktor.client.plugins.websocket.*
i... |
libraries/splitfeature/src/main/java/com/lgdevs/splitfeature/DownloadFeature.kt | unknown_repo | kotlin | package com.lgdevs.splitfeature
import android.util.Log
import androidx.compose.foundation.layout.*
import androidx.compose.material.AlertDialog
import androidx.compose.material.CircularProgressIndicator
import androidx.compose.material.Text
import androidx.compose.runtime.*
import androidx.compose.runtime.saveable.re... |
app/src/main/java/ru/iddqdpwn/vkonkurse/local/db/dao/GiveawayDao.kt | unknown_repo | kotlin | package ru.iddqdpwn.vkonkurse.local.db.dao
import androidx.lifecycle.LiveData
import androidx.room.*
import ru.iddqdpwn.vkonkurse.local.db.model.Giveaway
@Dao
interface GiveawayDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
fun insert(giveaway: Giveaway)
@Delete
fun delete(giveaway: Giveaway)... |
app/src/main/kotlin/com/dot/gallery/feature_node/presentation/edit/components/filters/FilterSelector.kt | unknown_repo | kotlin | package com.dot.gallery.feature_node.presentation.edit.components.filters
import androidx.compose.animation.animateColorAsState
import androidx.compose.animation.core.animateDpAsState
import androidx.compose.foundation.Image
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import ... |
app/src/main/java/com/gms/app/repo/videos/VideosRepo.kt | unknown_repo | kotlin | package com.gms.app.repo.videos
import android.util.Log
import com.gms.app.data.storage.local.PreferencesHelper
import com.gms.app.data.storage.local.db.AppDao
import com.gms.app.data.storage.remote.model.auth.CountryModel
import com.gms.app.data.storage.remote.model.auth.GenderModel
import com.gms.app.data.storage.re... |
app/src/main/java/io/wookey/wallet/feature/setting/NodeListActivity.kt | unknown_repo | kotlin | package io.wookey.wallet.feature.setting
import android.app.Activity
import android.arch.lifecycle.Observer
import android.arch.lifecycle.ViewModelProviders
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.support.v4.content.ContextCompat
import android.support.v7.widget.Lin... |
android/fedmlsdk/src/main/java/ai/fedml/edge/utils/CpuUtils.kt | unknown_repo | kotlin | package ai.fedml.edge.utils
import android.os.Build
import android.text.TextUtils
import java.io.BufferedReader
import java.io.IOException
import java.io.InputStreamReader
import java.io.RandomAccessFile
object CpuUtil {
private var mProcStatFile: RandomAccessFile? = null
private var mAppStatFile: RandomAcces... |
composeApp/src/desktopMain/kotlin/main.kt | unknown_repo | kotlin | import androidx.compose.desktop.ui.tooling.preview.Preview
import androidx.compose.runtime.Composable
import androidx.compose.ui.window.Window
import androidx.compose.ui.window.application
fun main() = application {
Window(onCloseRequest = ::exitApplication, title = "kotlin-multiplatform") {
App()
}
}
... |
app/src/main/java/com/alexbezhan/instagram/data/firebase/FirebaseUsersRepository.kt | unknown_repo | kotlin | package com.app.instagram.data.firebase
import android.net.Uri
import androidx.lifecycle.LiveData
import com.app.instagram.common.Event
import com.app.instagram.common.EventBus
import com.app.instagram.common.task
import com.app.instagram.common.toUnit
import com.app.instagram.data.UsersRepository
import com.app.insta... |
app/src/main/java/com/alexbezhan/instagram/data/firebase/FirebaseUsersRepository.kt | unknown_repo | kotlin | package com.app.instagram.data.firebase
import android.net.Uri
import androidx.lifecycle.LiveData
import com.app.instagram.common.Event
import com.app.instagram.common.EventBus
import com.app.instagram.common.task
import com.app.instagram.common.toUnit
import com.app.instagram.data.UsersRepository
import com.app.insta... |
app/src/main/java/cn/cqautotest/sunnybeach/ui/adapter/msg/LikeMsgAdapter.kt | unknown_repo | kotlin | package cn.cqautotest.sunnybeach.ui.adapter.msg
import android.annotation.SuppressLint
import android.view.ViewGroup
import androidx.core.text.parseAsHtml
import androidx.paging.PagingDataAdapter
import androidx.recyclerview.widget.RecyclerView
import cn.cqautotest.sunnybeach.databinding.LikeMsgListItemBinding
import ... |
ui/src/main/java/com/mpapps/marvelcompose/ui/views/character/viewmodel/CharacterDetailViewModel.kt | unknown_repo | kotlin | package com.mpapps.marvelcompose.ui.views.character.viewmodel
import android.net.Uri
import androidx.lifecycle.viewModelScope
import com.google.gson.Gson
import com.mpapps.marvelcompose.domain.model.Characters
import com.mpapps.marvelcompose.domain.usecase.GetComicFromCharacterUseCase
import com.mpapps.marvelcompose.u... |
zoomimage-compose-sketch/src/main/java/com/github/panpf/zoomimage/compose/sketch/internal/AsyncImage.kt | unknown_repo | kotlin | package com.github.panpf.sketch.compose
import androidx.compose.runtime.Composable
import androidx.compose.runtime.NonRestartableComposable
import androidx.compose.runtime.Stable
import androidx.compose.runtime.remember
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui... |
android-compose/inventory-app/app/src/main/java/com/example/inventory/ui/home/HomeViewModel.kt | unknown_repo | kotlin | package com.notas.inventory
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.notas.inventory.data.Item
import com.notas.inventory.data.ItemsRepository
import kotlinx.coroutines.flow.SharingStarted
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.map
import ... |
app/src/main/java/com/adematici/covidturkey/activity/SplashScreen.kt | unknown_repo | kotlin | package com.adematici.covidturkey.activity
import android.content.Intent
import android.os.Build
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.view.WindowInsets
import android.view.WindowManager
import com.adematici.covidturke... |
common/src/main/java/com/edgeverse/wallet/common/utils/KotlinExt.kt | unknown_repo | kotlin | package com.edgeverse.wallet.common.utils
import android.net.Uri
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Deferred
import kotlinx.coroutines.async
import java.io.InputStream
import java.math.BigDecimal
import java.math.BigInteger
import java.util.concurrent.TimeUnit
private val PERCENTAGE_MU... |
app/src/main/java/me/stanis/apps/minwos/ui/fragments/networks/NetworksFragment.kt | unknown_repo | kotlin | /*
* Copyright 2020 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/com/kcteam/features/billing/api/AddBillingRepo.kt | unknown_repo | kotlin | package com.keshavindustryfsm.features.billing.api
import android.content.Context
import android.net.Uri
import com.fasterxml.jackson.databind.ObjectMapper
import com.keshavindustryfsm.app.FileUtils
import com.keshavindustryfsm.base.BaseResponse
import com.keshavindustryfsm.features.billing.model.AddBillingInputParams... |
AOS/RunWithMe/app/src/main/java/com/ssafy/runwithme/view/recommend/ScrapDialog.kt | unknown_repo | kotlin | package com.ssafy.runwithme.view.recommend
import android.app.Dialog
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import androidx.databinding.DataBindingUtil
import com.ss... |
vector/src/main/java/im/vector/directory/people/detail/PeopleDetailAdapter.kt | unknown_repo | kotlin | package im.vector.directory.people.detail
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import im.vector.Matrix
import im.vector.R
import im.vector.directory.people... |
feature/note/src/main/java/com/teamwiney/notecollection/NoteScreen.kt | unknown_repo | kotlin | package com.teamwiney.notecollection
import androidx.activity.compose.BackHandler
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
im... |
app/src/main/java/nerd/tuxmobil/fahrplan/congress/notifications/NotificationHelper.kt | unknown_repo | kotlin | package nerd.tuxmobil.fahrplan.congress.notifications
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.ContextWrapper
import android.net.Uri
import android.os.Build
import... |
catalog/src/main/java/net/pixiv/charcoal/android/catalog/typography/TypographyActivity.kt | unknown_repo | kotlin | package net.pixiv.charcoal.android.catalog.typography
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import com.wada811.viewbinding.viewBinding
import net.pixiv.charcoal.android.catalog.R
import net.pixi... |
app/src/main/java/com/prafullm/jetcomposer/screens/Home.kt | unknown_repo | kotlin | package com.prafullm.jetcomposer.screens
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.la... |
app/src/main/java/de/cleema/android/projects/list/ProjectsViewModel.kt | unknown_repo | kotlin | /*
* Created by Kumpels and Friends on 2022-12-15
* Copyright © 2022 Kumpels and Friends. All rights reserved.
*/
package de.cleema.android.projects.list
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import de.cleema.android.core.dat... |
feature-staking-impl/src/main/java/jp/co/soramitsu/feature_staking_impl/presentation/staking/redeem/RedeemViewModel.kt | unknown_repo | kotlin | package jp.co.soramitsu.feature_staking_impl.presentation.staking.redeem
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import jp.co.soramitsu.common.R
import jp.co.soramitsu.common.address.AddressIconGenerator
import jp.co.soramitsu.common.base.Ba... |
app/src/main/java/com/agritracker/plus/RootActivity.kt | unknown_repo | kotlin | package com.agritracker.plus
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.auth.FirebaseUser
/// Root of all AppCompatActivities where all general stuff goes
class RootActivity : AppCompatA... |
compose/foundation/foundation/src/commonMain/kotlin/androidx/compose/foundation/text/modifiers/SelectionController.kt | unknown_repo | kotlin | /*
* Copyright 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
Android/Intermediate/Concurrency/code/HelloConcurrency2/app/src/main/java/com/example/helloconcurrency2/MainActivity.kt | unknown_repo | kotlin | package com.example.helloconcurrency2
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import kotlinx.coroutines.async
import kotlinx.coroutines.delay
import kotlinx.coroutines.runBlocking
const val LOG = "android-coroutines"
class MainActivity : AppCompatActivity() {... |
app/src/main/kotlin/com/mgaetan89/showsrage/helper/TextHelper.kt | unknown_repo | kotlin | package com.mgaetan89.showsrage.helper
import android.support.v4.app.Fragment
import android.view.View
import android.widget.TextView
import java.util.*
fun String?.hasText() = !this.isNullOrBlank() && !"N/A".equals(this, true)
fun setText(fragment: Fragment, textView: TextView, text: String?, label: Int, layout: Vi... |
app/src/main/kotlin/com/flixclusive/mobile/MobileAppNavigator.kt | unknown_repo | kotlin | package com.flixclusive.mobile
import androidx.navigation.NavController
import androidx.navigation.NavDestination
import com.flixclusive.core.ui.common.navigation.RepositorySearchScreenNavigator
import com.flixclusive.core.ui.common.navigation.UpdateDialogNavigator
import com.flixclusive.feature.mobile.about.destinati... |
mobikulOC/src/main/java/webkul/opencart/mobikul/helper/NetworkIssue.kt | unknown_repo | kotlin | package webkul.opencart.mobikul.helper
import android.content.Context
import webkul.opencart.mobikul.utils.SweetAlertBox
class NetworkIssue {
companion object {
fun getNetworkIssue(message: String, mContext: Context) {
SweetAlertBox.instance.retryNetWorkCall(context = mContext)
}
}... |
android/library/presentation/src/main/kotlin/com/bael/dads/library/presentation/sheet/BaseSheet.kt | unknown_repo | kotlin | @file:Suppress("UNCHECKED_CAST")
package com.bael.dads.library.presentation.sheet
import android.app.Dialog
import android.content.DialogInterface
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.ViewGroup.LayoutParams.MATCH_PARENT
... |
paging/runtime/src/androidTest/java/androidx/paging/AsyncPagingDataDifferTest.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... |
common/src/main/java/com/ishow/common/utils/WebViewUtils.kt | unknown_repo | kotlin | /*
* Copyright (C) 2016 The yuhaiyang Android 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... |
common/src/commonMain/kotlin/dev/zwander/common/util/Storage.kt | unknown_repo | kotlin | @file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE", "EXPOSED_PARAMETER_TYPE")
package dev.zwander.common.util
import dev.zwander.common.data.HistoricalSnapshot
import dev.zwander.common.model.MainModel
import dev.zwander.common.model.adapters.CellDataRoot
import dev.zwander.common.model.adapters.ClientDeviceData... |
dialog/src/main/java/com/angcyo/dialog/BaseDialogConfig.kt | unknown_repo | kotlin | package com.angcyo.dialog
import android.app.Dialog
import android.content.Context
import android.view.View
import com.angcyo.library.L
import com.angcyo.widget.DslViewHolder
import com.angcyo.widget.base.clickIt
/**
*
* Email:<EMAIL>
* @author angcyo
* @date 2019/05/11
* Copyright (c) 2019 ShenZhen O&M Cloud Co... |
Jetsnack/app/src/main/java/com/example/jetsnack/model/Filter.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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
app/src/main/java/dev/maxsiomin/testdoorscameras/presentation/door_screen/DoorCard.kt | unknown_repo | kotlin | package dev.maxsiomin.testdoorscameras.presentation.door_screen
import android.annotation.SuppressLint
import androidx.compose.animation.core.MutableTransitionState
import androidx.compose.animation.core.animateFloat
import androidx.compose.animation.core.tween
import androidx.compose.animation.core.updateTransition
i... |
examples/kotlin/hello_world/MainActivity.kt | unknown_repo | kotlin | package io.envoyproxy.envoymobile.helloenvoykotlin
import android.app.Activity
import android.os.Bundle
import android.os.Handler
import android.os.HandlerThread
import android.support.v7.widget.DividerItemDecoration
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
imp... |
app/src/main/java/com/wisal/android/todocompose/di/DatabaseModule.kt | unknown_repo | kotlin | package com.wisal.android.todocompose.di
import android.content.Context
import androidx.compose.runtime.remember
import androidx.room.Room
import com.wisal.android.todocompose.data.source.TasksDao
import com.wisal.android.todocompose.data.source.ToDoDatabase
import dagger.Module
import dagger.Provides
import dagger.hi... |
app/src/main/java/com/liuxing/daily/adapter/DailySearchAdapter.kt | unknown_repo | kotlin | package com.liuxing.daily.adapter
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import androidx.preference.PreferenceManager
import androidx.recyclerview.widget.RecyclerView
import com.google.android.m... |
compose/ui/ui-graphics-lint/src/main/java/androidx/compose/ui/graphics/lint/UiGraphicsIssueRegistry.kt | unknown_repo | kotlin | /*
* Copyright 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
app/src/main/kotlin/org/jdc/template/ui/navigation/MainNav.kt | unknown_repo | kotlin | package org.jdc.template.ui.navigation
import android.content.Context
import androidx.navigation.NavGraph
import androidx.navigation.createGraph
import androidx.navigation.fragment.NavHostFragment
import org.jdc.template.ux.about.AboutFragment
import org.jdc.template.ux.about.AboutRoute
import org.jdc.template.ux.ackn... |
src/main/kotlin/ui/editor/EditorVisualTransformation.kt | unknown_repo | kotlin | package ui.editor
import androidx.compose.ui.text.AnnotatedString
import androidx.compose.ui.text.input.OffsetMapping
import androidx.compose.ui.text.input.TransformedText
import androidx.compose.ui.text.input.VisualTransformation
import domain.model.SyntaxHighlightConfigModel
import domain.model.SyntaxHighlightRegexM... |
app/src/main/java/com/peripheral/bledevice/ui/main/MainActivityViewModel.kt | unknown_repo | kotlin | package com.peripheral.bledevice.ui.main
import android.bluetooth.BluetoothDevice
import android.bluetooth.le.ScanResult
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewMod... |
app/src/main/java/com/linc/inphoto/ui/profilesettings/ProfileSettingsFragment.kt | unknown_repo | kotlin | package com.linc.inphoto.ui.profilesettings
import android.os.Bundle
import android.view.Gravity
import android.view.View
import androidx.core.widget.doOnTextChanged
import androidx.fragment.app.activityViewModels
import androidx.fragment.app.viewModels
import androidx.transition.Fade
import androidx.transition.Slide
... |
app/src/main/java/com/fjjukic/furniture4you/ui/auth/ForgotPasswordScreen.kt | unknown_repo | kotlin | package com.fjjukic.furniture4you.ui.auth
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.width
import androidx.compose.founda... |
dcache/src/main/java/dora/http/DoraHttp.kt | unknown_repo | kotlin | package dora.http
import android.app.Activity
import androidx.fragment.app.Fragment
import dora.http.coroutine.ContextContinuation
import dora.http.coroutine.DoraCoroutineContext
import dora.http.exception.DoraHttpException
import dora.http.rx.RxTransformer
import io.reactivex.Observable
import io.reactivex.Observer
i... |
tv/src/main/java/com/aastudio/sarollahi/moviebox/views/fragments/RootMovieViewModel.kt | unknown_repo | kotlin | /*
* Copyright (C) 2021 <NAME>
* All rights reserved.
*/
package com.aastudio.sarollahi.moviebox.views.fragments
import android.app.Application
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.aastudio.sarollahi.api.model.Movie
import com.aastudio.sarollahi.api.repository.Re... |
app/src/main/java/com/vicky7230/sunny/ui/weather/city/CityWeatherFragment.kt | unknown_repo | kotlin | package com.sandoval.bogosunny.ui.weather.city
import android.annotation.SuppressLint
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.appcompat.widget.AppCompatTextView
import androidx.lifecycle.ViewModelP... |
app/src/main/java/com/mapbox/maps/testapp/examples/markersandcallouts/PolylineAnnotationActivity.kt | unknown_repo | kotlin | package com.mapbox.maps.testapp.examples.markersandcallouts
import android.graphics.Color
import android.os.Bundle
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.lifecycleScope
import com.mapbox.geojson.FeatureCollection
import com.mapbox.geojson.Point
import com.... |
baselibrary/src/main/kotlin/com/huawen/baselibrary/views/bannerother/banner/ScrollState.kt | unknown_repo | kotlin | package com.huawen.baselibrary.views.bannerother.banner
import androidx.recyclerview.widget.RecyclerView
/**
* 滑动状态
* @author Lollipop
*/
enum class ScrollState(val value: Int) {
/**
* RecyclerView目前不在滚动。
* The RecyclerView is not currently scrolling.
*/
IDLE(RecyclerView.SCROLL_STATE_IDLE... |
app/src/main/java/com/example/familygallery/view/ViewMembersActivity.kt | unknown_repo | kotlin | package com.example.familygallery.view
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.example.familygallery.R
class ViewMembersActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentVi... |
components/info/impl/src/main/java/com/flipperdevices/info/impl/compose/elements/ComposableConnectedDeviceActionCard.kt | unknown_repo | kotlin | package com.flipperdevices.info.impl.compose.elements
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.ui.Modifier
import androidx.lifecycle.viewmodel.compose.viewModel
import com.flipperdevices.core.ui.res.R as D... |
androidbasic/app/src/main/java/com/yunjaena/androidbasic/PermissionActivity.kt | unknown_repo | kotlin | package com.yunjaena.androidbasic
import android.content.pm.PackageManager
import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
import kotlinx.android.synthetic.main.activity_permission.*
cla... |
androidbasic/app/src/main/java/com/yunjaena/androidbasic/PermissionActivity.kt | unknown_repo | kotlin | package com.yunjaena.androidbasic
import android.content.pm.PackageManager
import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
import kotlinx.android.synthetic.main.activity_permission.*
cla... |
tabler-icons/src/commonMain/kotlin/compose/icons/tablericons/Photo.kt | unknown_repo | kotlin | package compose.icons.tablericons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.compose.ui.graphic... |
phoenix-shared/src/commonMain/kotlin/fr.acinq.phoenix/controllers/init/RestoreWallet.kt | unknown_repo | kotlin | package fr.acinq.phoenix.controllers.init
import fr.acinq.phoenix.controllers.MVI
import fr.acinq.phoenix.utils.MnemonicLanguage
object RestoreWallet {
sealed class Model : MVI.Model() {
object Ready : Model()
data class FilteredWordlist(
val uuid: String,
val predicate: ... |
health/health-services-client/src/main/java/androidx/health/services/client/data/PassiveMonitoringUpdate.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... |
health/health-services-client/src/main/java/androidx/health/services/client/data/PassiveMonitoringUpdate.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... |
app/src/main/java/br/com/aline/alcoolOugasolina/ui/theme/Type.kt | unknown_repo | kotlin | package br.com.aline.alcoolOugasolina.ui.theme
import androidx.compose.material3.Typography
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.Font
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.sp
import br.co... |
app/src/main/java/io/github/wulkanowy/data/db/dao/GradeSummaryDao.kt | unknown_repo | kotlin | package io.github.wulkanowy.data.db.dao
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query
import io.github.wulkanowy.data.db.entities.GradeSummary
import io.reactivex.Maybe
import javax.inject.Singleton
@Singleton
@Dao
interface GradeSummaryDao {
@Insert
... |
flutter_expo_map/android/app/src/main/kotlin/com/example/flutter_expo_map/MainActivity.kt | unknown_repo | kotlin | package com.example.flutter_expo_map
import androidx.annotation.NonNull;
import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.engine.FlutterEngine
import io.flutter.plugins.GeneratedPluginRegistrant
class MainActivity: FlutterActivity() {
override fun configureFlutterEngine(@NonNull flu... |
app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupCreateService.kt | unknown_repo | kotlin | package eu.kanade.tachiyomi.data.backup
import android.app.Service
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.IBinder
import android.os.PowerManager
import androidx.core.content.ContextCompat
import androidx.core.net.toUri
import com.hippo.unifile.UniFile
impo... |
src/jvmMain/kotlin/layouts/ui/sections/GroupSection.kt | unknown_repo | kotlin | package layouts.ui.sections
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
imp... |
client_end_user/shared/src/commonMain/kotlin/presentation/pickLanguage/PickLanguageScreen.kt | unknown_repo | kotlin | package presentation.pickLanguage
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.... |
app/src/main/java/com/android/musicplayer/presentation/songplayer/SongPlayerActivity.kt | unknown_repo | kotlin | package com.android.musicplayer.presentation.songplayer
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.widget.SeekBar
import androidx.core.content.ContextCompat
import androidx.lifecycle.Observer
import coil.api.load
import com.android.music... |
ktlint-ruleset-standard/src/main/kotlin/com/pinterest/ktlint/ruleset/standard/rules/TrailingCommaOnDeclarationSiteRule.kt | unknown_repo | kotlin | package com.pinterest.ktlint.ruleset.standard.rules
import com.pinterest.ktlint.rule.engine.core.api.ElementType
import com.pinterest.ktlint.rule.engine.core.api.ElementType.ARROW
import com.pinterest.ktlint.rule.engine.core.api.ElementType.CLASS
import com.pinterest.ktlint.rule.engine.core.api.ElementType.COMMA
impor... |
app/src/main/java/com/example/bvm/ui/book/BookChangeActivity.kt | unknown_repo | kotlin | package com.example.bvm.ui.book
import android.icu.text.SimpleDateFormat
import android.os.Build
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.text.Editable
import android.view.MenuItem
import android.widget.Toast
import androidx.annotation.RequiresApi
import androidx.lifecycl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.