file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/me/impa/knockonports/App.kt | unknown_repo | kotlin | /*
* Copyright (c) 2018 <NAME>
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Vers... |
features/analytics/impl/src/main/java/ru/aleshin/features/analytics/impl/presenatiton/theme/tokens/AnalyticsStrings.kt | unknown_repo | kotlin | /*
* Copyright 2023 Stanislav Aleshin
*
* 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... |
app/src/main/java/de/uriegel/superfit/ui/MainActivity.kt | unknown_repo | kotlin | package de.uriegel.superfit.ui
import android.Manifest
import android.content.Context
import android.os.Build
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.MaterialT... |
app/src/main/java/org/stepic/droid/store/InitialDownloadUpdater.kt | unknown_repo | kotlin | package org.stepic.droid.store
import android.app.DownloadManager
import android.support.annotation.WorkerThread
import org.stepic.droid.model.DownloadEntity
import org.stepic.droid.store.operations.DatabaseFacade
import java.util.concurrent.ThreadPoolExecutor
import javax.inject.Singleton
@Singleton
class InitialDow... |
app/src/main/java/com/noad/phoneinfo/fragments/InfoRowItem.kt | unknown_repo | kotlin | package com.noad.phoneinfo.fragments
import androidx.annotation.StringRes
data class InfoRowItem(
@StringRes val keyRes: Int,
val value: String
) |
app/src/androidTest/java/com/sergiolopez/mobileweather/MobileWeatherActivityFailureTest.kt | unknown_repo | kotlin | package com.sergiolopez.mobileweather
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMatchers
import androidx.test.espresso.matcher.ViewMatchers.wit... |
server/src/main/java/com/pyamsoft/tetherfi/server/prereq/vpn/VpnChecker.kt | unknown_repo | kotlin | package com.pyamsoft.tetherfi.server.prereq.vpn
import androidx.annotation.CheckResult
interface VpnChecker {
@CheckResult suspend fun isUsingVpn(): Boolean
}
|
src/jvmMain/kotlin/com/sdercolin/vlabeler/ui/dialog/updater/UpdaterDialogState.kt | unknown_repo | kotlin | package com.sdercolin.vlabeler.ui.dialog.updater
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.AnnotatedString
import a... |
sample/src/main/kotlin/com/airbnb/lottie/samples/SnapshotTestActivity.kt | unknown_repo | kotlin | package com.airbnb.lottie.samples
import androidx.appcompat.app.AppCompatActivity
import com.airbnb.lottie.samples.databinding.SnapshotTestsActivityBinding
import com.airbnb.lottie.samples.utils.viewBinding
class SnapshotTestActivity : AppCompatActivity() {
private val binding: SnapshotTestsActivityBinding by vie... |
app/src/main/java/com/example/beerdiary/BeerModel.kt | unknown_repo | kotlin | package com.example.beerdiary
import android.app.Application
import android.util.Log
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MediatorLiveData
class BeerModel(application: Application) : AndroidViewModel(application) {
private val beersDB = BeerDB.ge... |
modules/toolbar/src/main/java/com/project/toolbar/ToolBar.kt | unknown_repo | kotlin | package com.project.toolbar
import android.os.Bundle
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.material.*
import androidx.compose.material.MaterialTheme.colors
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
imp... |
log/src/main/java/android/log/LogFragment.kt | unknown_repo | kotlin | package android.log
import android.content.Intent
import androidx.annotation.ContentView
abstract class LogFragment : androidx.fragment.app.Fragment {
constructor() : super()
@ContentView
constructor(contentLayoutId: Int) : super(contentLayoutId)
override fun onActivityResult(requestCode: Int, resul... |
app/src/main/java/com/wjv/szukumon/access/mailbox/MailBoxViewModel.kt | unknown_repo | kotlin | package com.wjv.szukumon.access.mailbox
import androidx.lifecycle.ViewModel
class MailBoxViewModel : ViewModel() {
// TODO: Implement the ViewModel
} |
app/src/main/java/com/arrazyfathan/nytimes/presentation/bookmark/BookmarkViewModel.kt | unknown_repo | kotlin | package com.arrazyfathan.nytimes.presentation.bookmark
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.arrazyfathan.nytimes.core.domain.model.Article
import com.arrazyfathan.nytimes.core.domain.usecase.TopStoriesUseCase
import dagger.hilt.android.lifecycle.HiltViewModel
import k... |
client/src/main/java/com/example/client/android/content_provider/AndroidContentProviderMainActivity.kt | unknown_repo | kotlin | package com.example.client.android.content_provider
import android.content.ContentUris
import android.net.Uri
import android.os.Bundle
import android.widget.Toast
import com.example.client.R
import com.example.client._base.BaseActivity
import kotlinx.android.synthetic.main.activity_android_content_provider.*
class An... |
spinnerlibrary/src/main/java/com/sugarya/footer/SpinnerDateFooter.kt | unknown_repo | kotlin | package com.sugarya.footer
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.view.View
import com.bigkoo.pickerview.builder.TimePickerBuilder
import com.sugarya.footer.base.BaseSpinnerFooter
import com.sugarya.footer.interfaces.FooterMode
import com.sugar... |
app/src/main/java/com/example/chronos/ui/theme/Color.kt | unknown_repo | kotlin | package com.example.chronos.ui.theme
import androidx.compose.ui.graphics.Color
val Navy500 = Color(0xFF2B3A51)
val Navy700 = Color(0xFF1A2331)
val Purple200 = Color(0xFF6E819D)
val Purple500 = Color(0xFF7B61FF)
val Red200 = Color(0xFFF44669)
val Red500 = Color(0xFF984267)
val White200 = Color(0xFFF9F9F9)
val White500... |
app/src/main/kotlin/cn/wj/android/cashbook/ui/asset/dialog/SelectAssetClassificationDialog.kt | unknown_repo | kotlin | package cn.wj.android.cashbook.ui.asset.dialog
import android.view.Gravity
import android.view.WindowManager
import androidx.recyclerview.widget.ConcatAdapter
import cn.wj.android.cashbook.R
import cn.wj.android.cashbook.base.ext.base.tag
import cn.wj.android.cashbook.base.ui.BaseDialog
import cn.wj.android.cashbook.d... |
app/src/main/kotlin/at/droiddave/marcopolotrash/MainActivity.kt | unknown_repo | kotlin | package at.droiddave.marcopolotrash
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
CurrentStatusActivity.start(this)
finish()
}... |
card/src/test/java/com/airwallex/android/card/CardComponentProviderTest.kt | unknown_repo | kotlin | package com.airwallex.android.card
import android.app.Activity
import android.content.Context
import com.airwallex.android.core.*
import com.airwallex.android.core.model.AvailablePaymentMethodType
import com.airwallex.android.core.model.NextAction
import com.airwallex.android.core.model.Page
import com.airwallex.andro... |
client/data/src/main/java/com/healthc/data/model/local/detection/ObjectDetectionResult.kt | unknown_repo | kotlin | package com.healthc.data.model.local.detection
import android.graphics.Rect
data class ObjectDetectionResult (
val classIndex: Int,
val score: Float,
val rect: Rect
) {
fun compareTo(other: ObjectDetectionResult): Int {
return this.score.compareTo(other.score)
}
} |
compiler/ir/ir.psi2ir/src/org/jetbrains/kotlin/psi2ir/generators/ClassGenerator.kt | unknown_repo | kotlin | /*
* Copyright 2010-2016 JetBrains s.r.o.
*
* 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... |
yroute/src/main/java/indi/yume/tools/yroute/StackRoute.kt | unknown_repo | kotlin | package indi.yume.tools.yroute
import android.annotation.TargetApi
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.transition.ChangeBounds
import android.transition.ChangeTransform
import android.transition.Transit... |
app/src/main/java/com/furqonr/opencall/ui/theme/Theme.kt | unknown_repo | kotlin | package com.furqonr.opencall.ui.theme
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material.MaterialTheme
import androidx.compose.material.darkColors
import androidx.compose.material.lightColors
import androidx.compose.runtime.Composable
private val DarkColorPalette = darkColors(
... |
app/src/main/kotlin/suhockii/dev/bookfinder/presentation/categories/adapter/CategoriesDiffer.kt | unknown_repo | kotlin | package suhockii.dev.bookfinder.presentation.categories.adapter
import android.support.v7.recyclerview.extensions.AsyncListDiffer
import suhockii.dev.bookfinder.domain.model.Category
import javax.inject.Inject
class CategoriesDiffer @Inject constructor() {
private lateinit var value: AsyncListDiffer<Category>
... |
library/src/main/java/androidx/viewpager2/adapter/FragmentStateMultiTypes.kt | unknown_repo | kotlin | package androidx.viewpager2.adapter
import androidx.annotation.CallSuper
import androidx.recyclerview.widget.RecyclerView
import com.drakeet.multitype.ItemViewDelegate
import com.drakeet.multitype.MultiTypeAdapter
import com.drakeet.multitype.MutableTypes
import com.drakeet.multitype.Type
import kotlin.reflect.KMutabl... |
app/src/main/java/ru/tech/imageresizershrinker/main_screen/MainActivity.kt | unknown_repo | kotlin | package ru.tech.imageresizershrinker.main_screen
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.BackHandler
import androidx.activity.viewModels
import androidx.compose.animation.*
i... |
app/src/main/java/com/veroanggra/dessertlicious/ui/ItemTopMenu.kt | unknown_repo | kotlin | package com.veroanggra.dessertlicious.ui
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.CircleS... |
api/src/main/java/hexlay/movyeah/api/database/converters/CategoryConverter.kt | unknown_repo | kotlin | package hexlay.movyeah.api.database.converters
import androidx.room.TypeConverter
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import hexlay.movyeah.api.models.attributes.Category
object CategoryConverter {
@TypeConverter
@JvmStatic
fun fromString(value: String): List<Category> {
... |
uilib/src/main/java/dev/entao/kan/util/app/YetVersion.kt | unknown_repo | kotlin | @file:Suppress("unused")
package dev.entao.kan.util.app
import android.app.Activity
import androidx.annotation.Keep
import dev.entao.kan.appbase.App
import dev.entao.kan.appbase.Task
import dev.entao.kan.appbase.sql.MapTable
import dev.entao.kan.base.BasePage
import dev.entao.kan.base.Progress
import dev.entao.kan.ba... |
app/src/main/java/com/archaeology/helpers/LocationHelpers.kt | unknown_repo | kotlin | package com.archaeology.helpers
import android.Manifest
import android.annotation.SuppressLint
import android.app.Activity
import android.content.pm.PackageManager
import android.util.Log
import androidx.core.app.ActivityCompat
import com.google.android.gms.location.LocationRequest
val REQUEST_PERMISSIONS_REQUEST_COD... |
app/src/main/java/com/codepath/apps/restclienttemplate/TweetsAdapter.kt | unknown_repo | kotlin | package com.codepath.apps.restclienttemplate
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.codepath.apps.restclienttempl... |
app/src/main/java/org/simple/clinic/editpatient/ConfirmDiscardChangesDialog.kt | unknown_repo | kotlin | package org.simple.clinic.editpatient
import android.app.Dialog
import android.content.Context
import android.os.Bundle
import androidx.appcompat.app.AppCompatDialogFragment
import androidx.fragment.app.FragmentManager
import com.google.android.material.dialog.MaterialAlertDialogBuilder
import org.simple.clinic.R
impo... |
app/src/main/java/com/pandacorp/knowui/utils/topappbar/tokens/TopAppBarSmallTokens.kt | unknown_repo | kotlin | package com.pandacorp.knowui.utils.topappbar.tokens
import androidx.compose.ui.unit.dp
internal object TopAppBarSmallTokens {
val ContainerColor = ColorSchemeKeyTokens.Surface
val ContainerHeight = 64.0.dp
val HeadlineColor = ColorSchemeKeyTokens.OnSurface
val HeadlineFont = TypographyKeyTokens.TitleL... |
feature/wanandroid/pkg/src/main/java/com/open9527/wanandroid/pkg/cell/ProjectCell.kt | unknown_repo | kotlin | package com.open9527.wanandroid.pkg.cell
import android.text.TextUtils
import android.view.View
import androidx.databinding.ObservableField
import com.android.open9527.recycleview.adapter.BaseBindingCell
import com.android.open9527.recycleview.adapter.BaseBindingCellViewHolder
import com.blankj.utilcode.util.StringUti... |
app/src/main/java/id/muhariananda/notemarks/ui/common/BindingAdapter.kt | unknown_repo | kotlin | package com.example.plannerX.ui.note
import android.graphics.Color
import android.view.View
import android.widget.CheckBox
import android.widget.TextView
import androidx.cardview.widget.CardView
import androidx.core.content.ContextCompat
import androidx.databinding.BindingAdapter
import androidx.lifecycle.LiveData
imp... |
app/src/main/java/com/kudesta/bettergeeks/screens/ask_question/CodeTextView.kt | unknown_repo | kotlin | package com.example.bettergeeks.screens.ask_question
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.widget.FrameLayout
import com.example.bettergeeks.databinding.CodeTextViewBinding
class CodeTextView @JvmOverloads constructor(
context: Context, a... |
lbctheme/src/main/java/studio/lunabee/compose/theme/LbcThemeUtilities.kt | unknown_repo | kotlin | /*
* Copyright © 2022 Lunabee Studio
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
common-ui-list/file-system/src/main/java/com/storyteller_f/file_system/model/FileSystemItemModelLite.kt | unknown_repo | kotlin | package com.storyteller_f.file_system.model
import android.net.Uri
open class FileSystemItemModelLite(val name: String, val uri: Uri) {
val fullPath: String = uri.path!!
} |
android/app/src/main/java/cloud/multipos/pos/views/PosMenus.kt | unknown_repo | kotlin | /**
* Copyright (C) 2023 multiPOS, 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 ag... |
android/app/src/main/java/cloud/multipos/pos/views/PosMenus.kt | unknown_repo | kotlin | /**
* Copyright (C) 2023 multiPOS, 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 ag... |
android/app/src/main/kotlin/com/edugma/android/MainActivity.kt | unknown_repo | kotlin | package io.edugma.android
import android.content.res.Configuration
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.SystemBarStyle
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.runtime.DisposableEffect
import an... |
mobikulOC/src/main/java/webkul/opencart/mobikul/activity/ViewMoreActivity.kt | unknown_repo | kotlin | package webkul.opencart.mobikul.activity
import android.content.res.Resources
import android.databinding.DataBindingUtil
import android.os.Bundle
import android.support.v7.content.res.AppCompatResources
import android.support.v7.widget.GridLayoutManager
import android.support.v7.widget.LinearLayoutManager
import andro... |
cac7er/src/main/java/cac7er/Projector.kt | unknown_repo | kotlin | package cac7er
import kotlinx.coroutines.*
@Suppress("FunctionName")
fun <T> CoroutineScope.Projector(onStartToLoadLazyCache: () -> Unit = {},
onFailedToLoadLazyCache: (Exception) -> Unit = {},
onSetDeletedCache: (WeakCache<T>) -> Unit = {},
... |
app/src/main/java/com/cyberlogitec/freight9/lib/db/MarketIndexListDao.kt | unknown_repo | kotlin | package com.cyberlogitec.freight9.lib.db
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.cyberlogitec.freight9.lib.model.MarketIndexList
import io.reactivex.Single
@Dao
interface MarketIndexListDao {
@Query("SELECT * FROM market_... |
app/src/main/java/com/example/rocketjournal/viewmodel/MainViewModel.kt | unknown_repo | kotlin | package com.example.rocketjournal.viewmodel
// MainViewModel.kt
import androidx.lifecycle.ViewModel
import androidx.compose.runtime.mutableStateOf
class MainViewModel : ViewModel() {
val loginDialogState = mutableStateOf(false)
val signUpDialogState = mutableStateOf(false)
fun onLoginClick() {
lo... |
app/src/main/java/com/rickon/ximalayakotlin/adapter/CommonTrackAdapter.kt | unknown_repo | kotlin | package com.rickon.ximalayakotlin.adapter
import android.content.Context
import android.text.format.DateUtils
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import ... |
app/src/androidTest/java/tech/ascendio/mvvm/TestApp.kt | unknown_repo | kotlin | /*
* Copyright (C) 2018 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
app/src/main/java/com/io/gazette/news/sportsNews/SportsNewsFragment.kt | unknown_repo | kotlin | package com.io.gazette.news.sportsNews
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.CircularProgressIndicator
import... |
app/src/main/java/com/example/androiddevchallenge/ui/theme/Color.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... |
app/src/mock/kotlin/com/droibit/autoggler/data/repository/location/MockLocationRepository.kt | unknown_repo | kotlin | package com.droibit.autoggler.data.repository.location
import android.location.Location
import com.google.android.gms.common.api.CommonStatusCodes.*
import com.google.android.gms.common.api.Status
object MockLocationRepository {
class Success : LocationRepository {
override fun getCurrentLocation(maxLast... |
app/src/main/java/com/megaulorder/imananji/clock/analog/AnalogClockView.kt | unknown_repo | kotlin | package com.megaulorder.imananji.clock.analog
import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.graphics.PointF
import android.util.AttributeSet
import android.view.View
import com.megaulorder.imananji.R
import java.lang.StrictMath.... |
Firebase_android/app/src/main/java/allanksr/com/firebase/authentication/AuthenticationActivity.kt | unknown_repo | kotlin | package allanksr.com.firebase.authentication
import allanksr.com.firebase.R
import allanksr.com.firebase.authentication.mvpAnonymous.Anonymous
import allanksr.com.firebase.authentication.mvpEmail.Email
import allanksr.com.firebase.authentication.mvpFacebook.Facebook
import allanksr.com.firebase.authentication.mvpGithu... |
appcompat/appcompat-lint/src/main/kotlin/androidx/appcompat/app/SetActionBarDetector.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... |
app/src/main/java/br/com/luisfernandez/github/client/repolist/RepoListAdapter.kt | unknown_repo | kotlin | package br.com.luisfernandez.github.client.repolist
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import br.com.luisfernandez.github.client.OnItemClickListener
import br.com.luisfernandez.github.client.R
import br.com.luisfernand... |
app/src/main/java/co/kaush/msusf/movies/livedatatesting/TestObserver.kt | unknown_repo | kotlin | package co.kaush.msusf.movies.livedatatesting
import android.arch.lifecycle.LiveData
/**
* Credit - jraska on github
* Copied from [https://github.com/jraska/livedata-testing]
* Reason - The library on maven only supports AndroidX
*/
fun <T> LiveData<T>.test(): TestObserver<T> {
return TestObserver.test(this)
}... |
app/src/main/java/me/bakumon/moneykeeper/ui/common/BaseActivity.kt | unknown_repo | kotlin | /*
* Copyright 2018 Bakumon. https://github.com/Bakumon
*
* 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 appli... |
app/src/main/java/com/abdodaoud/merlin/ui/adapters/FactListAdapter.kt | unknown_repo | kotlin | package com.abdodaoud.merlin.ui.adapters
import android.content.Intent
import android.net.Uri
import android.support.customtabs.CustomTabsIntent
import android.support.v4.content.ContextCompat
import android.support.v7.app.AlertDialog
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.Rec... |
app/src/main/java/com/example/project1763/activity/CartActivity.kt | unknown_repo | kotlin | package com.example.project1763.activity
import android.os.Bundle
import android.view.View
import androidx.recyclerview.widget.LinearLayoutManager
import com.example.project1762.Helper.ChangeNumberItemsListener
import com.example.project1762.Helper.ManagmentCart
import com.example.project1763.Adapter.CartAdapter
impor... |
app/src/main/java/com/example/movies/ui/fragments/BookMarksFragment.kt | unknown_repo | kotlin | package com.example.movies.ui.fragments
import android.os.Bundle
import android.util.Log
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.viewModels
import androidx.lifecycle.Observer
import androidx.lifecycle.l... |
MediaPicker/app/src/main/java/jp/co/sgnet/mediaPicker/internal/utils/ExifInterfaceCompat.kt | unknown_repo | kotlin | package jp.co.sgnet.mediaPicker.internal.utils
import android.media.ExifInterface
import android.text.TextUtils
import android.util.Log
import java.io.IOException
import java.text.ParseException
import java.text.SimpleDateFormat
import java.util.*
class ExifInterfaceCompat {
private val TAG = ExifInterfaceCompat.... |
src/main/kotlin/io/embrace/android/intellij/plugin/repository/EmbracePluginRepository.kt | unknown_repo | kotlin | package io.embrace.android.intellij.plugin.repository
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.project.Project
import com.intellij.openapi.project.ProjectManager
import com.intellij.openapi.vfs.VirtualFileManager
import io.embrace.android.intellij.plugin.dataproviders.cal... |
app/src/main/java/com/github/mut/android/client/ui/EditConfigDialog.kt | unknown_repo | kotlin | package com.github.mut.android.client.ui
import android.app.Dialog
import android.os.Bundle
import android.widget.Toast
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.app.AppCompatDialogFragment
import com.github.mut.android.client.R
import com.github.mut.android.client.data.ConfigStore
import com... |
app/src/main/java/com/app/slidingup/BaseApplication.kt | unknown_repo | kotlin | package com.app.great_circle_distance
import android.app.Application
import com.app.di.injectFeature
import org.koin.android.ext.koin.androidContext
import org.koin.core.context.startKoin
import org.koin.core.context.stopKoin
class BaseApplication : Application() {
override fun onCreate() {
super.onCreat... |
app/src/main/kotlin/com/rayfantasy/icode/extension/_ViewGroup.kt | unknown_repo | kotlin | package com.rayfantasy.icode.extension
import android.view.ViewGroup
import org.jetbrains.anko.layoutInflater
public fun ViewGroup.inflate(layoutRes: Int, attachToRoot: Boolean = false)
= context.layoutInflater.inflate(layoutRes, this, attachToRoot) |
app/src/main/java/com/wreckingballsoftware/forecastfrenzy/ui/ForecastApplication.kt | unknown_repo | kotlin | package com.wreckingballsoftware.forecastfrenzy.ui
import android.app.Application
import com.wreckingballsoftware.forecastfrenzy.di.appModule
import org.koin.android.ext.koin.androidContext
import org.koin.android.ext.koin.androidLogger
import org.koin.core.context.startKoin
import org.koin.core.logger.Level
class Fo... |
Chapter-7/SampleProject/app/src/main/java/com/nanamare/mac/sample/vm/MarketViewModel.kt | unknown_repo | kotlin | package com.nanamare.mac.sample.vm
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.nanamare.mac.sample.base.BaseViewModel
import com.nanamare.mac.sample.data.market.MarketSource
class MarketViewModel(private val marketSource: MarketSource): BaseViewModel() {
private var _m... |
solar/src/main/java/com/chiksmedina/solar/linear/arrows/Restart.kt | unknown_repo | kotlin | package com.chiksmedina.solar.linear.arrows
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.Round
import androidx.compose.ui.graphics.StrokeJoin
import and... |
sample-app/src/androidTest/java/com/atiurin/sampleapp/tests/compose/ComposeListWithPositionTestTagTest.kt | unknown_repo | kotlin | package com.atiurin.sampleapp.tests.compose
import androidx.compose.ui.test.hasContentDescription
import androidx.compose.ui.test.hasTestTag
import com.atiurin.sampleapp.activity.ComposeListWithPositionTestTagActivity
import com.atiurin.sampleapp.compose.ListItemPositionPropertyKey
import com.atiurin.sampleapp.compose... |
app/src/main/java/com/theglendales/alarm/model/ContainerFactory.kt | unknown_repo | kotlin | package com.theglendales.alarm.model
import android.database.Cursor
import com.theglendales.alarm.stores.RxDataStore
/**
* Created by Yuriy on 24.06.2017.
*/
interface ContainerFactory {
fun create(): AlarmStore
fun create(cursor: Cursor): AlarmStore
}
interface AlarmStore : RxDataStore<AlarmValue> {
f... |
app/src/main/java/darylsze/rxkotlinstarter/Extension/ObservableExtension.kt | unknown_repo | kotlin | package darylsze.rxkotlinstarter.Extension
import android.app.Activity
import android.content.Context
import android.view.View
import android.view.ViewGroup
import darylsze.rxkotlinstarter.R
import io.reactivex.Observable
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.disposables.Disposab... |
curtains/src/main/java/curtains/internal/WindowCallbackWrapper.kt | unknown_repo | kotlin | package curtains.internal
import android.view.KeyEvent
import android.view.MotionEvent
import android.view.Window
import curtains.DispatchState
import curtains.DispatchState.Consumed
import kotlin.LazyThreadSafetyMode.NONE
/**
* Replaces the default Window callback to allows adding listeners / interceptors
* for in... |
app/src/main/java/ru/vdv/myapp/myreadersdiary/ui/books/bookdetails/BookDetailsViewModel.kt | unknown_repo | kotlin | package ru.vdv.myapp.myreadersdiary.ui.books.bookdetails
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import ru.vdv.myapp.myreadersdiary.domain.Book
import ru.vdv.myapp.myreadersdiary.domain.CallBack
import ru.vdv.myapp.myreadersdiary.domain.Event
import ru.vdv.myapp.myreadersdiary.doma... |
app/src/main/java/com/tyeng/controller/service/RTSPServerService.kt | unknown_repo | kotlin | package com.tyeng.controller.service
import android.app.Service
import android.content.Context
import android.content.Intent
import android.os.Handler
import android.os.IBinder
import android.os.PowerManager
import android.util.Log
import com.pedro.encoder.input.video.CameraHelper
import com.pedro.encoder.input.video.... |
appholder/src/main/java/com/android/mdl/app/fragment/UpdateCheckFragment.kt | unknown_repo | kotlin | package com.android.mdl.app.fragment
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.findNavController
import androidx.navigation.fragment.navArgs
import com.android.identity.and... |
Aulas/AppComDuasActivities/app/src/main/java/com/example/aplicacaoexercicio1503/ContadorActivity.kt | unknown_repo | kotlin | package com.example.aplicacaoexercicio1503
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.Button
import android.widget.TextView
class ContadorActivity : AppCompatActivity() {
private var valorContador:Int = 0;
... |
app/src/main/java/pakutoma/iijmiocouponwidget/activity/LicenseDialog.kt | unknown_repo | kotlin | package pakutoma.iijmiocouponwidget.activity
import android.content.Context
import android.preference.DialogPreference
import android.util.AttributeSet
import android.view.View
import android.webkit.WebView
import android.webkit.WebViewClient
/**
* Created by PAKUTOMA on 2016/12/04.
*/
class LicenseDialog : DialogP... |
library/src/main/java/me/xfans/lib/imagemap/ImageMapLayer.kt | unknown_repo | kotlin | package me.xfans.lib.imagemap
import android.content.Context
import android.graphics.*
import android.util.AttributeSet
import android.util.Log
import android.view.Gravity
import android.view.MotionEvent
import android.view.View
import android.widget.ImageView
import android.widget.Toast
import me.xfans.lib.imagemap.c... |
android/rctmgl/src/main/java-v10/com/mapbox/rctmgl/components/styles/light/RCTMGLLight.kt | unknown_repo | kotlin | package com.mapbox.rctmgl.components.styles.light
import android.content.Context
import com.mapbox.maps.extension.style.light.generated.setLight
import com.mapbox.rctmgl.components.AbstractMapFeature
import com.mapbox.maps.MapboxMap
import com.facebook.react.bridge.ReadableMap
import com.mapbox.maps.Style
import com.m... |
meijue-ui/src/main/java/com/obsez/mobile/meijue/ui/base/ToolbarAnimActivity.kt | unknown_repo | kotlin | package com.obsez.mobile.meijue.ui.base
import android.animation.Animator
import android.animation.AnimatorListenerAdapter
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import android.view.animation.OvershootInterpolator
import android.widget.TextView
import androidx.core.view.GravityC... |
app/src/desktopMain/kotlin/com/lhwdev/compose/utils.kt | unknown_repo | kotlin | package com.lhwdev.compose
import androidx.compose.desktop.AppWindow
import androidx.compose.desktop.AppWindowAmbient
import androidx.compose.desktop.ComposeWindow
import androidx.compose.runtime.Composable
@Composable
val currentAppWindow get() = AppWindowAmbient.current!!
@Composable
val currentComposeWindow get(... |
data/local/src/main/java/com/escodro/local/model/Category.kt | unknown_repo | kotlin | package com.escodro.local.model
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
/**
* [Entity] to represent a category.
*
* @property id category id
* @property name category name
* @property color category color
*/
@Entity
data class Category(
@ColumnInfo(name = ... |
ui-authentication/src/main/java/com/praxis/feat/authentication/nav/AuthNavGraph.kt | unknown_repo | kotlin | package com.praxis.feat.authentication.nav
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.ui.Modifier
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import ... |
app/src/main/java/com/stsd/selftaughtsoftwaredevelopers/androidsudokusolver/framework/manager/StoragePreferences.kt | unknown_repo | kotlin | package com.stsd.selftaughtsoftwaredevelopers.androidsudokusolver.framework.manager
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.edit
import androidx.datastore.preferences.core.stringPreferencesKey
import com.stsd.selftaughtsoftwaredevelopers.androidsudokusolver.ui.model.GridStat... |
chat_example/src/main/java/io/skygear/chatexample/ApiTestActivity.kt | unknown_repo | kotlin | package io.skygear.chatexample
import android.os.Bundle
import android.support.transition.ChangeBounds
import android.support.transition.TransitionManager
import android.support.transition.TransitionSet
import android.support.v7.app.AppCompatActivity
import android.view.View
import android.widget.LinearLayout
import a... |
app/src/main/java/hm/orz/chaos114/android/slideviewer/util/UrlHelper.kt | unknown_repo | kotlin | package hm.orz.chaos114.android.slideviewer.util
import android.net.Uri
import timber.log.Timber
object UrlHelper {
fun isSpeakerDeckUrl(uri: Uri): Boolean {
if ("https" != uri.scheme) {
Timber.d("unexpected scheme")
return false
}
if ("speakerdeck.com" != uri.hos... |
lib/src/main/java/org/oneui/compose/widgets/SeekBar.kt | unknown_repo | kotlin | package org.oneui.compose.widgets
import androidx.compose.animation.core.animateDpAsState
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animation.core.tween
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.gestures.detectDragGestures
import androidx.comp... |
app/src/main/java/com/explore/playground/utils/LocalValue.kt | unknown_repo | kotlin | package com.explore.playground.utils
import android.content.Context
import android.content.SharedPreferences
object LocalValue {
private lateinit var preferences: SharedPreferences
private const val MODE = Context.MODE_PRIVATE
private const val NAME = "HOMECARE_HALODUC_"
val CURRENT_NUMBER = "${NAME}... |
reactiveandroid-ui/src/main/kotlin/com/github/kittinunf/reactiveandroid/widget/ButtonAction.kt | unknown_repo | kotlin | package com.github.kittinunf.reactiveandroid.widget
import android.widget.Button
import com.github.kittinunf.reactiveandroid.Action
import com.github.kittinunf.reactiveandroid.rx.addTo
import com.github.kittinunf.reactiveandroid.rx.bindTo
import com.github.kittinunf.reactiveandroid.view.rx_click
import com.github.kitt... |
StickMan/app/src/main/kotlin/marmor/com/stickman/StickManActivityFragment.kt | unknown_repo | kotlin | package marmor.com.stickman
import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.*
import android.view.SurfaceHolder.Callback
import android.view.ViewTreeObserver.OnGlobalLayoutListener
import butterknife.OnClick
/**
* A placeholder fragment containing a simple view.
*/
public class S... |
app/src/main/java/com/oakssoftware/livepolicescanner/presentation/station_detail/StationDetailViewModel.kt | unknown_repo | kotlin | package com.oakssoftware.livepolicescanner.presentation.station_detail
import android.media.AudioAttributes
import android.media.MediaPlayer
import androidx.compose.runtime.State
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import android... |
base/src/main/java/com/example/base/BaseFragment.kt | unknown_repo | kotlin | package com.example.base
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import androidx.li... |
replica-core/src/jvmTest/kotlin/me/aartikov/replica/keyed/utils/KeyedFakeStorage.kt | unknown_repo | kotlin | package me.aartikov.replica.keyed.utils
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.update
import me.aartikov.replica.keyed.KeyedStorage
class KeyedFakeStorage : KeyedStorage<Int, String> {
private val dataState = MutableStateFlow(emptyMap<Int, String>())
override suspend ... |
bluetooth_low_energy_android/android/src/main/kotlin/dev/yanshouwang/bluetooth_low_energy_android/MyApi.kt | unknown_repo | kotlin | package dev.yanshouwang.bluetooth_low_energy_android
import android.bluetooth.BluetoothAdapter
import android.bluetooth.BluetoothDevice
import android.bluetooth.BluetoothGatt
import android.bluetooth.BluetoothGattCharacteristic
import android.bluetooth.BluetoothGattDescriptor
import android.bluetooth.BluetoothGattServ... |
features/playlist/src/main/java/com/m3u/features/playlist/PlaylistScreen.kt | unknown_repo | kotlin | @file:OptIn(ExperimentalMaterialApi::class)
package com.m3u.features.playlist
import android.Manifest
import android.content.res.Configuration.ORIENTATION_LANDSCAPE
import android.content.res.Configuration.ORIENTATION_PORTRAIT
import android.content.res.Configuration.UI_MODE_TYPE_APPLIANCE
import android.content.res.... |
src/jvmMain/kotlin/Main.kt | unknown_repo | kotlin |
import androidx.compose.desktop.ui.tooling.preview.Preview
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.*
import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.window.Window
import androidx.compose.ui.window.application
import ovh.plrapps.mapcompose.testapp.featu... |
rpm/src/androidMain/kotlin/dev/garage/rpm/widget/InputControlExtensions.kt | unknown_repo | kotlin | package dev.garage.rpm.widget
import android.text.SpannableString
import android.text.Spanned
import android.text.TextUtils
import android.widget.EditText
import com.badoo.reaktive.observable.filter
import com.badoo.reaktive.observable.map
import com.badoo.reaktive.observable.skip
import com.google.android.material.te... |
lib/src/main/java/com/sd/lib/compose/scalebox/FScaleBox.kt | unknown_repo | kotlin | package com.sd.lib.compose.scalebox
import android.util.Log
import androidx.compose.animation.core.Animatable
import androidx.compose.animation.core.exponentialDecay
import androidx.compose.animation.core.tween
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import a... |
QuickWidget/src/main/java/com/wpf/app/quickwidget/selectview/data/QuickChildSelectData.kt | unknown_repo | kotlin | package com.wpf.app.quickwidget.selectview.data
import android.view.View
import android.view.ViewGroup
import com.wpf.app.quickutil.other.asTo
import com.wpf.app.quickutil.other.nullDefault
import com.wpf.app.quickutil.run.RunItemClickWithSelf
import com.wpf.app.quickutil.run.RunOnContextWithSelf
import java.io.Serial... |
app/src/main/java/com/yimulin/mobile/ui/activity/BusLineActivity.kt | unknown_repo | kotlin | package com.yimulin.mobile.ui.activity
import android.content.Intent
import android.view.View
import android.widget.TextView
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.amap.api.services.busline.BusLineItem
import com.amap.api.services.busline.Bus... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.