file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
Application/app/src/main/java/com/thephoenix/rockpaperscissors/presentation/screen/game/online_multiplayer/OnlineMultiplayerGameViewModel.kt | unknown_repo | kotlin | package com.thephoenix.rockpaperscissors.presentation.screen.game.online_multiplayer
import android.content.Context
import android.util.Log
import androidx.lifecycle.ViewModel
import com.thephoenix.rockpaperscissors.R
import com.thephoenix.rockpaperscissors.data.SelectionType
import com.thephoenix.rockpaperscissors.pr... |
app/src/main/java/com/developersbreach/composeactors/ui/movieDetail/MovieDetailViewModel.kt | unknown_repo | kotlin | package com.developersbreach.composeactors.ui.movieDetail
import android.app.Application
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.ViewModel
import androidx.lifecy... |
app/src/main/kotlin/com/ybj366533/yycamera/base/utils/NetworkUtils.kt | unknown_repo | kotlin | package com.ybj366533.yycamera.base.utils
import android.content.Context
import android.net.ConnectivityManager
import android.telephony.TelephonyManager
/**
* 网络工具类
* Created by summer on 2017/11/27.
*/
// 是否有网络连接
val Context.isNetWorkConnected
get() = run {
connectivityManager.activeNetworkInfo?.run... |
src/main/kotlin/ui/composable/elements/window/NavWindow.kt | unknown_repo | kotlin | package ui.composable.elements.window
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Scaffold
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
impor... |
app/src/main/java/com/ave/vastgui/app/activity/IntentActivity.kt | unknown_repo | kotlin | /*
* Copyright 2022 VastGui <EMAIL>
*
* 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/gmail/eamosse/imdb/parcelable/VideoParcelable.kt | unknown_repo | kotlin | package com.gmail.eamosse.imdb.parcelable
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
data class VideoParcelable(val key: String): Parcelable {
} |
feature/movie/src/main/java/com/irfanirawansukirman/movie/presentation/movies/MoviesVM.kt | unknown_repo | kotlin | package com.irfanirawansukirman.movie.presentation.movies
import android.app.Application
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.irfanirawansukirman.core.base.BaseVM
import com.irfanirawansukirman.core.ui.UIState
import com.irfanirawansukirman.core.util.coroutine.Corouti... |
app/src/main/java/com/lai/whiteboard/widget/WhiteboardTextureView.kt | unknown_repo | kotlin | package com.lai.whiteboard.widget
import android.content.Context
import android.graphics.*
import android.util.AttributeSet
import android.util.Log
import android.view.MotionEvent
import android.view.Surface
import android.view.TextureView
import com.lai.whiteboard.ShaderNative
import com.lai.whiteboard.pen.IPen
impor... |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/linear/Boxadd.kt | unknown_repo | kotlin | package moe.tlaster.icons.vuesax.vuesaxicons.linear
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.... |
camera/camera-camera2-pipe-integration/src/main/java/androidx/camera/camera2/pipe/integration/compat/quirk/StillCaptureFlashStopRepeatingQuirk.kt | unknown_repo | kotlin | /*
* Copyright 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
app/src/main/java/com/beko/cryptocurrencytrackerapp/ui/detailpage/DetailRepository.kt | unknown_repo | kotlin | package com.beko.cryptocurrencytrackerapp.ui.detailpage
import android.util.Log
import com.beko.cryptocurrencytrackerapp.api.RetrofitClient
import com.beko.cryptocurrencytrackerapp.data.model.CoinDetailModel
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.firestore.FirebaseFirestore
import retr... |
core/datastore/src/main/kotlin/com/seosh817/moviehub/core/datastore/di/DataStoreModule.kt | unknown_repo | kotlin | /*
* Copyright 2022 Medical Assistant
*
* 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 agr... |
app/src/main/java/com/hoc/comicapp/domain/repository/UserRepository.kt | unknown_repo | kotlin | package com.hoc.comicapp.domain.repository
import android.net.Uri
import com.hoc.comicapp.domain.models.ComicAppError
import com.hoc.comicapp.utils.Either
interface UserRepository {
suspend fun login(email: String, password: String): Either<ComicAppError, Unit>
suspend fun register(
email: String,
passwo... |
app/src/main/java/com/uttarakhand/kisanseva2/network/RetrofitClientInstance.kt | unknown_repo | kotlin | package com.uttarakhand.kisanseva2.network
import android.content.Context
import android.preference.PreferenceManager
import android.util.Log
import com.franmontiel.persistentcookiejar.ClearableCookieJar
import com.franmontiel.persistentcookiejar.PersistentCookieJar
import com.franmontiel.persistentcookiejar.cache.Set... |
app/src/main/java/bujjwole/tinnews/ui/home/HomeViewModel.kt | unknown_repo | kotlin | package bujjwole.tinnews.ui.home
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Transformations
import androidx.lifecycle.ViewModel
import bujjwole.tinnews.model.Article
import bujjwole.tinnews.repository.NewsRepository
class HomeViewModel(val newsRepository: NewsRepository): ViewModel() {
p... |
waypoints/src/main/kotlin/de/md5lukas/waypoints/gui/pages/ListingPage.kt | unknown_repo | kotlin | package de.md5lukas.waypoints.gui.pages
import com.okkero.skedule.SynchronizationContext
import com.okkero.skedule.withSynchronizationContext
import de.md5lukas.commons.collections.PaginationList
import de.md5lukas.kinvs.items.GUIContent
import de.md5lukas.waypoints.gui.WaypointsGUI
import kotlinx.coroutines.async
imp... |
app/src/main/java/com/example/bookloverfinalapp/app/ui/general_screens/screen_user_info/screen_user_progress/FragmentUserProgressViewModel.kt | unknown_repo | kotlin | package com.example.bookloverfinalapp.app.ui.general_screens.screen_user_info.screen_user_progress
import com.example.bookloverfinalapp.app.base.BaseViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject
@HiltViewModel
class FragmentUserProgressViewModel @Inject constructor() : BaseVi... |
example/src/main/java/com/mixpush/example/UserActivity.kt | unknown_repo | kotlin | package com.mixpush.example
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_user.*
class UserActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentVi... |
android/app/src/main/java/com/github/halspals/smarthomeadapters/smarthomeadapters/RegisterRobotActivity.kt | unknown_repo | kotlin | package com.github.halspals.smarthomeadapters.smarthomeadapters
import android.content.Context
import android.content.Intent
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.os.Handler
import android.support.v4.app.Fragment
import android.support.v4.app.FragmentManager
import and... |
android/app/src/main/java/com/mdn/coffeeandhappiness/fragments/MenuFragment.kt | unknown_repo | kotlin | package com.mdn.coffeeandhappiness.fragments
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.viewpager2.widget.ViewPager2
import com.google.android.material.tabs.TabLayout
import com.mdn.coffeeandha... |
app/src/main/java/com/xpense/android/receiver/SmsReceiver.kt | unknown_repo | kotlin | package com.experiments.android.receiver
import android.app.NotificationManager
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.telephony.SmsMessage
import com.experiments.android.R
import com.experiments.android.util.sendNot... |
app/src/androidTest/java/com/kevalpatel2106/yip/splash/LaunchTest.kt | unknown_repo | kotlin | package com.kevalpatel2106.yip.splash
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMatchers.isDisplayed
import androidx.test.espresso.matcher.ViewMatchers.withId
import androidx.test.ext.junit.runners.AndroidJUnit... |
Project/app/src/main/java/com/example/androidproject/DrawFragment.kt | unknown_repo | kotlin | package com.example.androidproject
import android.app.AlertDialog
import android.content.Context
import android.graphics.Bitmap
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.hardware.Sensor
import android.hardware.SensorEvent
import android.hardware.SensorEventListener
imp... |
app/src/main/java/com/basar/moviehunter/base/BaseViewModel.kt | unknown_repo | kotlin | package com.basar.moviehunter.base
import androidx.annotation.IdRes
import androidx.lifecycle.LifecycleObserver
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.navigation.ActivityNavigator
import androidx.navigation.NavDirections
import androidx.navigation.NavOptions
impor... |
app/src/main/java/com/health/zyephr/sample/MainActivity.kt | unknown_repo | kotlin | package com.health.zyephr.sample
import android.os.Bundle
import android.util.Log
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import an... |
app/src/main/java/com/health/zyephr/sample/MainActivity.kt | unknown_repo | kotlin | package com.health.zyephr.sample
import android.os.Bundle
import android.util.Log
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import an... |
app/src/main/java/com/ahmetsarac/tingirdak/composables/PlayingMusic.kt | unknown_repo | kotlin | package com.ahmetsarac.tingirdak.composables
import android.content.Context
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.media.MediaMetadataRetriever
import android.media.MediaPlayer.SEEK_CLOSEST
import android.net.Uri
import android.os.Build
import androidx.compose.foundation.Im... |
demo/wizard/src/main/kotlin/de/onecode/compass/demo/wizard/WizardScreen1.kt | unknown_repo | kotlin | package de.onecode.compass.demo.wizard
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.material3.Button
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
@Composable
fun WizardScreen1(wizardInput: String, on... |
app/src/main/java/com/hypertrack/android/ui/screens/add_place_info/Effect.kt | unknown_repo | kotlin | package com.hypertrack.android.ui.screens.add_place_info
import com.google.android.gms.maps.model.LatLng
import com.hypertrack.android.interactors.app.AppAction
import com.hypertrack.android.ui.common.map.HypertrackMapWrapper
import com.hypertrack.android.ui.common.map_state.MapUiEffect
import com.hypertrack.android.u... |
core/src/main/java/com/glucose/app/presenter/StateData.kt | unknown_repo | kotlin | package com.glucose.app.presenter
import android.os.Bundle
import android.os.Parcel
import android.os.Parcelable
import android.support.annotation.IdRes
import android.util.SparseArray
import android.view.View
import com.glucose.app.Presenter
internal class ChildState(
val clazz: Class<out Presenter>,
... |
core/src/main/java/com/dtb/core/rx/bindview/RadioGroupCheckedChangeObservable.kt | unknown_repo | kotlin | package com.dtb.core.rx.bindview
import android.widget.RadioGroup
import androidx.annotation.CheckResult
import io.reactivex.Observer
import io.reactivex.android.MainThreadDisposable
/**
* @author: dtb
* @email: wendaoyuqin1@gmail.com
* @createTime: 19-3-12上午10:28
*/
@CheckResult
fun RadioGroup.checkedChanges(... |
vector/src/main/java/im/vector/riotx/features/crypto/keys/KeysExporter.kt | unknown_repo | kotlin | /*
* Copyright 2019 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
android/src/main/java/com/ycbjie/android/view/activity/AndroidCollectActivity.kt | unknown_repo | kotlin | package com.ycbjie.android.view.activity
import android.content.Intent
import com.ycbjie.android.R
import com.ycbjie.android.presenter.AndroidCollectPresenter
import com.ycbjie.library.base.mvp.BaseActivity
class AndroidCollectActivity : BaseActivity<AndroidCollectPresenter>() {
companion object {
fun lu... |
app/src/main/java/top/xuqingquan/utils/demo/MainActivity.kt | unknown_repo | kotlin | package top.xuqingquan.utils.demo
import android.Manifest
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.provider.MediaStore
import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
import androidx.appcompat.app.AppCompatActivity
import com.bumpte... |
app/src/main/java/com/mapbox/maps/testapp/EmptyActivity.kt | unknown_repo | kotlin | package com.mapbox.maps.testapp
import androidx.appcompat.app.AppCompatActivity
class EmptyActivity : AppCompatActivity() |
app/src/main/kotlin/com/vanniktech/emoji/sample/MainActivity.kt | unknown_repo | kotlin | /*
* Copyright (C) 2016 - <NAME>, <NAME>, <NAME> and contributors
*
* 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 requir... |
myimagecrop/src/main/java/com/isaacsufyan/myimagecrop/ImageViewTouchBase.kt | unknown_repo | kotlin | package com.isaacsufyan.myimagecrop
import android.content.Context
import androidx.appcompat.widget.AppCompatImageView
import com.isaacsufyan.myimagecrop.RotateBitmap
import android.graphics.Bitmap
import android.graphics.Matrix
import android.graphics.drawable.Drawable
import android.graphics.RectF
import android.os.... |
app/src/main/java/com/pratthamarora/todoapp/utils/BindingAdapters.kt | unknown_repo | kotlin | package com.pratthamarora.todoapp.utils
import android.view.View
import android.widget.Spinner
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.core.content.ContextCompat
import androidx.core.view.isGone
import androidx.core.view.isVisible
import androidx.databinding.BindingAdapter
import andro... |
startup/src/debug/kotlin/com/schinizer/hackernews/startup/Flipper.kt | unknown_repo | kotlin | package com.schinizer.hackernews.startup
import android.content.Context
import androidx.startup.Initializer
import com.facebook.flipper.android.AndroidFlipperClient
import com.facebook.flipper.android.utils.FlipperUtils
import com.facebook.flipper.core.FlipperClient
import com.facebook.flipper.plugins.databases.Databa... |
app/src/main/kotlin/edu/stanford/bdh/engagehf/health/weight/bottomsheet/AddWeightBottomSheetViewModel.kt | unknown_repo | kotlin | package edu.stanford.bdh.engagehf.health.weight.bottomsheet
import androidx.lifecycle.ViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
import edu.stanford.bdh.engagehf.bluetooth.component.BottomSheetEvents
import edu.stanford.spezi.core.logging.speziLogger
import kotlinx.coroutines.flow.MutableStateFlow
im... |
AnylineExamples/app/src/main/java/com/anyline/examples/scanViewConfig/ScanViewConfigFolder.kt | unknown_repo | kotlin | package com.anyline.examples.scanViewConfig
import android.content.Context
import java.io.File
import java.io.IOException
data class ScanViewConfigFolder(val assetFolderName: String,
val friendlyName: String,
val parent: ScanViewConfigFolder?) {
pri... |
backpack/src/main/kotlin/com/cyb3rko/backpack/interfaces/BackpackMain.kt | unknown_repo | kotlin | /*
* Copyright (c) 2023 Cyb3rKo
*
* 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... |
ui/src/main/java/com/wireguard/android/fragment/TunnelDetailFragment.kt | unknown_repo | kotlin | /*
* Copyright © 2017-2021 WireGuard LLC. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package com.wireguard.android.fragment
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.Menu
import android.view.MenuInflater
import android.view.View
import... |
app/src/main/java/com/munene/haliyahewa/util/UIExtensions.kt | unknown_repo | kotlin | package com.munene.haliyahewa.util
import android.annotation.SuppressLint
import android.text.format.DateUtils
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.core.content.ContextCompat
import androidx.databinding.BindingAdapter
import androidx.recyclerview.... |
app/src/main/java/si/povhe/povhehome/MainActivity.kt | unknown_repo | kotlin | package si.povhe.povhehome
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.content.Context
import android.os.Build
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.core.app.NotificationManagerCompat
imp... |
kotlin-coroutines/src/main/java/com/mcmouse88/kotlin_coroutines/main/MainViewModel.kt | unknown_repo | kotlin | package com.mcmouse88.kotlin_coroutines.main
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.mcmouse88.kotlin_coroutines.utils.singleArgViewModelFactory
import kotlinx.coroutines.Job
import kotlinx.coro... |
app/src/main/kotlin/net/primal/android/discuss/feed/FeedContract.kt | unknown_repo | kotlin | package net.primal.android.discuss.feed
import androidx.paging.PagingData
import kotlinx.coroutines.flow.Flow
import net.primal.android.core.compose.feed.model.FeedPostUi
import net.primal.android.core.compose.feed.model.FeedPostsSyncStats
interface FeedContract {
data class UiState(
val feedPostsCount: I... |
systemtest-utils/src/main/java/com.bitmovin.analytics.systemtest.utils/MockedIngress.kt | unknown_repo | kotlin | package com.bitmovin.analytics.systemtest.utils
import android.util.Log
import com.bitmovin.analytics.data.AdEventData
import com.bitmovin.analytics.data.EventData
import com.bitmovin.analytics.features.errordetails.ErrorDetail
import com.bitmovin.analytics.utils.DataSerializer
import okhttp3.mockwebserver.Dispatcher
... |
Android/Simplebudget/app/src/main/java/com/simplebudget/helper/analytics/FirebaseAnalyticsHelper.kt | unknown_repo | kotlin | package com.simplebudget.helper.analytics
import android.os.Bundle
import com.google.firebase.analytics.FirebaseAnalytics
import com.simplebudget.helper.ENABLE_ANALYTICS
object FirebaseAnalyticsHelper {
private lateinit var firebaseAnalytics: FirebaseAnalytics
fun initialize(firebaseAnalytics: FirebaseAnaly... |
wear/wear-watchface-client/src/main/java/androidx/wear/watchface/client/DeviceConfig.kt | unknown_repo | kotlin | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/StoreBuyer.kt | unknown_repo | kotlin | package me.localx.icons.rounded.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.Miter... |
app/src/main/java/com/f2h/f2h_admin/screens/group/confirm_reject/ConfirmRejectViewModel.kt | unknown_repo | kotlin | package com.f2h.f2h_admin.screens.group.confirm_reject
import android.app.Application
import android.util.Log
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.f2h.f2h_admin.constants.F2HConstants.ORDER_STATUS_CONFIRMED
import com.f2h.f2h... |
app/src/main/java/com/zigis/paleontologas/application/android/BaseView.kt | unknown_repo | kotlin | package com.zigis.paleontologas.application.android
import android.content.Context
import android.widget.RelativeLayout
import com.zigis.paleontologas.R
import com.zigis.paleontologas.application.extensions.setDebounceClickListener
import kotlinx.android.synthetic.main.toolbar.view.*
import kotlinx.android.synthetic.m... |
app/src/main/java/com/sjn/stamp/utils/PlayModeHelper.kt | unknown_repo | kotlin | package com.sjn.stamp.utils
import android.app.Activity
import android.support.v4.media.MediaBrowserServiceCompat
import android.support.v4.media.session.MediaControllerCompat
import android.support.v4.media.session.PlaybackStateCompat
object PlayModeHelper {
fun restore(service: MediaBrowserServiceCompat) {
... |
azure-communication-ui/chat/src/main/java/com/azure/android/communication/ui/chat/ChatContainer.kt | unknown_repo | kotlin | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.android.communication.ui.chat
import android.content.Context
import com.azure.android.communication.ui.chat.configuration.ChatCompositeConfiguration
import com.azure.android.communication.ui.chat.configur... |
app/src/androidTest/java/dog/snow/androidrecruittest/tests/SplashScreenTest.kt | unknown_repo | kotlin | package dog.snow.androidrecruittest.tests
import androidx.test.espresso.Espresso
import androidx.test.espresso.assertion.ViewAssertions
import androidx.test.espresso.matcher.ViewMatchers
import androidx.test.espresso.matcher.ViewMatchers.withId
import androidx.test.ext.junit.rules.ActivityScenarioRule
import dagger.hi... |
app/src/main/kotlin/com/rcaetano/marvelheroes/feature/detail/DetailFragment.kt | unknown_repo | kotlin | package com.rcaetano.marvelheroes.feature.detail
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.View.GONE
import android.view.View.VISIBLE
import android.view.ViewGroup
import android.widget.LinearLayout
import android.widget.TextView
import androidx.fragment.a... |
app/src/main/java/invin/mvvm_invin/net/RequestClient.kt | unknown_repo | kotlin | package invin.mvvm_invin.net
import android.util.Log
import okhttp3.Interceptor
import okhttp3.OkHttpClient
import okhttp3.Response
import okhttp3.logging.HttpLoggingInterceptor
import java.util.concurrent.TimeUnit
class RequestClient(private val _headers: HashMap<String, String>? = null) {
companion object {
... |
app/src/main/java/com/someh/setting/SettingApplication.kt | unknown_repo | kotlin | package com.someh.setting
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
internal class SettingApplication : Application()
|
app/src/main/java/com/smartcity/petsservices/ui/fragment/EditProfileFragment.kt | unknown_repo | kotlin | package com.smartcity.petsservices.ui.fragment
import android.content.Context
import android.content.SharedPreferences
import android.os.AsyncTask
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.util.Patterns
import android.view.LayoutInflater
import android.view.Vi... |
project/app/src/test/java/com/nexte/nexte/RankingScene/RankingModelTest.kt | unknown_repo | kotlin | package com.nexte.nexte.RankingScene
import com.nexte.nexte.Entities.User.User
import org.junit.After
import org.junit.Before
import java.util.*
import org.junit.Assert.*
import org.junit.Test
class RankingModelTest {
@Before
fun setUp() {
}
@Test
fun successRequest(){
//prepare //call... |
app/src/main/java/com/fajaradisetyawan/movieku/feature/ui/detail/people/allPeople/tv/viewmodel/AllCastTvViewModel.kt | unknown_repo | kotlin | /*
* Created by <NAME> on 13/1/2023 - 10:17:45
* <EMAIL>
* Copyright (c) 2023.
*/
package com.fajaradisetyawan.movieku.feature.ui.detail.people.allPeople.tv.viewmodel
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.switchMap
import androidx.lifecycle.viewMod... |
commoncomposeui/src/commonMain/kotlin/dev/baseio/slackclone/onboarding/compose/CommonInputUI.kt | unknown_repo | kotlin | package dev.baseio.slackclone.onboarding.compose
import androidx.compose.foundation.gestures.detectTapGestures
import androidx.compose.foundation.layout.*
import androidx.compose.material.*
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowBack
import androidx.compose.runt... |
app/src/main/java/com/example/androiddevchallenge/Screens/DetailScreen.kt | unknown_repo | kotlin | package com.example.androiddevchallenge.Screens
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.height
import androidx.compose.material.*
import androidx.compose.material.icons... |
app/src/main/java/com/dolphin/traverse/MainActivity.kt | unknown_repo | kotlin | package com.dolphin.traverse
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.NavController
import androidx.navigation.fragment.NavHostFragment
import androidx.navigation.ui.setupActionBarWithNavController
import com.dolphin.traverse.databinding.ActivityMainBinding
im... |
stream-chat-android-compose-sample/src/main/java/io/getstream/chat/android/compose/sample/ui/channel/GroupChannelInfoActivity.kt | unknown_repo | kotlin | /*
* Copyright (c) 2014-2024 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-chat-android/blob/main/LICENSE
*
* Unless required by a... |
app/src/main/java/com/oceanknight/moneyinmyaccount/ui/MimaAppState.kt | unknown_repo | kotlin | package com.oceanknight.moneyinmyaccount.ui
import androidx.compose.material3.windowsizeclass.WindowSizeClass
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.navigation.NavController
import androidx.navigation.NavDestination
import androidx.navigation.NavHostControll... |
Android/ghvzApp/app/src/main/java/com/app/playhvz/firebase/viewmodels/MissionListViewModel.kt | unknown_repo | kotlin | /*
* Copyright 2020 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... |
app/src/main/kotlin/tech/hombre/bluetoothchatter/data/database/MessagesDao.kt | unknown_repo | kotlin | package tech.hombre.bluetoothchatter.data.database
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query
import tech.hombre.bluetoothchatter.data.entity.ChatMessage
import androidx.room.Update
import tech.hombre.bluetoothchatter.data.entity.MessageFile
@Dao
interf... |
app/src/main/java/com/hsjiang/composetest/data/source/ArticleRemoteDatasource.kt | unknown_repo | kotlin | package com.hsjiang.composetest.data.source
import android.content.Context
import com.hsjiang.composetest.api.WorkApi
import com.hsjiang.composetest.data.model.Article
import com.hsjiang.library.di.IoDispatcher
import com.hsjiang.library.result.Result
import dagger.hilt.android.qualifiers.ApplicationContext
import kot... |
butterfly-compose/src/main/java/zlc/season/butterfly/compose/launcher/ComposeBasicLauncher.kt | unknown_repo | kotlin | package zlc.season.butterfly.compose.launcher
import android.view.ViewGroup.LayoutParams
import android.view.ViewGroup.LayoutParams.MATCH_PARENT
import androidx.activity.ComponentActivity
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.ui.platform.ComposeView
import androidx.lifecycle.... |
app/src/main/java/com/fsh/android/wanandroidmvvm/module/search/model/dao/SearchHistoryDao.kt | unknown_repo | kotlin | package com.fsh.android.wanandroidmvvm.module.search.model.dao
import androidx.room.*
import com.fsh.android.wanandroidmvvm.module.search.model.bean.SearchHistory
/**
* Created with Android Studio.
* Description:
*/
@Dao
interface SearchHistoryDao {
@Transaction
@Query("SELECT * FROM searchhistory")
s... |
client/android/div/src/main/java/com/yandex/div/core/view2/divs/gallery/DivGalleryItemHelper.kt | unknown_repo | kotlin | package com.yandex.div.core.view2.divs.gallery
import android.view.View
import android.view.View.MeasureSpec
import android.view.ViewGroup
import androidx.core.view.children
import androidx.core.view.forEach
import androidx.core.view.marginStart
import androidx.recyclerview.widget.OrientationHelper
import androidx.rec... |
DoodleMaze/app/src/main/java/com/doomteam/doodlemaze/CreateMaze.kt | unknown_repo | kotlin | package com.doomteam.doodlemaze
import android.Manifest
import android.app.Activity
import android.content.Intent
import android.content.pm.PackageManager
import android.graphics.*
import android.media.ThumbnailUtils
import android.net.Uri
import android.os.Bundle
import android.provider.MediaStore
import android.util... |
1.9.0主要代码/pl.kt | unknown_repo | kotlin | package com.uuuuu.uwzz
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import com.uuuuu.uwzz.databinding.ActivityPlBinding
class pl : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
val binding = ActivityPlBinding.inflate(la... |
app/src/main/java/id/kotlin/reactive/mvi/presentation/feature/home/HomeAdapter.kt | unknown_repo | kotlin | package id.kotlin.reactive.mvi.presentation.feature.home
import android.support.v7.widget.RecyclerView.Adapter
import android.support.v7.widget.RecyclerView.ViewHolder
import android.view.View
import android.view.ViewGroup
import id.kotlin.reactive.mvi.R
import id.kotlin.reactive.mvi.data.repository.remote.Sport
impor... |
app/src/main/java/com/vitoraguiardf/bobinabanking/ui/adapters/TransactionAdapterRecycler.kt | unknown_repo | kotlin | package com.vitoraguiardf.bobinabanking.ui.adapters
import android.annotation.SuppressLint
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import com.vitoraguiardf.bobinabanking.R
import com.vitoraguiardf.bobinabanking.data.entity.CoilTransactionFull
import com.vitoragui... |
app/src/main/java/com/bikcode/rickandmortycompose/presentation/components/Search.kt | unknown_repo | kotlin | package com.bikcode.rickandmortycompose.presentation.components
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material.Icon
import androidx.compose.material.OutlinedTextField
import androidx.compose.material.Surface
import androidx.comp... |
sample/src/main/java/com/github/panpf/assemblyadapter/sample/item/pager/LoadStatePagerItemFactory.kt | unknown_repo | kotlin | /*
* Copyright (C) 2021 panpf <<EMAIL>>
*
* 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... |
spannabletext/src/main/java/com/ebmobile/spannabletext/data/SpannableTextData.kt | unknown_repo | kotlin | package com.ebmobile.spannabletext.data
import androidx.compose.ui.text.AnnotatedString
import androidx.compose.ui.text.TextStyle
data class SpannableTextData(
val text: String,
val tag: String? = null,
val annotation: String? = null,
val isHaveUnderLine: Boolean = false,
val spannableTextStyle: T... |
sdk_ads/src/main/java/com/sdk/ads/ads/AdsSDK.kt | unknown_repo | kotlin | package com.sdk.ads.ads
import android.app.Activity
import android.app.Application
import android.os.Bundle
import androidx.lifecycle.DefaultLifecycleObserver
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.ProcessLifecycleOwner
import com.google.android.gms.ads.AdActivity
import com.google.android.... |
databinding/src/main/java/org/mobiletoolkit/android/databinding/BindingViewHolder.kt | unknown_repo | kotlin | package org.mobiletoolkit.android.databinding
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
import androidx.lifecycle.LifecycleOwner
import androidx.recyclerview.widget.RecyclerView... |
safeToRunInputValidation/src/main/java/com/safetorun/intents/configurator/safeToRunUrlConfiguration.kt | unknown_repo | kotlin | package com.safetorun.intents.configurator
import android.annotation.SuppressLint
import android.content.Context
import com.safetorun.intents.exeptions.ConfigurationNotFoundException
import com.safetorun.intents.url.UrlConfigVerifier
import com.safetorun.intents.url.urlVerification
@SuppressLint("StaticFieldLeak")
pr... |
app/src/main/java/com/codertainment/wallow/model/GitHubResponse.kt | unknown_repo | kotlin | package com.codertainment.wallow.model
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.android.parcel.Parcelize
@Parcelize
data class GitHubResponse(var name: String,
var path: String,
var sha: String,
... |
core-navigation/sample/src/androidTest/java/ru/surfstudio/android/core/navigation/NavigationSampleTest.kt | unknown_repo | kotlin | package ru.surfstudio.android.core.navigation
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.ViewActions.click
import androidx.test.espresso.matcher.ViewMatchers.withId
import org.junit.Test
import ru.surfstudio.android.core.navigation.sample.R
import ru.surfstudio.android.core.navi... |
engine/src/test/java/com/google/android/fhir/sync/upload/ResourceConsolidatorFactoryTest.kt | unknown_repo | kotlin | /*
* Copyright 2024 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... |
features/video/src/main/java/com/jeppeman/jetpackplayground/video/data/entity/VideoCategoryEntity.kt | unknown_repo | kotlin | package com.jeppeman.jetpackplayground.video.data.entity
import androidx.annotation.Keep
import com.squareup.moshi.Json
@Keep
data class VideoCategoryEntity(
@Json(name = "name") val name: String,
@Json(name = "videos") val videos: List<VideoEntity>
) |
app/src/main/java/shetj/me/base/func/main/MainViewModel.kt | unknown_repo | kotlin |
package shetj.me.base.func.main
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.app.AppCompatDelegate
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.switchMap
import me.shetj.base.mvvm.viewbin... |
app/src/main/kotlin/com/deathsdoor/chillback/ui/components/mediaplayer/RepeatButton.kt | unknown_repo | kotlin | package com.deathsdoor.chillback.ui.components.mediaplayer
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.KeyboardArrowUp
import androidx.compose.material.icons.filled.PlayArrow
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import androi... |
app/src/main/java/com/dicoding/animalkuiz/InventoryFragment.kt | unknown_repo | kotlin | package com.dicoding.animalkuiz
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.viewpager2.widget.ViewPager2
import com.dicoding.animalkuiz.Adapters.ViewPagerAdapter
import com.google.android.materia... |
app/src/main/java/com/nullgr/androidcore/adapter/delegates/ExampleDelegate3.kt | unknown_repo | kotlin | package com.nullgr.androidcore.adapter.delegates
import android.support.v7.widget.RecyclerView
import com.nullgr.androidcore.R
import com.nullgr.androidcore.adapter.items.ExampleItem3
import com.nullgr.core.adapter.AdapterDelegate
import com.nullgr.core.adapter.items.ListItem
import com.squareup.picasso.Picasso
import... |
app/src/main/java/com/yazag/capstoneproject/ui/search/CategoryAdapter.kt | unknown_repo | kotlin | package com.yazag.capstoneproject.ui.search
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.yazag.capstoneproject.data.model.response.Category
import... |
app/src/main/java/com/brainyapps/simplyfree/activities/SignupProfileActivity.kt | unknown_repo | kotlin | package com.brainyapps.simplyfree.activities
import android.app.Activity
import android.content.Intent
import android.os.Bundle
import android.text.TextUtils
import android.util.Log
import android.view.View
import com.brainyapps.simplyfree.R
import com.brainyapps.simplyfree.helpers.PhotoActivityHelper
import com.brain... |
app/src/main/java/com/chunchiehliang/openseacollectibles/ui/assets/AssetAdapter.kt | unknown_repo | kotlin | package com.chunchiehliang.openseacollectibles.ui.assets
import android.view.ViewGroup
import androidx.paging.PagingDataAdapter
import androidx.recyclerview.widget.DiffUtil
import com.chunchiehliang.openseacollectibles.data.model.asset.Asset
class AssetAdapter(private val listener: AssetListener) :
PagingDataAdap... |
core/src/main/java/com/sgorinov/exilehelper/core/presentation/SlideUpDownAnimator.kt | unknown_repo | kotlin | package com.sgorinov.exilehelper.core.presentation
import android.animation.ValueAnimator
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
class SlideUpDownAnimator(private val view: View) {
private var preMeasuredHeight = 0
fun slideDown() {
vi... |
app/src/main/java/com/example/taskplanner/data/model/Day.kt | unknown_repo | kotlin | @file:Suppress("DEPRECATED_ANNOTATION")
package com.example.taskplanner.data.model
import android.os.Parcelable
import com.example.taskplanner.data.model.entity.TypeTask
import java.time.LocalDate
import kotlinx.android.parcel.Parcelize
@Parcelize
data class Day(var date: LocalDate, var list: MutableList<TypeTask> =... |
app/src/main/java/co/ello/android/ello/controllers/login/LoginProtocols.kt | unknown_repo | kotlin | package co.ello.android.ello
import android.view.View
import android.view.Window
class LoginProtocols {
interface Screen {
val contentView: View
var interactive: Boolean
fun showErrors(usernameMessage: String?, passwordMessage: String?)
fun showNetworkError(message: String)
}
... |
app/src/main/java/com/ssaapp/flixter_2/TvAdapter.kt | unknown_repo | kotlin | package com.ssaapp.flixter_2
import android.content.Context
import android.content.Intent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.G... |
bunny-notifier/src/main/java/com/skfo763/bunny_notifier/model/NotifierImportance.kt | unknown_repo | kotlin | package com.skfo763.bunny_notifier.model
import android.app.Notification
import android.app.NotificationManager
import android.os.Build
object NotifierImportance {
val IMPORTANCE_MIN =
if (Build.VERSION.SDK_INT >= 26) NotificationManager.IMPORTANCE_MIN
else if (Build.VERSION.SDK_INT >= 16) {
... |
presentation/src/main/kotlin/com/andremion/theatre/event/list/EventListFragment.kt | unknown_repo | kotlin | /*
* Copyright (c) 2018. André Mion
*
* 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.