file_path
stringlengths
6
261
repository
stringclasses
2 values
language
stringclasses
1 value
content
stringlengths
121
454k
android/src/main/kotlin/com/siyoumarket/dprint/PrinterPlugin.kt
unknown_repo
kotlin
package com.siyoumarket.dprint import android.app.Activity import android.graphics.BitmapFactory import com.lvrenyang.io.BTPrinting import com.lvrenyang.io.Label import com.lvrenyang.io.Pos class PrinterPlugin { private var mPrinter: BTPrinting = BTPrinting() private val mPos = Pos() fun connectToPrinte...
Morpho/composeApp/src/commonMain/kotlin/com/morpho/app/screens/notifications/TabbedNotificationScreenModel.kt
unknown_repo
kotlin
package com.morpho.app.screens.notifications import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.setValue import cafe.adriel.voyager.core.model.screenModelScope import com.morpho.app.model.uidata.AtCursor import com.morpho.app.model.uidata.initAtCurso...
app/src/main/java/com/nullpointer/runningcompose/database/TypeConverts.kt
unknown_repo
kotlin
package com.nullpointer.runningcompose.database import androidx.room.TypeConverter import com.nullpointer.runningcompose.models.data.config.MapConfig import kotlinx.serialization.decodeFromString import kotlinx.serialization.encodeToString import kotlinx.serialization.json.Json object TypeConverts { @TypeConvert...
datacapture/src/test/java/com/google/android/fhir/datacapture/MoreTypesTest.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...
MainActivity.kt
unknown_repo
kotlin
package com.example.bitfit import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.RecyclerView class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super...
app/src/main/java/com/stocksexchange/android/receivers/base/BaseBroadcastReceiver.kt
unknown_repo
kotlin
package com.stocksexchange.android.receivers.base import android.content.BroadcastReceiver import org.koin.core.KoinComponent abstract class BaseBroadcastReceiver : BroadcastReceiver(), KoinComponent
app/src/main/java/me/wcy/wanandroid/compose/WanApplication.kt
unknown_repo
kotlin
package me.wcy.wanandroid.compose import android.app.Application import android.content.Context import android.util.Log import me.wcy.mockhttp.MockHttp import me.wcy.mockhttp.MockHttpOptions import me.wcy.wanandroid.compose.auth.AuthManager /** * Created by wcy on 2021/4/1. */ class WanApplication : Application() {...
app/src/main/java/com/example/androiddevchallenge/views/NumberPicker.kt
unknown_repo
kotlin
/* * Copyright 2021 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
app/src/main/java/com/farhan/pixo/ui/preview/PreviewFragment.kt
unknown_repo
kotlin
/**Designed and developed by 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 writing, softw...
components/analytics/src/androidMain/kotlin/com/nikitakrapo/monkeybusiness/analytics/chart/ChartColor.kt
unknown_repo
kotlin
package com.nikitakrapo.monkeybusiness.analytics.chart import androidx.compose.ui.graphics.Color enum class ChartColor(val color: Color) { Priority0(Color(0xFFFFB74D)), // Orange 300 Priority1(Color(0xFFB39DDB)), // Deep Purple 200 Priority2(Color(0xFF4DB6AC)), // Teal 300 Priority3(Color(0xFFFFEB3B))...
app/src/main/java/nl/viasalix/horarium/ui/main/ScheduleFragment.kt
unknown_repo
kotlin
/* * Copyright 2018 <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 writ...
stream-video-android-ui-compose/src/main/kotlin/io/getstream/video/android/compose/theme/StreamDimens.kt
unknown_repo
kotlin
/* * Copyright (c) 2014-2022 Stream.io Inc. All rights reserved. * * Licensed under the Stream License; * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://github.com/GetStream/stream-video-android/blob/main/LICENSE * * Unless required by ...
app/src/main/java/com/heysaladin/karmagroupmodern/viewmodel/BeachModel.kt
unknown_repo
kotlin
package com.heysaladin.karmagroupmodern.viewmodel //import android.arch.lifecycle.LiveData //import android.arch.lifecycle.ViewModel //import androidx.lifecycle.LiveData //import androidx.lifecycle.ViewModel import androidx.lifecycle.LiveData import androidx.lifecycle.ViewModel import com.heysaladin.karmagroupmodern.m...
src/main/kotlin/dev/kingtux/tms/gui/TMSKeyBindsScreen.kt
unknown_repo
kotlin
package dev.kingtux.tms.gui import dev.kingtux.tms.TooManyShortcuts import dev.kingtux.tms.TooManyShortcuts.log import dev.kingtux.tms.api.* import dev.kingtux.tms.api.modifiers.KeyModifier import dev.kingtux.tms.api.modifiers.KeyModifier.Companion.fromKey import dev.kingtux.tms.api.modifiers.KeyModifier.Companion.fro...
core/ui/src/main/java/com/ahmetocak/ui/chat_bubble/ChatBubbleStyle.kt
unknown_repo
kotlin
package com.ahmetocak.ui.chat_bubble import androidx.compose.foundation.layout.aspectRatio import androidx.compose.foundation.layout.height import androidx.compose.foundation.shape.CircleShape import androidx.compose.material3.MaterialTheme import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier...
app/src/main/java/ir/fearefull/knowledgeextractionapp/ui/base/BaseFragment.kt
unknown_repo
kotlin
package ir.fearefull.knowledgeextractionapp.ui.base import android.content.Context import dagger.android.support.AndroidSupportInjection import android.os.Bundle import androidx.databinding.DataBindingUtil import android.view.ViewGroup import android.view.LayoutInflater import android.view.View import androidx.annotat...
feature/trainingstarter/src/main/java/net/hyakuninanki/reader/feature/trainingstarter/ui/TrainingReStarterFragment.kt
unknown_repo
kotlin
/* * Copyright (c) 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...
app/src/main/java/com/example/covidtoolkit/QuarantineGeneralInformation.kt
unknown_repo
kotlin
// importing packages package com.example.covidtoolkit // importing library import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.text.Html import android.text.method.ScrollingMovementMethod import kotlinx.android.synthetic.main.activity_quarantine_general_information.* // craeting cl...
app/src/main/java/in/avimarine/waypointracing/activities/steps/Step3Fragment.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 w...
core/datastore-test/src/main/kotlin/com/google/samples/apps/nowinandroid/core/datastore/test/TestDataStoreModule.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 // * // * https://www.apache.org/licenses/LICENSE-2.0 // * // * Unless...
app/src/androidTest/java/com/github/ashutoshgngwr/noice/widget/CountdownTextViewTest.kt
unknown_repo
kotlin
package com.github.ashutoshgngwr.noice.widget import androidx.test.core.app.ActivityScenario import androidx.test.espresso.Espresso.onView import androidx.test.espresso.assertion.ViewAssertions.matches import androidx.test.espresso.matcher.ViewMatchers.withId import androidx.test.espresso.matcher.ViewMatchers.withText...
app/src/main/java/io/github/wulkanowy/data/db/dao/SemesterDao.kt
unknown_repo
kotlin
package io.github.wulkanowy.data.db.dao import androidx.room.Dao import androidx.room.Query import io.github.wulkanowy.data.db.entities.Semester import io.reactivex.Maybe import javax.inject.Singleton @Singleton @Dao interface SemesterDao : BaseDao<Semester> { @Query("SELECT * FROM Semesters WHERE student_id = :...
Android/dokit-mc/src/main/java/com/didichuxing/doraemonkit/kit/mc/ability/DokitMcModuleProcessor.kt
unknown_repo
kotlin
package com.didichuxing.doraemonkit.kit.mc.ability import android.view.View import com.didichuxing.doraemonkit.DoKit import com.didichuxing.doraemonkit.DoKitEnv import com.didichuxing.doraemonkit.constant.WSMode import com.didichuxing.doraemonkit.kit.core.DoKitManager import com.didichuxing.doraemonkit.kit.core.DokitA...
app/src/main/java/com/github/ejchathuranga/newsapp/ui/home/DefaultHomeFragment.kt
unknown_repo
kotlin
package com.github.ejchathuranga.newsapp.ui.home import android.content.Intent import android.os.Bundle import androidx.fragment.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.Toast import androidx.lifecycle.ViewModelProvider import com.gith...
samples/multi-module/feature-home/src/main/java/cafe/adriel/voyager/sample/multimodule/home/HomeScreen.kt
unknown_repo
kotlin
package cafe.adriel.voyager.sample.multimodule.home import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.height import andro...
Movie App/app/src/main/java/com/example/cineaste/Data/AppDatabase.kt
unknown_repo
kotlin
package com.example.cineaste.Data import android.content.Context import androidx.room.Database import androidx.room.Room import androidx.room.RoomDatabase @Database(entities = arrayOf(Movie::class, Cast::class, SimilarMovies::class), version = 1) abstract class AppDatabase : RoomDatabase() { abstract fun movieDa...
app/src/main/java/ru/ozh/draganddropit/MainActivity.kt
unknown_repo
kotlin
package ru.ozh.draganddropit import android.content.ClipData import android.os.Build import android.support.v7.app.AppCompatActivity import android.os.Bundle import android.support.v4.view.ViewCompat import android.support.v7.widget.GridLayoutManager import android.support.v7.widget.SimpleItemAnimator import android.v...
app/src/main/java/com/company/watchlist/data/remote/response/trending/TrendingResult.kt
unknown_repo
kotlin
package com.company.watchlist.data.remote.response.trending import androidx.compose.runtime.Immutable @Immutable data class TrendingResult( val adult: Boolean, val backdrop_path: String, val first_air_date: String?, val genre_ids: List<Int>, val id: Int, val media_type: String, val name: S...
app/src/main/kotlin/com/lazysoul/kotlinwithandroid/ui/detail/DetailActivity.kt
unknown_repo
kotlin
package com.lazysoul.kotlinwithandroid.ui.detail import android.content.Intent import android.os.Bundle import android.support.v7.widget.Toolbar import android.text.Editable import android.text.TextWatcher import android.view.Menu import android.view.MenuItem import com.lazysoul.kotlinwithandroid.R import com.lazysoul...
Android/app/src/main/java/dev/gabrielhenrique/tiratime/JogadoresTela.kt
unknown_repo
kotlin
package dev.gabrielhenrique.tiratime import android.content.res.Configuration.UI_MODE_NIGHT_YES import androidx.compose.foundation.layout.* import androidx.compose.foundation.rememberScrollState import androidx.compose.foundation.verticalScroll import androidx.compose.material.* import androidx.compose.runtime.Composa...
data/local/src/main/java/com/tfandkusu/graphql/data/local/entity/LocalCreated.kt
unknown_repo
kotlin
package com.tfandkusu.graphql.data.local.entity import androidx.room.ColumnInfo import androidx.room.Entity import androidx.room.PrimaryKey @Entity(tableName = "created") data class LocalCreated( @PrimaryKey(autoGenerate = true) val id: Long, @ColumnInfo(index = true) val kind: String, val createdAt: Long...
app/src/main/java/com/boocha/feature/login/ui/SignUpFragment.kt
unknown_repo
kotlin
package com.boocha.feature.login.ui import android.os.Bundle import android.util.Patterns import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.appcompat.app.AppCompatActivity import com.boocha.R import com.boocha.base.BaseFragment import com.boocha.feature.login.eve...
app/src/main/java/com/foxdev/list/MainActivity.kt
unknown_repo
kotlin
package com.foxdev.list import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.RecyclerView import kotlin.random.Random class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState...
app/src/androidTest/java/com/mateusz113/financemanager/presentation/common/components/PhotoContainerTest.kt
unknown_repo
kotlin
package com.mateusz113.financemanager.presentation.common.components import android.content.Context import androidx.activity.compose.setContent import androidx.compose.ui.test.assertIsDisplayed import androidx.compose.ui.test.junit4.createAndroidComposeRule import androidx.compose.ui.test.onNodeWithContentDescription ...
plugins/accounts-plugin/src/main/kotlin/com/redmadrobot/account_plugin/ui/AccountsFragment.kt
unknown_repo
kotlin
package com.redmadrobot.account_plugin.ui import android.os.Bundle import android.view.View import android.widget.Toast import androidx.core.view.isVisible import androidx.recyclerview.widget.LinearLayoutManager import com.redmadrobot.account_plugin.R import com.redmadrobot.account_plugin.data.model.DebugAccount impor...
compose/src/main/kotlin/io/github/kakaocup/compose/node/element/ComposeScreen.kt
unknown_repo
kotlin
package io.github.kakaocup.compose.node.element import androidx.compose.ui.test.SemanticsMatcher import androidx.compose.ui.test.SemanticsNodeInteractionsProvider import io.github.kakaocup.compose.node.core.ComposeMarker import io.github.kakaocup.compose.node.core.BaseNode import io.github.kakaocup.compose.node.builde...
androidApp/src/androidMain/kotlin/com/myapplication/dialogs/CustomDialog.kt
unknown_repo
kotlin
package com.myapplication.dialogs import android.annotation.SuppressLint import android.content.Intent import com.myapplication.R import android.graphics.Bitmap import android.net.Uri import android.view.Gravity import androidx.activity.compose.rememberLauncherForActivityResult import androidx.activity.result.contra...
app/src/main/java/com/renhard/myecommerce/module/main/viewmodel/MainViewModel.kt
unknown_repo
kotlin
package com.renhard.myecommerce.module.main.viewmodel import android.content.Context import com.renhard.myecommerce.R import com.renhard.myecommerce.module.main.model.ProductModel class MainViewModel { lateinit var productData: List<ProductModel> fun getData(context: Context) { val data = mutableList...
source-code/starter-project/app/src/main/java/com/droidcon/deeplinksnav/data/CourseRepository.kt
unknown_repo
kotlin
/* * Copyright (C) 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 app...
android/src/main/kotlin/com/logo_changer/custom_app_logo/CustomAppLogoPlugin.kt
unknown_repo
kotlin
package com.logo_changer.custom_app_logo import ChangeLogoService import android.content.Context import io.flutter.embedding.engine.plugins.FlutterPlugin import io.flutter.plugin.common.MethodCall import io.flutter.plugin.common.MethodChannel import io.flutter.plugin.common.MethodChannel.MethodCallHandler import io.flu...
app/src/main/java/cn/lyric/getter/tool/ConfigTools.kt
unknown_repo
kotlin
package cn.lyric.getter.tool import android.annotation.SuppressLint import android.content.SharedPreferences import cn.xiaowine.xkt.Tool.isNull import de.robv.android.xposed.XSharedPreferences class ConfigTools { private var xSP: XSharedPreferences? = null private var mSP: SharedPreferences? = null privat...
sample/src/main/java/com/ricarvalho/livecallback/sections/MultipleCallbacksFragment.kt
unknown_repo
kotlin
package com.ricarvalho.livecallback.sections import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.Toast import androidx.fragment.app.Fragment import com.google.android.material.snackbar.Snackbar import com.ricarvalho.livecallback.Input...
app/src/main/kotlin/com/nightlynexus/transparentwidget/AppWidgetIdsToComponentsStorage.kt
unknown_repo
kotlin
package com.nightlynexus.transparentwidget import android.content.ComponentName import android.content.SharedPreferences internal class AppWidgetIdsToComponentsStorage(private val sharedPreferences: SharedPreferences) { fun setComponent(appWidgetId: Int, componentName: ComponentName?) { val value = if (componen...
adapter_example/src/main/kotlin/com/wuhenzhizao/adapter/example/AppGlobal.kt
unknown_repo
kotlin
package com.wuhenzhizao.adapter.example import android.support.multidex.MultiDexApplication import com.wuhenzhizao.adapter.example.image.GImageLoader import okhttp3.OkHttpClient /** * Created by liufei on 2017/12/14. */ class AppGlobal : MultiDexApplication() { override fun onCreate() { super.onCreate(...
app/src/main/java/me/excq/androidopengles20demo/chapters10/MyRenderer07.kt
unknown_repo
kotlin
package me.excq.androidopengles20demo.chapters10 import android.content.res.AssetManager import android.graphics.PointF import android.opengl.GLES20 import android.view.MotionEvent import kotlinx.coroutines.GlobalScope import kotlinx.coroutines.delay import kotlinx.coroutines.launch import java.nio.ByteBuffer import j...
app/src/main/java/com/lukaslechner/coroutineusecasesonandroid/usecases/coroutines/usecase7/TimeoutAndRetryViewModel.kt
unknown_repo
kotlin
package com.lukaslechner.coroutineusecasesonandroid.usecases.coroutines.usecase7 import androidx.lifecycle.viewModelScope import com.lukaslechner.coroutineusecasesonandroid.base.BaseViewModel import com.lukaslechner.coroutineusecasesonandroid.mock.MockApi import kotlinx.coroutines.* import timber.log.Timber class Tim...
app/src/main/java/com/arophix/mvvm/example/workers/SimpleBestLocationWorker.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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
app/src/main/java/com/example/projectmagangapp/MainActivity.kt
unknown_repo
kotlin
package com.example.projectmagangapp import android.os.Bundle import android.view.Menu import com.google.android.material.snackbar.Snackbar import com.google.android.material.navigation.NavigationView import androidx.navigation.findNavController import androidx.navigation.ui.AppBarConfiguration import androidx.navigat...
app/src/main/java/dev/alexknittel/syntact/presentation/deckcreation/detail/DeckCreationDetailDialog.kt
unknown_repo
kotlin
package dev.alexknittel.syntact.presentation.deckcreation.detail import android.graphics.Color import android.graphics.drawable.ColorDrawable import android.graphics.drawable.InsetDrawable import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android....
app/src/main/java/com/edimariyanto/testmvvm/ui/home/HomeFragment.kt
unknown_repo
kotlin
package com.edimariyanto.testmvvm.ui.home import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.lifecycle.Observer import com.edimariyanto.testmvvm.data.models.auth.login.Data import com.edimariyanto.testmvvm.data.network.Resources import com...
app/src/main/java/com/dede/android_eggs/EasterEggsApp.kt
unknown_repo
kotlin
package com.dede.android_eggs import android.app.Application import dagger.hilt.android.HiltAndroidApp @HiltAndroidApp class EasterEggsApp : Application()
people/src/main/java/com/moviedb/people/domian/model/People.kt
unknown_repo
kotlin
package com.moviedb.people.domian.model import androidx.room.Entity import androidx.room.PrimaryKey import androidx.room.TypeConverters import com.google.gson.annotations.SerializedName import com.moviedb.common.converter.Converters import com.moviedb.core.BuildConfig @Entity(tableName = "people") @TypeConverters(Co...
app/src/main/java/com/pratthamarora/todoapp/ToDoApplication.kt
unknown_repo
kotlin
package com.pratthamarora.todoapp import android.app.Application import dagger.hilt.android.HiltAndroidApp @HiltAndroidApp class ToDoApplication : Application() { }
app/src/main/java/ar/edu/utn/frba/placesify/view/DetailPlacesScreen.kt
unknown_repo
kotlin
package ar.edu.utn.frba.placesify.view import android.annotation.SuppressLint import androidx.compose.foundation.Image import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row impor...
app/src/main/java/io/vextil/launcher/managers/AppsManager.kt
unknown_repo
kotlin
package io.vextil.launcher.managers import android.content.Context import android.content.Intent import android.content.pm.ApplicationInfo import android.content.pm.PackageManager import io.paperdb.Book import io.paperdb.Paper import io.vextil.launcher.models.AppModel class AppsManager(val context: Context) { va...
app/src/main/java/com/midnightgeek/testproject/ui/MainFragmentViewModel.kt
unknown_repo
kotlin
package com.midnightgeek.testproject.ui import androidx.lifecycle.ViewModel import javax.inject.Inject class MainFragmentViewModel @Inject constructor() : ViewModel()
app/src/main/java/com/videoengager/demoapp/WebChat.kt
unknown_repo
kotlin
// // DemoPureCloud // // Copyright © 2021 VideoEngager. All rights reserved. // package com.videoengager.demoapp import android.os.Bundle import android.widget.* import androidx.appcompat.app.AppCompatActivity import com.videoengager.sdk.VideoEngager class WebChat : AppCompatActivity() { override fun onCreate(...
phoenix-ui/src/main/java/com/guoxiaoxing/phoenix/picker/util/PaintUtil.kt
unknown_repo
kotlin
/* * Copyright 2013, Edmodo, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. * You may obtain a copy of the License in the LICENSE file, or at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
scoreboard-app/src/main/java/com/nextgenbroadcast/mobile/middleware/scoreboard/ScorebordPermissionResolver.kt
unknown_repo
kotlin
package com.nextgenbroadcast.mobile.middleware.scoreboard import android.Manifest import android.app.Activity import android.app.NotificationManager import android.content.BroadcastReceiver import android.content.Context import android.content.Intent import android.content.IntentFilter import android.content.pm.Packag...
app/src/main/java/com/adityaamolbavadekar/messenger/views/MessageItem.kt
unknown_repo
kotlin
/* * * Copyright 2022 Aditya Bavadekar * * 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 ap...
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/regular/ThumbDislike.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.ThumbDislike: ImageVector get() { if (_thumbDislike != null...
app/src/main/java/com/cevlikalprn/youneedtodo/presentation/uipack/search/AppSearchField.kt
unknown_repo
kotlin
package com.cevlikalprn.youneedtodo.presentation.uipack.search import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.text.KeyboardActions import androidx.compose.foundation.text.KeyboardOptions import androidx.compose.material.ContentAlpha import androidx.compose.material.Icon impor...
comvvmhelper/src/main/java/com/kk/android/comvvmhelper/extension/StringExtension.kt
unknown_repo
kotlin
package com.kk.android.comvvmhelper.extension import android.os.Build import android.text.Html import android.text.Spanned /** * @author kuky. * @description */ @Suppress("DEPRECATION") fun String.renderHtml(): Spanned = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { Html.fromHtml(this, Html.FROM_HTML_...
app/src/main/kotlin/com/alexeymerov/radiostations/RadioApp.kt
unknown_repo
kotlin
package com.alexeymerov.radiostations import android.app.Application import com.alexeymerov.radiostations.common.NumberedTimberTree import com.alexeymerov.radiostations.core.common.BuildConfig import com.google.firebase.analytics.FirebaseAnalytics import com.google.firebase.crashlytics.FirebaseCrashlytics import dagge...
mlog/src/main/java/in/rmkrishna/mlog/MFileLog.kt
unknown_repo
kotlin
/* * Copyright 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 ...
app/src/androidTest/java/com/xeniac/fifaultimateteamcoin_dsfut_sell_fut/feature_history/presentation/history/HistoryScreenTest.kt
unknown_repo
kotlin
package com.xeniac.fifaultimateteamcoin_dsfut_sell_fut.feature_history.presentation.history import android.content.Context import androidx.activity.compose.setContent import androidx.compose.ui.test.assertIsDisplayed import androidx.compose.ui.test.junit4.createAndroidComposeRule import androidx.compose.ui.test.onAllN...
composeApp/src/wasmJsMain/kotlin/main.kt
unknown_repo
kotlin
import androidx.compose.runtime.Composable import androidx.compose.runtime.CompositionLocalProvider import androidx.compose.runtime.DisposableEffect import androidx.compose.runtime.LaunchedEffect import androidx.compose.runtime.remember import androidx.compose.ui.ExperimentalComposeUiApi import androidx.compose.ui.win...
app/src/main/kotlin/de/markusfisch/android/binaryeye/app/Process.kt
unknown_repo
kotlin
package de.markusfisch.android.binaryeye.app import android.app.Activity import android.content.Intent import de.markusfisch.android.binaryeye.activity.SplashActivity private const val RESTART_COUNT = "restart_count" private var restartCount = 0 fun setRestartCount(intent: Intent?) { intent?.let { restartCount =...
zeapp/android/src/main/java/de/berlindroid/zeapp/zeui/ZeNavigationPad.kt
unknown_repo
kotlin
package de.berlindroid.zeapp.zeui import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size import androidx.compose.foundation....
Main/src/main/java/com/redelf/commons/messaging/firebase/FcmService.kt
unknown_repo
kotlin
package com.redelf.commons.messaging.firebase import android.annotation.SuppressLint import android.content.BroadcastReceiver import android.content.Context import android.content.Intent import android.content.IntentFilter import android.os.PowerManager import androidx.localbroadcastmanager.content.LocalBroadcastManag...
Main/src/main/java/com/redelf/commons/messaging/firebase/FcmService.kt
unknown_repo
kotlin
package com.redelf.commons.messaging.firebase import android.annotation.SuppressLint import android.content.BroadcastReceiver import android.content.Context import android.content.Intent import android.content.IntentFilter import android.os.PowerManager import androidx.localbroadcastmanager.content.LocalBroadcastManag...
app/src/main/java/com/anibalventura/anothernote/data/viewmodel/TrashViewModel.kt
unknown_repo
kotlin
package com.anibalventura.anothernote.data.viewmodel import android.app.Application import androidx.lifecycle.AndroidViewModel import androidx.lifecycle.LiveData import androidx.lifecycle.viewModelScope import com.anibalventura.anothernote.data.db.trash.TrashDatabase import com.anibalventura.anothernote.data.models.Tr...
app/src/main/java/com/example/dropy/ui/components/shops/frontside/customer/orderprocess/payments/PaymentMethodDataClass.kt
unknown_repo
kotlin
package com.example.dropy.ui.components.shops.frontside.customer.orderprocess.payments import androidx.compose.ui.graphics.painter.Painter data class PaymentMethodDataClass( val name:String, val image: Painter, )
app/src/main/java/com/vitaliimalone/shorttermplanner/presentation/base/BaseBottomSheetDialogFragment.kt
unknown_repo
kotlin
package com.vitaliimalone.shorttermplanner.presentation.base import android.app.Dialog import android.content.DialogInterface import android.os.Bundle import android.util.Log import android.view.View import android.widget.FrameLayout import androidx.annotation.LayoutRes import androidx.annotation.StyleRes import com.g...
Toolkt/src/main/java/com/reco1l/toolkt/android/Dimensions.kt
unknown_repo
kotlin
@file:JvmName("Margins") package com.reco1l.toolkt.android import android.content.Context import android.content.res.Resources import android.util.TypedValue import android.util.TypedValue.COMPLEX_UNIT_DIP import android.util.TypedValue.COMPLEX_UNIT_SP import android.view.View import android.view.ViewGroup.MarginLayo...
app/src/main/java/com/omongole/fred/yomovieapp/presentation/MainActivity.kt
unknown_repo
kotlin
package com.omongole.fred.yomovieapp.presentation import android.os.Bundle import androidx.activity.ComponentActivity import androidx.activity.compose.setContent import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.navigationBarsPadding import androidx.compose.foundation.layo...
common/src/commonMain/kotlin/feature/metarscreen/ui/airportSegment/AirportInfo.kt
unknown_repo
kotlin
package feature.metarscreen.ui.airportSegment import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.height import androidx.compose.material.MaterialTheme import androidx.compose.material....
app/src/main/java/com/heyanle/easybangumi4/ui/cartoon_play/view_model/CartoonPlayViewModel.kt
unknown_repo
kotlin
package com.heyanle.easybangumi4.ui.cartoon_play.view_model import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableIntStateOf import androidx.compose.runtime.setValue import androidx.lifecycle.ViewModel import androidx.lifecycle.ViewModelProvider import com.heyanle.easybangumi4.cartoon.entity....
app/src/main/java/com/spaceapps/myapplication/features/resetPassword/ResetPasswordViewModel.kt
unknown_repo
kotlin
package com.spaceapps.myapplication.features.resetPassword import androidx.lifecycle.SavedStateHandle import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.spaceapps.myapplication.R import com.spaceapps.myapplication.core.models.InputWrapper import com.spaceapps.myapplication.core.rep...
app/src/main/java/com/arjinmc/jetpackplayground/ui/constrainlayout/ConstrainLayoutCircularPositionActivity.kt
unknown_repo
kotlin
package com.arjinmc.jetpackplayground.ui.constrainlayout import android.os.Bundle import com.arjinmc.jetpackplayground.R import com.arjinmc.jetpackplayground.basic.BasicActivity import com.arjinmc.jetpackplayground.databinding.ActConstrainLayoutBasicBinding import com.arjinmc.jetpackplayground.databinding.ActConstrain...
module_util_mshare/src/main/java/com/crazy/mshare/SharePd.kt
unknown_repo
kotlin
package com.crazy.mshare import android.annotation.SuppressLint import android.app.Activity import android.content.ComponentName import android.content.Intent import android.content.pm.LabeledIntent import android.net.Uri import android.os.Build import android.os.StrictMode import android.util.Log import java.lang.Nul...
androidApp/src/main/java/com/rld/justlisten/android/ui/OnePane.kt
unknown_repo
kotlin
package com.rld.justlisten.android.ui import android.media.session.PlaybackState import android.widget.Toast import androidx.activity.compose.BackHandler import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.offset import androi...
app/src/main/java/com/example/farmradio/sidenavigation/AudioFragment.kt
unknown_repo
kotlin
package com.example.farmradio.sidenavigation import android.net.Uri import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.Toast import androidx.fragment.app.Fragment import androidx.recyclerview.widget.LinearLayoutManager import android...
packages/core/android/src/main/java/com/reactnativecamera/Size.kt
unknown_repo
kotlin
/* * Copyright (C) 2016 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/com/example/inventory/data/AppContainer.kt
unknown_repo
kotlin
package com.example.inventory.data import android.content.Context interface AppContainer { val petsRepository: PetsRepository } class AppDataContainer(private val context: Context) : AppContainer { override val petsRepository: PetsRepository by lazy { OfflinePetsRepository(InventoryDatabase.getDatab...
sample/src/main/java/com/google/android/horologist/sample/tiles/ExampleTileService.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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
app/src/main/java/com/cnseamless/kiosklauncher/ui/viewmodel/SettingsViewModel.kt
unknown_repo
kotlin
package com.cnseamless.kiosklauncher.ui.viewmodel import android.content.Context import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.cnseamless.kiosklauncher.data.repository.ConfigurationRepository import com.cnseamless.kiosklauncher.model.AppInfo import com.cnseamless.kiosklauncher...
app/src/main/java/com/zipdabang/zipdabang_android/ui/component/Drawer.kt
unknown_repo
kotlin
package com.zipdabang.zipdabang_android.ui.component import android.util.Log import androidx.compose.foundation.background import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column im...
app/src/main/java/com/thierry/douban/module/status/home/card/StatusCardNormalViewModel.kt
unknown_repo
kotlin
package com.thierry.douban.module.status.home.card import com.thierry.douban.model.Timeline import com.thierry.douban.module.common.BaseViewModel /** * Created by Thierry on 2017/7/16. */ open class StatusCardNormalViewModel(open val timeline: Timeline) : BaseViewModel() { fun topViewModel(): StatusCardTopView...
app/src/main/java/com/nandra/movieverse/data/DiscoverTVDataSource.kt
unknown_repo
kotlin
package com.nandra.movieverse.data import androidx.lifecycle.MutableLiveData import androidx.paging.PageKeyedDataSource import com.nandra.movieverse.network.Film import com.nandra.movieverse.network.apiservice.TMDBDiscoverApiService import com.nandra.movieverse.util.NetworkState import kotlinx.coroutines.CoroutineScop...
src/ors_client/composeApp/src/commonMain/kotlin/org/astu/object_review_system_client/views/theme/Color.kt
unknown_repo
kotlin
@file:Suppress("unused") // чтобы ide не ругалась на неиспользуемые цвета package org.astu.object_review_system_client.views.theme import androidx.compose.ui.graphics.Color // Generated by https://m3.material.io/theme-builder#/custom // Color palettes correspond to material ui 3 // Далее указаны primary-цвета для не...
app/src/main/java/za/co/varsitycollege/st10204772/opsc7312_poe/Contact.kt
unknown_repo
kotlin
package za.co.varsitycollege.st10204772.opsc7312_poe import android.content.Intent import android.os.Bundle import android.view.LayoutInflater import android.widget.LinearLayout import android.widget.TextView import android.widget.Toast import androidx.activity.enableEdgeToEdge import androidx.appcompat.app.AppCompatA...
app/src/main/java/com/trateg/bepresensimobile/ui/isi_berita_acara/IsiBeritaAcaraPresenter.kt
unknown_repo
kotlin
package com.trateg.bepresensimobile.ui.isi_berita_acara import android.content.ContentValues import android.util.Log import com.trateg.bepresensimobile.data.api.ApiFactory import com.trateg.bepresensimobile.model.BaseResponse import com.trateg.bepresensimobile.model.BeritaAcara import com.trateg.bepresensimobile.model...
sample/src/main/java/com/paydock/sample/designsystems/theme/typography/FontFamily.kt
unknown_repo
kotlin
/* * Created by Paydock on 1/26/24, 6:24 PM * Copyright (c) 2024 Paydock Ltd. * * Last modified 1/26/24, 2:24 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/java/com/tiamosu/fly/demo/base/BaseActivity.kt
unknown_repo
kotlin
package com.tiamosu.fly.demo.base import android.os.Bundle import com.tiamosu.fly.FlySupportActivity import com.tiamosu.fly.demo.kts.immersionBar /** * @author ti * @date 2022/7/7. */ abstract class BaseActivity : FlySupportActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCrea...
android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/expo/modules/sensors/services/PedometerService.kt
unknown_repo
kotlin
// Copyright 2015-present 650 Industries. All rights reserved. package abi48_0_0.expo.modules.sensors.services import android.content.Context import android.hardware.Sensor import abi48_0_0.expo.modules.interfaces.sensors.services.PedometerServiceInterface import abi48_0_0.expo.modules.core.interfaces.InternalModule ...
app/src/main/java/com/example/housepick/ui/utils/ImageHandler.kt
unknown_repo
kotlin
package com.example.housepick.ui.utils import android.util.Base64 import android.widget.ImageView import com.bumptech.glide.Glide fun showImage(base64Image: String, view: ImageView) { val decodedString = Base64.decode(base64Image, Base64.DEFAULT) Glide.with(view.context) .asBitmap() .load(deco...
packages/SystemUI/src/com/android/systemui/statusbar/pipeline/wifi/ui/binder/WifiViewBinder.kt
unknown_repo
kotlin
/* * Copyright (C) 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 app...
bitapp/src/main/java/com/atech/bit/ui/fragments/home/edit/EditBottomSheet.kt
unknown_repo
kotlin
package com.atech.bit.ui.fragments.home.edit import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.navigation.fragment.navArgs import androidx.recyclerview.widget.LinearLayoutManager import com.atech.core.room.syllabus.SyllabusDao import com....
app/src/main/java/com/example/androiddevchallenge/SpeedApp.kt
unknown_repo
kotlin
/* * Copyright 2021 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...