file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
money/src/main/java/com/pyamsoft/sleepforbreakfast/money/observer/BaseDbObserver.kt | unknown_repo | kotlin | /*
* Copyright 2024 pyamsoft
*
* 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... |
downloads/src/test/java/com/duckduckgo/downloads/impl/UriUtilsFilenameExtractorTest.kt | unknown_repo | kotlin |
package com.duckduckgo.downloads.impl
import android.webkit.MimeTypeMap
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.duckduckgo.app.statistics.pixels.Pixel
import com.duckduckgo.downloads.api.FileDownloader.PendingFileDownload
import org.junit.Assert.assertEquals
import org.junit.Assert.assertTrue... |
app/src/main/java/com/cyberlogitec/freight9/ui/buyoffer/BofLaneVm.kt | unknown_repo | kotlin | package com.cyberlogitec.freight9.ui.buyoffer
import android.content.Context
import com.cyberlogitec.freight9.common.BaseActivity
import com.cyberlogitec.freight9.common.BaseViewModel
import com.cyberlogitec.freight9.lib.model.Schedule
import com.cyberlogitec.freight9.lib.rx.Parameter
import com.cyberlogitec.freight9.... |
acra-core/src/main/java/org/acra/collector/Collector.kt | unknown_repo | kotlin | /*
* Copyright (c) 2017
*
* 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 writi... |
Praktek/app/src/main/java/com/pm/praktik/MainActivity.kt | unknown_repo | kotlin | package com.pm.praktik
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
val list = Arra... |
core/src/commonMain/kotlin/com/maxkeppeker/sheets/core/icons/twotone/EmojiFoodBeverage.kt | unknown_repo | kotlin | package com.maxkeppeker.sheets.core.icons.twotone
import androidx.compose.material.icons.materialIcon
import androidx.compose.material.icons.materialPath
import androidx.compose.ui.graphics.vector.ImageVector
public val EmojiFoodBeverage: ImageVector
get() {
if (_emojiFoodBeverage != null) {
r... |
app/src/main/java/com/yakun/topleague/models/Lecture.kt | unknown_repo | kotlin | package com.yakun.topleague.models
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
/**
* A data model class for Product with required fields.
*/
@Parcelize
data class Lecture(
var course_id: String = "",
var title: String = "",
var image: String = "",
var lecture_id: String = ""... |
app/src/main/java/com/friendly_machines/frbpdoctor/ui/home/SvgDrawable.kt | unknown_repo | kotlin | package com.friendly_machines.frbpdoctor.ui.home
import android.graphics.Canvas
import android.graphics.drawable.PictureDrawable
import com.caverock.androidsvg.SVG
class SvgDrawable(private val svg: SVG, private val width: Int, private val height: Int) :
PictureDrawable(svg.renderToPicture()) {
override fun d... |
app/src/main/java/github/sachin2dehury/owlmail/database/Converters.kt | unknown_repo | kotlin | package github.sachin2dehury.owlmail.database
import androidx.room.TypeConverter
import com.squareup.moshi.Moshi
import com.squareup.moshi.Types
import com.squareup.moshi.kotlin.reflect.KotlinJsonAdapterFactory
import github.sachin2dehury.owlmail.datamodel.Address
import github.sachin2dehury.owlmail.datamodel.Inv
cla... |
app/src/main/java/com/dladukedev/wordle/game/ui/GameBoard.kt | unknown_repo | kotlin | package com.dladukedev.wordle.game.ui
import androidx.compose.animation.core.*
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.*
import androidx.compose.material.Text
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment... |
fluentui_persona/src/main/java/com/microsoft/fluentui/persona/PersonaListAdapter.kt | unknown_repo | kotlin | /*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*/
package com.microsoft.fluentui.persona
import android.content.Context
import androidx.recyclerview.widget.RecyclerView
import android.view.View
import android.view.ViewGroup
import android.widget.LinearLayout
import... |
mobileChatExamples/androidChatExample/app/src/main/java/com/blitz/androidchatexample/MainActivity.kt | unknown_repo | kotlin | package com.blitz.androidchatexample
import android.annotation.SuppressLint
import android.app.Activity
import android.os.Bundle
import android.util.Log
import android.view.ViewTreeObserver
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.animation.Animated... |
app/src/main/java/com/example/androiddevchallenge/ui/layouts/HomePage.kt | unknown_repo | kotlin | /*
* Copyright 2021 Yashovardhan Dhanania
*
* 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... |
honoka-android-utils/src/main/java/de/honoka/sdk/util/android/common/GlobalComponents.kt | unknown_repo | kotlin | package de.honoka.sdk.util.android.common
import android.app.Application
object GlobalComponents {
lateinit var application: Application
} |
PagingDemo/src/main/java/com/example/pagingdemo/pagingboundraycallback/data/UserViewModel.kt | unknown_repo | kotlin | package com.example.pagingdemo.pagingboundraycallback.data
import android.app.Application
import android.os.AsyncTask
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.paging.LivePagedListBuilder
import androidx.paging.PagedList
import com.example.pagingdemo.pagingboundrayca... |
app/src/main/kotlin/na/komi/kodesh/ui/internal/FragmentToolbar.kt | unknown_repo | kotlin | package na.komi.kodesh.ui.internal
import android.view.MenuItem
import androidx.annotation.IdRes
import androidx.annotation.MenuRes
import androidx.annotation.StringRes
/**
* https://is.gd/Brbjw8
*/
data class FragmentToolbar(
@IdRes val toolbar: Int,
@StringRes val title: Int = -1,
@MenuRes val menu: I... |
app/src/main/java/com/jamieadkins/gwent/card/detail/CardImageView.kt | unknown_repo | kotlin | package com.jamieadkins.gwent.card.detail
import android.content.Context
import android.util.AttributeSet
import androidx.appcompat.widget.AppCompatImageView
import com.bumptech.glide.Glide
import com.bumptech.glide.load.engine.DiskCacheStrategy
class CardImageView @JvmOverloads constructor(
context: Context,
... |
app/src/main/java/com/krm/crashreport/ui/LogMessageActivity.kt | unknown_repo | kotlin | package com.krm.crashreport.ui
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import android.view.View
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.Toolbar
import com.... |
app/src/main/java/com/elementary/tasks/reminder/build/adapter/UiBuilderItemDiffCallback.kt | unknown_repo | kotlin | package com.elementary.tasks.reminder.build.adapter
import androidx.recyclerview.widget.DiffUtil
import com.elementary.tasks.reminder.build.UiBuilderItem
class UiBuilderItemDiffCallback : DiffUtil.ItemCallback<UiBuilderItem>() {
override fun areItemsTheSame(oldItem: UiBuilderItem, newItem: UiBuilderItem): Boolean {... |
app/src/main/kotlin/com/apppoweron/circularrevealbuttondemo/FragmentCommunicator.kt | unknown_repo | kotlin | package com.apppoweron.circularrevealbuttondemo
import android.support.v4.app.Fragment
interface FragmentCommunicator {
@Throws(NoContainerException::class)
fun onNewFragmentSelected(fragment: Fragment, replaceIt: Boolean, needToBackStack: Boolean)
}
|
app/src/main/java/com/funkymuse/composedlib/features/home/HomeScreenGraphEntry.kt | unknown_repo | kotlin | package com.funkymuse.composedlib.features.home
import androidx.compose.runtime.Composable
import androidx.hilt.navigation.compose.hiltViewModel
import androidx.navigation.NavHostController
import com.funkymuse.composed.core.stability_wrappers.StableHolder
import com.funkymuse.composed.navigation.destination.Navigatio... |
app/src/main/java/pl/kubaf2k/consolist/ui/devices/ExistingDeviceEntitiesAdapter.kt | unknown_repo | kotlin | package pl.kubaf2k.consolist.ui.devices
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.ImageView
import android.widget.TextView
import androidx.lifecycle.findViewTreeLifecycleOwner
import androidx.lifecycle.lifecycleScope
imp... |
navigation/navigation-compose-lint/src/test/java/androidx/navigation/compose/lint/MissingKeepAnnotationDetectorTest.kt | unknown_repo | kotlin | /*
* Copyright 2024 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
app/src/main/java/com/hold1/pagertabsdemo/Util.kt | unknown_repo | kotlin | package com.hold1.pagertabsdemo
import android.graphics.Color
import android.graphics.Rect
import android.graphics.RectF
/**
* Created by <NAME> on 20/11/2017.
*/
object Util {
@JvmStatic
fun getColorWithOpacity(color: Int, opacity: Int): Int {
return Color.argb(
opacity * 255 / 100,
... |
app/src/main/java/com/kongjak/ggcj/Tools/ImageFileAdapter.kt | unknown_repo | kotlin | package com.kongjak.ggcj.Tools
import android.content.Intent
import android.net.Uri
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.cardview.widget.CardView
import androidx.recyclerview.widget.Recyc... |
app/src/main/java/com/mju/mtmi/account/EditProfileActivity.kt | unknown_repo | kotlin | package com.mju.mtmi.account
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.util.Log
import android.view.View
import androidx.core.content.ContextCompat
import androidx.core.content.res.R... |
gb android project/app/src/main/java/org/firezenk/goldenbleetle/features/btle/MainState.kt | unknown_repo | kotlin | package org.firezenk.goldenbleetle.features.btle
import android.bluetooth.BluetoothDevice
import org.firezenk.goldenbleetle.features.common.State
sealed class MainState : State()
class DevicesDiscovered(val devices: List<BluetoothDevice>) : MainState()
class ConnectionChanged(val state: String) : MainState()
object B... |
home/src/main/java/com/tzikin/home/page/viewmodel/WebViewViewModel.kt | unknown_repo | kotlin | package com.tzikin.home.page.viewmodel
import androidx.lifecycle.ViewModel
class WebViewViewModel : ViewModel() {
// TODO: Implement the ViewModel
} |
feature/mobile/provider-test/src/main/kotlin/com/flixclusive/feature/mobile/provider/test/ProviderTestScreenViewModel.kt | unknown_repo | kotlin | package com.flixclusive.feature.mobile.provider.test
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateMapOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.compose.ui.util.fastAny
import androidx.compose.ui.util.fastFilter
impo... |
app/src/main/java/io/mta/apo/PillDao.kt | unknown_repo | kotlin | package io.mta.apo
import android.arch.persistence.room.*
/**
* A data access object, this interface which will be implemented by the room service and the doa object it is a part of will be called when making queries on the database.
*
* @property insertPill inserts a single pill entity into the database
* @prope... |
multilibrary/src/main/java/com/zhongjh/albumcamerarecorder/album/widget/AlbumsSpinner.kt | unknown_repo | kotlin | package com.zhongjh.albumcamerarecorder.album.widget
import android.annotation.SuppressLint
import android.content.Context
import android.view.View
import android.widget.AdapterView
import android.widget.CursorAdapter
import android.widget.TextView
import androidx.appcompat.widget.ListPopupWindow
import com.zhongjh.al... |
kotlin/src/main/java/com/zhengsr/zplib/PermissionBuilder.kt | unknown_repo | kotlin | package com.zhengsr.zplib
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.fragment.app.FragmentManager
/**
* @author by zhengshaorui 2020/8/4 09:37
* describe:为permission 提供更多的类
*/
class PermissionBuilder {
private var activity: FragmentActivity? = null
p... |
datawedgeprofileintentswrapper/src/main/java/com/zebra/datawedgeprofileintents/SynchronousMethodsNT/DWSynchronousMethodsNT.kt | unknown_repo | kotlin | package com.zebra.datawedgeprofileintents.SynchronousMethodsNT
import android.content.Context
import android.util.Pair
import com.zebra.datawedgeprofileintents.*
import com.zebra.datawedgeprofileintents.DWSynchronousMethods.EResults
class DWSynchronousMethodsNT(private val mContext: Context) {
fun runInNewThread... |
library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ivf/IVFExtractorsFactory.kt | unknown_repo | kotlin | /*
* Copyright (C) 2016 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... |
app/src/main/java/com/wa2c/android/prefsapp/MainActivity.kt | unknown_repo | kotlin | package com.wa2c.android.prefsapp
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.drawable.BitmapDrawable
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import android.view.View
import android.widget.T... |
commons/src/main/java/net/xpece/android/widget/HeaderFooterRecyclerViewAdapter.kt | unknown_repo | kotlin | package net.xpece.android.widget
import android.support.v7.widget.RecyclerView
import android.view.ViewGroup
/**
* Created by Eugen on 22.10.2016.
*/
abstract class HeaderFooterRecyclerViewAdapter<T : RecyclerView.ViewHolder> : RecyclerView.Adapter<RecyclerView.ViewHolder>() {
companion object {
inter... |
room/room-runtime/src/androidMain/kotlin/androidx/room/driver/SupportSQLiteConnectionPool.android.kt | unknown_repo | kotlin | /*
* Copyright 2024 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/bitshift/studios/flightsapp/presentation/screens/home/HomeScreen.kt | unknown_repo | kotlin | package bitshift.studios.flightsapp.presentation.screens.home
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.Scaffold
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import bitshift.studios.flig... |
flap/src/main/java/me/yifeiyuan/flap/ext/ItemClicksHelper.kt | unknown_repo | kotlin | package me.yifeiyuan.flap.ext
import android.view.View
import androidx.recyclerview.widget.RecyclerView
import me.yifeiyuan.flap.ComponentConfig
import me.yifeiyuan.flap.hook.AdapterHook
typealias OnItemClickListener = ((recyclerView: RecyclerView, childView: View, position: Int) -> Unit)
typealias OnItemLongClickLi... |
qr-code/src/main/java/com/adyen/checkout/qrcode/QRCodeComponentProvider.kt | unknown_repo | kotlin | /*
* Copyright (c) 2021 Adyen N.V.
*
* This file is open source and available under the MIT license. See the LICENSE file for more info.
*
* Created by josephj on 7/6/2021.
*/
package com.adyen.checkout.qrcode
import android.app.Application
import android.os.Bundle
import androidx.lifecycle.SavedStateHandle
imp... |
remix/src/commonMain/kotlin/com/woowla/compose/icon/collections/remix/remix/healthandmedical/InfraredThermometerLine.kt | unknown_repo | kotlin | package com.woowla.compose.icon.collections.remix.remix.healthandmedical
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.gr... |
app/src/main/kotlin/ru/arsich/messenger/MessengerApplication.kt | unknown_repo | kotlin | package ru.arsich.messenger
import com.vk.sdk.VKSdk
import android.app.Application
import com.vk.sdk.VKAccessToken
import com.vk.sdk.VKAccessTokenTracker
import ru.arsich.messenger.ui.activities.WelcomeActivity
class MessengerApplication : Application() {
override fun onCreate() {
super.onCreate()
... |
app/src/main/java/com/koleff/kare_android/ui/compose/screen/WorkoutsScreen.kt | unknown_repo | kotlin | package com.koleff.kare_android.ui.compose.screen
import android.util.Log
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.calculateEndPadding
import androidx.compose.foundati... |
app/src/main/java/com/yassineabou/clock/ui/stopwatch/StopwatchScreen.kt | unknown_repo | kotlin | package com.yassineabou.clock.ui.stopwatch
import android.content.res.Configuration
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.compose.animation.core.FastOutLinearInEasing
import androidx.compose.animation.core.LinearOutSlowInEasing
i... |
cupertino-icons-extended/src/commonMain/kotlin/io/github/alexzhirkevich/cupertino/icons/outlined/LockSlash.kt | unknown_repo | kotlin | package io.github.alexzhirkevich.cupertino.icons.outlined
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import and... |
common/src/main/java/cc/imorning/common/CommonApp.kt | unknown_repo | kotlin | package cc.imorning.common
import android.app.Activity
import android.app.Application
import android.app.NotificationManager
import android.content.Context
import android.util.Log
import android.widget.Toast
import cc.imorning.common.constant.ServerConfig
import com.microsoft.appcenter.AppCenter
import com.microsoft.a... |
app/src/main/java/com/example/missingpets/adapterRV/AdoptableAdapter.kt | unknown_repo | kotlin | import android.util.Log
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.example.missingpets.R
import com.example.missingpets.network.MissingPet
import com.... |
app/src/main/java/com/justnik/mosplace/presentation/placereviews/PlaceReviewsFragment.kt | unknown_repo | kotlin | package com.justnik.mosplace.presentation.placereviews
import android.os.Bundle
import android.view.MenuItem
import android.view.View
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavController
import androidx.navigation.fragment.navArgs
import androidx.recyclerview.widget.DividerItemDe... |
src/main/kotlin/io/github/sculk_cli/commands/ModList.kt | unknown_repo | kotlin | package io.github.sculk_cli.commands
import com.github.ajalt.clikt.core.CliktCommand
import com.github.ajalt.clikt.core.terminal
import com.github.ajalt.clikt.parameters.arguments.argument
import com.github.ajalt.clikt.parameters.arguments.help
import com.github.ajalt.clikt.parameters.types.file
import com.github.ajal... |
lounge-paging/src/test/java/jp/co/cyberagent/lounge/paging/PagedListLoungeControllerTest.kt | unknown_repo | kotlin | package jp.co.cyberagent.lounge.paging
import androidx.lifecycle.Lifecycle
import io.kotest.core.spec.style.FunSpec
import io.kotest.extensions.robolectric.RobolectricTest
import io.kotest.matchers.collections.shouldContainExactly
import io.kotest.matchers.shouldBe
import jp.co.cyberagent.fixture.TestLifecycleOwner
im... |
app/src/main/java/com/wegdut/wegdut/ui/message/like/LikeAdapter.kt | unknown_repo | kotlin | package com.wegdut.wegdut.ui.message.like
import android.annotation.SuppressLint
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.core.content.res.ResourcesCompat
import com.wegdut.wegdut.MyApplicati... |
comvvmhelper/src/main/java/com/kk/android/comvvmhelper/helper/ActivityStackManager.kt | unknown_repo | kotlin | @file:Suppress("MemberVisibilityCanBePrivate")
package com.kk.android.comvvmhelper.helper
import android.app.Activity
import android.os.Process
import kotlin.system.exitProcess
/**
* @author kuky.
* @description
*/
object ActivityStackManager {
private val activities = mutableListOf<Activity>()
fun addA... |
HTTPShortcuts/app/src/main/kotlin/ch/rmy/android/http_shortcuts/scripting/actions/ActionDTO.kt | unknown_repo | kotlin | package ch.rmy.android.http_shortcuts.scripting.actions
import androidx.core.text.isDigitsOnly
import org.json.JSONArray
import org.json.JSONException
import org.json.JSONObject
import org.liquidplayer.javascript.JSValue
class ActionDTO(
val type: String,
val data: List<JSValue?> = emptyList(),
) {
fun g... |
app/src/main/java/com/garnegsoft/hubs/ui/screens/offline/OfflineArticleScreenMenu.kt | unknown_repo | kotlin | package com.garnegsoft.hubs.ui.screens.offline
import androidx.compose.animation.core.updateTransition
import androidx.compose.material.Icon
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.outlined.Delete
import androidx.compose.material.icons.outlined.ExitToApp
import androidx.comp... |
app/src/main/java/com/kylecorry/trail_sense/tools/clouds/CloudsToolRegistration.kt | unknown_repo | kotlin | package com.kylecorry.trail_sense.tools.clouds
import android.content.Context
import com.kylecorry.trail_sense.R
import com.kylecorry.trail_sense.tools.clouds.quickactions.QuickActionScanCloud
import com.kylecorry.trail_sense.tools.tools.infrastructure.Tool
import com.kylecorry.trail_sense.tools.tools.infrastructure.T... |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/Chalkboard.kt | unknown_repo | kotlin | package me.localx.icons.straight.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
i... |
font-awesome/src/commonMain/kotlin/compose/icons/fontawesomeicons/solid/AmericanSignLanguageInterpreting.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.... |
view/src/main/kotlin/com/social/com/di/components/FragmentComponent.kt | unknown_repo | kotlin | /**
* Copyright (C) 2015 Fernando Cejas 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 applicable... |
app/src/main/java/com/example/kalepa/ChatActivity.kt | unknown_repo | kotlin | package com.example.kalepa
import android.app.AlertDialog
import android.content.Context
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.support.v4.widget.SwipeRefreshLayout
import android.support.v7.wi... |
gabimoreno/src/main/java/soy/gabimoreno/data/local/GabiMorenoDataBase.kt | unknown_repo | kotlin | package soy.gabimoreno.data.local
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
@Database(
entities = [
PremiumAudioDbModel::class
],
version = 1,
)
@TypeConverters(Converters::class)
abstract class GabiMorenoDatabase : RoomDatabase() {
abs... |
app/src/main/java/com/example/instagram/feature/di/module/LoginModule.kt | unknown_repo | kotlin | package com.example.instagram.feature.di.module
import androidx.lifecycle.ViewModel
import com.example.instagram.common.di.ViewModelKey
import com.example.instagram.feature.login.presentation.LoginViewModel
import dagger.Binds
import dagger.Module
import dagger.multibindings.IntoMap
@Module
interface LoginModule {
... |
app/src/main/java/com/kotlin/demo/activity/PhotoActivity.kt | unknown_repo | kotlin | package com.kotlin.demo.activity
import android.os.Handler
import android.support.design.widget.AppBarLayout
import android.support.v7.widget.Toolbar
import android.view.animation.AccelerateInterpolator
import android.widget.ImageView
import com.bumptech.glide.Glide
import com.kotlin.demo.R
import com.kotlin.demo.base... |
app/src/main/java/com/example/chatdemo/logic/data/dao/GroupDao.kt | unknown_repo | kotlin | package com.example.chatdemo.logic.data.dao
import androidx.room.*
import com.example.nettyserver.data.entity.GroupInfo
@Dao
interface GroupDao {
@Insert
fun insertGroup(group: GroupInfo) : Long
@Delete
fun deleteGroup(group: GroupInfo)
@Update
fun updateGroup(newGroup: GroupInfo)
@Quer... |
app/src/main/java/com/mankart/mankgram/ui/mapviewstory/fragment/MapsFragment.kt | unknown_repo | kotlin | package com.mankart.mankgram.ui.mapviewstory.fragment
import android.Manifest
import android.annotation.SuppressLint
import android.content.Intent
import android.content.pm.PackageManager
import android.content.res.Resources
import androidx.fragment.app.Fragment
import android.os.Bundle
import android.util.Log
import... |
app/src/main/java/com/example/android/codelabs/paging/ui/SearchTwitchTopsViewModel.kt | unknown_repo | kotlin | /*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
app/src/main/java/com/eliteapartment/gallery/ui/imagelist/ImageListScreen.kt | unknown_repo | kotlin | package com.eliteapartment.gallery.ui.imagelist
import android.os.Build
import androidx.annotation.RequiresApi
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androi... |
library/src/main/java/com/michaelflisar/composepreferences/core/composables/BasePreferenceContainer.kt | unknown_repo | kotlin | package com.michaelflisar.composepreferences.core.composables
import androidx.compose.animation.core.Animatable
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.clickable
import androidx.compose.foundation.combinedClickable
import androidx.compose.foundation.gestures.dete... |
app/src/main/java/com/example/hotspot/view/CheckIn/UserItemCheckedIn.kt | unknown_repo | kotlin | package com.example.hotspot.view.CheckIn
import android.graphics.Color
import android.view.View
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.Observer
import androidx.navigation.findNavController
import com.example.hotspot.R
import com.example.hotspot.model.HotSpot
import com.example.hotspot.model... |
css-gg/src/commonMain/kotlin/compose/icons/cssggicons/Ratio.kt | unknown_repo | kotlin | package compose.icons.cssggicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import android... |
app/src/main/java/me/cplanchet/shoppinglistassistant/ui/AppViewModelProvider.kt | unknown_repo | kotlin | package me.cplanchet.shoppinglistassistant.ui
import androidx.lifecycle.ViewModelProvider.AndroidViewModelFactory
import androidx.lifecycle.createSavedStateHandle
import androidx.lifecycle.viewmodel.CreationExtras
import androidx.lifecycle.viewmodel.initializer
import androidx.lifecycle.viewmodel.viewModelFactory
impo... |
compose-jetsnack/common/src/androidMain/kotlin/com/example/jetsnack/ui/home/cart/CartViewModel.android.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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
shared/src/commonMain/kotlin/screens/profile/profile/ProfileScreen.kt | unknown_repo | kotlin | package screens.profile.profile
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layo... |
app/src/main/java/me/kalmanbncz/pigeon/presentation/databinding/DefaultBindingAdapter.kt | unknown_repo | kotlin | package me.kalmanbncz.pigeon.presentation.databinding
import android.databinding.BindingAdapter
import android.support.annotation.ColorRes
import android.support.annotation.StringRes
import android.support.v7.widget.SwitchCompat
import android.text.Spannable
import android.text.SpannableString
import android.view.View... |
app/src/main/java/com/kev/tvguide/viewmodel/TopRatedMoviesViewModel.kt | unknown_repo | kotlin | package com.kev.tvguide.viewmodel
import androidx.lifecycle.ViewModel
import androidx.paging.PagingData
import com.kev.tvguide.models.MovieItem
import com.kev.tvguide.repositories.TopRatedMoviesRepository
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject
... |
workflow-ui/core-android/src/main/java/com/squareup/workflow1/ui/ScreenViewHolder.kt | unknown_repo | kotlin | package com.squareup.workflow1.ui
import android.view.View
/**
* Associates a [view] with a function ([runner]) that can update it to display instances
* of [ScreenT]. Also holds a reference to the [ViewEnvironment][environment] that was
* most recently used to update the [view].
*
* Do not call [runner] directl... |
app/src/main/java/com/yoesuv/infomalangbatu/menu/maps/adapters/MyCustomInfoWindowAdapter.kt | unknown_repo | kotlin | package com.yoesuv.infomalangbatu.menu.maps.adapters
import android.view.ContextThemeWrapper
import androidx.fragment.app.FragmentActivity
import android.view.LayoutInflater
import android.view.View
import com.google.android.gms.maps.GoogleMap.InfoWindowAdapter
import com.google.android.gms.maps.model.Marker
import co... |
compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/draw/Alpha.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... |
GudiCafeteria_a/app/src/main/java/com/duzi/gudicafeteria_a/viewmodel/ViewModelFactory.kt | unknown_repo | kotlin | package com.duzi.gudicafeteria_a.viewmodel
import android.arch.lifecycle.ViewModel
import android.arch.lifecycle.ViewModelProvider
import com.duzi.gudicafeteria_a.repository.AppDataSource
import com.duzi.gudicafeteria_a.ui.cafe.CafeViewModel
import com.duzi.gudicafeteria_a.ui.comment.CommentViewModel
import com.duzi.g... |
timelineviewv2/src/main/java/ro/dobrescuandrei/timelineviewv2/recycler/TimelineRecyclerViewHolder.kt | unknown_repo | kotlin | package ro.dobrescuandrei.timelineviewv2.recycler
import android.content.Context
import androidx.recyclerview.widget.RecyclerView
import ro.dobrescuandrei.timelineviewv2.TimelineViewAppearance
class TimelineRecyclerViewHolder : RecyclerView.ViewHolder
{
constructor(context : Context, appearance : TimelineViewAppe... |
app/src/main/java/com/example/dynamodb/ui/homewether/HomeViewModel.kt | unknown_repo | kotlin | package com.example.dynamodb.ui.homewether
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.dynamodb.medule.DynamodbResponse
import com.example.dynamodb.retrofit.data.HomeDataSourse
import com.example.dynamodb.utils.Resource
impor... |
app/src/main/java/com/bandonleon/cryptofolio/MainActivity.kt | unknown_repo | kotlin | package com.bandonleon.cryptofolio
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.support.v4.app.Fragment
import androidx.navigation.findNavController
import com.bandonleon.cryptofolio.feature.portfolio.model.Asset
import com.bandonleon.cryptofolio.feature.portfolio.view.Portfo... |
app/src/main/kotlin/cafe/adriel/chroma/model/ContactLink.kt | unknown_repo | kotlin | package cafe.adriel.chroma.model
import android.net.Uri
import androidx.annotation.DrawableRes
import androidx.core.net.toUri
import cafe.adriel.chroma.R
enum class ContactLink(val url: Uri, @DrawableRes val iconRes: Int) {
EMAIL("mailto:me@adriel.cafe".toUri(), R.drawable.ic_email),
WEBSITE("http://adriel.ca... |
frontend/compose-html-ext/src/jsMain/kotlin/com/varabyte/kobweb/compose/css/Auto.kt | unknown_repo | kotlin | package com.varabyte.kobweb.compose.css
import org.jetbrains.compose.web.css.*
/**
* A CSS value that represents the "auto" keyword and can be used anywhere that accepts a numeric argument.
*
* For example:
*
* ```
* Modifier.margin(top = numericAuto, bottom = 1.cssRem)
* ```
* Note that this can fail silent... |
data/settings/src/main/java/com/google/jetpackcamera/settings/test/FakeJcaSettingsSerializer.kt | unknown_repo | kotlin | /*
* Copyright (C) 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
home/src/main/java/com/topview/purejoy/home/util/ProvideMusicController.kt | unknown_repo | kotlin | package com.topview.purejoy.home.util
import androidx.compose.runtime.*
import com.topview.purejoy.common.music.view.bottom.MusicController
@Composable
fun ProvideMusicController(
content: @Composable () -> Unit
) {
val musicController = remember { MusicController() }
DisposableEffect(true) {
mus... |
app/src/main/java/com/lvaccaro/lamp/fragments/RecyclerViewFragment.kt | unknown_repo | kotlin | package com.lvaccaro.lamp.fragments
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.google.android.materi... |
app/src/main/java/com/microsoft/device/samples/dualscreenexperience/data/Utils.kt | unknown_repo | kotlin | /*
*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*
*/
package com.microsoft.device.samples.dualscreenexperience.data
import android.content.res.AssetManager
import java.io.IOException
fun getJsonDataFromAsset(assetManager: AssetManager, fileName: String): String?... |
app/src/main/java/com/yofhi/storyapp/ui/story/StoryViewModel.kt | unknown_repo | kotlin | package com.yofhi.storyapp.ui.story
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.asLiveData
import com.yofhi.storyapp.data.repo.StoryRepo
import com.yofhi.storyapp.data.repo.UserRepo
import okhttp3.MultipartBody
import okhttp3.RequestBody
class StoryViewModel(privat... |
app/src/main/java/com/yofhi/storyapp/ui/story/StoryViewModel.kt | unknown_repo | kotlin | package com.yofhi.storyapp.ui.story
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.asLiveData
import com.yofhi.storyapp.data.repo.StoryRepo
import com.yofhi.storyapp.data.repo.UserRepo
import okhttp3.MultipartBody
import okhttp3.RequestBody
class StoryViewModel(privat... |
app/src/main/java/com/evilthreads/smsbackdoor/ui/GitHubViewModel.kt | unknown_repo | kotlin | package com.evilthreads.smsbackdoor.ui
import android.util.Log
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.evilthreads.smsbackdoor.RetrofitInstance
import com.evilthreads.smsbackdoor.data.GithubData
import com.evilthreads.smsbackdoor.data.... |
app/src/main/java/dev/ch8n/encryptedpayloads/ui/data/ApiManager.kt | unknown_repo | kotlin | package dev.ch8n.encryptedpayloads.ui.data
import android.util.Log
import io.ktor.util.encodeBase64
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.runBlocking
import okhttp3.Interceptor
import okhttp3.OkHttpClient
import okhttp3.RequestBody.Companion.toRequestBody
import okhttp3.logging.HttpLoggingInte... |
composeApp/src/commonMain/kotlin/ui/viewmodel/NavViewModel.kt | unknown_repo | kotlin | package ui.viewmodel
import androidx.lifecycle.ViewModel
import org.koin.core.component.KoinComponent
class NavViewModel: ViewModel(),KoinComponent {
} |
app/src/androidTest/java/net/kuama/documentscanner/data/OpenCVLoaderInstrumentedTest.kt | unknown_repo | kotlin | package net.kuama.documentscanner.data
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
import net.kuama.documentscanner.enums.EOpenCvStatus
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.Assert.assertEquals
@RunWith(AndroidJUnit4::... |
app/src/debug/kotlin/com/mustalk/minisimulator/HiltTestActivity.kt | unknown_repo | kotlin | package com.mustalk.minisimulator
import androidx.appcompat.app.AppCompatActivity
import dagger.hilt.android.AndroidEntryPoint
/**
* @author by MusTalK on 15/07/2024
*/
@AndroidEntryPoint
class HiltTestActivity : AppCompatActivity()
|
app/src/main/kotlin/su/katso/synonym/common/usecases/LoginUseCase.kt | unknown_repo | kotlin | package su.katso.synonym.common.usecases
import android.content.SharedPreferences
import android.util.Base64
import androidx.core.content.edit
import io.reactivex.Completable
import io.reactivex.Single
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.schedulers.Schedulers
import su.katso.sy... |
app/src/main/java/com/example/memoryexplorer/ui/composables/AppBar.kt | unknown_repo | kotlin | package com.example.memoryexplorer.ui.composables
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.outlined.ArrowBack
import androidx.compose.material.icons.outlined.Settings
import androidx.compose.material.icons.outlined.SupervisedUserCircle
import androidx.compose.material3.Center... |
client_restaurant/shared/src/androidMain/kotlin/util/ImagePicker.kt | unknown_repo | kotlin | package util
import android.content.Context
import android.graphics.BitmapFactory
import androidx.activity.ComponentActivity
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.activity.result.ActivityResultLauncher
import androidx.activity.result.PickVisualMediaRequest
import androidx.a... |
lib/src/main/java/cn/leizy/lib/http/HttpProxy.kt | unknown_repo | kotlin | package cn.leizy.lib.http
import android.app.Application
import cn.leizy.lib.http.okgo.OkGoHttp
import cn.leizy.lib.http.retrofit.RetrofitHttp
import java.lang.StringBuilder
/**
* @author Created by wulei
* @date 2019-11-11
* @description
*/
class HttpProxy private constructor(val iHttp: IHttp) : IHttp {
ove... |
app/src/main/java/com/kou/seekmake/screens/common/CustomAdapter.kt | unknown_repo | kotlin | package com.kou.seekmake.screens.common
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.BaseAdapter
import android.widget.ImageView
import android.widget.TextView
import com.kou.seekmake.R
import com.kou.seekmake.models.Seek... |
library/src/androidMain/kotlin/com/lightningkite/kiteui/utils/rect.kt | unknown_repo | kotlin | package com.lightningkite.kiteui.utils
import android.view.View
import com.lightningkite.kiteui.models.Rect
fun View.getBoundariesInWindow(): Rect {
val posInWindow = IntArray(2)
getLocationInWindow(posInWindow)
return Rect(
posInWindow[0].toDouble(),
posInWindow[1].toDouble(),
pos... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.