file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/nodomain/freeyourgadget/fossilnotify/ui/view_model/ViewModel.kt | unknown_repo | kotlin | package nodomain.freeyourgadget.fossilnotify.ui.view_model
import android.content.Context
import android.content.Intent
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import nodomain.freeyourgadget.fossilnotify.service.NLService.Companio... |
Framework/src/main/java/com/bihe0832/android/framework/update/UpdateDataFromCloudExt.kt | unknown_repo | kotlin | package com.bihe0832.android.framework.update
import android.text.TextUtils
import com.bihe0832.android.framework.ZixieContext
import com.bihe0832.android.lib.utils.ConvertUtils
/**
*
* @author zixie <EMAIL>
* Created on 2020/5/14.
* Description: Description
*
*/
fun UpdateDataFromCloud.setUpdateType() {
... |
app/src/main/java/com/shuttl/packagetest/GPSRestartReceiver.kt | unknown_repo | kotlin | package com.shuttl.packagetest
import android.content.ContentValues.TAG
import android.content.Context
import android.content.Intent
import android.util.Log
import android.widget.Toast
import com.shuttl.location_pings.callbacks.LocationPingServiceCallback
import com.shuttl.location_pings.config.open_lib.LocationsHelpe... |
upi/src/test/java/com/adyen/checkout/upi/internal/ui/DefaultUPIDelegateTest.kt | unknown_repo | kotlin | /*
* Copyright (c) 2023 <NAME>.
*
* This file is open source and available under the MIT license. See the LICENSE file for more info.
*
* Created by oscars on 28/2/2023.
*/
package com.adyen.checkout.upi.internal.ui
import app.cash.turbine.test
import com.adyen.checkout.components.core.Amount
import com.adyen.c... |
schematic-sample-kotlin/src/main/java/net/simonvt/schematic/sample/ui/adapter/ListsAdapter.kt | unknown_repo | kotlin | /*
* Copyright (C) 2014 <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... |
app/src/main/java/org/openobd2/core/logger/bl/DataLogger.kt | unknown_repo | kotlin | package org.openobd2.core.logger.bl
import android.content.Context
import android.content.Intent
import android.util.Log
import org.obd.metrics.DeviceProperties
import org.obd.metrics.Lifecycle
import org.obd.metrics.ObdMetric
import org.obd.metrics.api.*
import org.obd.metrics.codec.GeneratorSpec
import org.obd.metri... |
tracker/tracker_presentation/src/main/java/com/example/tracker_presentation/tracker_overview/components/NutrientsBar.kt | unknown_repo | kotlin | package com.example.tracker_presentation.tracker_overview.components
import androidx.compose.animation.core.Animatable
import androidx.compose.foundation.Canvas
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compo... |
app/src/main/java/com/davidferrand/confinemap/model/PrefDelegates.kt | unknown_repo | kotlin | package com.davidferrand.confinemap.model
import android.content.SharedPreferences
import com.google.android.gms.maps.model.LatLng
import kotlin.properties.ReadWriteProperty
import kotlin.reflect.KProperty
class BooleanPref(private val prefs: SharedPreferences, private val key: String) :
ReadWriteProperty<Any, Bo... |
inspektor/src/commonMain/kotlin/com/gyanoba/inspektor/ui/components/Logo.kt | unknown_repo | kotlin | package com.gyanoba.inspektor.ui.components
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.size
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import com.gyanoba.inspektor.inspektor.generated.resources.Res
import com... |
app/src/main/java/com/marelso/schwe/components/button/ActionButtonComponent.kt | unknown_repo | kotlin | package com.marelso.designsystem.components.button
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import com.marelso.designsystem.components.button.data.ButtonAction
@Composable
fun ActionButtonComponent(
modifier: Modifier = Modifier,
action: ButtonAction,
) {
if (action.i... |
app/src/main/java/com/example/bitfit/HealthDao.kt | unknown_repo | kotlin | package com.example.bitfit
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
@Dao
interface HealthDao {
@Query("SELECT * FROM health")
fun getAll(): List<Health>
@Insert
fun insertAll(healths: List<Health>)
@Insert
fun insert(health: Health)
} |
app/composeapp/src/main/java/com/xanthenite/isining/composeapp/ui/activities/MainActivity.kt | unknown_repo | kotlin | package com.xanthenite.isining.composeapp.ui.activities
import android.os.Bundle
import android.view.WindowManager
import androidx.activity.compose.setContent
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.app.AppCompatDelegate
import androidx.compose.foundation.isSystemInDarkTheme
import an... |
app/src/main/java/com/niekam/smartmeter/data/db/meter/MeterRepo.kt | unknown_repo | kotlin | package com.niekam.smartmeter.data.db.meter
import androidx.lifecycle.LiveData
import com.niekam.smartmeter.data.model.Measurement
import com.niekam.smartmeter.data.model.Meter
import com.niekam.smartmeter.data.model.MeterWithMeasurements
class MeterRepo(private val meterDao: MeterDao) {
fun getAll(): LiveData<L... |
app/src/main/java/com/niekam/smartmeter/data/db/meter/MeterRepo.kt | unknown_repo | kotlin | package com.niekam.smartmeter.data.db.meter
import androidx.lifecycle.LiveData
import com.niekam.smartmeter.data.model.Measurement
import com.niekam.smartmeter.data.model.Meter
import com.niekam.smartmeter.data.model.MeterWithMeasurements
class MeterRepo(private val meterDao: MeterDao) {
fun getAll(): LiveData<L... |
ui/src/main/java/com/theoplayer/android/ui/Modifiers.kt | unknown_repo | kotlin | package com.theoplayer.android.ui
import androidx.annotation.FloatRange
import androidx.compose.foundation.gestures.awaitFirstDown
import androidx.compose.foundation.gestures.detectTapGestures
import androidx.compose.foundation.gestures.waitForUpOrCancellation
import androidx.compose.foundation.interaction.MutableInte... |
app/src/main/java/com/matthew/carvalhodagenais/modernaconverter/utils/NetworkConnectivityUtil.kt | unknown_repo | kotlin | package com.matthew.carvalhodagenais.modernaconverter.utils
import android.content.Context
import android.net.ConnectivityManager
import android.net.NetworkCapabilities
class NetworkConnectivityUtil {
/**
* Checks to see if the device can connect to Internet, Cellular Data, or Ethernet
*
* @param ... |
shaded/src/main/java/com/feresr/shaded/opengl/Context.kt | unknown_repo | kotlin | package com.feresr.shaded.opengl
import android.opengl.EGL14
import android.opengl.EGL14.EGL_NO_CONTEXT
import android.opengl.EGL14.EGL_NO_DISPLAY
import android.opengl.EGL14.EGL_NO_SURFACE
import android.opengl.EGLConfig
import android.opengl.EGLContext
import android.opengl.EGLDisplay
import android.opengl.EGLSurfac... |
server/src/main/kotlin/dev/pellet/server/PelletServer.kt | unknown_repo | kotlin | package dev.pellet.server
import dev.pellet.logging.pelletLogger
import dev.pellet.server.buffer.AlwaysAllocatingPelletBufferPool
import dev.pellet.server.buffer.PelletBufferPooling
import dev.pellet.server.codec.http.HTTPMessageCodec
import dev.pellet.server.codec.http.HTTPRequestMessage
import dev.pellet.server.metr... |
app/src/main/java/com/realitix/nectar/viewmodel/SettingsViewModel.kt | unknown_repo | kotlin | package com.realitix.nectar.viewmodel
import androidx.lifecycle.*
import com.realitix.nectar.database.entity.GitRepository
import com.realitix.nectar.repository.GitRepoRepository
import kotlinx.coroutines.launch
class SettingsViewModel constructor(val gitRepo: GitRepoRepository) : ViewModel() {
val gitRepositorie... |
app/src/main/java/com/kgurgul/cpuinfo/appinitializers/ThemeInitializer.kt | unknown_repo | kotlin | package com.kgurgul.cpuinfo.appinitializers
import android.app.Application
import android.content.SharedPreferences
import com.kgurgul.cpuinfo.utils.ThemeHelper
import javax.inject.Inject
/**
* Apply theme on app start
*
* @author kgurgul
*/
class ThemeInitializer @Inject constructor(
private val sharedPr... |
app/src/test/kotlin/com/adesso/movee/data/remote/datasource/MovieRemoteDataSourceTest.kt | unknown_repo | kotlin | package com.adesso.movee.data.remote.datasource
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import com.adesso.movee.data.remote.api.MovieService
import com.adesso.movee.data.remote.model.movie.MovieDetailResponseModel
import com.adesso.movee.data.remote.model.movie.MovieGenreItemResponseModel
im... |
app/src/main/java/me/echeung/systeminfodumper/data/AuthenticatorUtil.kt | unknown_repo | kotlin | package me.echeung.systeminfodumper.data
import android.app.KeyguardManager
import android.content.Context
import android.os.Build
import androidx.biometric.BiometricManager
import androidx.biometric.BiometricManager.Authenticators
import androidx.core.content.getSystemService
object AuthenticatorUtil {
fun getI... |
vector/src/main/java/varta/cdac/app/features/roommemberprofile/RoomMemberProfileActivity.kt | unknown_repo | kotlin | /*
* Copyright 2020 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 to i... |
app/src/main/java/com/frafio/myfinance/ui/home/payments/PaymentsFragment.kt | unknown_repo | kotlin | package com.frafio.myfinance.ui.home.payments
import android.app.Activity.RESULT_OK
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.activity.result.ActivityResultLauncher
import androidx.activity.result.con... |
app/web/src/jsMain/kotlin/dev/reprator/khatabook/web/Application.kt | unknown_repo | kotlin | package dev.reprator.khatabook.web
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.CompositionLocalProvider
import com.arkivanov.essenty.lifecycle.LifecycleRegistry
import dev.reprator.khatabook.expect.appInitKoin
import dev.reprator.khatabook.screens.home.HomeScreen
import dev.reprator... |
app/src/main/java/com/hongwei/remember_the_milk_api_sample/MyApplication.kt | unknown_repo | kotlin | package com.hongwei.remember_the_milk_api_sample
import android.app.Application
import com.hongwei.remember_the_milk_api_sample.injection.component.ApplicationComponent
import com.hongwei.remember_the_milk_api_sample.injection.component.DaggerApplicationComponent
import com.hongwei.remember_the_milk_api_sample.injecti... |
app/src/main/java/com/example/newscast/utils/glide/GlideAppExtensions.kt | unknown_repo | kotlin | package com.example.newscast.utils.glide
import android.app.Activity
import android.content.Context
import android.graphics.drawable.Drawable
import android.widget.ImageView
import com.bumptech.glide.request.RequestListener
import com.bumptech.glide.request.RequestOptions
const val MINI_THUMB_SIZE: Int = 500
fun <T>... |
sampleapp/src/main/java/com/kirkbushman/sampleapp/activities/TagsActivity.kt | unknown_repo | kotlin | package com.kirkbushman.sampleapp.activities
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.kirkbushman.sampleapp.R
import com.kirkbushman.sampleapp.SampleApplication
import com.kirkbushman.sampleapp.controllers.OnClickCallback
import com.kirkbushman.sampleapp.controllers.TagsContr... |
app/src/main/java/com/example/petstate/petowner/post/User.kt | unknown_repo | kotlin | package com.example.petstate.petowner.post
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
class User{
lateinit var name:String
lateinit var email:String
lateinit var type :String
//Default constructor required for calls to
//DataSnapshot.getValue(User.class)
constru... |
samples/kaspresso-sample/src/main/kotlin/com/kaspersky/kaspressample/docloc/FragmentTestActivity.kt | unknown_repo | kotlin | package com.kaspersky.kaspressample.docloc
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
class FragmentTestActivity : AppCompatActivity() {
fun setFragment(fragment: Fragment) =
with(supportFragmentManager.beginTransaction()) {
replace(android.R.id.cont... |
bind/src/main/java/com/kotlin/android/bind/item/ItemViewDelegate.kt | unknown_repo | kotlin | package com.kotlin.android.bind.item
import android.content.Context
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import androidx.recyclerview.widget.RecyclerView.ViewHolder
import com.kotlin.android.bind.adapter.MultiTypeAdapter
/**
* Item视图绑定代理
*
* Created on 2021/7/5.
*
* @aut... |
app/src/main/java/com/example/mylotteryapp/screens/DialogoPremio.kt | unknown_repo | kotlin | package com.example.mylotteryapp.screens.firstScreen
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.slideInVertically
import androidx.compose.animation.slideOutVertically
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
impor... |
app/src/main/java/ch/ost/gartenzwergli/ui/crops/cropDetail/CropDetailActivity.kt | unknown_repo | kotlin | package ch.ost.gartenzwergli.ui.crops.cropDetail
import android.content.Intent
import android.graphics.BitmapFactory
import android.os.Bundle
import android.view.MenuItem
import android.widget.Button
import android.widget.ImageView
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import c... |
tabler-icons/src/commonMain/kotlin/compose/icons/tablericons/School.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
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
im... |
app/src/main/java/com/example/buzzwiseapp/ui/auth/RegisterActivity.kt | unknown_repo | kotlin | package com.example.buzzwiseapp.ui.auth
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.example.buzzwiseapp.databinding.ActivityRegisterBinding
class RegisterActivity : AppCompatActivity() {
private lateinit var binding: ActivityRegisterBinding
... |
app/src/main/java/com/example/androiddevchallenge/ui/puppy/PuppyDetail.kt | unknown_repo | kotlin | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
Android/brightcove-player-plugin/src/main/java/com/applicaster/player/plugins/brightcove/analytics/ErrorHandlingAnalyticsAdapter.kt | unknown_repo | kotlin | package com.applicaster.player.plugins.brightcove.analytics
import android.util.Log
import com.applicaster.analytics.AnalyticsAgentUtil
import com.applicaster.atom.model.APAtomEntry
import com.applicaster.plugin_manager.playersmanager.Playable
import com.brightcove.ima.GoogleIMAEventType
import com.brightcove.player.e... |
android/engine/src/main/java/org/smartregister/fhircore/engine/ui/components/Separator.kt | unknown_repo | kotlin | /*
* Copyright 2021 Ona Systems, 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 agr... |
sample/src/androidMain/kotlin/io/github/landrynorris/sample/MainActivity.kt | unknown_repo | kotlin | package io.github.landrynorris.sample
import android.os.Bundle
import androidx.activity.compose.setContent
import androidx.appcompat.app.AppCompatActivity
import com.arkivanov.decompose.defaultComponentContext
import io.github.landrynorris.sample.components.DeviceListComponent
import io.github.landrynorris.sample.ui.S... |
app/src/main/java/com/dinhlam/sharebox/ui/comment/CommentViewModel.kt | unknown_repo | kotlin | package com.dinhlam.sharebox.ui.comment
import androidx.lifecycle.SavedStateHandle
import com.dinhlam.sharebox.R
import com.dinhlam.sharebox.base.BaseViewModel
import com.dinhlam.sharebox.common.AppExtras
import com.dinhlam.sharebox.data.repository.CommentRepository
import com.dinhlam.sharebox.data.repository.Realtime... |
app/src/main/java/com/randoms/ai_assistant/MainActivity.kt | unknown_repo | kotlin | package com.randoms.ai_assistant
import android.content.Intent
import androidx.lifecycle.lifecycleScope
import com.randoms.ai_assistant.base.BindAbleActivity
import com.randoms.ai_assistant.databinding.ActivityMainBinding
import com.randoms.ai_assistant.extensions.executeAfterDelay
/**
* Responsible for displaying s... |
app/src/main/java/com/coder/ffmpegtest/ui/MainActivity.kt | unknown_repo | kotlin | package com.coder.ffmpegtest.ui
import android.annotation.SuppressLint
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.view.View
import android.widget.Button
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import com.coder.ffmpegtest.R
import... |
Motocitizen/src/motocitizen/ui/rows/history/HistoryRow.kt | unknown_repo | kotlin | package motocitizen.ui.rows.history
import android.content.Context
import android.graphics.Color
import android.util.AttributeSet
import android.widget.LinearLayout
import motocitizen.content.history.History
import motocitizen.user.User
import motocitizen.utils.dateTimeString
import motocitizen.utils.name
import org.j... |
app/src/main/java/com/rohitthebest/manageyourrenters/database/model/RenterPayment.kt | unknown_repo | kotlin | package com.rohitthebest.manageyourrenters.database.model
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.rohitthebest.manageyourrenters.data.RenterBillPeriodInfo
import com.rohitthebest.manageyourrenters.data.RenterElectricityBillInfo
import com.rohitthebest.manageyourrenters.data.RenterPayment... |
app/src/main/java/com/example/AryaPutraRahmaIsmulyono/Home.kt | unknown_repo | kotlin | package com.example.AryaPutraRahmaIsmulyono
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.navigation.fragment.findNavController
import com.example.AryaPutraRahmaIsmulyono.databinding.FragmentHomeB... |
app/src/main/java/de/bauerapps/resimulate/adapters/ScenarioOverviewAdapter.kt | unknown_repo | kotlin | package de.bauerapps.resimulate.adapters
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import cn.pedant.SweetAlert.SweetAlertDialog
import de.bauerapps.resimulate.PType
import de.bauerapps.resimulate.Pathology
import de.bauera... |
android-app/WebCubeManager/app/src/main/java/andrew/webcubemanager/WcmWidget.kt | unknown_repo | kotlin | package andrew.webcubemanager
import android.app.PendingIntent
import android.appwidget.AppWidgetManager
import android.appwidget.AppWidgetProvider
import android.content.ComponentName
import android.content.Context
import android.content.Intent
import android.widget.RemoteViews
import android.widget.Toast
import java... |
app/src/main/java/com/eyther/lumbridge/ui/common/composables/components/buttons/ChoiceTab.kt | unknown_repo | kotlin | package com.eyther.lumbridge.ui.common.composables.components.buttons
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundati... |
floattextlibrary/src/main/java/com/linwei/floattextlibrary/FloatTextView.kt | unknown_repo | kotlin | package com.linwei.floattextlibrary
import android.content.Context
import android.content.res.TypedArray
import android.graphics.Paint
import android.graphics.Typeface
import android.graphics.drawable.Drawable
import android.text.TextUtils
import android.util.AttributeSet
import android.view.Gravity
import android.vie... |
shared/src/test/java/com/google/samples/apps/adssched/shared/domain/users/StarEventUseCaseTest.kt | unknown_repo | kotlin | /*
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
android-animated-stick-view/src/main/java/at/steinbacher/android_animated_stick_view/Circle.kt | unknown_repo | kotlin | package at.steinbacher.android_animated_stick_view
import android.graphics.Paint
import android.graphics.PointF
import org.json.JSONObject
class Circle(var middlePoint: PointF, var radius: Float, paint: Paint, tag: String): Simple(paint, tag) {
companion object {
fun fromJson(jsonObject: JSONObject): Cir... |
app/src/main/java/com/example/fitfinder/viewmodel/ViewModelFactory.kt | unknown_repo | kotlin | package com.example.fitfinder.viewmodel
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.example.fitfinder.data.repository.BaseRepository
import com.example.fitfinder.data.repository.auth.AuthRepository
import com.example.fitfinder.data.repository.calendar.CalendarCreateEventR... |
app/src/main/java/org/wikipedia/readinglist/database/ReadingListTable.kt | unknown_repo | kotlin | package org.wikipedia.readinglist.database
import android.content.ContentValues
import android.database.Cursor
import org.wikipedia.database.DatabaseTable
import org.wikipedia.database.column.Column
import org.wikipedia.database.contract.ReadingListContract
class ReadingListTable : DatabaseTable<ReadingList>(ReadingL... |
codebase/android/core/ui/src/main/java/com/makeappssimple/abhimanyu/financemanager/android/core/ui/component/action/ActionUI.kt | unknown_repo | kotlin | package com.makeappssimple.abhimanyu.financemanager.android.core.ui.component.action
import androidx.annotation.StringRes
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
... |
app/src/main/java/io/gitlab/andraantariksa/letseat/FoodActivity.kt | unknown_repo | kotlin | package io.gitlab.andraantariksa.letseat
import android.os.Bundle
import android.util.Log
import android.widget.ImageView
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import com.bumptech.glide.Glide
import com.bumptech.glide.request.RequestOptions
class FoodActivity : AppCompatActivi... |
app/src/main/java/com/idleoffice/harvesthelper/di/modules/database/DatabaseModule.kt | unknown_repo | kotlin | package com.idleoffice.harvesthelper.di.modules.database
import android.app.Application
import androidx.room.Room
import com.idleoffice.harvesthelper.model.AppDatabase
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton... |
sdk/src/test/java/com/exponea/sdk/manager/FetchManagerTest.kt | unknown_repo | kotlin | package com.exponea.sdk.manager
import android.os.Build
import com.exponea.sdk.models.CustomerIds
import com.exponea.sdk.models.CustomerRecommendationOptions
import com.exponea.sdk.models.CustomerRecommendationRequest
import com.exponea.sdk.models.ExponeaProject
import com.exponea.sdk.testutil.ExponeaMockServer
import... |
app/src/main/java/com/github/onotoliy/opposite/treasure/ui/DepositPageScreen.kt | unknown_repo | kotlin | package com.github.onotoliy.opposite.treasure.ui
import androidx.compose.Composable
import androidx.compose.state
import androidx.ui.foundation.Text
import androidx.ui.foundation.VerticalScroller
import androidx.ui.layout.Column
import androidx.ui.tooling.preview.Preview
import com.github.onotoliy.opposite.treasure.Sc... |
zendesk_sdk_demo/app/src/main/java/com/example/zendesk_sdk_demo/MainActivity.kt | unknown_repo | kotlin | package com.example.zendesk_sdk_demo
import android.annotation.SuppressLint
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import android.widget.Button
import androidx.appcompat.app.AppCompatActivity
import androidx.coordinatorlayout.widget.CoordinatorLayout
import androidx.core.view.Wi... |
data/src/main/java/dev/zwander/cellreader/data/data/GraphInfo.kt | unknown_repo | kotlin | package dev.zwander.cellreader.data.data
import kotlinx.coroutines.flow.MutableStateFlow
import java.util.TreeMap
data class GraphInfo(
val subId: Int,
val lines: MutableStateFlow<MutableMap<String, GraphLineInfo>> = MutableStateFlow(TreeMap())
) |
app/src/main/java/de/moritzruth/jamrss/Graph.kt | unknown_repo | kotlin | package de.moritzruth.jamrss
import android.content.Context
import androidx.datastore.preferences.core.PreferenceDataStoreFactory
import androidx.datastore.preferences.preferencesDataStoreFile
import androidx.room.Room
import de.moritzruth.jamrss.data.Feed
import de.moritzruth.jamrss.data.room.AppDatabase
import kotli... |
kotstep/src/main/java/com/binayshaw7777/kotstep/components/VerticalIconStep.kt | unknown_repo | kotlin | package com.binayshaw7777.kotstep.components
import androidx.compose.animation.animateColor
import androidx.compose.animation.core.updateTransition
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.size
import androidx.compose.founda... |
kotstep/src/main/java/com/binayshaw7777/kotstep/components/VerticalIconStep.kt | unknown_repo | kotlin | package com.binayshaw7777.kotstep.components
import androidx.compose.animation.animateColor
import androidx.compose.animation.core.updateTransition
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.size
import androidx.compose.founda... |
litho-rendercore-mountables/mountable-utils/src/main/java/com/facebook/mountable/utils/types/LineJoin.kt | unknown_repo | kotlin | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* 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 appl... |
presentation/src/main/java/pe/andres/bairesdev/ui/home/events/presenter/EventsPresenterImpl.kt | unknown_repo | kotlin | package pe.andres.bairesdev.ui.home.events.presenter
import android.util.Log
import pe.andres.bairesdev.domain.dtos.EventDTO
import pe.andres.bairesdev.domain.dtos.EventsRequestDTO
import pe.andres.bairesdev.domain.observer.BaseObserver
import pe.andres.bairesdev.domain.usecases.EventsUseCase
import pe.andres.bairesde... |
app/src/main/java/com/stock/sns/zuzuclub_android/util/CustomScroll.kt | unknown_repo | kotlin | package com.stock.sns.zuzuclub_android.util
import android.util.Log
import androidx.recyclerview.widget.RecyclerView
class CustomScroll(private val listener:onLoadMore):RecyclerView.OnScrollListener(){
var loading=false
//1->bottom, -1->top
override fun onScrollStateChanged(recyclerView: RecyclerView, ne... |
data/src/main/java/info/moevm/se/data/local/converters/TypeConverter.kt | unknown_repo | kotlin | package info.moevm.se.data.local.converters
import androidx.room.TypeConverter
import info.moevm.se.domain.entities.ItemTypes
import java.lang.IllegalArgumentException
object TypeConverter {
@TypeConverter
fun from(property: ItemTypes): Int = property.code
@TypeConverter
fun to(code: Int): ItemTypes ... |
paymentsheet/src/main/java/com/stripe/android/customersheet/injection/CustomerSheetComponent.kt | unknown_repo | kotlin | package com.stripe.android.customersheet.injection
import androidx.activity.result.ActivityResultRegistryOwner
import androidx.lifecycle.LifecycleOwner
import com.stripe.android.customersheet.CustomerSheet
import com.stripe.android.customersheet.ExperimentalCustomerSheetApi
import dagger.BindsInstance
import dagger.Su... |
data/src/main/java/app/tivi/data/repositories/shows/ShowRepositoryImpl.kt | unknown_repo | kotlin | /*
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... |
Local_Login/app/src/main/java/com/bsww201/localtoken/localtoken/MainActivity.kt | unknown_repo | kotlin | package com.bsww201.localtoken.localtoken
import android.content.Intent
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.Toast
import kotlinx.android.synthetic.main.activity_main.*
import retrofit2.Call
import retrofit2.Callback
import retrofit2.Res... |
app/src/main/java/eu/kanade/presentation/reader/PageIndicatorText.kt | unknown_repo | kotlin | package eu.kanade.presentation.reader
import androidx.compose.foundation.layout.Box
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui... |
compose/ui/ui-test/src/androidAndroidTest/kotlin/androidx/compose/ui/test/assertions/BoundsAssertionsTest.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... |
tradition/src/main/java/com/mozhimen/taskk/provider/tradition/helpers/NetKApp.kt | unknown_repo | kotlin | //package com.mozhimen.netk.app
//
//import android.content.Context
//import android.content.pm.PackageInfo
//import com.mozhimen.kotlin.utilk.android.util.UtilKLogWrapper
//import androidx.annotation.AnyThread
//import androidx.lifecycle.ProcessLifecycleOwner
//import com.liulishuo.okdownload.core.breakpoint.IBreakpoi... |
app/src/main/java/com/shencoder/webrtcextensiondemo/App.kt | unknown_repo | kotlin | package com.shencoder.webrtcextensiondemo
import android.app.Application
import com.shencoder.mvvmkit.ext.globalInit
import com.shencoder.webrtcextensiondemo.di.appModule
import org.koin.android.java.KoinAndroidApplication
import org.koin.core.logger.Level
import org.webrtc.PeerConnectionFactory
/**
*
* @author Sh... |
app/src/main/java/io/horizontalsystems/bankwallet/modules/intro/IntroSlideFragment.kt | unknown_repo | kotlin | package io.horizontalsystems.bankwallet.modules.intro
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.fragment.app.Fragment
import io.horizontalsystems.bankwallet.R
import kotlinx.android.synthetic.ma... |
app/src/main/java/com/leandro/taskapp/ui/auth/DoingFragment.kt | unknown_repo | kotlin | package com.example.navigationsampleapp
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.example.navigationsampleapp.databinding.FragmentRulesBinding
class RulesFragment : Fragment() {
private var _... |
app/src/main/java/com/krm/tmdb/ui/fragments/tvshows/category/FragmentCategoryTv.kt | unknown_repo | kotlin | package com.krm.tmdb.ui.fragments.tvshows.category
import android.os.Bundle
import androidx.recyclerview.widget.GridLayoutManager
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.krm.tmdb.data.model.ObjectTv
import com.krm.tmdb.ui.activities.base.BaseFragment
import ... |
app/src/main/java/com/app/androidPixabay/ui/pixabay/list/PixabayListVM.kt | unknown_repo | kotlin | package com.app.androidPixabay.ui.pixabay.list
import androidx.lifecycle.LiveData
import androidx.lifecycle.Transformations
import androidx.paging.DataSource
import androidx.paging.LivePagedListBuilder
import androidx.paging.PagedList
import com.app.androidPixabay.commons.base.BaseViewModel
import com.app.androidPixab... |
font-awesome/src/commonMain/kotlin/compose/icons/fontawesomeicons/solid/Mouse.kt | unknown_repo | kotlin | package compose.icons.fontawesomeicons.solid
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.... |
app/src/main/java/com/androiddevs/lerun/ui/fragments/DetailRunFragment.kt | unknown_repo | kotlin | package com.androiddevs.lerun.ui.fragments
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.navArgs
import com.androiddevs.lerun.databinding.FragmentDetailRunBinding
import com.an... |
kotlin/src/main/java/app/rive/runtime/kotlin/RiveArtboardRenderer.kt | unknown_repo | kotlin | package app.rive.runtime.kotlin
import android.graphics.PointF
import android.graphics.RectF
import app.rive.runtime.kotlin.core.*
import app.rive.runtime.kotlin.renderers.RendererSkia
import java.util.*
enum class PointerEvents {
POINTER_DOWN, POINTER_UP, POINTER_MOVE
}
sealed class ResourceType() {
class ... |
app/src/main/java/com/ctd/cymanage/fragment/PaymentSituation.kt | unknown_repo | kotlin | package com.ctd.cymanage.fragment
import android.graphics.BitmapFactory
import android.graphics.Color
import android.graphics.DashPathEffect
import android.view.View
import androidx.core.content.ContextCompat
import com.ctd.cymanage.App
import com.ctd.cymanage.R
import com.ctd.cymanage.R.id.bt_search
import com.ctd.cy... |
app/src/main/java/com/example/todolistapp/TaskItemAdapter.kt | unknown_repo | kotlin | package com.example.todolistapp
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
// Tells the recycleview how to display the data we provide to the todo app
class TaskItem... |
app/src/main/java/com/abast/homebot/views/QuickActionButton.kt | unknown_repo | kotlin | package com.abast.homebot.views
import android.content.Context
import android.graphics.Canvas
import android.util.AttributeSet
import android.util.TypedValue
import android.view.View
import com.abast.homebot.actions.HomeAction
import kotlin.math.min
import kotlin.math.roundToInt
class QuickActionButton : View {
c... |
frontend/kobweb-core/src/jsMain/kotlin/com/varabyte/kobweb/navigation/Router.kt | unknown_repo | kotlin | package com.varabyte.kobweb.navigation
import androidx.compose.runtime.*
import com.varabyte.kobweb.core.PageContext
import kotlinx.browser.document
import kotlinx.browser.window
import org.w3c.dom.url.URL
/** How to affect the current history when navigating to a new location */
enum class UpdateHistoryMode {
/*... |
app/src/main/java/com/suda/yzune/wakeupschedule/schedule_import/parser/Parser.kt | unknown_repo | kotlin | package com.suda.yzune.wakeupschedule.schedule_import.parser
import android.content.Context
import com.suda.yzune.wakeupschedule.bean.CourseBaseBean
import com.suda.yzune.wakeupschedule.bean.CourseDetailBean
import com.suda.yzune.wakeupschedule.schedule_import.Common
import com.suda.yzune.wakeupschedule.schedule_impor... |
app/src/main/java/br/edu/ufrn/coachesclub/StartupActivity.kt | unknown_repo | kotlin | package br.edu.ufrn.coachesclub
import android.content.Intent
import android.os.Bundle
import android.view.View
import android.widget.Button
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import br.edu.ufrn.coachesclub.data.InviteKey
import com.google.android.material.textfield.TextInpu... |
kellocharts-sample/src/main/java/co/csadev/kellocharts/sample/BubbleChartActivity.kt | unknown_repo | kotlin | package co.csadev.kellocharts.sample
import android.os.Bundle
import android.view.*
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import co.csadev.kellocharts.gesture.ZoomType
import co.csadev.kellocharts.listener.BubbleChartOnValueSelectListener
impo... |
app/src/main/java/com/Lambda/rv_camping/util/Extensions.kt | unknown_repo | kotlin | package com.Lambda.rv_camping.util
import android.content.Context
import android.view.View
import android.widget.Toast
import com.Lambda.rv_camping.model.Properties
fun Context.toastRegister(message: String){
Toast.makeText(this,"Welcome $message", Toast.LENGTH_SHORT).show()
}
fun Context.toast(message: String){... |
app/src/main/kotlin/net/primal/android/messages/repository/MessageRepository.kt | unknown_repo | kotlin | package net.primal.android.messages.repository
import androidx.paging.ExperimentalPagingApi
import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.PagingSource
import androidx.room.withTransaction
import javax.inject.Inject
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutine... |
BarcodeScanning/src/main/java/cn/mtjsoft/barcodescanning/view/CustomGestureDetectorView.kt | unknown_repo | kotlin | package cn.mtjsoft.barcodescanning.view
import android.content.Context
import android.util.AttributeSet
import android.util.Log
import android.view.GestureDetector
import android.view.MotionEvent
import android.widget.FrameLayout
import android.widget.ImageView
import cn.mtjsoft.barcodescanning.R
import cn.mtjsoft.bar... |
app/src/main/java/com/maiconhellmann/architecture/view/main/SeriesFragment.kt | unknown_repo | kotlin | package com.maiconhellmann.architecture.view.main
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.maiconhellmann.architecture.R
import com.maiconhellmann.architecture.misc.ext.gone
import com.maiconhellmann.architecture.misc.ext.observe
impo... |
libraries/rib-recyclerview/src/main/java/com/badoo/ribs/android/recyclerview/RecyclerViewHostInteractor.kt | unknown_repo | kotlin | package com.badoo.ribs.android.recyclerview
import android.os.Parcelable
import androidx.lifecycle.Lifecycle
import com.badoo.mvicore.android.lifecycle.createDestroy
import com.badoo.ribs.clienthelper.interactor.Interactor
import com.badoo.ribs.core.modality.BuildParams
import com.badoo.ribs.core.view.RibView
interna... |
presentation/src/main/kotlin/team/brave/devevent/android/presentation/MainActivity.kt | unknown_repo | kotlin | /*
* DevEvent-Android © 2022 Ji Sungbin. all rights reserved.
* DevEvent-Android license is under the MIT.
*
* [MainActivity.kt] created by Ji Sungbin on 22. 12. 7. 오후 9:30
*
* Please see: https://github.com/brave-people/Dev-Event-Android/blob/master/LICENSE
*/
package team.brave.devevent.android.presentation
... |
pedroLibrary/rtmp/src/main/java/com/pedro/rtmp/utils/AuthUtil.kt | unknown_repo | kotlin | package com.pedro.rtmp.utils
import android.util.Base64
import java.io.UnsupportedEncodingException
import java.security.MessageDigest
import java.security.NoSuchAlgorithmException
import java.util.*
/**
* Created by pedro on 27/04/21.
*/
object AuthUtil {
fun getAdobeAuthUserResult(user: String, password: Strin... |
android/src/main/kotlin/com/gdelataillade/alarm/alarm/AlarmPlugin.kt | unknown_repo | kotlin | package com.gdelataillade.alarm.alarm
import com.gdelataillade.alarm.services.NotificationOnKillService
import android.os.Build
import android.os.Handler
import android.os.Looper
import android.app.AlarmManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import androi... |
src/main/kotlin/ui/AppRow.kt | unknown_repo | kotlin | package ui
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.*
import androidx.compose.runtime.*
im... |
app/src/main/java/com/example/midtermgame/GameViewModel.kt | unknown_repo | kotlin | package com.example.midtermgame
import android.util.Log
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
class GameViewModel : ViewModel() {
private val _nameLiveData = MutableLiveData<String>()
val nameLiveData: LiveData<String>
get() =... |
main/src/main/kotlin/us/wedemy/eggeum/android/main/viewmodel/InquiryViewModel.kt | unknown_repo | kotlin | /*
* Designed and developed by Wedemy 2023.
*
* Licensed under the MIT.
* Please see full license: https://github.com/Wedemy/eggeum-android/blob/main/LICENSE
*/
package us.wedemy.eggeum.android.main.viewmodel
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle... |
app/src/main/java/com/romandevyatov/bestfinance/ui/fragments/add/group/AddIncomeGroupFragment.kt | unknown_repo | kotlin | package com.romandevyatov.bestfinance.ui.fragments.add.group
import android.app.Dialog
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import android.view.LayoutInflater
import androi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.