file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
core/src/main/java/com/atech/core/room/BitDatabase.kt | unknown_repo | kotlin | /*
* BIT Lalpur App
*
* Created by Ayaan on 4/16/22, 12:09 PM
* Copyright (c) 2022 . All rights reserved.
* Last modified 4/15/22, 9:10 PM
*/
package com.atech.core.data.room
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import androidx.room.migration.Migr... |
app/src/main/java/pers/nmcma/fr/ui/classes/DataItem.kt | unknown_repo | kotlin | package pers.nmcma.fr.ui.classes
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateListOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
class DataItem(initName:String,initDescription:String,initKeywords:List<String>) {
var name by mutabl... |
app/src/main/java/com/compose/hotstarclone/HotstarCloneApplication.kt | unknown_repo | kotlin | package com.compose.hotstarclone
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class HotstarCloneApplication : Application() |
labnavigation/src/main/java/com/example/labnavigation/MainActivity.kt | unknown_repo | kotlin | package com.example.labnavigation
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.la... |
android/AgilityFitTodayApp/app/src/main/java/com/laurenyew/agilityfittodayapp/di/RepositoryModule.kt | unknown_repo | kotlin | package com.laurenyew.agilityfittodayapp.di
import android.app.Application
import androidx.room.Room
import com.laurenyew.agilityfittodayapp.data.db.AgilityFitTodayDatabase
import com.laurenyew.agilityfittodayapp.data.db.DatabaseManager
import com.laurenyew.agilityfittodayapp.data.db.FavoriteDatabaseProvider
import co... |
app/src/main/java/com/phan/instagram/common/firebase/FirebaseAuthManager.kt | unknown_repo | kotlin | package com.phan.instagram.common.firebase
import com.phan.instagram.common.AuthManager
import com.phan.instagram.common.toUnit
import com.phan.instagram.data.firebase.common.auth
import com.google.android.gms.tasks.Task
class FirebaseAuthManager : AuthManager {
override fun signOut() {
auth.signOut()
... |
app/src/main/java/com/example/composeshimmer/MainActivity.kt | unknown_repo | kotlin | package com.example.composeshimmer
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.width
import androidx.compose... |
feature/editor/src/main/kotlin/app/logdate/feature/editor/ui/NewEntryContent.kt | unknown_repo | kotlin | package app.logdate.feature.editor.ui
import android.location.Location
import android.net.Uri
import app.logdate.core.data.notes.JournalNote
import kotlinx.datetime.Clock
import kotlinx.datetime.Instant
data class NewEntryContent(
var textContent: String = "",
var mediaAttachments: List<Uri> = listOf(),
v... |
native_library/android/GoogleMapsANE/app/src/main/java/com/tuarua/googlemapsane/extensions/FreMarkerOptions.kt | unknown_repo | kotlin | /*
* Copyright 2017 Tua Rua 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-ui/src/main/java/com/nowiwr01p/core_ui/ui/bottom_sheet/BottomSheet.kt | unknown_repo | kotlin | package com.nowiwr01p.core_ui.ui.bottom_sheet
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignm... |
module_book/src/main/kotlin/com/crow/module_book/ui/fragment/comic/reader/ComicPageVerticalFragment.kt | unknown_repo | kotlin | @file:Suppress("UNUSED_ANONYMOUS_PARAMETER")
package com.crow.module_book.ui.fragment.comic.reader
import android.annotation.SuppressLint
import android.content.pm.ActivityInfo
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import androidx.core.view.WindowInsetsControllerCompat
i... |
app/src/main/java/com/itachi1706/cheesecakeutilities/modules/barcodetools/fragments/BarcodeHistoryFragment.kt | unknown_repo | kotlin | package com.itachi1706.cheesecakeutilities.modules.barcodetools.fragments
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.recyclerview.widge... |
app/src/main/java/com/digitaldream/toyibatskool/fragments/AdminELearningQuizFragment.kt | unknown_repo | kotlin | package com.digitaldream.toyibatskool.fragments
import android.graphics.Color
import android.os.Bundle
import android.view.View
import android.widget.Button
import android.widget.ImageButton
import android.widget.TextView
import androidx.activity.OnBackPressedCallback
import androidx.fragment.app.Fragment
import andro... |
androidApp/src/main/java/dk/youtec/drchannels/ui/ProgramsActivity.kt | unknown_repo | kotlin | package dk.youtec.drchannels.ui
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.isVisible
import androidx.lifecycle.lifecycleScope
import androidx.recyclerview.widget.DividerItemDecoration
import androidx.recyclerv... |
app/src/main/java/com/kyberswap/android/domain/usecase/swap/GetPlatformFeeUseCase.kt | unknown_repo | kotlin | package com.kyberswap.android.domain.usecase.swap
import androidx.annotation.VisibleForTesting
import com.kyberswap.android.domain.SchedulerProvider
import com.kyberswap.android.domain.model.PlatformFee
import com.kyberswap.android.domain.repository.SwapRepository
import com.kyberswap.android.domain.usecase.Sequential... |
app/src/main/java/com/wstxda/gsl/MusicSearchActivity.kt | unknown_repo | kotlin | package com.wstxda.gsl
import android.app.Activity
import android.content.ActivityNotFoundException
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.widget.Toast
class MusicSearchActivity : Activity() {
companion object {
private const val TAG = "MusicSearchAct... |
app/src/main/java/com/example/lucknowcityguide/activities/PagerActivity.kt | unknown_repo | kotlin | package com.example.lucknowcityguide.activities
import android.animation.ArgbEvaluator
import android.os.Bundle
import android.view.View
import android.widget.Button
import android.widget.ImageButton
import android.widget.ImageView
import androidx.appcompat.app.AppCompatActivity
import androidx.coordinatorlayout.widge... |
core/core-ui/src/main/kotlin/com/maximillianleonov/musicmax/core/ui/component/EmptyContent.kt | unknown_repo | kotlin | /*
* Copyright 2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
app/src/main/java/io/outblock/lilico/base/activity/BaseActivity.kt | unknown_repo | kotlin | package com.flowfoundation.wallet.base.activity
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import java.lang.ref.WeakReference
open class BaseActivity : AppCompatActivity() {
private var firstVisible = true
// override fun attachBaseContext(newBase: Context?) {
// super.at... |
cache/src/main/java/com/mm/http/cache/CacheHelper.kt | unknown_repo | kotlin | package com.mm.http.cache
import android.text.TextUtils
import com.google.gson.Gson
import okhttp3.*
import okhttp3.MediaType.Companion.toMediaTypeOrNull
import okhttp3.internal.EMPTY_HEADERS
import okhttp3.internal.cache.CacheRequest
import okhttp3.internal.closeQuietly
import okhttp3.internal.concurrent.TaskRunner
i... |
app/src/main/java/social/entourage/android/events/create/CreateEventSuccessFragment.kt | unknown_repo | kotlin | package social.entourage.android.events.create
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.navigation.fra... |
app/src/main/java/com/lianyi/paimonsnotebook/ui/screen/app_widget/components/text/AppWidgetBackgroundConfiguration.kt | unknown_repo | kotlin | package com.lianyi.paimonsnotebook.ui.screen.app_widget.components.text
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.ExperimentalLayoutApi
import androidx.compose.foundation.layout.FlowRow
import androidx.compose.founda... |
lib/src/test/kotlin/app/cash/quiver/OutcomeTest.kt | unknown_repo | kotlin | package app.cash.quiver
import arrow.core.Either
import arrow.core.None
import arrow.core.Option
import arrow.core.Some
import arrow.core.Validated
import arrow.core.invalid
import arrow.core.left
import arrow.core.right
import arrow.core.some
import arrow.core.valid
import app.cash.quiver.arb.outcome
import app.cash.... |
app/src/main/java/com/example/todoapp/TaskActivity.kt | unknown_repo | kotlin | package com.example.todoapp
import android.app.DatePickerDialog
import android.app.Dialog
import android.app.TimePickerDialog
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.*
import androidx.recyclerview.widget.ItemT... |
kotlin/kotlin-driver/src/test/kotlin/com/google/mapsplatform/transportation/sample/kotlindriver/provider/service/LocalProviderServiceTest.kt | unknown_repo | kotlin | /* Copyright 2022 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 in ... |
alarmscheduler/src/main/java/com/carterchen247/alarmscheduler/storage/AlarmStateRepository.kt | unknown_repo | kotlin | package com.carterchen247.alarmscheduler.storage
import android.content.Context
import com.carterchen247.alarmscheduler.model.AlarmInfo
internal class AlarmStateRepository private constructor(context: Context) {
private val alarmStateDao = AlarmSchedulerDatabase.getInstance(context).getAlarmStateDao()
suspe... |
app/src/main/java/com/engineerfred/kotlin/ktor/data/remote/repository/StudentsRepoImpl.kt | unknown_repo | kotlin | package com.engineerfred.kotlin.ktor.data.remote.repository
import android.app.Activity
import android.content.Context
import android.util.Log
import com.engineerfred.kotlin.ktor.domain.model.Student
import com.engineerfred.kotlin.ktor.domain.repository.StudentsRepository
import com.engineerfred.kotlin.ktor.ui.model.S... |
app/src/main/java/com/zasa/yttodo/database/TaskDao.kt | unknown_repo | kotlin | package com.zasa.yttodo.database
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query
import androidx.room.Update
/**
* Created by <NAME>
* on 11/12/2022.
*/
@Dao
interface TaskDao {
@Insert
suspend fun insert(taskE... |
app/common/src/commonMain/kotlin/com/denchic45/studiversity/ui/theme/CommonAppTheme.kt | unknown_repo | kotlin | package com.denchic45.studiversity.ui.theme
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.darkColorScheme
import androidx.compose.material3.lightColorScheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
private val LightColors =... |
src/main/java/com/pikolive/module/webview/client/WebChromeClientDelegate.kt | unknown_repo | kotlin | package com.pikolive.module.webview.client
import android.graphics.Bitmap
import android.net.Uri
import android.os.Build
import android.os.Message
import android.view.View
import android.webkit.*
import android.webkit.WebStorage.QuotaUpdater
import androidx.annotation.RequiresApi
/**
* Creator: ED
* Date: 2020/11/1... |
shared/src/commonMain/kotlin/com/juagri/shared/ui/login/OTPScreen.kt | unknown_repo | kotlin | package com.juagri.shared.ui.login
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.pa... |
app/src/main/java/com/example/bitfit2aramirez/MainActivity.kt | unknown_repo | kotlin | package com.example.bitfit2aramirez
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.Button
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.lifecycle.lifecycleScope
imp... |
web/src/jsMain/kotlin/ca/derekellis/reroute/home/HomePresenter.kt | unknown_repo | kotlin | package ca.derekellis.reroute.home
import androidx.compose.runtime.Composable
import ca.derekellis.reroute.ui.Presenter
import kotlinx.coroutines.flow.Flow
import me.tatarka.inject.annotations.Assisted
import me.tatarka.inject.annotations.Inject
@Inject
class HomePresenter(@Assisted private val args: Home) : Presente... |
app/src/main/java/com/justclean/task/persistence/AppDatabase.kt | unknown_repo | kotlin | /**
* Created by @mohamedebrahim96 on 03,December,2020.
* <EMAIL>,
* Dubai, UAE.
*/
package com.justclean.task.persistence
import androidx.room.Database
import androidx.room.RoomDatabase
import com.justclean.task.model.Post
import com.justclean.task.model.PostComment
@Database(entities = [Post::class, PostComment... |
simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Qgis.kt | unknown_repo | kotlin | package compose.icons.simpleicons
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.ui.graphics... |
sentinel/src/main/kotlin/com/infinum/sentinel/ui/crash/CrashesFragment.kt | unknown_repo | kotlin | package com.infinum.sentinel.ui.crash
import android.content.Intent
import android.os.Bundle
import android.view.View
import androidx.annotation.RestrictTo
import androidx.core.view.isGone
import androidx.core.view.isVisible
import androidx.recyclerview.widget.DividerItemDecoration
import androidx.recyclerview.widget.... |
app/src/main/java/de/oculavis/trialdaytask/MainActivity.kt | unknown_repo | kotlin | package de.oculavis.trialdaytask
import android.content.Context
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
i... |
app/src/main/java/com/istu/schedule/ui/page/projfair/list/filter/FilterViewModel.kt | unknown_repo | kotlin | package com.istu.schedule.ui.page.projfair.list.filter
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.istu.schedule.data.model.ProjfairFiltersState
import com.istu.schedule.data.model.User
import com.istu.schedule.domain.model.projfair.Skill
import com.istu.schedule.domain.mode... |
app/src/main/java/com/codespacepro/moviecompose/viewmodel/MainViewModelFactory.kt | unknown_repo | kotlin | package com.codespacepro.moviecompose.viewmodel
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.codespacepro.moviecompose.repository.Repository
import javax.inject.Inject
class MainViewModelFactory @Inject constructor(private val repository: Repository) :
ViewModelProvid... |
sample/src/main/java/com/paydock/sample/feature/style/ui/components/FontSection.kt | unknown_repo | kotlin | /*
* Created by Paydock on 1/26/24, 6:24 PM
* Copyright (c) 2024 Paydock Ltd.
*
* Last modified 1/26/24, 5:58 PM
*
* 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.o... |
app/src/main/kotlin/com/alexis/chineseastrology/dagger/AppComponent.kt | unknown_repo | kotlin | package com.alexis.chineseastrology.dagger
import android.app.Application
import com.alexis.chineseastrology.dagger.general.viewinjector.ViewInjectorModule
import com.alexis.chineseastrology.dagger.modules.AppModule
import com.alexis.chineseastrology.dagger.modules.CalculatorModule
import com.alexis.chineseastrology.d... |
app/src/main/java/com/example/podcastplayer/EpisodeActivity.kt | unknown_repo | kotlin | package com.example.podcastplayer
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.View
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.bumptech.glide.Glide
import com.example.podcastplayer.databinding.ActivityEpisodeBindin... |
pluginhost/src/main/java/com/xy/android/plugin/host/BaseProxyActivity.kt | unknown_repo | kotlin | package com.xy.android.plugin.host
import android.app.Activity
import android.content.res.AssetManager
import android.content.res.Resources
import android.os.Bundle
open class BaseProxyActivity : Activity() {
var plugin: Plugin? = null
var activityName: String? = null
private var pluginAssetManager: Asse... |
image-component/src/main/java/com/kotlin/android/image/component/widget/PhotoGalleryView.kt | unknown_repo | kotlin | package com.kotlin.android.image.component.widget
import android.content.Context
import android.util.AttributeSet
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.PagerSnapHelper
import androidx.recyclerview.widget.RecyclerView
import com.kotlin.android.app.data.entity.image.... |
trustagent/tests/unit/src/com/google/android/libraries/car/trustagent/blemessagestream/SppManagerTest.kt | unknown_repo | kotlin | // Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
core/database/src/main/kotlin/com/niyaj/database/model/AbsentEntity.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... |
app/src/main/java/com/ligthhouse/covid19/data/db/CaseCountDao.kt | unknown_repo | kotlin | package com.ligthhouse.covid19.data.db
import androidx.lifecycle.LiveData
import androidx.room.*
import com.ligthhouse.covid19.data.entity.StateCount
import com.ligthhouse.covid19.data.entity.TotalCount
@Dao
interface CaseCountDao {
/*Total count*/
@Query("DELETE FROM TotalCount")
fun nukeTotalCount()
... |
app/src/main/java/me/darshpratap/coaster/database/viewModel/CategoryViewModel.kt | unknown_repo | kotlin | package me.darshpratap.coaster.database.viewModel
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import me.darshpratap.coaster.database.repository.CategoryRepository
import me.darshpratap.coaster.models.db.Category
class CategoryViewModel(application: Application): AndroidViewModel(applicat... |
common/src/free/java/de/nicidienase/chaosflix/common/AnalyticsWrapperImpl.kt | unknown_repo | kotlin | package de.nicidienase.chaosflix.common
import android.app.Application
import android.util.Log
object AnalyticsWrapperImpl : AnalyticsWrapper {
override fun init(application: Application) {}
override fun startAnalytics() {}
override fun stopAnalytics() {}
override fun trackException(exception: Excep... |
app/src/main/kotlin/org/andstatus/todoagenda/prefs/SnapshotMode.kt | unknown_repo | kotlin | package org.andstatus.todoagenda.prefs
import androidx.annotation.StringRes
import org.andstatus.todoagenda.R
/**
* @author <EMAIL>
*/
enum class SnapshotMode(val value: String, @field:StringRes val valueResId: Int) {
LIVE_DATA("live_data", R.string.snapshot_mode_live_data),
SNAPSHOT_TIME("snapshot_time", R... |
app/src/main/java/net/numa08/gochisou/presentation/internal/di/modules/repositorymodules.kt | unknown_repo | kotlin | package net.numa08.gochisou.presentation.internal.di.modules
import android.content.SharedPreferences
import dagger.Module
import dagger.Provides
import net.numa08.gochisou.data.repositories.*
import javax.inject.Singleton
@Module
@Singleton
class LoginProfileRepositoryModule(val sharedPreferences: SharedPreferences)... |
app/src/main/kotlin/me/sweetll/tucao/business/video/CachedVideoActivity.kt | unknown_repo | kotlin | package me.sweetll.tucao.business.video
import android.content.Context
import android.content.Intent
import androidx.databinding.DataBindingUtil
import android.os.Bundle
import android.text.format.DateFormat
import android.view.View
import android.view.WindowManager
import com.shuyu.gsyvideoplayer.GSYPreViewManager
im... |
location-provider/receiver/app/src/main/java/br/com/edsilfer/location_receiver/presentation/view/MapActivity.kt | unknown_repo | kotlin | package br.com.edsilfer.location_receiver.presentation.view
import android.Manifest.permission.ACCESS_COARSE_LOCATION
import android.Manifest.permission.ACCESS_FINE_LOCATION
import android.content.pm.PackageManager.PERMISSION_GRANTED
import android.location.Location
import android.os.Bundle
import android.os.IBinder
i... |
app/src/main/java/com/utsman/rvpagingloader/PexelViewModel.kt | unknown_repo | kotlin | /*
* Created by <NAME> on 8/10/19 11:32 PM
* Copyright (c) 2019 . All rights reserved.
* Last modified 8/10/19 11:21 PM
*/
package com.utsman.rvpagingloader
import android.arch.lifecycle.LiveData
import android.arch.lifecycle.Transformations
import android.arch.lifecycle.ViewModel
import android.arch.paging.LiveP... |
app/src/main/java/com/guastafeste/covid_19/Notification_receiver.kt | unknown_repo | kotlin | package com.guastafeste.covid_19
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.os.Build
import android.util.Log
import androidx.annotation.RequiresApi
/**
* Classe che viene richiamata dall'intent dell'alarm.
*/
class Notification_receiver : Br... |
mediapicker/src/main/java/com/greentoad/turtlebody/mediapicker/ui/common/MediaListFragment.kt | unknown_repo | kotlin | package com.greentoad.turtlebody.mediapicker.ui.common
import android.net.Uri
import android.os.Bundle
import android.util.TypedValue
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.coordinatorlayout.widget.CoordinatorLayout
import com.greentoad.turtlebody.medi... |
app/src/main/java/com/example/clone_daum/ui/main/mediasearch/flower/FlowerViewModel.kt | unknown_repo | kotlin | package com.example.clone_daum.ui.main.mediasearch.flower
import android.app.Application
import androidx.databinding.ObservableField
import androidx.lifecycle.AndroidViewModel
import brigitte.ICommandEventAware
import brigitte.arch.SingleLiveEvent
import brigitte.viewmodel.CommandEventViewModel
import javax.inject.Inj... |
app/src/main/java/com/instamobile/firebaseStarterKit/utils/TabLayoutMediator.kt | unknown_repo | kotlin | package com.google.android.material.tabs
import androidx.recyclerview.widget.RecyclerView
import androidx.viewpager2.widget.ViewPager2
import androidx.viewpager2.widget.ViewPager2.*
import java.lang.ref.WeakReference
/**
* A mediator to link a TabLayout with a ViewPager2. The mediator will synchronize the ViewPager2... |
app/src/main/kotlin/com/keygenqt/demo_contacts/modules/_common/ui/compose/BoxTextFieldError.kt | unknown_repo | kotlin | /*
* Copyright 2021 <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/dyor/scoop/Job.kt | unknown_repo | kotlin | package com.dyor.scoop
import android.os.Parcelable
import androidx.compose.ui.tooling.preview.PreviewParameterProvider
import com.google.firebase.Timestamp
import kotlinx.android.parcel.Parcelize
@Parcelize
class Job(
var jobId: String? = null,
var jobName: String? = null,
var buyerId: String? = null,
var se... |
app/src/main/java/com/trafficcop/apidemoapp/TrafficCopResponse.kt | unknown_repo | kotlin | package com.trafficcop.apidemoapp
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
@Parcelize
data class TrafficCopResponse(
val ivtScore: Double
): Parcelable |
src/ar/movizland/src/eu/kanade/tachiyomi/animeextension/ar/movizland/Movizland.kt | unknown_repo | kotlin | package eu.kanade.tachiyomi.animeextension.ar.movizland
import android.app.Application
import android.content.SharedPreferences
import androidx.preference.ListPreference
import androidx.preference.PreferenceScreen
import eu.kanade.tachiyomi.lib.doodextractor.DoodExtractor
import eu.kanade.tachiyomi.animeextension.ar.m... |
examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/view/ScrollableColumn.common.kt | unknown_repo | kotlin | package example.imageviewer.view
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
@Composable
expect fun ScrollableColumn(modifier: Mo... |
composeApp/src/desktopMain/kotlin/main.kt | unknown_repo | kotlin | import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.ui.unit.dp
import androidx.compose.ui.window.Window
import androidx.compose.ui.window.application
import androidx.compose.ui.window.rememberWindowState
import com.adikmt.notesapp.App
import com.adikmt.notesapp.di.initKoin
import com.adikmt... |
app/src/main/java/vn/tale/sayit/util/Activities.kt | unknown_repo | kotlin | package vn.tale.sayit.util
import android.support.annotation.IdRes
import android.support.design.widget.Snackbar
import android.support.v4.app.Fragment
import android.support.v4.app.FragmentActivity
import android.view.View
fun FragmentActivity.setFragment(@IdRes id: Int, fragment: Fragment) {
supportFragmentManage... |
core/navigation/src/main/kotlin/com/mobiledevpro/navigation/ext/NavigationExt.kt | unknown_repo | kotlin | /*
* Copyright 2021 | <NAME> | http://mobile-dev.pro
*
*
* 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 appl... |
app/src/main/java/com/alirezaafkar/phuzei/util/Extenstions.kt | unknown_repo | kotlin | package com.alirezaafkar.phuzei.util
import android.content.Context
import android.content.Intent
import android.widget.Toast
import androidx.annotation.StringRes
import androidx.core.net.toUri
import androidx.fragment.app.Fragment
import com.alirezaafkar.phuzei.MUZEI_PACKAGE_NAME
import io.reactivex.disposables.Compo... |
app/src/main/java/com/eugenio/marvelsuperheroes/superheroslist/ui/components/CharacterRow.kt | unknown_repo | kotlin | package com.eugenio.marvelsuperheroes.superheroslist.ui.components
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import a... |
app/src/main/java/com/insomniacgks/newmoviesandshows/adapters/ShowsRecyclerViewAdapter.kt | unknown_repo | kotlin | package com.insomniacgks.newmoviesandshows.adapters
import android.app.Activity
import android.app.ActivityOptions
import android.content.Context
import android.content.Intent
import android.graphics.Color
import android.os.Bundle
import android.support.v4.content.ContextCompat
import android.support.v7.app.AppCompatD... |
app/src/main/java/my/itgungnir/rxmvvm/MainActivity.kt | unknown_repo | kotlin | package my.itgungnir.rxmvvm
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_main.*
import my.itgungnir.rxmvvm.app1.AppActivity1
import my.itgungnir.rxmvvm.app2.AppActivity2
import my.itgungnir.rxmvvm.app3.AppActivity3... |
app/src/main/java/eu/kanade/tachiyomi/data/track/kitsu/Kitsu.kt | unknown_repo | kotlin | package eu.kanade.tachiyomi.data.track.kitsu
import android.graphics.Color
import dev.icerock.moko.resources.StringResource
import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.data.database.models.anime.AnimeTrack
import eu.kanade.tachiyomi.data.track.AnimeTracker
import eu.kanade.tachiyomi.data.track.BaseTracker
... |
frames/src/test/java/com/checkout/frames/utils/extensions/BillingAddressDetailsExtensionsTest.kt | unknown_repo | kotlin | package com.checkout.frames.utils.extensions
import android.annotation.SuppressLint
import com.checkout.base.model.Country
import com.checkout.frames.R
import com.checkout.frames.component.billingaddressfields.BillingAddressInputComponentState
import com.checkout.frames.mock.BillingAddressDetailsTestData
import com.ch... |
app/src/main/java/com/example/weather_app/Activities/MainActivity.kt | unknown_repo | kotlin | package com.example.weather_app.Activities
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.location.Location
import android.location.LocationManager
import android.os.Build
import android.os.Bundle
import android.view.View... |
common/workers/impl/src/test/kotlin/ss/workers/impl/WorkSchedulerImplTest.kt | unknown_repo | kotlin | /*
* Copyright (c) 2023. Adventech <info@adventech.io>
*
* 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, mod... |
feature/home/favorites/src/main/java/com/uragiristereo/mikansei/feature/home/favorites/favgroup/addto/core/CreateNewFavGroupButton.kt | unknown_repo | kotlin | package com.uragiristereo.mikansei.feature.home.favorites.favgroup.addto.core
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material.Tex... |
test-utils/src/commonMain/kotlin/mock/bluetooth/device/MockDeviceConnectionManager.kt | unknown_repo | kotlin | /*
Copyright 2021 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/posidon/android/loader/demo/MainActivity.kt | unknown_repo | kotlin | package posidon.android.loader.demo
import android.app.Activity
import android.content.Context
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundl... |
infobip-rtc-ui/src/main/java/com/infobip/webrtc/ui/view/styles/IncomingCallMessageStyle.kt | unknown_repo | kotlin | package com.infobip.webrtc.ui.view.styles
import android.content.Context
import android.util.AttributeSet
import androidx.annotation.ColorInt
import androidx.annotation.DrawableRes
import androidx.annotation.StyleRes
import androidx.core.content.ContextCompat
import com.infobip.webrtc.ui.R
import com.infobip.webrtc.ui... |
app/src/main/java/ca/josephroque/bowlingcompanion/statistics/impl/matchplay/GamesWonStatistic.kt | unknown_repo | kotlin | package ca.josephroque.bowlingcompanion.statistics.impl.matchplay
import android.os.Parcel
import android.os.Parcelable
import ca.josephroque.bowlingcompanion.R
import ca.josephroque.bowlingcompanion.common.interfaces.parcelableCreator
import ca.josephroque.bowlingcompanion.matchplay.MatchPlayResult
import ca.josephro... |
CoreModule/kotlin-common/src/main/java/com/kymjs/kotlin/common/extension/ExtensionActivity.kt | unknown_repo | kotlin | package com.kymjs.kotlin.common.extension
import android.app.Activity
import android.view.View
import android.widget.Toast
/**
* Created by ZhangTao on 7/1/16.
*/
fun <T : View> Activity.find(id: Int): T = findViewById(id) as T
fun Activity.toast(text: CharSequence): Unit = Toast.makeText(this, text, Toast.LENGTH... |
app/src/main/java/org/simple/clinic/storage/migrations/Migration_101.kt | unknown_repo | kotlin | package org.simple.clinic.storage.migrations
import androidx.room.migration.Migration
import androidx.sqlite.db.SupportSQLiteDatabase
import org.simple.clinic.storage.inTransaction
import javax.inject.Inject
@Suppress("ClassName")
class Migration_101 @Inject constructor() : Migration(100, 101) {
override fun migra... |
app/src/main/java/com/google/firebase/codelab/fcmandfiam/MainActivity.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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... |
app/src/main/java/com/supplier/sl_delivery/modals/Merchant.kt | unknown_repo | kotlin | package com.supplier.sl_delivery.modals
import android.text.TextUtils
import androidx.lifecycle.MutableLiveData
import com.supplier.sl_delivery.rest.APIClient
import com.supplier.sl_delivery.rest.responses.LoginResponse
import com.supplier.sl_delivery.rest.responses.MerchantRegisterResponse
import com.supplier.sl_deli... |
app/src/main/java/chat/rocket/android/favoritemessages/di/FavoriteMessagesFragmentModule.kt | unknown_repo | kotlin | package chat.rocket.android.chatroom.di
import androidx.lifecycle.LifecycleOwner
import chat.rocket.android.core.lifecycle.CancelStrategy
import chat.rocket.android.dagger.scope.PerFragment
import chat.rocket.android.favoritemessages.presentation.FavoriteMessagesView
import chat.rocket.android.favoritemessages.ui.Favo... |
app/src/main/kotlin/edu/stanford/bdh/engagehf/health/components/TimeRangeDropdown.kt | unknown_repo | kotlin | package edu.stanford.bdh.engagehf.health.components
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.wrapContentSize
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowDropDown
imp... |
app/src/main/java/io/github/thwisse/languagedecks/MainActivity.kt | unknown_repo | kotlin | package io.github.thwisse.languagedecks
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.EditText
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.app... |
android/src/ti/bottomsheet/DialogProxy.kt | unknown_repo | kotlin | package ti.bottomsheet
import android.view.ViewGroup
import android.widget.LinearLayout
import androidx.core.widget.NestedScrollView
import com.google.android.material.bottomsheet.BottomSheetDialog
import org.appcelerator.kroll.KrollDict
import org.appcelerator.kroll.KrollPropertyChange
import org.appcelerator.kroll.K... |
examples/chat/core/src/jsMain/kotlin/chat/core/components/widgets/TitledTextInput.kt | unknown_repo | kotlin | package chat.core.components.widgets
import androidx.compose.runtime.Composable
import chat.core.G
import com.varabyte.kobweb.compose.dom.ElementRefScope
import com.varabyte.kobweb.compose.foundation.layout.Column
import com.varabyte.kobweb.compose.ui.Modifier
import com.varabyte.kobweb.compose.ui.graphics.Colors
impo... |
app/src/main/java/com/kotlin/sacalabici/framework/views/activities/session/TermsAndConditionsActivity.kt | unknown_repo | kotlin | import android.graphics.Color
import android.os.Bundle
import android.text.SpannableString
import android.text.Spanned
import android.text.style.ClickableSpan
import android.text.style.ForegroundColorSpan
import android.view.View
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import andr... |
app/src/main/java/com/thanksmister/iot/mqtt/alarmpanel/network/ImageOptions.kt | unknown_repo | kotlin | package com.thanksmister.iot.mqtt.alarmpanel.network
import android.text.TextUtils
import dpreference.DPreference
import javax.inject.Inject
/**
* For original implementation see https://github.com/androidthings/sensorhub-cloud-iot.
*/
class ImageOptions @Inject
constructor(private val sharedPreferences: DPreferen... |
presentation/src/main/java/arcus/presentation/ble/BleConnector.kt | unknown_repo | kotlin | /*
* Copyright 2019 Arcus 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 applicable law or a... |
app/src/main/java/com/github/vase4kin/teamcityapp/navigation/view/NavigationAdapter.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 wri... |
ui-programs/src/main/java/com/gerosprime/gylog/ui/programs/detail/adapter/ProgramDetailViewHolder.kt | unknown_repo | kotlin | package com.gerosprime.gylog.ui.programs.detail.adapter
import android.view.View
import androidx.recyclerview.widget.RecyclerView
import com.gerosprime.gylog.base.OnItemClickListener
import com.gerosprime.gylog.models.workouts.WorkoutEntity
import com.gerosprime.gylog.ui.programs.R
import com.gerosprime.gylog.ui.progr... |
ui/src/main/java/cn/lvsong/lib/ui/ViewModelExt.kt | unknown_repo | kotlin | package cn.lvsong.lib.ui
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.CoroutineExceptionHandler
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Job
import kotlinx.coroutines.launch
import kotlin.coroutines.CoroutineContext
/** https://blog.c... |
app/src/main/java/com/mapbox/maps/testapp/examples/LargeGeojsonPerformanceActivity.kt | unknown_repo | kotlin | package com.mapbox.maps.testapp.examples
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.ContextCompat
import androidx.core.graphics.drawable.toBitmap
import androidx.lifecycle.lifecycleScope
import com.mapbox.geojson.Feature
import com.mapbox.geojson.Point
import ... |
sunflower/src/main/java/com/jetpack/sunflower/viewmodels/PlantDetailViewModel.kt | unknown_repo | kotlin | package com.jetpack.sunflower.viewmodels
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.jetpack.sunflower.data.GardenPlantingRepository
import com.jetpack.sunflower.data.PlantRepository
import kotlinx.coroutines.launch
class PlantDetailViewModel(
plantRepository: Plant... |
app/src/main/java/com/lukasanda/aismobile/ui/main/people/PeopleFragment.kt | unknown_repo | kotlin | /*
* Copyright 2020 <NAME>. 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 applicable law or agreed... |
src/main/java/com/start/chateze/NewMessageActivity.kt | unknown_repo | kotlin | package com.start.chateze
import android.app.Activity
import android.content.Intent
import android.net.Uri
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Parcelable
import android.provider.MediaStore
import android.util.Log
import android.widget.Toast
import com.google.fireb... |
android/app/src/main/java/rocks/poopjournal/fucksgiven/presentation/widget/WidgetTheme.kt | unknown_repo | kotlin | package rocks.poopjournal.fucksgiven.presentation.widget
import android.R
import android.os.Build
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.darkColorScheme
import androidx.compose.material3.dynamicDarkColorScheme
import androidx.compose.material3.dynamicLightColorScheme
i... |
ImagePickerDemo/src/main/java/com/paniclabs/imagepickerdemo/ImageController.kt | unknown_repo | kotlin | package com.paniclabs.imagepickerdemo
import android.net.Uri
import android.widget.ImageView
import com.bumptech.glide.Glide
import com.bumptech.glide.load.DecodeFormat
import com.bumptech.glide.request.RequestOptions
class ImageController(private val imgMain: ImageView) {
fun setImgMain(path: Uri) {
val... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.