file_path
stringlengths
6
261
repository
stringclasses
2 values
language
stringclasses
1 value
content
stringlengths
121
454k
app/app/src/main/java/com/example/posture/Sensors.kt
unknown_repo
kotlin
package com.example.posture import android.bluetooth.BluetoothAdapter import android.bluetooth.BluetoothDevice import android.bluetooth.BluetoothManager import android.bluetooth.le.ScanCallback import android.bluetooth.le.ScanFilter import android.bluetooth.le.ScanResult import android.bluetooth.le.ScanSettings import...
app/src/main/java/com/project/messagingapp/ui/main/viewmodel/NearbyUsersViewModel.kt
unknown_repo
kotlin
package com.project.messagingapp.ui.main.viewmodel import android.app.Application import androidx.lifecycle.AndroidViewModel import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import com.project.messagingapp.data.ChatDatabase import com.project.messagingapp...
app/src/main/java/net/tnose/app/trisquel/FilmRollViewModel.kt
unknown_repo
kotlin
package net.tnose.app.trisquel import android.app.Application import androidx.lifecycle.AndroidViewModel import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.switchMap import androidx.lifecycle.viewModelScope import kotlinx.coroutines.launch class FilmRollViewModel(ap...
collector/src/androidTest/java/com/bitmovin/analytics/data/LongtermRetryOnFailureTest.kt
unknown_repo
kotlin
package com.bitmovin.analytics.data import android.os.Handler import android.os.Looper import androidx.test.ext.junit.runners.AndroidJUnit4 import androidx.test.platform.app.InstrumentationRegistry import com.bitmovin.analytics.BitmovinAnalytics import com.bitmovin.analytics.adapters.PlayerAdapter import com.bitmovin....
sphinx/screens/onboard/onboard-message/src/main/java/chat/sphinx/onboard/ui/OnBoardMessageSideEffect.kt
unknown_repo
kotlin
package chat.sphinx.onboard.ui import android.app.AlertDialog import android.content.Context import chat.sphinx.onboard.R import chat.sphinx.wrapper_relay.RelayUrl import io.matthewnelson.concept_views.sideeffect.SideEffect internal sealed class OnBoardSideEffect: SideEffect<Context>() { class RelayUrlHttpConfir...
app/src/main/java/com/example/noteapp/Model/Note.kt
unknown_repo
kotlin
package com.example.noteapp.Model import android.os.Parcelable import androidx.room.ColumnInfo import androidx.room.Entity import androidx.room.Ignore import androidx.room.PrimaryKey import kotlinx.android.parcel.Parcelize @Parcelize @Entity data class Note( @PrimaryKey(autoGenerate = true) var id:Int, @C...
app/src/androidMain/kotlin/org/androidaudioplugin/composeaudiocontrols/demoapp/MainActivity.kt
unknown_repo
kotlin
package org.androidaudioplugin.composeaudiocontrols.demoapp import android.os.Bundle import android.widget.Toast import androidx.activity.ComponentActivity import androidx.activity.OnBackPressedCallback import androidx.activity.compose.setContent import androidx.compose.foundation.layout.fillMaxSize import androidx.co...
Jetsurvey/app/src/main/java/com/example/compose/jetsurvey/signinsignup/UserRepository.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/uk/co/alt236/bluetoothconnectionlog/ui/detail/recycler/LogRecyclerAdapter.kt
unknown_repo
kotlin
package uk.co.alt236.bluetoothconnectionlog.ui.detail.recycler import android.view.LayoutInflater import android.view.ViewGroup import androidx.fragment.app.FragmentActivity import androidx.recyclerview.widget.RecyclerView import uk.co.alt236.bluetoothconnectionlog.db.entities.LogEntry import uk.co.alt236.bluetoothcon...
app/src/main/java/com/example/motionlayout/LeftToRightAnimationActivity.kt
unknown_repo
kotlin
package com.example.motionlayout import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import kotlinx.android.synthetic.main.activity_left_to_right_animation.* class LeftToRightAnimationActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate...
app/src/main/java/br/com/iesb/tarefas/TarefaAdapter.kt
unknown_repo
kotlin
package br.com.iesb.tarefas import android.support.v7.widget.RecyclerView import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import kotlinx.android.synthetic.main.tarefa_cell.view.* import java.text.SimpleDateFormat import java.util.* /** * Created by matheus.psousa on 05/04/20...
app/src/main/java/com/example/fit_x_logger_android/activities/MainActivity.kt
unknown_repo
kotlin
package com.example.fit_x_logger_android.activities import android.app.DatePickerDialog import android.content.Intent import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.view.Menu import android.view.MenuItem import android.view.View import android.widget.Toast import com.example.fi...
rxbinding/src/main/java/com/jakewharton/rxbinding4/widget/RadioGroupToggleCheckedConsumer.kt
unknown_repo
kotlin
@file:JvmName("RxRadioGroup") @file:JvmMultifileClass package com.jakewharton.rxbinding3.widget import androidx.annotation.CheckResult import android.widget.RadioGroup import io.reactivex.functions.Consumer /** * An action which sets the checked child of `view` with ID. Passing `-1` will clear * any checked view. ...
app/src/main/java/com/galudino/sampleuiandroid/MainActivity.kt
unknown_repo
kotlin
/** * @file MainActivity.kt * @brief Encapsulates MainActivity class * * @author <NAME> * @date 26 Sep 2021 */ package com.galudino.sampleuiandroid import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import com.galudino.sampleuiandroid.databinding.ActivityMainBinding /** * @class...
app/src/main/java/com/pokedex/illustratedbook/ui/screen/pokemon/PokemonViewModel.kt
unknown_repo
kotlin
package com.pokedex.illustratedbook.ui.screen.pokemon import androidx.lifecycle.ViewModel import androidx.paging.Pager import androidx.paging.PagingConfig import androidx.paging.PagingData import com.pokedex.illustratedbook.api.ApiService import com.pokedex.illustratedbook.data.PokemonEntity import com.pokedex.illustr...
mobile/src/androidTest/java/com/google/samples/apps/iosched/tests/SetPreferencesRule.kt
unknown_repo
kotlin
/* * Copyright 2018 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/kotlin/na/komi/kodesh/ui/internal/BaseFragment2.kt
unknown_repo
kotlin
package na.komi.kodesh.ui.internal import android.app.Activity import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.appcompat.widget.AppCompatTextView import androidx.appcompat.widget.Toolbar import androidx.constraintlayout.widget.Constrain...
appModules/appFeatures/api/src/commonMain/kotlin/dev/reprator/appFeatures/api/utility/InternetChecker.kt
unknown_repo
kotlin
package dev.reprator.appFeatures.api.utility import kotlinx.coroutines.flow.StateFlow import kotlin.experimental.ExperimentalObjCRefinement import kotlin.native.HiddenFromObjC @OptIn(ExperimentalObjCRefinement::class) @HiddenFromObjC interface InternetChecker { val networkStatus: StateFlow<Boolean> }
core/database/src/main/kotlin/com/google/samples/apps/nowinandroid/core/database/model/TopicFtsEntity.kt
unknown_repo
kotlin
/* * Copyright 2023 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
app/src/main/java/eu/kanade/tachiyomi/ui/reader/loader/ZipPageLoader.kt
unknown_repo
kotlin
package eu.kanade.tachiyomi.ui.reader.loader import android.os.Build import eu.kanade.tachiyomi.source.model.Page import eu.kanade.tachiyomi.ui.reader.model.ReaderPage import eu.kanade.tachiyomi.util.lang.compareToCaseInsensitiveNaturalOrder import eu.kanade.tachiyomi.util.system.ImageUtil import rx.Observable import ...
app/src/main/java/com/vladislawfox/scout/domain/sources/UpcomingMoviesSource.kt
unknown_repo
kotlin
package com.vladislawfox.scout.domain.sources import androidx.paging.PagingSource import androidx.paging.PagingState import com.vladislawfox.scout.domain.model.Movie import com.vladislawfox.scout.domain.usecases.movies.GetNowPlayingMoviesUseCase import javax.inject.Inject class NowPlayingMoviesSource @Inject construc...
app-thunderbird/src/main/kotlin/net/thunderbird/android/provider/TbFeatureThemeProvider.kt
unknown_repo
kotlin
package net.thunderbird.android.provider import androidx.compose.runtime.Composable import app.k9mail.core.ui.compose.theme2.thunderbird.ThunderbirdTheme2 import app.k9mail.core.ui.theme.api.FeatureThemeProvider class TbFeatureThemeProvider : FeatureThemeProvider { @Composable override fun WithTheme(content: ...
app/src/main/java/com/dialiax/sweeto/model/OrderDetails.kt
unknown_repo
kotlin
package com.dialiax.sweeto.model import android.os.Parcel import android.os.Parcelable import java.io.Serializable import java.util.ArrayList class OrderDetails():Serializable { var userUid: String? = null var userName: String? = null var foodNames: MutableList<String>? = null var foodImages: MutableL...
data/src/main/java/ca/bc/gov/data/datasource/local/entity/specialauthority/SpecialAuthorityEntity.kt
unknown_repo
kotlin
package ca.bc.gov.data.datasource.local.entity.specialauthority import androidx.room.ColumnInfo import androidx.room.Entity import androidx.room.ForeignKey import androidx.room.PrimaryKey import ca.bc.gov.common.model.DataSource import ca.bc.gov.data.datasource.local.entity.PatientEntity import java.time.Instant /* *...
app/src/main/java/com/robert/banyai/wup/presentation/base/BaseViewHolder.kt
unknown_repo
kotlin
package com.robert.banyai.wup.presentation.base import android.view.View import androidx.recyclerview.widget.RecyclerView abstract class BaseViewHolder<I : AdapterItem>(itemView: View) : RecyclerView.ViewHolder(itemView) { abstract fun bind(adapterItem: I) }
app/src/main/java/com/dev/bins/daily/activity/BaseActivity.kt
unknown_repo
kotlin
package com.dev.bins.daily.activity import android.os.Bundle import android.support.v4.app.ActivityCompat import android.support.v7.app.AppCompatActivity import android.support.v7.widget.Toolbar import android.transition.Explode import android.transition.Slide import android.view.MenuItem /** * Created by bin on 07/...
app/src/main/java/com/multithread/cocoon/presentation/list/TopStoriesViewHolder.kt
unknown_repo
kotlin
package com.multithread.cocoon.presentation.list import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.recyclerview.widget.RecyclerView import com.multithread.cocoon.R import com.multithread.cocoon.domain.model.TopStoryDomainEntity import com.multithread.cocoon.exten...
app/src/main/kotlin/com/czbix/v2ex/common/NotificationStatus.kt
unknown_repo
kotlin
package com.czbix.v2ex.common import android.app.PendingIntent import android.content.Context import android.content.Intent import android.support.annotation.IntDef import android.support.v4.app.NotificationCompat import android.support.v4.app.NotificationManagerCompat import com.czbix.v2ex.AppCtx import com.czbix.v2e...
core/src/main/java/com/aliumujib/artic/di/modules/CacheModule.kt
unknown_repo
kotlin
/* * Copyright 2020 Abdul-Mujeeb Aliu * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/CircleO.kt
unknown_repo
kotlin
package me.localx.icons.straight.outline import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.PathFillType.Companion.NonZero import androidx.compose.ui.graphics.SolidColor import androidx.compose.ui.graphics.StrokeCap.Companion.Butt import androidx.compose.ui.graphics.StrokeJoin.Companion.Mite...
app/src/main/java/com/android/skip/WhitelistActivity.kt
unknown_repo
kotlin
package com.android.skip import android.content.pm.ApplicationInfo import android.content.pm.PackageManager import androidx.compose.foundation.lazy.LazyColumn import androidx.compose.material3.Icon import androidx.compose.runtime.Composable import androidx.compose.runtime.LaunchedEffect import androidx.compose.runtime...
app/src/main/java/com/drs/dseller/feature_onboarding/presentation/screens/signup/SignUpBody.kt
unknown_repo
kotlin
@file:OptIn(ExperimentalMaterial3Api::class) package com.drs.dseller.feature_onboarding.presentation.screens.signup import androidx.compose.foundation.Image import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Spacer import androidx.co...
matrix-sdk-crypto/src/main/java/org/matrix/androidsdk/crypto/cryptostore/db/CryptoFileStoreImporter.kt
unknown_repo
kotlin
/* * Copyright 2018 New Vector Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
VejdirektoratetSDK/src/test/java/dk/vejdirektoratet/vejdirektoratetsdk/UtilsTest.kt
unknown_repo
kotlin
/** * * VejdirektoratetSDK * * Created by <NAME> on 2019-11-21. * Copyright © 2019 Vejdirektoratet. All rights reserved. */ package dk.vejdirektoratet.vejdirektoratetsdk import com.google.android.gms.maps.model.LatLng import com.google.android.gms.maps.model.LatLngBounds import dk.vejdirektoratet.vejdirektor...
app/src/main/java/com/totallytim/randomreminders/database/Reminder.kt
unknown_repo
kotlin
package com.totallytim.randomreminders.database import androidx.room.ColumnInfo import androidx.room.Entity import androidx.room.PrimaryKey import com.totallytim.randomreminders.fromCalendar import java.util.* /** * The Reminder database: a collection of the user's reminders that hold information about what the * r...
shared/src/commonMain/kotlin/ui/mainScreen/NavigationDrawer.kt
unknown_repo
kotlin
package ui.mainScreen import androidx.compose.foundation.background import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.fillMaxWidth import and...
app/src/main/kotlin/com/mstoyanov/musiclessons/model/Lesson.kt
unknown_repo
kotlin
package com.mstoyanov.musiclessons.model import androidx.room.* import androidx.room.ForeignKey.Companion.CASCADE import com.mstoyanov.musiclessons.global.Functions.formatter import java.io.Serializable import java.time.LocalTime @Entity( tableName = "lesson", foreignKeys = [ForeignKey( entity = Stude...
app/src/main/java/cz/ikem/dci/zscanner/persistence/SendJobDao.kt
unknown_repo
kotlin
package cz.ikem.dci.zscanner.persistence import androidx.lifecycle.LiveData import androidx.room.* @Dao interface SendJobDao { @Query("select * from send_jobs order by timestamp desc") fun getAll(): LiveData<List<SendJob>> @Query("select * from send_jobs order by timestamp desc") fun getAllSync(): L...
app/src/main/java/com/guoyi/listeninglove/data/FolderLoader.kt
unknown_repo
kotlin
package com.cyl.musiclake.bean.data import android.content.Context import android.provider.MediaStore import com.cyl.musiclake.MusicApp import com.cyl.musiclake.bean.FolderInfo import com.cyl.musiclake.common.NavigationHelper import io.reactivex.Observable import java.io.File import java.util.* object FolderLoader { ...
library/src/main/java/com/fanhl/util/CompatibleHelper.kt
unknown_repo
kotlin
package com.fanhl.util import android.os.Build import android.view.View /** * 版本兼容处理 * * @author fanhl */ object CompatibleHelper { fun postInvalidateOnAnimation(view: View?) { view?.apply { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) { postInvalidateOnAnim...
data/src/main/java/com/jfalck/data/di/MoviesDatabaseModule.kt
unknown_repo
kotlin
package com.jfalck.data.di import android.content.Context import androidx.room.Room import com.jfalck.data.local.db.MoviesDatabase import dagger.Module import dagger.Provides import dagger.hilt.InstallIn import dagger.hilt.android.qualifiers.ApplicationContext import dagger.hilt.components.SingletonComponent import ja...
dependency-injection/test-component/src/main/kotlin/studio/lunabee/di/SettingsTestModule.kt
unknown_repo
kotlin
/* * Copyright (c) 2023-2023 Lunabee Studio * * 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/main/java/de/p72b/umi/github/utils/Utils.kt
unknown_repo
kotlin
package de.p72b.umi.github.utils import android.view.View import android.widget.TextView import androidx.core.content.ContextCompat import com.google.android.material.snackbar.Snackbar import de.p72b.umi.github.App import de.p72b.umi.github.R object Utils { const val DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSSZ" //2...
app/src/main/kotlin/jp/co/yumemi/android/code_check/search/SearchAdapter.kt
unknown_repo
kotlin
package jp.co.yumemi.android.code_check.search import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.TextView import androidx.recyclerview.widget.DiffUtil import androidx.recyclerview.widget.ListAdapter import androidx.recyclerview.widget.RecyclerView import jp...
app/src/main/java/edu/gvsu/art/gallery/ui/ArtistDetailScreen.kt
unknown_repo
kotlin
package edu.gvsu.art.gallery.ui import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.fi...
android/src/main/kotlin/com/adapty/flutter/push/AdaptyFlutterPushHandler.kt
unknown_repo
kotlin
package com.adapty.flutter.push import android.content.Context import com.adapty.flutter.R import com.adapty.push.AdaptyPushHandler class AdaptyFlutterPushHandler(context: Context) : AdaptyPushHandler(context) { override val clickAction = "ADAPTY_PROMO_CLICK_ACTION" override val smallIconResId = R.drawable....
launch/src/main/java/cn/leizy/lauch/task/ITask.kt
unknown_repo
kotlin
package cn.leizy.lauch.task import android.os.Process import androidx.annotation.IntRange import java.util.concurrent.Executor /** * @author Created by wulei * @date 2020/8/5, 005 * @description */ interface ITask { /** * 优先级的范围,可根据Task重要程度及工作量指定;之后根据实际情况决定是否有必要放更大 * * @return */ @IntR...
android/src/main/java/ru/gbixahue/eu4d/android/text/transformer/chain/ColorDecorator.kt
unknown_repo
kotlin
package ru.gbixahue.eu4d.android.text.transformer.chain import android.text.style.ForegroundColorSpan import androidx.annotation.ColorInt /** * Created by Anton Zhilenkov on 29.10.18. */ class ColorDecorator( @ColorInt private val color: Int, start: Int, end: Int, source: CharSequence? = null ): BaseChainDe...
app/src/main/java/com/viatom/sevenweather/ui/place/PlaceViewModel.kt
unknown_repo
kotlin
package com.viatom.sevenweather.ui.place import androidx.lifecycle.MutableLiveData import androidx.lifecycle.Transformations import androidx.lifecycle.ViewModel import com.viatom.sevenweather.house.Repository import com.viatom.sevenweather.logic.dao.PlaceDao import com.viatom.sevenweather.logic.model.Place import java...
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/outline/Sidebarleft.kt
unknown_repo
kotlin
package moe.tlaster.icons.vuesax.vuesaxicons.outline 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...
app/src/main/java/com/example/myhealthpassport/ViewModels/AgentViewModel.kt
unknown_repo
kotlin
package com.example.myhealthpassport.ViewModels import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import com.example.myhealthpassport.Agent.AgentInstance import com.example.myhealthpassport.Agent.MistralMessage impo...
app/src/main/java/com/rokoblak/chatbackup/ui/commonui/ConversationDisplay.kt
unknown_repo
kotlin
package com.rokoblak.chatbackup.commonui import androidx.compose.foundation.background import androidx.compose.foundation.layout.* import androidx.compose.material.Checkbox import androidx.compose.material.CheckboxDefaults import androidx.compose.material.MaterialTheme import androidx.compose.material.Text import andr...
ExampleApp/app/src/main/java/com/example/exampleapp/ui/fragments/main/MainFragment.kt
unknown_repo
kotlin
package com.example.exampleapp.ui.fragments.main import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.viewModels import com.example.exampleapp.databinding.MainFragmentBinding import com.example.exampleapp.ui.common.BaseFragment ...
app/src/main/java/com/joshhn/workoutapp/ExerciseStatusAdapter.kt
unknown_repo
kotlin
package com.example.a7minutesworkout import android.graphics.Color import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.core.content.ContextCompat import androidx.recyclerview.widget.RecyclerView import com.example.a7minutesworkout.databinding.ItemExerciseStatusBind...
shared-ui/src/commonMain/kotlin/com/foreverrafs/superdiary/ui/feature/creatediary/screen/CreateDiaryScreen.kt
unknown_repo
kotlin
package com.foreverrafs.superdiary.ui.feature.creatediary.screen import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.remember import androidx.compose.runtime.rememberCoroutineScope import androidx.compose.run...
shared-ui/src/commonMain/kotlin/com/foreverrafs/superdiary/ui/feature/creatediary/screen/CreateDiaryScreen.kt
unknown_repo
kotlin
package com.foreverrafs.superdiary.ui.feature.creatediary.screen import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.remember import androidx.compose.runtime.rememberCoroutineScope import androidx.compose.run...
app/src/main/java/dgca/verifier/app/android/verification/VerificationDialogFragment.kt
unknown_repo
kotlin
/* * ---license-start * eu-digital-green-certificates / dgca-verifier-app-android * --- * Copyright (C) 2021 T-Systems International GmbH and all other contributors * --- * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. *...
app/src/main/java/io/cricket/app/ui/modules/history/live_match/LiveMatchItemVM.kt
unknown_repo
kotlin
package io.cricket.app.ui.modules.history.live_match import android.os.Bundle import android.view.View import androidx.lifecycle.MutableLiveData import io.cricket.app.R import io.cricket.app.base.BaseListDataViewModel import io.cricket.app.model.Match import io.cricket.app.model.MatchToUpload import io.cricket.app.ui....
app/src/main/java/com/superwall/superapp/MainActivity.kt
unknown_repo
kotlin
package com.superwall.superapp import android.content.Intent import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.widget.Button import com.superwall.sdk.Superwall import com.superwall.superapp.test.UITestActivity class MainActivity : AppCompatActivity() { override fun onCreate(s...
shared_resources/src/main/java/com/thewizrd/shared_resources/lifecycle/LifecycleAwareFragment.kt
unknown_repo
kotlin
package com.thewizrd.shared_resources.lifecycle import androidx.fragment.app.Fragment import androidx.lifecycle.Lifecycle import androidx.lifecycle.lifecycleScope import kotlinx.coroutines.* import kotlin.coroutines.CoroutineContext import kotlin.coroutines.EmptyCoroutineContext abstract class LifecycleAwareFragment ...
androidTestClient/src/main/java/com/trevjonez/kontrast/LayoutHelper.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 ...
shared/src/commonMain/kotlin/utils/Extensions.kt
unknown_repo
kotlin
package utils import androidx.compose.ui.unit.dp import core.ComposeScreenConfiguration object ResponsiveHelper { val isTablet: Boolean get() = isTablet val isDesktop: Boolean get() = isDesktop val isMobile: Boolean get() = isMobile } fun ComposeScreenConfiguration.isTablet()...
app/src/main/java/com/github/zawadz88/exoplayeraudiosample/presentation/main/viewmodel/MainViewModel.kt
unknown_repo
kotlin
package com.github.zawadz88.exoplayeraudiosample.presentation.main.viewmodel import androidx.lifecycle.ViewModel import com.github.zawadz88.exoplayeraudiosample.domain.interactor.LoadPlaylist import com.github.zawadz88.exoplayeraudiosample.internal.rx.EmptySingleObserver import timber.log.Timber import javax.inject.In...
app/src/main/java/com/example/fitme/core/ui/BaseActivity.kt
unknown_repo
kotlin
package com.example.fitme.core.ui import android.os.Bundle import android.view.LayoutInflater import android.widget.ProgressBar import androidx.appcompat.app.AppCompatActivity import androidx.viewbinding.ViewBinding import com.example.fitme.R import com.example.fitme.core.extentions.visible abstract class BaseActivit...
app/src/main/java/com/sirekanian/warmongr/data/local/TagEntity.kt
unknown_repo
kotlin
package com.sirekanian.warmongr.data.local import androidx.room.Entity import androidx.room.PrimaryKey @Entity class TagEntity( @PrimaryKey val id: Int, val name: String, val ruName: String, )
bandyer-android-design/src/main/java/com/bandyer/sdk_design/bottom_sheet/BandyerActionBottomSheet.kt
unknown_repo
kotlin
/* * Copyright 2021-2022 Bandyer @ https://www.bandyer.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless req...
app/src/main/java/com/awalideck/moovies/popularmovies/CategoryMovieFragment.kt
unknown_repo
kotlin
package com.awalideck.moovies.popularmovies import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.Fragment import androidx.lifecycle.ViewModelProvider import androidx.navigation.fragment.findNavController import com.awalideck.moo...
app/src/main/java/com/rmoralf/marveltest/presentation/search/components/SearchRow.kt
unknown_repo
kotlin
package com.rmoralf.marveltest.presentation.search.components import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.material.* import androidx.compose.material.icons.Icons import androidx.compose.material.icons.filled.Search import androidx.compose...
src/main/java/com/nativedevps/google/delegate/AuthContractor.kt
unknown_repo
kotlin
package com.nativedevps.google.delegate import androidx.fragment.app.FragmentActivity interface AuthContractor { fun retrieveActivity(): FragmentActivity }
sdk/src/main/java/com/mapbox/maps/renderer/RenderHandlerThread.kt
unknown_repo
kotlin
package com.mapbox.maps.renderer import android.os.Handler import android.os.HandlerThread import android.os.Message import android.os.Process.THREAD_PRIORITY_DISPLAY import androidx.annotation.RestrictTo import androidx.annotation.VisibleForTesting import com.mapbox.maps.logW @RestrictTo(RestrictTo.Scope.LIBRARY) in...
composesensors/src/main/java/com/mutualmobile/composesensors/StationaryDetectSensorState.kt
unknown_repo
kotlin
package com.mutualmobile.composesensors import android.hardware.Sensor import android.os.Build import androidx.annotation.RequiresApi import androidx.compose.runtime.Composable import androidx.compose.runtime.Immutable import androidx.compose.runtime.LaunchedEffect import androidx.compose.runtime.mutableStateOf import...
android/app/src/main/kotlin/io/quang/datingsample/MainActivity.kt
unknown_repo
kotlin
package io.quang.datingsample import android.os.Bundle import android.view.ViewGroup import android.widget.* import io.flutter.app.FlutterActivity import io.flutter.plugins.GeneratedPluginRegistrant import com.mapbox.mapboxsdk.* import com.mapbox.mapboxsdk.maps.* import com.mapbox.mapboxsdk.camera.* import com.mapbo...
app/src/main/java/pl/sienczykm/templbn/utils/ExternalDisplaysHandler.kt
unknown_repo
kotlin
package pl.sienczykm.templbn.utils import android.app.Notification import android.app.NotificationChannel import android.app.NotificationManager import android.appwidget.AppWidgetManager import android.content.ComponentName import android.content.Context import android.content.Intent import android.graphics.drawable.I...
app/src/main/java/com/example/alexmelnikov/coinspace/ui/statistics/StatisticsPresenter.kt
unknown_repo
kotlin
package com.example.alexmelnikov.coinspace.ui.statistics import android.util.Log import com.example.alexmelnikov.coinspace.BaseApp import com.example.alexmelnikov.coinspace.model.entities.Account import com.example.alexmelnikov.coinspace.model.entities.OperationType import com.example.alexmelnikov.coinspace.model.getC...
SocialDistance/src/main/java/tw/gov/cdc/exposurenotifications/common/PreferenceManager.kt
unknown_repo
kotlin
package tw.gov.cdc.exposurenotifications.common import android.content.Context import androidx.core.content.edit import tw.gov.cdc.exposurenotifications.BaseApplication import java.util.* object PreferenceManager { private const val PREF_NAME = "PREF_NAME_TW_CDC_EN" private const val PREF_KEY_FIRST_LAUNCH_T...
android-example/src/main/kotlin/org/rewedigital/katana/android/example/main/view/MainActivity.kt
unknown_repo
kotlin
package org.rewedigital.katana.android.example.main.view import android.os.Bundle import android.view.View import android.view.ViewGroup import android.widget.Button import android.widget.ProgressBar import android.widget.TextView import android.widget.Toast import androidx.appcompat.app.AlertDialog import androidx.ap...
app/src/main/java/com/gmail/eamosse/imdb/ui/listMovies/ListMoviesFragment.kt
unknown_repo
kotlin
package com.gmail.eamosse.imdb.ui.listMovies import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.fragment.app.Fragment import androidx.lifecycle.Observer import androidx.navigation.fragment.findNavController import com.gmail.eamosse.imdb.da...
app/src/main/java/com/kasuminotes/ui/components/SearchBar.kt
unknown_repo
kotlin
package com.kasuminotes.ui.components import androidx.compose.foundation.background import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.WindowInsets import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation....
src/main/kotlin/com/empowerops/getoptk/Converters.kt
unknown_repo
kotlin
package com.empowerops.getoptk import java.lang.reflect.Method import java.lang.reflect.Modifier import kotlin.reflect.KClass import kotlin.reflect.full.companionObject import kotlin.reflect.full.companionObjectInstance import java.lang.Enum as JavaEnum //looks up strategies to convert strings to T's, eg "Double.pars...
app/src/main/java/com/bunkalogic/bunkalist/Utils/InputFilterMinMax.kt
unknown_repo
kotlin
package com.bunkalogic.bunkalist.Utils import android.text.Spanned import android.text.InputFilter class InputFilterMinMax(private val min: Double, private val max: Double) : InputFilter { override fun filter( source: CharSequence, start: Int, end: Int, dest: Spanned, dst...
app/src/main/java/com/kylecorry/trail_sense/tools/light/ui/ToolLightFragment.kt
unknown_repo
kotlin
package com.kylecorry.trail_sense.tools.light.ui import android.os.Bundle import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import com.kylecorry.andromeda.fragments.BoundFragment import com.kylecorry.andromeda.fragments.observe import com.kylecorry.sol.science.optics.Optics impo...
app/src/main/java/dk/itu/moapd/copenhagenbuzz/fcag/fragments/MapsFragment.kt
unknown_repo
kotlin
package dk.itu.moapd.copenhagenbuzz.fcag.fragments import android.os.Bundle import androidx.fragment.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import dk.itu.moapd.copenhagenbuzz.fcag.databinding.FragmentMapsBinding class MapsFragment : Fragment() { p...
magic/core/src/main/java/link/magic/android/core/relayer/urlBuilder/BaseOptions.kt
unknown_repo
kotlin
package link.magic.android.core.relayer.urlBuilder import androidx.annotation.Keep import com.google.gson.annotations.Expose import com.google.gson.annotations.SerializedName import java.io.Serializable @Keep open class BaseOptions( @SerializedName("API_KEY") @Expose val apiKey: String, val host: String, ...
core/database/src/main/java/com/whakaara/database/alarm/AlarmDatabase.kt
unknown_repo
kotlin
package com.whakaara.database.alarm import androidx.room.Database import androidx.room.RoomDatabase import androidx.room.TypeConverters import com.whakaara.database.alarm.converters.AlarmConverter import com.whakaara.database.alarm.entity.AlarmEntity @Database(entities = [AlarmEntity::class], version = 1, exportSchem...
app/src/main/java/com/dirtydish/app/dirtydish/SuppliesRecyclerAdapter.kt
unknown_repo
kotlin
package com.dirtydish.app.dirtydish import android.content.Context import android.support.v7.widget.RecyclerView import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.TextView import com.dirtydish.app.dirtydish.data.Supply import com.dirtydish.app.dirtydish.sin...
paymentsheet/src/test/java/com/stripe/android/paymentsheet/TestViewModelFactory.kt
unknown_repo
kotlin
package com.stripe.android.paymentsheet import androidx.lifecycle.SavedStateHandle import com.stripe.android.link.LinkConfigurationCoordinator import com.stripe.android.paymentsheet.viewmodels.BaseSheetViewModel import com.stripe.android.utils.FakeLinkConfigurationCoordinator import org.mockito.kotlin.mock internal o...
app/src/main/java/com/deathhit/myleetcodesolutions/question_model/QuestionModel.kt
unknown_repo
kotlin
package com.deathhit.myleetcodesolutions.question_model import android.content.Context import android.text.Spanned import com.deathhit.myleetcodesolutions.model.AnswerVO abstract class QuestionModel(val context: Context) { abstract val code: Spanned abstract val description: String abstract fun run(): An...
composeApp/src/commonMain/kotlin/org/sam/app/pesentation/home/HomeScreen.kt
unknown_repo
kotlin
package org.sam.app.pesentation.home import androidx.compose.foundation.background import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.padding import androidx.compose.foundation.re...
app/src/main/java/com/roadster/roam/basesetup/utils/SpannableUtils.kt
unknown_repo
kotlin
package com.roadster.roam.basesetup.utils import android.content.Context import android.graphics.Paint import android.graphics.Typeface import android.text.Spannable import android.text.SpannableString import android.text.Spanned import android.text.TextPaint import android.text.style.ClickableSpan import android.text...
app/src/main/java/uz/pdp/dagger2nuntium/adapters/HomeRvAdapter.kt
unknown_repo
kotlin
package uz.pdp.dagger2nuntium.adapters import android.view.LayoutInflater import android.view.OnReceiveContentListener import android.view.ViewGroup import androidx.recyclerview.widget.DiffUtil import androidx.recyclerview.widget.ListAdapter import androidx.recyclerview.widget.RecyclerView import com.squareup.picasso....
app/src/main/kotlin/me/xizzhu/android/joshua/core/repository/local/android/db/BookmarkDao.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/niceplaces/niceplaces/utils/StringUtils.kt
unknown_repo
kotlin
package com.niceplaces.niceplaces.utils import android.util.Log import androidx.core.text.HtmlCompat import java.text.SimpleDateFormat import java.util.* object StringUtils { fun listToString(list: List<Int?>): String { var string = "" for (i in list.indices) { string = string + Intege...
app/src/main/java/com/kickstarter/viewmodels/RewardsFragmentViewModel.kt
unknown_repo
kotlin
package com.kickstarter.viewmodels import android.util.Pair import androidx.annotation.NonNull import com.kickstarter.libs.Environment import com.kickstarter.libs.FragmentViewModel import com.kickstarter.libs.rx.transformers.Transformers.takeWhen import com.kickstarter.libs.utils.ObjectUtils import com.kickstarter.lib...
rabbit-ui/src/main/java/com/susion/rabbit/ui/page/RabbitMemoryPageAnalyzerPage.kt
unknown_repo
kotlin
package com.susion.rabbit.ui.page import android.content.Context import androidx.recyclerview.widget.LinearLayoutManager import com.susion.lifeclean.common.recyclerview.SimpleRvAdapter import com.susion.rabbit.base.entities.RabbitMemoryInfo import com.susion.rabbit.base.greendao.RabbitMemoryInfoDao import com.susion.r...
composeApp/src/commonMain/kotlin/images/DrinkImage.kt
unknown_repo
kotlin
package fi.tuska.beerclock.images import androidx.compose.foundation.Image import androidx.compose.foundation.layout.size import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.runtime.Composable import androidx.compose.ui.Modifier import androidx.compose.ui.draw.clip import androidx.compo...
trustagent/src/com/google/android/libraries/car/trustagent/blemessagestream/GattHandle.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 ...
data_wallet/src/main/java/io/igrant/data_wallet/adapter/ReceiptItemListAdapter.kt
unknown_repo
kotlin
package io.igrant.data_wallet.adapter import android.graphics.Typeface import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.TextView import androidx.core.content.ContextCompat import androidx.recyclerview.widget.RecyclerView import io.igrant.data_wallet.R cla...
sample/src/main/java/com/parsuomash/affogato/app/screens/ScreenPdf.kt
unknown_repo
kotlin
package com.parsuomash.affogato.app.screens import android.net.Uri import androidx.activity.compose.rememberLauncherForActivityResult import androidx.activity.result.contract.ActivityResultContracts import androidx.compose.animation.AnimatedVisibility import androidx.compose.animation.fadeIn import androidx.compose.an...
user_impl/src/main/java/com/felix/android/user/destination/SetUserInfoDestinationImpl.kt
unknown_repo
kotlin
package com.felix.android.user.destination import android.content.Intent import android.os.Parcelable import com.felix.android.navigation.Navigable import com.felix.android.navigation.demo.user.SetUserInfoDestination import com.felix.android.navigation.destination.Screen import com.felix.android.user.ui.SetUserInfoAct...
app/src/main/java/com/nilsinojiya/cowin20/viewModels/MyViewModelFactory.kt
unknown_repo
kotlin
package com.nilsinojiya.cowin20.viewModels import androidx.lifecycle.ViewModel import androidx.lifecycle.ViewModelProvider import com.nilsinojiya.cowin20.repositorys.MainRepository class MyViewModelFactory(private val repository: MainRepository): ViewModelProvider.Factory { override fun <T : ViewModel> create(mo...