file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/dev/vsukharew/objectorientedlogging/room/AppDatabase.kt | unknown_repo | kotlin | package dev.vsukharew.objectorientedlogging.room
import androidx.room.Database
import androidx.room.RoomDatabase
@Database(entities = [LogEntry::class], version = 1)
abstract class AppDatabase : RoomDatabase() {
abstract fun logEntryDao(): LogEntryDao
} |
app/src/main/java/com/wei/amazingtalker/AtApplication.kt | unknown_repo | kotlin | package com.wei.amazingtalker
import android.app.Application
import com.wei.amazingtalker.core.common.BuildConfig
import dagger.hilt.android.HiltAndroidApp
import timber.log.Timber
@HiltAndroidApp
class AtApplication : Application() {
override fun onCreate() {
super.onCreate()
if (BuildConfig.DEB... |
app/src/main/java/com/solo/cartoonbazaar/domain/util/NetworkCallBack.kt | unknown_repo | kotlin | package com.solo.cartoonbazaar.domain.util
import android.content.Context
import android.net.ConnectivityManager
import android.net.Network
import android.net.NetworkCapabilities
import android.net.NetworkRequest
import android.util.Log
import kotlinx.coroutines.channels.awaitClose
import kotlinx.coroutines.flow.Flow
... |
app/src/main/java/com/adityaamolbavadekar/messenger/ui/conversation_info/ConversationInfoActivity.kt | unknown_repo | kotlin | /*
*
* Copyright 2022 <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 l... |
app/src/main/java/org/booncode/thebabyapp/ui/ntl/NursingTimeFragment.kt | unknown_repo | kotlin | package org.booncode.thebabyapp.ui.ntl
import android.content.Context
import android.os.Bundle
import android.util.Log
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import android.view.LayoutInflater
import android.view.Vi... |
app/src/main/java/org/booncode/thebabyapp/ui/ntl/NursingTimeFragment.kt | unknown_repo | kotlin | package org.booncode.thebabyapp.ui.ntl
import android.content.Context
import android.os.Bundle
import android.util.Log
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import android.view.LayoutInflater
import android.view.Vi... |
snowplow-tracker/src/main/java/com/snowplowanalytics/core/session/SessionConfigurationInterface.kt | unknown_repo | kotlin | /*
* Copyright (c) 2015-2023 Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.apach... |
app/src/main/java/com/getcode/ui/components/CodeSwitch.kt | unknown_repo | kotlin | package com.getcode.view.components
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.material.Switch
import androidx.compose.material.SwitchDefaults
import androidx.compose.runtime.Composable
import androidx.compose... |
app/src/main/java/com/commit451/gitlab/fragment/MergeRequestDetailsFragment.kt | unknown_repo | kotlin | package com.commit451.gitlab.fragment
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import butterknife.BindView
import com.commit451.adapterflowlayout.AdapterFlowLayout
import com.commit4... |
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/Redo.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... |
tools/simulator-android/src/android/SimulatorActivity.kt | unknown_repo | kotlin | package featurea.android.simulator
import android.os.Build
import android.os.Bundle
import android.view.Gravity
import android.view.View
import androidx.annotation.RequiresApi
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
import androidx.navigation.NavController
import androidx.navi... |
app/src/main/java/com/example/codev/presentation/screens/HomeScreen.kt | unknown_repo | kotlin | package com.example.codev.presentation.screens
import androidx.compose.animation.core.InfiniteRepeatableSpec
import androidx.compose.animation.core.RepeatMode
import androidx.compose.animation.core.animateFloat
import androidx.compose.animation.core.infiniteRepeatable
import androidx.compose.animation.core.rememberInf... |
app/src/main/java/com/example/codev/presentation/screens/HomeScreen.kt | unknown_repo | kotlin | package com.example.codev.presentation.screens
import androidx.compose.animation.core.InfiniteRepeatableSpec
import androidx.compose.animation.core.RepeatMode
import androidx.compose.animation.core.animateFloat
import androidx.compose.animation.core.infiniteRepeatable
import androidx.compose.animation.core.rememberInf... |
rxtheme/src/main/java/com/adgvcxz/rxtheme/extensions/PrimaryColorEx.kt | unknown_repo | kotlin | package com.adgvcxz.rxtheme.extensions
import android.os.Build
import android.support.v4.view.ViewPager
import android.support.v7.widget.RecyclerView
import android.widget.EdgeEffect
import android.widget.ScrollView
/**
* zhaowei
* Created by zhaowei on 2017/8/2.
*/
fun RecyclerView.setPrimaryColor(color: Int) {
... |
app/src/main/java/com/nimbl3/ui/main/MainViewModel.kt | unknown_repo | kotlin | package com.nimbl3.ui.main
import androidx.arch.core.util.Function
import androidx.lifecycle.LiveData
import androidx.lifecycle.MediatorLiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Observer
import androidx.lifecycle.Transformations
import com.nimbl3.data.repository.LoginRepository
impor... |
app/src/main/java/com/nimbl3/ui/main/MainViewModel.kt | unknown_repo | kotlin | package com.nimbl3.ui.main
import androidx.arch.core.util.Function
import androidx.lifecycle.LiveData
import androidx.lifecycle.MediatorLiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Observer
import androidx.lifecycle.Transformations
import com.nimbl3.data.repository.LoginRepository
impor... |
app/src/main/kotlin/com/marcoassenza/shoppy/views/fragments/GroceryListFragment.kt | unknown_repo | kotlin | package com.marcoassenza.shoppy.views.fragments
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.SearchView
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
import androidx.lifecycle.Lifecycle
i... |
app/src/main/java/com/fave/breezil/fave/repository/headlines/HeadlineDataSourceFactory.kt | unknown_repo | kotlin | /**
* Designed and developed by Fave
*
* 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... |
app/src/main/java/com/gw/mvvm/wan/viewModel/collect/CollectViewModel.kt | unknown_repo | kotlin | package com.gw.mvvm.wan.viewModel.collect
import androidx.lifecycle.MutableLiveData
import com.gw.mvvm.framework.base.viewmodel.BaseViewModel
import com.gw.mvvm.framework.ext.viewmodel.request
import com.gw.mvvm.framework.network.state.ResultState
import com.gw.mvvm.wan.data.model.CollectAriticleInfo
import com.gw.mvv... |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/DatabasePlus.kt | unknown_repo | kotlin | package com.woowla.compose.icon.collections.tabler.tabler.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.vector.ImageVector
import androidx.compose.ui.graphics.vector... |
app/src/main/java/de/drtobiasprinz/summitbook/db/entities/Summit.kt | unknown_repo | kotlin | package de.drtobiasprinz.summitbook.db.entities
import android.content.Context
import android.content.res.Resources
import androidx.room.*
import de.drtobiasprinz.gpx.TrackPoint
import de.drtobiasprinz.summitbook.R
import de.drtobiasprinz.summitbook.db.entities.*
import de.drtobiasprinz.summitbook.models.GpsTrack
impo... |
app/src/main/java/com/oguzdogdu/wallieshd/util/FirebaseService.kt | unknown_repo | kotlin | package com.oguzdogdu.wallieshd.util
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.os.Build
import android.util.Log
import androidx.core.app.NotificationCompat
import com.google.... |
domain/src/main/java/org/lotka/xenonx/domain/enums/ReportType.kt | unknown_repo | kotlin | package org.lotka.xenonx.domain.enums
import androidx.annotation.StringRes
import org.lotka.xenonx.domain.R
sealed class ReportType(val index: Int, @StringRes val resourceId: Int) {
object AgencyReport : ReportType(index = 0, resourceId = R.string.agency_report)
object VisitsAndClicks : ReportType(index = 1... |
app/src/main/java/com/example/movieapp/repository/HomeRepository/RemoteMediotrs.kt | unknown_repo | kotlin | package com.example.movieapp.repository.HomeRepository
import android.util.Log
import androidx.paging.ExperimentalPagingApi
import androidx.paging.LoadType
import androidx.paging.PagingState
import androidx.paging.RemoteMediator
import androidx.room.withTransaction
import com.example.movieapp.DB.AppDatabase
import com... |
example/src/main/java/com/aureusapps/android/webpandroid/example/states/ConvertState.kt | unknown_repo | kotlin | package com.aureusapps.android.webpandroid.example.states
import android.net.Uri
internal interface ConvertState {
interface CancellableState {
val cancel: () -> Unit
}
sealed class ImageToWebP(
val srcUri: Uri,
val dstUri: Uri,
val imageWidth: Int,
val imageHeigh... |
cryptanil/src/main/java/com/primesoft/cryptanil/base/AppPresenter.kt | unknown_repo | kotlin | package com.primesoft.cryptanil.base
import android.os.Handler
import androidx.annotation.CallSuper
import com.primesoft.cryptanil.api.ApiImplementation
import com.primesoft.cryptanil.api.ErrorKey
import com.primesoft.cryptanil.api.RequestType
import com.primesoft.cryptanil.app
import com.primesoft.cryptanil.models.Er... |
extensions/parcelize/src/main/kotlin/io/islandtime/extensions/parcelize/ranges/OffsetDateTimeInterval.kt | unknown_repo | kotlin | package io.islandtime.extensions.parcelize.ranges
import android.os.Parcel
import io.islandtime.extensions.parcelize.readOffsetDateTime
import io.islandtime.extensions.parcelize.writeOffsetDateTime
import io.islandtime.ranges.OffsetDateTimeInterval
import kotlinx.android.parcel.Parceler
object OffsetDateTimeIntervalP... |
app/src/main/java/com/appunite/loudius/LoudiusApplication.kt | unknown_repo | kotlin | /*
* Copyright 2023 AppUnite S.A.
*
* 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 t... |
android-app/src/main/kotlin/fr/cph/chicago/core/App.kt | unknown_repo | kotlin | /**
* Copyright 2021 Carl-Philipp Harmant
*
*
* 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 la... |
compose-destinations/src/main/java/com/ramcosta/composedestinations/navargs/serializable/SerializableDestinationsNavType.kt | unknown_repo | kotlin | package com.ramcosta.composedestinations.navargs.serializable
import androidx.navigation.NavType
import java.io.Serializable
/**
* [Serializable] [NavType] version for Compose Destinations library.
* It gets used by the generated code.
*/
abstract class SerializableDestinationsNavType<T: Serializable?>: NavType<T>... |
app/src/main/java/com/example/homeswap_android/adapter/ApartmentAdapter.kt | unknown_repo | kotlin | import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import coil.load
import com.example.homeswap_android.data.models.Apartment
import com.example.homeswap_android.da... |
app/src/main/java/com/assignment/ideapro/mm/kunyi/fragments/BaseFragment.kt | unknown_repo | kotlin | package com.assignment.ideapro.mm.kunyi.fragments
import android.support.v4.app.Fragment
open class BaseFragment : Fragment() {
} |
MaWPhotos/src/main/kotlin/us/mikeandwan/photos/ui/screens/random/RandomViewModel.kt | unknown_repo | kotlin | package us.mikeandwan.photos.ui.screens.random
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.*
import kotlinx.coroutines.flow.SharingStarted.Companion.WhileSubscribed
import us.mikeandwan.photos.domain.RandomPhotoRepository
import us.mikeandw... |
app/src/main/java/uz/boywonder/myrecipes/data/database/RecipesDao.kt | unknown_repo | kotlin | package uz.boywonder.myrecipes.data.database
import androidx.room.*
import kotlinx.coroutines.flow.Flow
import uz.boywonder.myrecipes.data.database.entities.FavoriteEntity
import uz.boywonder.myrecipes.data.database.entities.RecipesEntity
@Dao
interface RecipesDao {
@Insert(onConflict = OnConflictStrategy.REPLAC... |
app/src/main/java/com/demo/instagramclone/MainActivity.kt | unknown_repo | kotlin | package com.demo.instagramclone
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Surface
import androidx.compose.material.... |
PictureInPictureKotlin/app/src/androidTest/java/com/example/android/pictureinpicture/MovieActivityTest.kt | unknown_repo | kotlin | /*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
mobile/src/main/java/com/podcreep/ui/ScreenStack.kt | unknown_repo | kotlin | package au.com.codeka.podcreep.ui
import androidx.appcompat.app.AppCompatActivity
import android.view.ViewGroup
import au.com.codeka.podcreep.util.Event
import java.util.Stack
import kotlin.reflect.KClass
/**
* [ScreenStack] is used to manage a stack of [Screen]s. The stack shows it's
* corresponding view in the [V... |
app/src/main/java/com/rulhouse/evgawatcher/methods/favorite_products/di/FavoriteGpuProductsModule.kt | unknown_repo | kotlin | package com.rulhouse.evgawatcher.methods.favorite_products.di
import android.app.Application
import androidx.room.Room
import com.oucare.bbt_oucare.feature_node.domain.use_case.*
import com.rulhouse.evgawatcher.methods.favorite_products.data.data_source.FavoriteGpuProductDataBase
import com.rulhouse.evgawatcher.method... |
app/src/main/java/com/example/weatherapp/presentation/ui/tabs_screen/adapter/PagerFragmentAdapter.kt | unknown_repo | kotlin | package com.example.weatherapp.presentation.ui.tabs_screen.adapter
import androidx.fragment.app.Fragment
import androidx.viewpager2.adapter.FragmentStateAdapter
class PagerFragmentAdapter(
parentFragment: Fragment,
private val fragmentsList: List<Fragment>,
) : FragmentStateAdapter(parentFragment) {
ove... |
app/src/main/java/com/gpillaca/upcomingmovies/framework/AndroidPermissionChecker.kt | unknown_repo | kotlin | package com.gpillaca.upcomingmovies.framework
import android.Manifest
import android.app.Application
import android.content.pm.PackageManager
import androidx.core.content.ContextCompat
import com.gpillaca.upcomingmovies.data.PermissionChecker
import javax.inject.Inject
class AndroidPermissionChecker @Inject construct... |
app/src/main/java/com/example/doughnutopia/composable/BottomBar.kt | unknown_repo | kotlin | /*
* Created by <NAME> on 7/15/23, 4:51 PM, 2023.
*
* Copyright (c) 2023 All rights reserved.
*/
package com.example.doughnutopia.composable
import androidx.compose.foundation.layout.RowScope
import androidx.compose.foundation.layout.height
import androidx.compose.material.BottomNavigation
import androidx.compos... |
app/src/main/java/tipz/viola/widget/StringResAdapter.kt | unknown_repo | kotlin | package tipz.viola.widget
import android.content.Context
import android.widget.ArrayAdapter
import androidx.annotation.StringRes
import tipz.viola.R
open class StringResAdapter(private val mContext: Context) :
ArrayAdapter<String>(mContext, R.layout.template_item_text_single) {
private val mResIdObjects: Mut... |
app/src/main/java/com/beettechnologies/newsapp/common/data/db/NewsDb.kt | unknown_repo | kotlin | package com.beettechnologies.newsapp.common.data.db
import android.arch.persistence.room.Database
import android.arch.persistence.room.RoomDatabase
import com.beettechnologies.newsapp.common.data.model.News
/**
* Main database description.
*/
@Database(
entities =
[
News::class
],
version = ... |
app/src/main/java/example/jllarraz/com/passportreader/ui/activities/SelectionActivity.kt | unknown_repo | kotlin | /*
* Copyright 2017 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 applic... |
app/src/main/java/xifuyin/tumour/com/a51ehealth/kotlin_simple/room/FocusDao.kt | unknown_repo | kotlin | package xifuyin.tumour.com.a51ehealth.kotlin_simple.room
import android.arch.persistence.room.Dao
import android.arch.persistence.room.Insert
import android.arch.persistence.room.Update
import xifuyin.tumour.com.a51ehealth.kotlin_simple.module.find.model.FocusBean
@Dao
interface FocusDao {
/*插入一个列表*/
@Insert... |
data/src/main/java/com/vinners/cube_vishwakarma/data/models/LoggedInUser.kt | unknown_repo | kotlin | package com.vinners.cube_vishwakarma.data.models
import android.net.Uri
data class LoggedInUser(
val id: String?,
val sessionToken: String,
val displayName: String?,
val mobileNumber: String,
val pic: String?,
val email: String? = null,
val design: String?
) |
app/src/main/java/com/mobilemovement/kotlintvmaze/vm/MazeViewModelFactory.kt | unknown_repo | kotlin | /*
* Copyright 2019 nuhkoca.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 required by applicable law or agreed to ... |
Demos/Compose/src/main/kotlin/com/groupdocs/ui/comparison/compose/common/LocalResourceLoader.kt | unknown_repo | kotlin | package com.groupdocs.ui.comparison.compose.common
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.res.ResourceLoader
import java.io.BufferedInputStream
import java.io.FileInputStream
import java.io.InputStream
@ExperimentalComposeUiApi
class LocalResourceLoader : ResourceLoader {
o... |
audio-sink/src/main/java/io/github/rosariopfernandes/bluetoothingspeaker/A2dpSinkActivity.kt | unknown_repo | kotlin | /*
* Copyright 2019, <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 ... |
android-uxsdk-beta-core/src/main/java/dji/ux/beta/core/widget/distancerc/DistanceRCWidget.kt | unknown_repo | kotlin | /*
* Copyright (c) 2018-2020 DJI
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, d... |
app/src/main/java/com/magnitudestudios/GameFace/repository/UserRepository.kt | unknown_repo | kotlin | /*
* Copyright (c) 2021 -Srihari Vishnu - All Rights Reserved
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modif... |
app/src/main/java/com/hover/stax/requests/RequestActivity.kt | unknown_repo | kotlin | package com.hover.stax.requests
import android.content.Intent
import android.os.Bundle
import android.os.Handler
import android.view.View
import androidx.appcompat.app.AlertDialog
import com.hover.sdk.permissions.PermissionHelper
import com.hover.stax.R
import com.hover.stax.databinding.ActivityRequestBinding
import c... |
legacy/src/main/java/jp/hazuki/yuzubrowser/legacy/action/view/SoftButtonDetailAdapter.kt | unknown_repo | kotlin | /*
* Copyright (C) 2017-2021 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... |
app/src/main/kotlin/kr/ac/snu/hcil/omnitrack/ui/pages/trigger/conditions/data/DataDrivenTriggerDisplayView.kt | unknown_repo | kotlin | package kr.ac.snu.hcil.omnitrack.ui.pages.trigger.conditions.data
import android.content.Context
import android.graphics.Paint
import android.util.AttributeSet
import android.util.TypedValue
import android.view.LayoutInflater
import android.view.View
import android.widget.TextView
import androidx.appcompat.widget.AppC... |
chat_ui/src/main/java/io/skygear/plugins/chat/ui/model/MessageFactory.kt | unknown_repo | kotlin | package io.skygear.plugins.chat.ui.model
import io.skygear.plugins.chat.Message as ChatMessage
import android.net.Uri
class MessageFactory {
companion object {
fun getMessage(m: ChatMessage, style: MessageStyle, uri: Uri? = null) : Message {
return m.asset?.mimeType.let {
when... |
app/src/main/java/com/college/collegeconnect/ui/event/bvest/BvestActivity.kt | unknown_repo | kotlin | package com.college.collegeconnect.ui.event.bvest
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.Li... |
WindowInsetsAnimation/app/src/main/java/com/google/android/samples/insetsanimation/TranslateViewInsetsAnimationListener.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... |
composeApp/src/commonMain/kotlin/com/initium/assignment/ui/app/userdetail/UserDetailPage.kt | unknown_repo | kotlin | package com.initium.assignment.ui.app.userdetail
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.found... |
components/settings/impl/src/main/java/com/flipperdevices/settings/impl/composable/category/CardCategory.kt | unknown_repo | kotlin | package com.flipperdevices.settings.impl.composable.category
import androidx.compose.foundation.layout.padding
import androidx.compose.material.Card
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
@Composable
fun CardCategory(
modifier: Modifier = ... |
library/src/main/java/com/secoo/coobox/library/util/schedule/LastWinExecutor.kt | unknown_repo | kotlin | package com.secoo.coobox.library.util.schedule
import android.os.Handler
import android.os.Looper
import com.secoo.coobox.library.alias.type.KRunnable
/**
* 任务执行器,在规定的时间内执行提交,最后一个会被执行,之前的会被取消
*/
class LastWinExecutor(private val timeSpanInMills: Long) {
private val handler = Handler(Looper.getMainLooper())
... |
livechat/src/main/java/com/desk360/livechat/manager/BaseChatManager.kt | unknown_repo | kotlin | package com.desk360.livechat.manager
import android.content.Context
abstract class BaseChatManager {
var token: String = ""
var domainAddress: String = ""
var userName: String = ""
var userEmailAddress: String = ""
var languageCode: String = ""
var deviceId: String? = ""
var pushToken: Str... |
app/src/main/java/org/wikipedia/history/HistoryFragment.kt | unknown_repo | kotlin | package org.wikipedia.history
import android.content.DialogInterface
import android.database.Cursor
import android.net.Uri
import android.os.Bundle
import android.support.design.widget.Snackbar
import android.support.v4.app.Fragment
import android.support.v4.app.LoaderManager
import android.support.v4.content.CursorLo... |
app/src/main/java/org/wikipedia/history/HistoryFragment.kt | unknown_repo | kotlin | package org.wikipedia.history
import android.content.DialogInterface
import android.database.Cursor
import android.net.Uri
import android.os.Bundle
import android.support.design.widget.Snackbar
import android.support.v4.app.Fragment
import android.support.v4.app.LoaderManager
import android.support.v4.content.CursorLo... |
app/src/main/java/com/tools/translater/voicetranslator/phototranslator/ui/component/setting/SettingActivity.kt | unknown_repo | kotlin | package com.tools.translater.voicetranslator.phototranslator.ui.component.setting
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.os.Handler
import android.widget.Toast
import com.tools.translater.voicetranslator.phototranslator.BuildConfig
im... |
CountNumberCompose/app/src/main/java/algokelvin/app/countnumbercompose/MainActivity.kt | unknown_repo | kotlin | package algokelvin.app.countnumbercompose
import android.content.Context
import android.os.Bundle
import android.widget.Toast
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.text.KeyboardOptions
import... |
main/src/main/java/com/rviannaoliveira/main/presentation/MainViewModel.kt | unknown_repo | kotlin | package com.rviannaoliveira.main.presentation
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.rviannaoliveira.base.BaseViewModel
import com.rviannaoliveira.base.Reporter
import com.rviannaoliveira.main.domain.MainInteractor
import com.rviannaoliveira.networking.domain.model.Item... |
app/src/main/java/dev/arkbuilders/rate/data/db/PairAlertConditionRepo.kt | unknown_repo | kotlin | package dev.arkbuilders.rate.data.db
import androidx.room.Dao
import androidx.room.Entity
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.PrimaryKey
import androidx.room.Query
import dev.arkbuilders.rate.data.PairAlertCondition
import javax.inject.Inject
import javax.inject.Sin... |
app/src/main/java/com/cs/schoolcontentmanager/domain/model/File.kt | unknown_repo | kotlin | package com.cs.schoolcontentmanager.domain.model
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity
data class File(
val name: String = "",
val type: String = "",
val subject: String = "",
val uri: String = "",
val publishedBy: String = "",
@PrimaryKey val id: Int? = null
)
|
app/src/main/java/com/realform/macropaytest/presentation/ui/launches/detail/DetailViewModel.kt | unknown_repo | kotlin | package com.realform.macropaytest.presentation.ui.launches.detail
import android.util.Log
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.realform.macropaytest.data.utils.ResultAPI
import com.realform.macropaytest.domain.models.LaunchDetail
import com.realform.macropaytest.doma... |
src/main/kotlin/we/rashchenko/Main.kt | unknown_repo | kotlin | package we.rashchenko
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.window.application
import com.badlogic.gdx.math.Vector2
import org.jgrapht.Graph
import org.jgrapht.graph.DefaultDirectedGraph
import we.rashchenko.graph.*
import we.rashchenko.gui.graphPlot
fun main() = application {
val ... |
app/src/main/java/com/famas/auugpapers/ui/presentation/viewmodels/LoginViewModel.kt | unknown_repo | kotlin | package com.famas.auugpapers.ui.presentation.viewmodels
import androidx.lifecycle.ViewModel
import androidx.lifecycle.asLiveData
import androidx.lifecycle.viewModelScope
import com.famas.auugpapers.data.domain.Repository
import com.famas.auugpapers.data.local.datastore.DataStoreKeys
import com.google.firebase.auth.Fir... |
app/src/main/java/com/technicalassigments/moviewapp/ui/searchable/viewmodel/SearchViewModel.kt | unknown_repo | kotlin | package com.technicalassigments.moviewapp.ui.searchable.viewmodel
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.paging.PagingData
import androidx.paging.cachedIn
import com.technicalassigments.movieapp.domain.usecase.FetchMovieUseCaseImpl
import com.technicalassigments.mo... |
processor/src/main/java/com/infinum/jsonapix/processor/specs/model/BaseJsonApiModelSpecBuilder.kt | unknown_repo | kotlin | package com.infinum.jsonapix.processor.specs.model
import com.infinum.jsonapix.core.common.JsonApiConstants.withName
import com.infinum.jsonapix.processor.LinksInfo
import com.infinum.jsonapix.processor.MetaInfo
import com.squareup.kotlinpoet.ClassName
import com.squareup.kotlinpoet.FileSpec
import com.squareup.kotlin... |
code/1758. Clean Architecture on Android 12-Clean-Architecture-on-Android/12-Clean-Architecture-on-Android/Demo3/final/presentation/src/main/java/com/raywenderlich/android/creatures/presentation/browse/BrowseCreaturesViewModelFactory.kt | unknown_repo | kotlin | package com.raywenderlich.android.creatures.presentation.browse
import android.arch.lifecycle.ViewModel
import android.arch.lifecycle.ViewModelProvider
import com.raywenderlich.android.creatures.domain.interactor.browse.GetCreatures
import com.raywenderlich.android.creatures.domain.interactor.browse.GetJupiterCreature... |
beagle/src/test/kotlin/br/com/zup/beagle/android/view/custom/BeagleFlexViewTest.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... |
beagle/src/test/kotlin/br/com/zup/beagle/android/view/custom/BeagleFlexViewTest.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... |
app/src/main/java/com/concordium/wallet/ui/account/accountdetails/transfers/TransactionAdapter.kt | unknown_repo | kotlin | package com.concordium.wallet.ui.account.accountdetails.transfers
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.core.view.isVisible
import androidx.recyclerview.widget.RecyclerView
import com.conco... |
gl/src/main/java/io/github/gaomjun/gl/LocationHelper.kt | unknown_repo | kotlin | package io.github.gaomjun.gl
import android.opengl.GLES20
/**
* Created by qq on 24/2/2017.
*/
class LocationHelper {
companion object {
fun getLocation(type: LOCATION_TYPE, glProgram: Int, name: String): Int? {
var location: Int? = null
when(type) {
LOCATION_TYP... |
app/src/main/java/com/example/meliexample/data/models/Picture.kt | unknown_repo | kotlin | package com.example.meliexample.data.models
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.parcelize.Parcelize
@Parcelize
data class Picture(
val id: String,
val url: String,
@SerializedName("secure_url") val secureUrl: String
) : Parcelable
|
floatview-sdk/src/main/kotlin/com/leovp/floatview/framework/FloatViewManager.kt | unknown_repo | kotlin | package com.leovp.floatview.framework
import android.content.Context
import com.leovp.floatview.entities.DefaultConfig
import java.util.concurrent.ConcurrentHashMap
/**
* Author: <NAME>
* Date: 2021/8/30 10:52
*/
internal object FloatViewManager {
private val windowMap = ConcurrentHashMap<String, FloatViewImpl... |
app/src/main/java/moe/tlaster/openween/common/helpers/HttpHelper.kt | unknown_repo | kotlin | package moe.tlaster.openween.common.helpers
import android.support.v4.util.ArrayMap
import android.text.TextUtils
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.module.kotlin.readValue
import com.github.kittinunf.fuel.android.core.Json
import com.github.kittinunf.fuel.android.extension... |
app/src/main/java/com/example/mentalhealthapp/receiver/AlarmReceiver.kt | unknown_repo | kotlin |
package com.example.mentalhealthapp.receiver
import android.app.NotificationManager
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.widget.Toast
import androidx.core.content.ContextCompat
import com.example.mentalhealthapp.R
import com.example.menta... |
ChoiceSDK/choicesdk-core/src/main/java/at/bluesource/choicesdk/core/task/HMSTask.kt | unknown_repo | kotlin | package at.bluesource.choicesdk.core.task
import android.app.Activity
import at.bluesource.choicesdk.core.task.listener.OnCanceledListener
import at.bluesource.choicesdk.core.task.listener.OnCompleteListener
import at.bluesource.choicesdk.core.task.listener.OnFailureListener
import at.bluesource.choicesdk.core.task.li... |
core/src/main/java/com/github/grishberg/profiler/ui/dialogs/recorder/JavaMethodsRecorderLogic.kt | unknown_repo | kotlin | package com.github.grishberg.profiler.ui.dialogs.recorder
import com.github.grishberg.profiler.common.AppLogger
import com.github.grishberg.profiler.common.CoroutinesDispatchers
import com.github.grishberg.profiler.common.settings.SettingsFacade
import com.github.grishberg.tracerecorder.MethodTraceEventListener
import... |
core/src/main/java/com/github/grishberg/profiler/ui/dialogs/recorder/JavaMethodsRecorderLogic.kt | unknown_repo | kotlin | package com.github.grishberg.profiler.ui.dialogs.recorder
import com.github.grishberg.profiler.common.AppLogger
import com.github.grishberg.profiler.common.CoroutinesDispatchers
import com.github.grishberg.profiler.common.settings.SettingsFacade
import com.github.grishberg.tracerecorder.MethodTraceEventListener
import... |
payments-ui-core/src/test/java/com/stripe/android/ui/core/elements/CardNumberControllerTest.kt | unknown_repo | kotlin | package com.stripe.android.ui.core.elements
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.ui.Modifier
import androidx.compose.ui.focus.FocusDirection
import androidx.compose.ui.platform.testTag
import androidx.compose.ui.test.junit4.createComposeRule
import app.cash.turbine.test
impo... |
mobile-sdk/src/main/java/com/paydock/feature/googlepay/presentation/state/GooglePayViewState.kt | unknown_repo | kotlin | /*
* Created by Paydock on 1/26/24, 6:24 PM
* Copyright (c) 2024 Paydock Ltd.
*
* Last modified 1/26/24, 2:24 PM
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.o... |
octicons/src/commonMain/kotlin/compose/icons/octicons/GitCommit16.kt | unknown_repo | kotlin | package compose.icons.octicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
import a... |
03-dependency-injection/projects/starter/Busso/app/src/main/java/com/raywenderlich/android/busso/di/ServiceLocatorImpl.kt | unknown_repo | kotlin | package com.raywenderlich.android.busso.di
import android.annotation.SuppressLint
import android.content.Context
import android.location.LocationManager
import com.raywenderlich.android.busso.permission.GeoLocationPermissionCheckerImpl
import com.raywenderlich.android.location.rx.provideRxLocationObservable
const val... |
app/src/main/java/com/da_chelimo/whisper/core/repo/user/UserRepoImpl.kt | unknown_repo | kotlin | package com.da_chelimo.whisper.core.repo.user
import android.net.Uri
import com.da_chelimo.whisper.R
import com.da_chelimo.whisper.core.domain.TaskState
import com.da_chelimo.whisper.core.domain.User
import com.da_chelimo.whisper.core.repo.user.UserRepo.Companion.getStorageRefForProfilePic
import com.da_chelimo.whispe... |
RoomOperation/app/src/main/java/com/example/roomoperation/MainActivity.kt | unknown_repo | kotlin | package com.example.roomoperation
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import androidx.compose.mater... |
cache/src/main/java/com/irfanirawansukirman/network/factory/PreferenceFactory.kt | unknown_repo | kotlin | package com.irfanirawansukirman.network.factory
import android.content.SharedPreferences
import javax.inject.Inject
class PreferenceFactory @Inject constructor(val sharedPreferences: SharedPreferences) {
fun clearPreferences() {
sharedPreferences.edit().clear().apply()
}
/**
* finds value o... |
app/src/main/java/com/javavirys/mediaplayer/di/PreferencesModule.kt | unknown_repo | kotlin | /*
* Copyright 2021 <NAME>. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... |
app/src/main/java/cz/nestresuju/screens/tests/output/BaseOutputTestSecondQuestionnaireFragment.kt | unknown_repo | kotlin | package cz.nestresuju.screens.tests.output
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import cz.nestresuju.R
import cz.nestresuju.common.extensions.visible
import cz.nestresuju.databinding.FragmentInputTestBinding
import cz.nestresuju.model.entiti... |
wear/compose/compose-foundation/src/main/java/androidx/wear/compose/foundation/CurvedLayout.kt | unknown_repo | kotlin | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
wear/compose/compose-foundation/src/main/java/androidx/wear/compose/foundation/CurvedLayout.kt | unknown_repo | kotlin | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
common/compose/src/main/kotlin/app/surgo/common/compose/utils/DynamicPalette.kt | unknown_repo | kotlin | package app.surgo.common.compose.utils
import androidx.compose.material3.ColorScheme
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.toArgb
import dynamiccolor.MaterialDynamicColors
import hct.Hct
import scheme.SchemeTonalSpot
fun dynamicColorScheme(
dominantColor: Color,
isDark:... |
app/src/main/java/com/funnydevs/hilt_conductor/demo/BaseController.kt | unknown_repo | kotlin | package com.funnydevs.hilt_conductor.demo
import android.os.Bundle
import com.bluelinelabs.conductor.Controller
import javax.inject.Inject
import javax.inject.Named
abstract class BaseController(args: Bundle?) : Controller(args) {
@Inject
@Named("second")
lateinit var testo: String
} |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/util/viewmodel/CWAViewModel.kt | unknown_repo | kotlin | package de.rki.coronawarnapp.util.viewmodel
import androidx.annotation.CallSuper
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import timber.log.Timber
abstract class CWAViewModel : ViewModel() {
init {
... |
app/src/main/java/com/penpab/postsanitizer/workers/FetchPostWorker.kt | unknown_repo | kotlin | @file:Suppress("BlockingMethodInNonBlockingContext")
package com.penpab.postsanitizer.workers
import android.content.Context
import android.os.Environment
import android.util.Log
import androidx.work.CoroutineWorker
import androidx.work.ForegroundInfo
import androidx.work.WorkerParameters
import androidx.work.workDat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.