file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
apps/etterlatte-brev-api/src/main/kotlin/no/nav/etterlatte/brev/behandling/SakOgBehandlingService.kt | unknown_repo | kotlin | package no.nav.etterlatte.brev.behandling
import kotlinx.coroutines.Deferred
import kotlinx.coroutines.async
import kotlinx.coroutines.coroutineScope
import no.nav.etterlatte.brev.behandlingklient.BehandlingKlient
import no.nav.etterlatte.brev.beregning.BeregningKlient
import no.nav.etterlatte.brev.grunnlag.GrunnlagKl... |
legacy/src/main/java/jp/hazuki/yuzubrowser/legacy/reader/Decoder.kt | unknown_repo | kotlin | /*
* Copyright (C) 2017-2019 Hazuki
*
* 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... |
concrete-sample/src/main/java/com/jaynewstrom/concretesample/details/DetailsListItemView.kt | unknown_repo | kotlin | package com.jaynewstrom.concretesample.details
import android.content.Context
import android.view.LayoutInflater
import android.widget.LinearLayout
import android.widget.TextView
import com.jaynewstrom.concrete.Concrete
import com.jaynewstrom.concretesample.R
import javax.inject.Inject
import javax.inject.Named
class... |
app/src/main/java/com/geekymusketeers/uncrack/ui/fragments/GeneratePasswordFragment.kt | unknown_repo | kotlin | package com.geekymusketeers.uncrack.fragments
import android.content.ClipData
import android.content.ClipboardManager
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.View
import androidx.core.content.ContextCompat
import com.geekymusketeers.uncrack.R
import com.geekymusketeers.uncrac... |
app/src/main/java/alektas/telecomapp/ui/datasource/simulation/EtherSettingsFragment.kt | unknown_repo | kotlin | package alektas.telecomapp.ui.datasource.simulation
import androidx.lifecycle.ViewModelProviders
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import alektas.telecomapp.R
import alektas.telecomapp.domain.entitie... |
app/src/main/java/dev/esnault/bunpyro/android/display/widget/question/TextUnderlineRenderer.kt | unknown_repo | kotlin | package dev.esnault.bunpyro.android.display.widget.question
import android.graphics.Canvas
import android.graphics.Paint
import android.text.Layout
/**
* Base class for single and multi line text underline renderers.
*/
internal abstract class TextUnderlineRenderer(val underlinePaint: Paint) {
/**
* Draw... |
argument/src/main/java/me/reezy/jetpack/argument/ArgumentFloat.kt | unknown_repo | kotlin | package me.reezy.cosmo
import android.os.Bundle
class ArgumentFloat(default: Float = 0f, key: String? = null): ArgumentField<Float>(default, key) {
override fun get(field: String, bundle: Bundle): Float {
val o = bundle[field] ?: return default
return when(o) {
is Number -> o.toFloat(... |
app/src/main/java/com/lyscraft/apparel/compose/components/CustomLoadingSpinner.kt | unknown_repo | kotlin | package com.lyscraft.apparel.compose.components
import androidx.compose.animation.core.LinearEasing
import androidx.compose.animation.core.RepeatMode
import androidx.compose.animation.core.animateFloat
import androidx.compose.animation.core.infiniteRepeatable
import androidx.compose.animation.core.rememberInfiniteTran... |
app/src/main/java/com/skyd/imomoe/view/adapter/SerializableRecycledViewPool.kt | unknown_repo | kotlin | package com.skyd.imomoe.view.adapter
import androidx.recyclerview.widget.RecyclerView
import java.io.Serializable
class SerializableRecycledViewPool : RecyclerView.RecycledViewPool(), Serializable {
} |
livingdoc-engine/src/main/kotlin/org/livingdoc/engine/execution/FixtureChecks.kt | unknown_repo | kotlin | package org.livingdoc.engine.execution
import java.lang.reflect.Method
import java.lang.reflect.Modifier
/**
* This function tests a list of functions for their number of parameters that should be zero
* @param methods The list of methods that should be checked
* @param annotationClass the class where the methods ... |
feature/lecture/src/main/java/com/msg/lecture/component/LectureFilterDialog.kt | unknown_repo | kotlin | package com.msg.lecture.component
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.Spacer
impo... |
material-prefs-colorpicker/src/main/java/com/imangazaliev/materialprefs/views/ColorCircleView.kt | unknown_repo | kotlin | package com.imangazalievm.materialprefs.views
import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.graphics.drawable.Drawable
import android.util.AttributeSet
import android.view.View
import androidx.annotation.ColorInt
import androidx... |
mobile/src/androidTest/java/com/ashomok/lullabies/ui/main_activity/media_browser/MediaBrowserFragmentFavouritesTest.kt | unknown_repo | kotlin | package com.ashomok.lullabies.ui.main_activity.media_browser
import android.content.Context
import androidx.appcompat.widget.AppCompatImageButton
import androidx.lifecycle.Lifecycle
import androidx.test.core.app.launchActivity
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.ViewActio... |
nugu-login-kit/src/test/java/com/skt/nugu/sdk/platform/android/login/auth/NuguOAuthTest.kt | unknown_repo | kotlin | /**
* Copyright (c) 2021 SK Telecom Co., Ltd. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http:www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... |
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/SirenOn.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... |
10-building-a-dynamic-feature/projects/starter/features/sharing/src/main/java/com/raywenderlich/android/petsave/sharing/presentation/SharingFragmentViewModel.kt | unknown_repo | kotlin | package com.raywenderlich.android.petsave.sharing.presentation
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.raywenderlich.android.petsave.common.domain.usecases.GetAnimalDetails
import com.raywenderlich.android.petsave.common.utils.DispatchersProvider
import com.raywenderlich... |
px-checkout/src/main/java/com/mercadopago/android/px/internal/features/checkout/PostPaymentUrlsMapper.kt | unknown_repo | kotlin | package com.mercadopago.android.px.internal.features.checkout
import android.net.Uri
import com.mercadopago.android.px.internal.extensions.isNotNullNorEmpty
import com.mercadopago.android.px.internal.mappers.Mapper
import com.mercadopago.android.px.model.IPaymentDescriptor
import com.mercadopago.android.px.model.Payme... |
app/src/main/java/com/kuneosu/mintoners/ui/fragments/ProfileMainFragment.kt | unknown_repo | kotlin | package com.kuneosu.mintoners.ui.fragments
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.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import androi... |
app/src/main/java/com/androgynousis/messenger/view/activities/Conversation.kt | unknown_repo | kotlin | package com.androgynousis.messenger.view.activities
import android.os.Bundle
import android.view.Menu
import android.view.View
import android.widget.Button
import android.widget.EditText
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.androgynousis.me... |
app/src/main/java/com/arcadone/pokestorie/presentation/HomeViewModel.kt | unknown_repo | kotlin | package com.arcadone.pokestorie.presentation
import android.util.Log
import androidx.compose.runtime.State
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.arcadone.pokestorie.domain.model.PokemonInfo
import com.arcadone.pokestorie.d... |
app/src/main/java/com/xtensolutions/weatherapp/ui/viewmodel/BaseViewModel.kt | unknown_repo | kotlin | package com.xtensolutions.weatherapp.ui.viewmodel
import androidx.hilt.lifecycle.ViewModelInject
import androidx.lifecycle.ViewModel
import androidx.lifecycle.asLiveData
import com.xtensolutions.weatherapp.R
import com.xtensolutions.weatherapp.core.DataResult
import kotlinx.coroutines.flow.flow
import retrofit2.Respon... |
remix/src/commonMain/kotlin/com/woowla/compose/icon/collections/remix/remix/document/FileCheckLine.kt | unknown_repo | kotlin | package com.woowla.compose.icon.collections.remix.remix.document
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.S... |
shared/src/commonMain/kotlin/screens/create/AddTaskSheet.kt | unknown_repo | kotlin | package screens.create
import BottomSheetScreen
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.core.animateDpAsState
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.clickab... |
app/src/main/java/cn/wthee/pcrtool/ui/tool/TweetList.kt | unknown_repo | kotlin | package cn.wthee.pcrtool.ui.tool
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fil... |
v16/src/jvmMain/kotlin/com/monta/ocpp/emulator/chargepoint/view/createchargepoint/ChargePointForm.kt | unknown_repo | kotlin | package com.monta.ocpp.emulator.v16.view.createchargepoint
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import andr... |
app/src/main/java/com/amtgreenberg/thegame/MainApplication.kt | unknown_repo | kotlin | package com.amtgreenberg.thegame
import android.app.Application
import com.amtgreenberg.thegame.di.component.AppComponent
import com.amtgreenberg.thegame.di.component.DaggerAppComponent
import com.amtgreenberg.thegame.di.module.AppModule
import com.amtgreenberg.thegame.di.module.LocalStorageModule
import com.facebook.... |
app/src/main/java/com/binlly/gankee/service/Services.kt | unknown_repo | kotlin | package com.binlly.gankee.service
import android.os.Handler
import android.os.Looper
import com.binlly.gankee.app.App
import com.binlly.gankee.service.account.AccountService
import com.binlly.gankee.service.account.AccountServiceImpl
import com.binlly.gankee.service.remoteconfig.RemoteConfigService
import com.binlly.... |
app/src/main/java/in/developingdeveloper/timeline/settings/ui/SettingsContent.kt | unknown_repo | kotlin | package `in`.developingdeveloper.timeline.settings.ui
import android.content.res.Configuration
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Scaffold
import androidx.compose.material3.Surface
import androidx.compose.runtime.Com... |
app/src/main/java/fr/chatavion/client/db/entity/Community.kt | unknown_repo | kotlin | package fr.chatavion.client.db.entity
import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey
@Entity(
tableName = "community",
indices = [
Index(value = ["name", "address"], unique = true)
]
)
data class Community(
val name: String,
val address: String,
... |
app/src/main/java/com/polar/androidblesdk/HeartRateActivity.kt | unknown_repo | kotlin | package com.polar.androidblesdk
import android.Manifest
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Build
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.Button
import android.widget.TextView
imp... |
core/ui/src/main/java/ru/aleshin/core/ui/views/CategoryMonogram.kt | unknown_repo | kotlin | /*
* Copyright 2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writin... |
app/src/main/java/org/xtras/daggerviewmodelfactory/viewmodel/TestViewModel.kt | unknown_repo | kotlin | package org.xtras.daggerviewmodelfactory.viewmodel
import androidx.lifecycle.ViewModel
import javax.inject.Inject
class TestViewModel @Inject constructor() : ViewModel()
|
library/renetik-android-ui/src/main/java/renetik/android/ui/extensions/view/View+Visibility.kt | unknown_repo | kotlin | package renetik.android.ui.extensions.view
import android.view.View
import android.view.View.*
import androidx.appcompat.widget.ContentFrameLayout
import renetik.android.event.registration.CSMultiRegistration
import renetik.android.event.registration.CSRegistration
import renetik.android.ui.protocol.CSVisibility
impor... |
app/src/main/java/com/example/medellinplaces/ui/view/SplashScreenActivity.kt | unknown_repo | kotlin | package com.example.medellinplaces.ui.view
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import com.example.medellinplaces.databinding.ActivityPlacesMainBinding
import com.example.medellinplaces.databinding.ActivitySplashScreenBinding
class... |
camera/camera-camera2-pipe-integration/src/main/java/androidx/camera/camera2/pipe/integration/adapter/CameraControlAdapter.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... |
font-awesome/src/commonMain/kotlin/compose/icons/fontawesomeicons/solid/FunnelDollar.kt | unknown_repo | kotlin | package compose.icons.fontawesomeicons.solid
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Butt
import androidx.compose.ui.graphics.StrokeJoin.Miter
import androidx.compose.... |
work/work-runtime/src/main/java/androidx/work/ListenableFuture.kt | unknown_repo | kotlin | /*
* Copyright 2018 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... |
WorkManagerSample/app/src/main/java/com/example/background/FilterActivity.kt | unknown_repo | kotlin | /*
* Copyright 2018 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... |
boxicons/src/commonMain/kotlin/com/woowla/compose/icon/collections/boxicons/boxicons/regular/BxDetail.kt | unknown_repo | kotlin | package com.woowla.compose.icon.collections.boxicons.boxicons.regular
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.StrokeCa... |
app/src/main/java/me/hegj/wandroid/mvp/model/share/ShareByIdModel.kt | unknown_repo | kotlin | package me.hegj.wandroid.mvp.model.share
import android.app.Application
import com.google.gson.Gson
import com.jess.arms.integration.IRepositoryManager
import com.jess.arms.mvp.BaseModel
import com.jess.arms.di.scope.ActivityScope
import io.reactivex.Observable
import javax.inject.Inject
import me.hegj.wandroid.mvp.... |
network/src/test/java/com/bintang/network/ApiAbstract.kt | unknown_repo | kotlin | package com.bintang.network
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import java.io.IOException
import java.nio.charset.StandardCharsets
import okhttp3.mockwebserver.MockResponse
import okhttp3.mockwebserver.MockWebServer
import okhttp3.mockwebserver.RecordedRequest
import okio.buffer
import ... |
app/src/main/java/com/example/swd_application/Admin/Activities/EventAdminActivity.kt | unknown_repo | kotlin | package com.example.swd_application.Admin.Activities
import android.app.DatePickerDialog
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.util.Log
import android.webkit.MimeTypeMap
import android.widget.*
import androidx.appcompat.app.AppCompatActivity
import com.example.swd... |
app/src/main/java/com/lodz/android/agiledevkt/modules/keyboard/KeyboardTestActivity.kt | unknown_repo | kotlin | package com.lodz.android.agiledevkt.modules.keyboard
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.View
import com.lodz.android.agiledevkt.databinding.ActivityKeyboardTestBinding
import com.lodz.android.agiledevkt.modules.main.MainActivity
import com.lodz.and... |
app/src/main/java/com/stevdzasan/diaryapp/data/repository/MongoDB.kt | unknown_repo | kotlin | package com.arzhang.mongo.repository
import android.annotation.SuppressLint
import android.os.Build
import androidx.annotation.RequiresApi
import com.arzhang.util.model.Diary
import com.arzhang.lifediary.model.RequestState
import com.arzhang.util.Constants.APP_ID
import com.arzhang.util.toInstant
import io.realm.kotli... |
login/src/main/java/com/fuusy/login/ui/LoginActivity.kt | unknown_repo | kotlin | package com.fuusy.login.ui
import android.view.View
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProviders
import com.alibaba.android.arouter.facade.annotation.Route
import com.alibaba.android.arouter.launcher.ARouter
import com.fuusy.common.base.BaseVmActivity
import com.fuusy.common.network.... |
app/src/main/java/com/github/nytimesnewsapp/base/presentation/BaseViewHolder.kt | unknown_repo | kotlin | package com.github.nytimesnewsapp.base.presentation
import android.view.View
import androidx.recyclerview.widget.RecyclerView
import com.github.nytimesnewsapp.base.presentation.model.BaseUIModel
import kotlinx.android.extensions.LayoutContainer
abstract class BaseViewHolder<in T : BaseUIModel>(
itemView: View
) :... |
app/src/main/java/com/puntogris/recap/feature_recap/presentation/create_recap/CreateRecapViewModel.kt | unknown_repo | kotlin | package com.puntogris.recap.feature_recap.presentation.create_recap
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.puntogris.recap.feature_recap.domain.model.Recap
import com.puntogris.recap.feature_recap.domain.use_case.PublishRecapUseCase
i... |
app/src/main/java/com/airlift/codingchallenge/base/viewmodel/BaseViewModel.kt | unknown_repo | kotlin | package com.airlift.codingchallenge.base.viewmodel
import android.os.Bundle
import androidx.annotation.CallSuper
import androidx.databinding.Bindable
import androidx.databinding.Observable
import androidx.databinding.PropertyChangeRegistry
import androidx.lifecycle.LifecycleObserver
import androidx.lifecycle.ViewMode... |
font-awesome/src/commonMain/kotlin/compose/icons/fontawesomeicons/solid/DollarSign.kt | unknown_repo | kotlin | package compose.icons.fontawesomeicons.solid
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Butt
import androidx.compose.ui.graphics.StrokeJoin.Miter
import androidx.compose.... |
app/src/main/java/com/rogertalk/roger/ui/screens/AttachmentsActivity.kt | unknown_repo | kotlin | package com.rogertalk.roger.ui.screens
import android.Manifest
import android.animation.AnimatorSet
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.Toolbar
import android.text.SpannableString
import a... |
app/src/main/java/com/nemo/tmdb/view/MainActivity.kt | unknown_repo | kotlin | package com.nemo.tmdb.view
import android.arch.lifecycle.ViewModelProviders
import android.content.Context
import android.os.Bundle
import android.support.v4.app.FragmentTransaction
import android.support.v7.app.AppCompatActivity
import android.util.Log
import android.view.Menu
import android.view.MenuItem
import andr... |
app/src/main/java/com/howettl/mvvm/data/model/Employnees.kt | unknown_repo | kotlin | package com.howettl.mvvm.data.model
import androidx.room.Entity
import androidx.room.PrimaryKey
import androidx.room.TypeConverter
import androidx.room.TypeConverters
import com.howettl.mvvm.data.typeConverter.DataConverter
@Entity
data class Employeesd(@field:PrimaryKey val id: Int, val name: String, val username: S... |
app/src/main/java/online/muhammadali/todolist/feature_auth/presentation/screens/SignUpScreen.kt | unknown_repo | kotlin | package online.muhammadali.todolist.feature_auth.presentation.screens
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import andro... |
Chapter10/Exercise10.02/app/src/androidTest/java/com/android/testable/myapplication/MainActivityUiTest.kt | unknown_repo | kotlin | package com.android.testable.myapplication
import android.app.Application
import androidx.lifecycle.Lifecycle
import androidx.test.core.app.ActivityScenario.launch
import androidx.test.core.app.ApplicationProvider.getApplicationContext
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.... |
app/src/test/java/ru/kabylin/andrey/vocabulator/ui/common/DefaultErrorResponder.kt | unknown_repo | kotlin | package ru.kabylin.andrey.vocabulator.ui.common
import android.support.annotation.StringRes
import junit.framework.Assert
import ru.kabylin.andrey.vocabulator.*
import ru.kabylin.andrey.vocabulator.client.AccessError
import ru.kabylin.andrey.vocabulator.client.AccessErrorReason
import ru.kabylin.andrey.vocabulator.ui.... |
data/mediaplayer/src/main/java/com/mcgrady/xproject/data/mediaplayer/database/MusicDatabase.kt | unknown_repo | kotlin | package com.mcgrady.xproject.data.mediaplayer.database
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import com.mcgrady.xproject.data.mediaplayer.database.dao.ChronologyDao
import com.mcgrady.xproject.data.mediaplayer.database.dao.DownloadDao
import com.mcgrady.xpr... |
adapter/unityads/src/main/java/org/bidon/unityads/impl/UnityAdsRewarded.kt | unknown_repo | kotlin | package org.bidon.unityads.impl
import android.app.Activity
import com.unity3d.ads.IUnityAdsLoadListener
import com.unity3d.ads.IUnityAdsShowListener
import com.unity3d.ads.UnityAds
import com.unity3d.ads.UnityAdsShowOptions
import org.bidon.sdk.adapter.AdAuctionParamSource
import org.bidon.sdk.adapter.AdAuctionParams... |
app/src/main/java/com/example/android/politicalpreparedness/repository/CivicEngagementRepository.kt | unknown_repo | kotlin | package com.example.android.politicalpreparedness.repository
import android.util.Log
import androidx.lifecycle.LiveData
import com.example.android.politicalpreparedness.database.ElectionDao
import com.example.android.politicalpreparedness.network.CivicsApi
import com.example.android.politicalpreparedness.network.model... |
app/src/main/kotlin/com/example/mingkangpan/learnrx2/network/BackendMock.kt | unknown_repo | kotlin | package com.example.mingkangpan.learnrx2.network
import android.os.Looper
import android.os.NetworkOnMainThreadException
import com.example.mingkangpan.learnrx2.SimpleFuture
import com.example.mingkangpan.learnrx2.logWithCurrentThread
import io.reactivex.Observable
import io.reactivex.Scheduler
import io.reactivex.sch... |
features/fixtures/mazerunner/cxx-scenarios/src/main/java/com/bugsnag/android/mazerunner/scenarios/CXXThrowFromNoexcept.kt | unknown_repo | kotlin | package com.bugsnag.android.mazerunner.scenarios
import android.content.Context
import com.bugsnag.android.Configuration
class CXXInvalidRethrow(
config: Configuration,
context: Context,
eventMetadata: String?
) : Scenario(config, context, eventMetadata) {
companion object {
init {
... |
common/src/commonMain/kotlin/com/davidmatillacode/common/composeui/utils/Constants.kt | unknown_repo | kotlin | package com.davidmatillacode.common.composeui.utils
import androidx.compose.material.Typography
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.unit.dp
//COLORS
val primaryColor = Color(38, 60, 122)
val accentColor = Color(102, 182, 255)
val seconda... |
beagle/src/main/kotlin/br/com/zup/beagle/android/engine/mapper/FlexMapper.kt | unknown_repo | kotlin | /*
* Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA
*
* 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... |
tim/src/main/java/com/angcyo/tim/model/PushModel.kt | unknown_repo | kotlin | package com.angcyo.tim.model
import com.angcyo.core.lifecycle.LifecycleViewModel
import com.angcyo.library.L
import com.angcyo.tim.util.BrandUtil
import com.angcyo.tim.util.PrivateConstants
import com.angcyo.viewmodel.vmDataNull
import com.tencent.imsdk.v2.V2TIMCallback
import com.tencent.imsdk.v2.V2TIMManager
import ... |
app/src/androidTest/java/com/anytypeio/anytype/features/relations/ObjectRelationListTest.kt | unknown_repo | kotlin | package com.anytypeio.anytype.features.relations
import android.os.Bundle
import androidx.core.os.bundleOf
import androidx.fragment.app.testing.FragmentScenario
import androidx.fragment.app.testing.launchFragmentInContainer
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.ma... |
app/src/main/java/com/soft507/travelsuggest/model/PersonalCenterViewModel.kt | unknown_repo | kotlin | package com.soft507.travelsuggest.model
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.soft507.travelsuggest.bean.UserBean
/**
* @author LRQ-Pro
* @description:
* @date : 2020/6/6 2:46
*/
class PersonalCenterViewModel : ViewModel() {
val userBean = MutableLiveData<Us... |
app/src/main/java/com/opsc/timesync/ui/home/HomeViewModel.kt | unknown_repo | kotlin | package com.opsc.timesync.ui.home
import Category
import android.util.Log
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.google.android.gms.tasks.Task
import com.google.android.gms.tasks.TaskCompletionSource
import com.google.firebase.auth.F... |
app/src/main/java/com/raktimyoddha/clapapp/MainActivity.kt | unknown_repo | kotlin | package com.raktimyoddha.clapapp
import android.media.MediaPlayer
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
class MainActivity : AppCompatActivity() {
private lateinit var mediaPlayer: MediaPlayer
override fun onCreate(savedInstanceState: Bundle?) {... |
app/src/main/java/com/samedtemiz/fitlife/ui/screens/auth/RegisterScreen.kt | unknown_repo | kotlin | package com.samedtemiz.fitlife.ui.screens.auth
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.l... |
kandroid/src/main/kotlin/com/pawegio/kandroid/KSearchView.kt | unknown_repo | kotlin | /*
* Copyright 2015-2016 <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... |
app/src/main/java/com/example/githubusers/ui/heroes/HeroesFragment.kt | unknown_repo | kotlin | package com.example.githubusers.ui.heroes
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import android.support.v4.app.Fragment
import android.arch.lifecycle.Observer
import android.arch.lifecycle.ViewModelProvider
impor... |
gxpbaseeverything/src/main/java/com/peng/gxpbaseeverything/view/custom/view/KeyBoardLayout.kt | unknown_repo | kotlin | package com.peng.gxpbaseeverything.view.custom.view
import android.content.Context
import android.graphics.Color
import android.text.Editable
import android.text.TextWatcher
import android.util.AttributeSet
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.... |
touch/src/main/java/de/nicidienase/chaosflix/touch/browse/streaming/LivestreamListFragment.kt | unknown_repo | kotlin | package de.nicidienase.chaosflix.touch.browse.streaming
import android.content.Context
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.lifecycle.Observer
import com.google.android.material.snackbar.Snackbar
impor... |
shared/src/androidMain/kotlin/main.android.kt | unknown_repo | kotlin | import android.content.Context
import android.content.Intent
import android.net.Uri
import androidx.compose.runtime.Composable
import com.google.firebase.firestore.FieldValue
import com.google.firebase.firestore.FirebaseFirestore
import data.chat.ChatEntity
import data.chat.Message
import dev.gitlive.firebase.Firebase
... |
ReviewerMobile/app/src/main/java/com/forzz/android/reviewermobile/domain/use_cases/get_movies/GetMoviesUseCase.kt | unknown_repo | kotlin | package com.forzz.android.reviewermobile.domain.use_cases.get_movies
import android.util.Log
import com.forzz.android.reviewermobile.data.remote.dto.MovieDTO
import com.forzz.android.reviewermobile.domain.repository.ContentRepository
import com.forzz.android.reviewermobile.domain.use_cases.base.SingleUseCase
import io... |
app/src/main/java/com/arya/moviecatalogue/ui/movie/MovieViewModel.kt | unknown_repo | kotlin | package com.arya.moviecatalogue.ui.movie
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import androidx.paging.PagedList
import com.arya.moviecatalogue.data.source.MovieRepository
import com.arya.moviecatalogue.data.source.local.entity.MovieEntity
import com.arya.moviecatalogue.vo.Resource
cla... |
packages/expo-updates/android/src/androidTest/java/expo/modules/updates/db/UpdatesDatabaseTest.kt | unknown_repo | kotlin | package expo.modules.updates.db
import android.database.sqlite.SQLiteConstraintException
import androidx.room.Room
import androidx.test.internal.runner.junit4.AndroidJUnit4ClassRunner
import androidx.test.platform.app.InstrumentationRegistry
import expo.modules.updates.db.dao.AssetDao
import expo.modules.updates.db.da... |
app/src/androidTest/java/com/concordium/wallet/data/room/TransferDaoUnitTest.kt | unknown_repo | kotlin | package com.concordium.wallet.data.room
import android.content.Context
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.room.Room
import androidx.test.core.app.ApplicationProvider
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.concordium.wallet.data.model.TransactionO... |
lawnchair/src/app/lawnchair/search/LawnchairSearchAdapterProvider.kt | unknown_repo | kotlin | package app.lawnchair.search
import android.util.SparseIntArray
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.util.containsKey
import app.lawnchair.LawnchairLauncher
import app.lawnchair.allapps.SearchItemDecorator
import app.lawnchair.allapps.SearchResu... |
app/src/main/java/br/com/monteoliva/githubuserslist/ui/features/BaseFragment.kt | unknown_repo | kotlin | package br.com.monteoliva.githubuserslist.ui.features
import android.content.Context
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.annotation.LayoutRes
import androidx.annotation.Stri... |
common/src/commonMain/kotlin/com/artemchep/keyguard/ui/shimmer/rememberShimmer.kt | unknown_repo | kotlin | package com.valentinilk.shimmer
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.geometry.Rect
import kotlinx.coroutines.flow.MutableStateFlow
@Composable
fun rememberShimmer(shimmerBounds: ShimmerBounds): Shimmer {
val theme = LocalShimmerTheme.curren... |
app/src/main/java/com/lateinit/rightweight/ui/exercise/ExerciseFragment.kt | unknown_repo | kotlin | package com.lateinit.rightweight.ui.exercise
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget... |
app/src/main/java/tool/xfy9326/milink/nfc/activity/XiaomiNfcReaderActivity.kt | unknown_repo | kotlin | package tool.xfy9326.milink.nfc.activity
import android.nfc.NfcAdapter
import android.nfc.tech.Ndef
import android.nfc.tech.NdefFormatable
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.activity.r... |
app/src/main/java/id/rllyhz/dicodingsubmissionbfaa/ui/activity/settings/SettingsActivity.kt | unknown_repo | kotlin | package id.rllyhz.dicodingsubmissionbfaa.ui.activity.settings
import android.content.Intent
import android.os.Bundle
import android.provider.Settings
import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import id.rllyhz.dicodingsubmissionbfaa.R
import id.rllyhz.dicodingsubmissionbfaa.data.pref.... |
sample/src/main/kotlin/app/futured/donutsample/tools/extensions/ViewExtensions.kt | unknown_repo | kotlin | package com.softcross.onepiece.core.common.extension
import android.view.View
fun View.visible() {
visibility = View.VISIBLE
}
fun View.gone() {
visibility = View.GONE
}
|
AdventureXplore/app/src/main/java/com/example/adventerlife/Activity/AdaminActivity.kt | unknown_repo | kotlin | package com.example.adventerlife.Activity
import android.app.ProgressDialog
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.util.Log
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.example.adventerlife.ModelClass.HomeModel
import com.... |
app/src/main/java/com/whalescale/binit/utils/GameUtils.kt | unknown_repo | kotlin | package com.whalescale.binit.utils
import android.app.Activity
import android.content.Context
import com.whalescale.binit.R
import com.whalescale.binit.models.GameObject
import com.whalescale.binit.models.QuizObject
import com.whalescale.binit.models.RecycleType
import kotlin.random.Random
object GameUtils {
con... |
compose/src/main/java/de/jensklingenberg/jetpackcomposeplayground/ui/samples/mysamples/other/CounterModel.kt | unknown_repo | kotlin | package de.jensklingenberg.jetpackcomposeplayground.ui.samples.mysamples.other
import androidx.compose.Composable
import androidx.compose.state
import androidx.compose.unaryPlus
import androidx.ui.core.Text
import androidx.ui.layout.Center
import androidx.ui.layout.Column
import androidx.ui.material.Button
import and... |
font-awesome/src/commonMain/kotlin/compose/icons/fontawesomeicons/brands/Npm.kt | unknown_repo | kotlin | package compose.icons.fontawesomeicons.brands
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... |
fetch2core/src/main/java/com/tonyodev/fetch2core/server/FileResponse.kt | unknown_repo | kotlin | package com.tonyodev.fetch2core.server
import android.os.Parcel
import android.os.Parcelable
import java.io.Serializable
import java.lang.StringBuilder
import java.net.HttpURLConnection
import java.util.*
/**
* Response object sent to the client as JSON.
* **/
data class FileResponse(val status: Int = HttpURLConnec... |
compose/ui/ui/src/test/kotlin/androidx/compose/ui/gesture/LongPressGestureFilterTest.kt | unknown_repo | kotlin | /*
* Copyright 2019 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... |
libnavui-voice/src/test/java/com/mapbox/navigation/ui/voice/api/MapboxSpeechProviderTest.kt | unknown_repo | kotlin | package com.mapbox.navigation.ui.voice.api
import android.net.Uri
import com.mapbox.bindgen.Expected
import com.mapbox.bindgen.ExpectedFactory
import com.mapbox.common.NetworkRestriction
import com.mapbox.common.ResourceLoadError
import com.mapbox.common.ResourceLoadFlags
import com.mapbox.common.ResourceLoadResult
im... |
app/src/main/java/com/nlptech/function/theme/theme_manage/ThemeManageItemViewHolder.kt | unknown_repo | kotlin | package com.nlptech.function.theme.theme_manage
import android.view.ViewGroup.LayoutParams.WRAP_CONTENT
import androidx.recyclerview.widget.RecyclerView
import com.android.inputmethod.TestApplication
import com.android.inputmethod.latin.databinding.ViewholderThemeBinding
import com.bumptech.glide.Glide
import com.nlpt... |
app/src/main/java/org/wikipedia/feed/news/NewsViewModel.kt | unknown_repo | kotlin | package org.wikipedia.feed.news
import android.os.Bundle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import org.wikipedia.Constants
import org.wikipedia.dataclient.WikiSite
class NewsViewModel(bundle: Bundle) : ViewModel() {
val item = bundle.getParcelable<NewsItem>(NewsActivi... |
designernews/src/test/java/io/plaidapp/designernews/ui/story/StoryViewModelTest.kt | unknown_repo | kotlin | /*
* Copyright 2018 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... |
shared/feature-y/src/main/java/com/wackaloon/feature_y/FeatureYActivity.kt | unknown_repo | kotlin | package com.wackaloon.feature_y
import android.os.Bundle
import com.google.android.material.floatingactionbutton.FloatingActionButton
import com.google.android.material.snackbar.Snackbar
import androidx.appcompat.app.AppCompatActivity
import com.wackaloon.common_core.ErrorNavigator
import com.wackaloon.feature_y.dagge... |
app/src/main/java/com/chrismagaa/simple_lector_rss/ui/feed/news/NewsFragment.kt | unknown_repo | kotlin | package com.chrismagaa.simple_lector_rss.ui.feed.news
import android.content.Intent
import android.os.Bundle
import android.view.*
import androidx.fragment.app.Fragment
import androidx.core.view.MenuProvider
import androidx.fragment.app.activityViewModels
import androidx.lifecycle.Lifecycle
import androidx.recyclervie... |
app/src/main/java/com/lee/leewanandroid/ui/knowledge/KnowledgeFragment.kt | unknown_repo | kotlin | package com.lee.leewanandroid.ui.knowledge
import android.view.View
import androidx.recyclerview.widget.LinearLayoutManager
import com.lee.leewanandroid.R
import com.lee.leewanandroid.entities.article.KnowledgeTreeData
import com.lee.leewanandroid.ui.base.BaseMvpFragment
import kotlinx.android.synthetic.main.fragment_... |
admin/src/main/java/com/sampah/admin/ui/settingHarga/SettingHargaAdapter.kt | unknown_repo | kotlin | package com.sampah.admin.ui.settingHarga
import android.annotation.SuppressLint
import android.content.Context
import android.content.Intent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import c... |
app/src/main/java/com/jjosft/android/lottovillage/services/SmsBroadcastReceiver.kt | unknown_repo | kotlin | package com.jjosft.android.lottovillage.services
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.telephony.SmsMessage
import com.jjosft.android.lottovillage.activities.RegisterActivity
/**
* Created... |
app/src/commonMain/kotlin/com/example/kmp/ui/main/MainScreen.kt | unknown_repo | kotlin | package com.example.kmp.ui.main
import androidx.compose.animation.core.LinearOutSlowInEasing
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.WindowInsets
import androidx.comp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.