file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/com/ncs/o2/Data/Room/NotificationRepository/NotificationDAO.kt | unknown_repo | kotlin | package com.ncs.o2.Data.Room.NotificationRepository
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query
import androidx.room.Update
import com.ncs.o2.Domain.Models.Notification
/*
File : NotificationDAO -> com.ncs.o2.Room.Notif... |
app/src/main/java/com/mindmap/viewModel/NotesViewModel.kt | unknown_repo | kotlin | package com.kikunote.viewModel
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.kikunote.dao.NoteDao
import com.kikunote.database.NoteRoomDatabase
import com.kikunote.entity.Note
class NotesViewModel(appli... |
lib/ui-compose/src/main/java/se/gustavkarlsson/skylight/android/lib/ui/compose/Banner.kt | unknown_repo | kotlin | package se.gustavkarlsson.skylight.android.lib.ui.compose
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.RowScope
import androidx.compose.foundation.layout.Spacer
import andro... |
app/src/main/java/com/example/floplayer/MainActivity.kt | unknown_repo | kotlin | package com.example.floplayer
import android.Manifest
import android.content.ComponentName
import android.content.Context
import android.content.Intent
import android.content.ServiceConnection
import android.content.pm.PackageManager
import android.os.Bundle
import android.os.IBinder
import android.util.Log
import and... |
lib/src/main/java/com/flexcode/multiselectcalendar/utils/addOrRemoveIfExists.kt | unknown_repo | kotlin | package com.flexcode.multiselectcalendar.utils
import android.os.Build
import java.time.DayOfWeek
import java.time.LocalDate
internal fun Collection<LocalDate>.addOrRemoveIfExists(date: LocalDate) = if (contains(date)) {
this - date
} else {
this + date
}
internal infix fun DayOfWeek.daysUntil(other: DayOfWe... |
app/src/main/java/zlc/season/desolatordemo/MainActivity.kt | unknown_repo | kotlin | package zlc.season.desolatordemo
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import zlc.season.desolator.Desolator
import zlc.season.desolator.PluginData
import zlc.season.desolatordemo.databinding.ActivityMainBinding
class MainActivity : AppCompatActivity() {
val binding by lazy { A... |
src/_13coroutines/main.kt | unknown_repo | kotlin | package _13coroutines
import kotlinx.coroutines.*
suspend fun waitAndSee(i: Int) {
delay(5000)
println("Hello, world! $i")
}
suspend fun deepThought() = coroutineScope {
async {
delay(1000)
42
}
}
fun main() = runBlocking {
val answer = deepThought()
for (i in 1..100_000) {
... |
app/src/main/kotlin/de/digitalService/useID/ui/components/pin/PinDigitRow.kt | unknown_repo | kotlin | package de.digitalService.useID.ui.components.pin
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compo... |
riistaandroid/src/test/java/fi/riista/mobile/test/MockUtils.kt | unknown_repo | kotlin | package fi.riista.mobile.test
import android.location.Location
import org.mockito.Mockito.`when`
import org.mockito.Mockito.mock
object MockUtils {
@JvmStatic
fun mockLocation(lat: Double, lng: Double): Location {
val location = mock(Location::class.java)
`when`(location.latitude).thenReturn(... |
app/src/main/java/com/fredhappyface/ewesticker/adapter/StickerPackAdapter.kt | unknown_repo | kotlin | package com.fredhappyface.ewesticker.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import coil.load
import com.fredhappyface.ewesticker.R
import com.fredhappyface.ewesticker.utilities.StickerClickListener
import com.fredhappyface.ewesticker.vi... |
circuit-retained/src/jvmMain/kotlin/com/slack/circuit/retained/CanRetainChecker.jvm.kt | unknown_repo | kotlin | // Copyright (C) 2022 Slack Technologies, LLC
// SPDX-License-Identifier: Apache-2.0
package com.slack.circuit.retained
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
/** No-op on the JVM! */
@Composable
internal actual fun rememberCanRetainChecker(): () -> Boolean {
return reme... |
ultravox_client/src/main/java/ai/ultravox/UltravoxSession.kt | unknown_repo | kotlin | package ai.ultravox
import android.content.Context
import android.os.Build
import android.util.Log
import io.livekit.android.LiveKit
import io.livekit.android.events.RoomEvent
import io.livekit.android.events.collect
import io.livekit.android.room.Room
import kotlinx.collections.immutable.toImmutableList
import kotlin... |
app/src/androidTest/java/com/example/amphibians/InstrumentationTests.kt | unknown_repo | kotlin |
package com.example.amphibians
import androidx.fragment.app.testing.launchFragmentInContainer
import androidx.test.core.app.launchActivity
import androidx.test.espresso.action.ViewActions.click
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMatchers.isDisplaye... |
core/ui/src/main/java/com/mcgrady/xproject/core/ui/progressview/animation/DefaultAnimationOrchestrator.kt | unknown_repo | kotlin | /*
* Copyright 2022 mcgrady
*
* 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/com/jadynai/kotlindiary/mvredux/ReduxKotlinActivity.kt | unknown_repo | kotlin | package com.jadynai.kotlindiary.mvredux
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.jadyn.ai.kotlind.function.ui.click
import com.jadynai.kotlindiary.R
import kotlinx.android.synthetic.main.activity_redux.*
import org.reduxkotlin.Reducer
import org.reduxkotlin.createStore
import... |
PermissionProxy/src/main/java/com/shuaijie/permissionproxy/permissionRequest/V4PermissionRequest.kt | unknown_repo | kotlin | package com.shuaijie.permissionproxy.permissionRequest
import android.content.pm.PackageManager
import android.os.Build
import android.support.v4.app.Fragment
import android.support.v7.app.AppCompatActivity
import com.shuaijie.permissionproxy.PermissionProxyInterface
import com.shuaijie.permissionproxy.PermissionProxy... |
utilcode/pkg/src/main/java/com/blankj/utilcode/pkg/feature/app/AppActivity.kt | unknown_repo | kotlin | package com.blankj.utilcode.pkg.feature.app
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.View
import com.blankj.lib.base.BaseBackActivity
import com.blankj.utilcode.pkg.Config
import com.blankj.utilcode.pkg.R
import com.blankj.utilcode.pkg.helper.PermissionH... |
Android/voiceroomkit/src/main/java/com/netease/yunxin/kit/voiceroomkit/impl/model/VoiceRoomInfo.kt | unknown_repo | kotlin | /*
* Copyright (c) 2022 NetEase, Inc. All rights reserved.
* Use of this source code is governed by a MIT license that can be
* found in the LICENSE file.
*/
package com.netease.yunxin.kit.voiceroomkit.impl.model
import androidx.annotation.Keep
import com.google.gson.annotations.SerializedName
import java.io.Seria... |
components/src/main/kotlin/com/exyui/android/debugbottle/components/okhttp/LoggingInterceptor3.kt | unknown_repo | kotlin | package com.exyui.android.debugbottle.components.okhttp
import android.util.Log
import com.exyui.android.debugbottle.components.DTSettings
import okhttp3.*
import okio.Buffer
import java.io.IOException
/**
* Created by yuriel on 11/14/16.
*/
internal class LoggingInterceptor3 : Interceptor {
override fun interc... |
app/src/main/java/com/example/room/RoomFragment.kt | unknown_repo | kotlin | package com.example.room
import android.content.Context
import android.os.AsyncTask
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.Li... |
app/src/main/java/de/dhelleberg/spotifykidsplayer/ui/play/PlayFragment.kt | unknown_repo | kotlin | package de.dhelleberg.spotifykidsplayer.ui.play
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import com.spotify.protocol.types.ImageUri
import com.spoti... |
app/src/main/java/com/webaddicted/imagepickercompressor/view/imgpicker/ImagePickerActivity.kt | unknown_repo | kotlin | package com.webaddicted.imagepickercompressor.view.imgpicker
import android.app.Activity
import android.content.Intent
import android.graphics.Bitmap
import android.view.View
import androidx.databinding.ViewDataBinding
import com.webaddicted.imagepickercompressor.R
import com.webaddicted.imagepickercompressor.databind... |
dialogresources/src/main/kotlin/base/dialogresources/domain/extensions/DialogExtensions.kt | unknown_repo | kotlin | package base.dialogresources.domain.extensions
import android.app.Dialog
import base.dialogresources.presentation.dialogs.BaseFullscreenMaterialDialog
import base.dialogresources.presentation.dialogs.BaseMaterialDialog
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.launch
import kotlinx.coroutines.... |
app/src/main/java/app/krunal3kapadiya/mlglossary/base/SharedPrefsProvider.kt | unknown_repo | kotlin | package app.krunal3kapadiya.mlglossary.base
/*
* Copyright (c) 2018. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
* Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan.
* Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
* Proin dapibus sapien vel a... |
app/src/main/java/com/enecuum/app/App.kt | unknown_repo | kotlin | package com.enecuum.app
import android.content.Context
import android.content.ContextWrapper
import androidx.multidex.MultiDex
import androidx.multidex.MultiDexApplication
import com.enecuum.app.di.networkModule
import com.enecuum.app.di.appModule
import com.enecuum.lib.api.main.Api
import com.enecuum.lib.api.main.Api... |
app/src/main/java/hu/mostoha/mobile/android/huki/model/mapper/HomeUiModelMapper.kt | unknown_repo | kotlin | package hu.mostoha.mobile.android.huki.model.mapper
import androidx.annotation.DrawableRes
import hu.mostoha.mobile.android.huki.R
import hu.mostoha.mobile.android.huki.model.domain.Geometry
import hu.mostoha.mobile.android.huki.model.domain.HikingRoute
import hu.mostoha.mobile.android.huki.model.domain.Landscape
impo... |
app/src/main/java/com/andrei/jetpack/swissandroid/di/mainviewpagerpagescope/GradesViewModelModule.kt | unknown_repo | kotlin | package com.andrei.jetpack.swissandroid.di.mainviewpagerpagescope
import androidx.lifecycle.ViewModel
import com.andrei.jetpack.swissandroid.ui.main.viewmodels.GradesViewModel
import com.andrei.jetpack.swissandroid.viewmodel.ViewModelKey
import dagger.Binds
import dagger.Module
import dagger.multibindings.IntoMap
/*
... |
app/src/main/java/io/chaldeaprjkt/yumetsuki/worker/WorkerEventDispatcherImpl.kt | unknown_repo | kotlin | package io.chaldeaprjkt.yumetsuki.worker
import android.content.Context
import androidx.work.WorkManager
import dagger.hilt.android.qualifiers.ApplicationContext
import io.chaldeaprjkt.yumetsuki.data.gameaccount.entity.HoYoGame
import io.chaldeaprjkt.yumetsuki.data.settings.entity.CheckInSettings
import io.chaldeaprjk... |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/LampOff.kt | unknown_repo | kotlin | package com.woowla.compose.icon.collections.tabler.tabler.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector... |
app/src/main/java/com/tmvlg/smsreceiver/domain/freenumber/FreeNumberRepository.kt | unknown_repo | kotlin | package com.tmvlg.smsreceiver.domain.freenumber
import androidx.lifecycle.LiveData
interface FreeNumberRepository {
fun addFreeNumber(freeNumber: FreeNumber)
fun getFreeNumberList() : LiveData<List<FreeNumber>>
fun getFreeNumber(freeNumberId: Int) : FreeNumber
fun filterFreeNumberList(query: Strin... |
components/filemngr/listing/impl/src/androidMain/kotlin/com/flipperdevices/filemanager/listing/impl/composable/LoadedFilesComposable.kt | unknown_repo | kotlin | package com.flipperdevices.filemanager.listing.impl.composable
import androidx.compose.animation.Crossfade
import androidx.compose.animation.animateContentSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.lazy.grid.LazyGridScope
import androidx.compose.foundation.lazy.grid.... |
app/src/main/java/com/yorick/cokotools/ui/components/CokoDropMenu.kt | unknown_repo | kotlin | package com.yorick.cokotools.ui.components
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.ArrowDropDown
import androidx.compose.material.icons.filled.ArrowDropUp
import andr... |
app/src/main/java/com/example/androiddevchallenge/ServiceListPresenter.kt | unknown_repo | kotlin | package com.example.androiddevchallenge
import androidx.compose.runtime.derivedStateOf
import androidx.compose.runtime.toMutableStateMap
import com.example.androiddevchallenge.data.Categories
import com.example.androiddevchallenge.data.Repository
import com.example.androiddevchallenge.data.Services
import com.example.... |
application/src/main/java/com/iamkurtgoz/application/extensions/RepositoryExtensions.kt | unknown_repo | kotlin | package com.iamkurtgoz.application.extensions
import androidx.paging.PagingData
import androidx.paging.map
import com.google.gson.Gson
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.*
import com.iamkurtgoz.domain.extension.isNull
import com.iamkurtgoz.domain.remote.resource.FlowResource
import co... |
core/src/main/java/com/skoumal/teanity/databinding/AdaptersGeneric.kt | unknown_repo | kotlin | package com.skoumal.teanity.databinding
import android.view.View
import androidx.core.view.isGone
import androidx.core.view.isInvisible
import androidx.databinding.BindingAdapter
@BindingAdapter("gone")
fun View.setGone(gone: Boolean) {
isGone = gone
}
@BindingAdapter("invisible")
fun View.setInvisible(invisible... |
src/androidMain/kotlin/com/ditchoom/buffer/JvmBuffer.kt | unknown_repo | kotlin | package com.ditchoom.buffer
import android.os.Build
import android.os.Parcel
import android.os.ParcelFileDescriptor
import android.os.Parcelable.Creator
import kotlinx.coroutines.CoroutineName
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.cancel
import kotlinx... |
dashboard/src/main/java/mx/yellowme/youst/dashboard/ui/DashboardOptionAdapter.kt | unknown_repo | kotlin | package mx.yellowme.youst.dashboard.ui
import android.view.LayoutInflater
import android.view.ViewGroup
import mx.yellowme.youst.core.hooks.recycler.ItemListener
import mx.yellowme.youst.core.hooks.recycler.SimpleRecyclerAdapter
import mx.yellowme.youst.dashboard.R
import mx.yellowme.youst.dashboard.domain.DashboardOp... |
app/src/main/java/io/horizontalsystems/bankwallet/ui/extensions/InputView.kt | unknown_repo | kotlin | package io.horizontalsystems.bankwallet.ui.extensions
import android.content.Context
import android.graphics.Typeface
import android.text.Editable
import android.text.TextWatcher
import android.util.AttributeSet
import android.view.animation.AnimationUtils
import androidx.compose.foundation.layout.padding
import andro... |
app/src/main/java/com/example/filler/gui/game/GameUtils.kt | unknown_repo | kotlin | package com.example.filler.gui.game
import android.content.Intent
import android.widget.GridView
import android.widget.TextView
import com.example.filler.R
import com.example.filler.constants.gui.Music
import com.example.filler.constants.logic.GameColor
import com.example.filler.constants.logic.GameState
import com.ex... |
core/ui/compose/designsystem/src/main/kotlin/app/k9mail/core/ui/compose/designsystem/atom/button/ButtonDefaults.kt | unknown_repo | kotlin | package app.k9mail.core.ui.compose.designsystem.atom.button
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.runtime.Composable
import app.k9mail.core.ui.compose.theme.MainTheme
@Composable
fun buttonContentPadding(): PaddingValues = PaddingValues(
start = MainTheme.spacings.quadrup... |
compose/ui/ui-test-junit4/src/desktopTest/kotlin/androidx/compose/ui/test/junit4/CustomEffectContextRuleTest.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... |
compose/ui/ui-test-junit4/src/desktopTest/kotlin/androidx/compose/ui/test/junit4/CustomEffectContextRuleTest.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/bls/flight/ui/ticket/components/TabItem.kt | unknown_repo | kotlin | package com.bls.flight.ui.ticket.components
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.Tab
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable... |
src/main/java/cy/ac/ucy/cs/anyplace/lib/android/ui/smas/chat/components/Conversation.kt | unknown_repo | kotlin | package cy.ac.ucy.cs.anyplace.lib.android.ui.smas.chat.components
import android.graphics.Bitmap
import android.os.Build
import androidx.annotation.RequiresApi
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.found... |
app/src/main/java/dev/gusriil/mindfullconnect/android/dto/post/PostResponseModel.kt | unknown_repo | kotlin | package dev.gusriil.mindfullconnect.android.dto.post
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
import kotlinx.serialization.Serializable
@Serializable
@Parcelize
data class PostResponseModel(
val page: Int,
val pagesNumber: Int,
val results: List<PostModel>,
val size: Int
) : Par... |
app/src/main/java/com/ttpsc/dynamics365fieldService/views/adapters/VerticalListAdapter.kt | unknown_repo | kotlin | package com.ttpsc.dynamics365fieldService.views.adapters
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.RecyclerView
import com.ttpsc.dynamics365fieldService.R
import... |
app/src/main/java/com/example/ashish1/MainActivity.kt | unknown_repo | kotlin | package com.example.ashish1
import android.annotation.SuppressLint
import android.content.Intent
import android.content.pm.PackageManager
import android.content.res.Configuration
import android.net.Uri
import android.os.Build
import android.os.Bundle
import android.provider.MediaStore
import android.view.Menu
import a... |
app/src/main/java/com/salihselimsekerci/yemeksepetikotlin/activities/ProductsActivity.kt | unknown_repo | kotlin | package com.salihselimsekerci.yemeksepetikotlin.activities
import android.app.ProgressDialog
import android.content.DialogInterface
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AlertDialog
import androidx.recyclerview.widget.GridLayoutM... |
client/app/src/main/java/com/unina/natourkt/core/data/paging/UsersSource.kt | unknown_repo | kotlin | package com.unina.natourkt.core.data.paging
import android.util.Log
import androidx.paging.PagingSource
import androidx.paging.PagingState
import com.unina.natourkt.core.data.remote.dto.mapper.UserApiMapper
import com.unina.natourkt.core.data.remote.retrofit.UserApi
import com.unina.natourkt.core.data.repository.UserR... |
pixel/src/main/java/com/leonardpark/pixel/gallery/GalleryActivity.kt | unknown_repo | kotlin | package com.leonardpark.pixel.gallery
import android.content.Intent
import android.os.Bundle
import android.provider.MediaStore
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.recyclerview.widget... |
app/src/main/java/com/marcossalto/peopleapp/di/AppModule.kt | unknown_repo | kotlin | package com.marcossalto.peopleapp.di
import android.content.Context
import androidx.room.Room
import com.marcossalto.peopleapp.core.Constants.Companion.DATABASE_NAME
import com.marcossalto.peopleapp.data.repository.UserRepositoryImpl
import com.marcossalto.peopleapp.data.source.local.UserDB
import com.marcossalto.peop... |
android/src/main/java/com/myapplication/MainActivity.kt | unknown_repo | kotlin | package com.myapplication
import App
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.ui.platform.setContent
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setConten... |
library/src/commonMain/kotlin/dev/afalabarce/kmm/jetpackcompose/localcomposition/LocalNetworkStatus.kt | unknown_repo | kotlin | package dev.afalabarce.kmm.jetpackcompose.networking
import androidx.compose.runtime.compositionLocalOf
val LocalNetworkStatus = compositionLocalOf<NetworkStatus> {
NetworkStatus.Available
} |
android/src/debug/kotlin/org/acyb/sayit/app/atom/DialogPreview.kt | unknown_repo | kotlin | /*
* Copyright (c) 2024 <NAME> (bitPogo) / All rights reserved.
*
* Use of this source code is governed by Apache v2.0
*/
package org.acyb.sayit.app.atom
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
import org.acyb.sayit.app.molecule.TopAppBarGlobal
@Preview
@Comp... |
app/src/main/java/com/example/composelearning/lists/RowAnim.kt | unknown_repo | kotlin | package com.example.composelearning.lists
import android.util.Log
import androidx.compose.animation.core.Animatable
import androidx.compose.animation.core.LinearEasing
import androidx.compose.animation.core.tween
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.background
import andr... |
app/src/main/java/ru/tech/imageresizershrinker/presentation/root/utils/state/Update.kt | unknown_repo | kotlin | package ru.tech.imageresizershrinker.core.ui.utils.state
import androidx.compose.runtime.MutableState
fun <T> MutableState<T>.update(
transform: (T) -> T
): MutableState<T> = apply {
this.value = transform(this.value)
} |
library/src/main/java/com/kennyc/bottomsheet/BottomSheetListener.kt | unknown_repo | kotlin | package com.kennyc.bottomsheet
import android.view.MenuItem
import androidx.annotation.IntDef
interface BottomSheetListener {
@IntDef(DISMISS_EVENT_MANUAL, DISMISS_EVENT_SWIPE)
annotation class DismissEvent
/**
* Called when the [BottomSheetMenuDialogFragment] is first displayed
*
* @para... |
app/src/main/java/xyz/teamgravity/roompaging3/injection/provide/ApplicationModule.kt | unknown_repo | kotlin | package xyz.teamgravity.roompaging3.injection.provide
import android.app.Application
import androidx.paging.PagingConfig
import androidx.room.Room
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import kotlinx.coroutines.CoroutineScope
import ko... |
app/src/main/java/com/example/logogenia/presentation/ui/knowingWords/KnowingWordsRoute.kt | unknown_repo | kotlin | package com.example.logogenia.presentation.ui.knowingWords
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxWidth
... |
app/src/main/java/com/igorvd/chuckfacts/di/features/JokesModule.kt | unknown_repo | kotlin | package com.igorvd.chuckfacts.di.features
import androidx.lifecycle.ViewModel
import com.igorvd.chuckfacts.di.core.ViewModelKey
import com.igorvd.chuckfacts.features.jokes.JokesViewModel
import dagger.Binds
import dagger.Module
import dagger.multibindings.IntoMap
import kotlinx.coroutines.FlowPreview
@Module
abstrac... |
solidfragment/src/main/java/com/mitteloupe/solid/fragment/SolidFragment.kt | unknown_repo | kotlin | package com.mitteloupe.solid.fragment
import android.content.Context
import android.content.Intent
import android.content.res.Configuration
import android.os.Bundle
import android.util.AttributeSet
import android.view.ContextMenu
import android.view.LayoutInflater
import android.view.Menu
import android.view.MenuInfla... |
katmaps-library/src/main/java/com/groupon/katmaps/katmaps_library/MapMarkerContainer.kt | unknown_repo | kotlin | /*
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, Version 2.0 (the
"License"); you may not use this f... |
app/src/main/java/com/wisnu/kurniawan/wallee/features/setting/ui/SettingState.kt | unknown_repo | kotlin | package com.wisnu.kurniawan.wallee.features.setting.ui
import androidx.compose.runtime.Immutable
import com.wisnu.kurniawan.wallee.R
@Immutable
data class SettingState(
val items: List<SettingItem> = initial()
) {
companion object {
private fun initial() = listOf(
SettingItem.Theme(R.strin... |
app/src/main/java/com/duckduckgo/app/global/view/FireDialog.kt | unknown_repo | kotlin | /*
* Copyright (c) 2018 DuckDuckGo
*
* 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 ... |
dodam-design-system/src/iosMain/kotlin/com/b1nd/dodam/designsystem/previews/DodamDatePickerPreview.kt | unknown_repo | kotlin | package com.b1nd.dodam.designsystem.previews
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.rememberModalBottomSheetState
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import androidx.comp... |
dodam-design-system/src/iosMain/kotlin/com/b1nd/dodam/designsystem/previews/DodamDatePickerPreview.kt | unknown_repo | kotlin | package com.b1nd.dodam.designsystem.previews
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.rememberModalBottomSheetState
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import androidx.comp... |
app/src/main/java/com/personal/weathering/aq/presentation/components/CurrentAqInfoCompact.kt | unknown_repo | kotlin | package com.personal.weathering.aq.presentation.components
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.core.animateIntAsState
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
i... |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/Whale.kt | unknown_repo | kotlin | package me.localx.icons.rounded.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... |
Compose/app/src/main/java/com/example/compose/MainActivity.kt | unknown_repo | kotlin | package com.example.compose
import android.content.res.Configuration
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.Image
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.*
import andr... |
mapcompose/src/main/java/ovh/plrapps/mapcompose/api/PathApi.kt | unknown_repo | kotlin | @file:Suppress("unused")
package ovh.plrapps.mapcompose.api
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.Dp
import ovh.plrapps.mapcompose.ui.paths.PathData
import ovh.plrapps.mapcompose.ui.paths.PathDataBuilder
import ovh.plrapps.mapcompose.ui.state.MapState
/**
* Adds a path, optionall... |
app/src/main/java/afkt/project/feature/dev_widget/view_assist/ViewAssistUtils.kt | unknown_repo | kotlin | package afkt.project.feature.dev_widget.view_assist
import afkt.project.R
import android.view.LayoutInflater
import android.view.View
import dev.widget.assist.ViewAssist
/**
* detail: ViewAssist Adapter 工具类
* @author Ttt
*/
object ViewAssistUtils {
/**
* 注册 Recycler Loading type
* @param viewAssist ... |
app/src/main/java/com/ng/ui/other/zoom/ZoomActivity.kt | unknown_repo | kotlin | package com.ng.ui.other.zoom
import android.os.Build
import android.os.Bundle
import androidx.annotation.RequiresApi
import androidx.appcompat.app.AppCompatActivity
import com.ng.nguilib.layout.zoom.ZoomLayout3
import com.ng.ui.R
import kotlinx.android.synthetic.main.activity_zoom.*
/**
* 描述:
* @author Jzn
* @date... |
mvi-arch/src/main/java/ru/touchin/roboswag/mvi_arch/core/Store.kt | unknown_repo | kotlin | package ru.touchin.roboswag.mvi_arch.core
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.cancel
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.MutableStateFlo... |
privacystreams-app/src/main/java/io/github/privacystreams/app/PStreamBroadcastReceiver.kt | unknown_repo | kotlin | package io.github.privacystreams.app
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.util.Log
import io.github.privacystreams.app.db.PStreamCollectService
/**
* Receive broadcasts and react
*/
class PStreamBroadcastReceiver(): BroadcastReceiver() ... |
tutorials/tutorial-sample/src/main/java/com/zhuinden/simplestacktutorials/steps/step_8/features/main/MainKey.kt | unknown_repo | kotlin | package com.zhuinden.simplestacktutorials.steps.step_8.features.main
import androidx.fragment.app.Fragment
import com.zhuinden.simplestack.ServiceBinder
import com.zhuinden.simplestackextensions.servicesktx.add
import com.zhuinden.simplestackextensions.servicesktx.get
import com.zhuinden.simplestackextensions.services... |
network-tasks/src/test/java/io/appmetrica/analytics/networktasks/internal/FullUrlFormerTest.kt | unknown_repo | kotlin | package io.appmetrica.analytics.networktasks.internal
import android.net.Uri
import org.assertj.core.api.Assertions.assertThat
import org.junit.Assert.assertThrows
import org.junit.Test
import org.junit.runner.RunWith
import org.mockito.kotlin.any
import org.mockito.kotlin.doAnswer
import org.mockito.kotlin.doReturn
i... |
app/src/main/java/com/arcadone/cloudsharesnap/presentation/theme/ThemeColors.kt | unknown_repo | kotlin | package com.arcadone.cloudsharesnap.presentation.theme
import androidx.compose.ui.graphics.Color
val LightColors = CustomColors(
color01 = Color(0xFF6CA6CD),
color02 = Color(0xFFE6F7FF),
color03 = Color(0xFFADD8E6),
color04 = Color(0xFF87CEEB),
color05 = Color(0xFF4682B4),
color06 = Color(0xF... |
src/ko/newtoki/src/eu/kanade/tachiyomi/extension/ko/newtoki/DomainNumber.kt | unknown_repo | kotlin | package eu.kanade.tachiyomi.extension.ko.newtoki
import android.util.Log
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.util.asJsoup
import okhttp3.Interceptor
import okhttp3.Response
import java.io.IOException
/**
* Source changes domain names every few days (e.g. newtoki31.net to newtoki32.net)
... |
app/src/main/java/com/appchamp/wordchunks/ui/game/GameActivity.kt | unknown_repo | kotlin | /*
* Copyright 2017 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writin... |
app/src/main/java/com/wuruoye/know/ui/home/adapter/RecordTypeRVAdapter.kt | unknown_repo | kotlin | package com.wuruoye.know.ui.home.adapter
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import com.wuruoye.know.R
import com.wuruoye.know.model.beans.RecordType
import com.wuruoye.library.adapter.WB... |
app/src/main/kotlin/com/illiarb/tmdbclient/modules/details/v2/components/MoviePhoto.kt | unknown_repo | kotlin | package com.illiarb.tmdbclient.modules.details.v2.components
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compos... |
boo/src/main/java/com/larvalabs/boo/Util.kt | unknown_repo | kotlin | package com.larvalabs.boo
import android.util.Log
import android.view.animation.PathInterpolator
object Util {
private const val VERBOSE_ON = false
private const val TAG = "unlookable"
/**
* Use for everything but entering/exiting..
*/
val PATH_CURVE = PathInterpolator(0.4f, 0.0f, 0.2f, 1f)
/**
... |
app/src/main/java/com/cyberknights4911/scouting/database/EventTeamCrossRef.kt | unknown_repo | kotlin | package com.cyberknights4911.scouting.database
import androidx.room.Entity
@Entity(
tableName = "event_team_crossref_table",
primaryKeys = ["event_key", "team_key"]
)
data class EventTeamCrossRef(
val event_key: String,
val team_key: String
)
|
app/src/main/java/com/hadesmori/notes/ui/notes/NotesFragment.kt | unknown_repo | kotlin | package com.hadesmori.notes.ui.notes
import android.app.Activity
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.inputmethod.InputMethodManager
import android.widget.SearchView
... |
app/src/main/java/br/com/aramizu/idog/utils/DrawableResources.kt | unknown_repo | kotlin | package br.com.aramizu.idog.utils
import android.graphics.drawable.Drawable
import br.com.aramizu.idog.config.IDogApplication
class DrawableResources {
companion object {
fun get(identifier: Int): Drawable? {
return IDogApplication.applicationContext()?.getDrawable(identifier)
}
}... |
presentation/src/main/java/io/github/joelkanyi/presentation/language/LanguageViewModel.kt | unknown_repo | kotlin | /*
* Copyright 2024 <NAME>.
* SPDX-License-Identifier: Apache-2.0
*/
package io.github.joelkanyi.presentation.language
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import io.github.joelkanyi.domain.repository.PreferenceRepository
i... |
app-ui-catalog/src/main/java/app/k9mail/ui/catalog/ui/atom/items/ColorItems.kt | unknown_repo | kotlin | package app.k9mail.ui.catalog.ui.atom.items
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.grid.LazyGridScope
import androidx.compose.runtime.Composable
import androidx.compose... |
common/src/main/java/android/util/BV.kt | unknown_repo | kotlin | package android.util
import android.content.ContentResolver
import android.content.Context
import android.net.Uri
import androidx.annotation.RawRes
import dev.eastar.ktx.appName
import dev.eastar.ktx.getDrawableId
import dev.eastar.ktx.getRawString
import java.util.*
object BV {
lateinit var CONTEXT: Context
... |
ui/src/main/java/dev/efrenospino/exptracker/ui/ComposeApp.kt | unknown_repo | kotlin | package dev.efrenospino.exptracker.ui
import android.content.Context
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.lifecycle.viewmodel.compose.viewModel
import androidx.navigation.compose.rememberNavController
import dev.efrenospino.exptracker.domain.usecases.Filte... |
ComposePrefs/src/main/java/com/jamal/composeprefs/ui/prefs/TextPref.kt | unknown_repo | kotlin | package com.jamal.composeprefs3.ui.prefs
import androidx.compose.foundation.clickable
import androidx.compose.material3.*
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import com.jamal.composeprefs3.ui.PrefsListItem
import com.jamal.composepref... |
app/src/main/java/com/renamecompanyname/renameappname/ui/home/HomeScreen.kt | unknown_repo | kotlin | package com.renamecompanyname.renameappname.ui.home
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import android... |
app/src/main/java/com/basarcelebi/fuelpriceapp/Navigation.kt | unknown_repo | kotlin | package com.basarcelebi.fuelpriceapp
import androidx.compose.runtime.Composable
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navigation.compose.rememberNavController
import com.basarcelebi.fuelpriceapp.screens.FuelPriceScreen
@Composable
fun Navigation() {
... |
app/src/main/java/com/anorlddroid/patricemulindi/views/HomeFragment.kt | unknown_repo | kotlin | package com.anorlddroid.patricemulindi.views
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.NumberPicker
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.Toolbar
import ... |
app/src/main/java/app/zhrfnnn/newsapp/ui/main/home/HomeVM.kt | unknown_repo | kotlin | package app.zhrfnnn.newsapp.ui.main.home
import androidx.lifecycle.MutableLiveData
import app.zhrfnnn.newsapp.data.model.Article
import app.zhrfnnn.newsapp.data.usecase.news.GetHeadlinesUseCase
import app.zhrfnnn.newsapp.ui.base.BaseActivity
import app.zhrfnnn.newsapp.ui.base.BaseVM
import app.zhrfnnn.newsapp.util.log... |
application/src/main/java/com/iamkurtgoz/application/local/db/ECommerceDatabase.kt | unknown_repo | kotlin | package com.iamkurtgoz.application.local.db
import androidx.room.Database
import androidx.room.RoomDatabase
import com.iamkurtgoz.application.local.dao.ProductCategoryDAO
import com.iamkurtgoz.application.local.dao.ProductDAO
import com.iamkurtgoz.application.local.entity.ProductCategoryEntity
import com.iamkurtgoz.ap... |
privacy-config/privacy-config-store/src/main/java/com/duckduckgo/privacy/config/store/features/gpc/GpcHeadersDao.kt | unknown_repo | kotlin | /*
* Copyright (c) 2021 DuckDuckGo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
app/src/main/java/com/shenyong/aabills/listdata/AaFriend.kt | unknown_repo | kotlin | package com.shenyong.aabills.listdata
import android.databinding.ObservableField
import android.graphics.drawable.GradientDrawable
import com.sddy.baseui.recycler.BaseHolderData
import com.sddy.baseui.recycler.databinding.BaseBindingHolder
import com.shenyong.aabills.R
import com.shenyong.aabills.databinding.LayoutAaF... |
gallery-app/src/commonMain/kotlin/io/ashdavies/gallery/CameraView.kt | unknown_repo | kotlin | package io.ashdavies.gallery
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
@Composable
public expect fun CameraView(
modifier: Modifier = Modifier,
onCapture: (Uri) -> Unit,
)
public expect class Uri
|
brd-android/app/src/main/java/com/breadwallet/ui/profile/ProfileAdapter.kt | unknown_repo | kotlin | package com.breadwallet.ui.profile
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.breadwallet.R
import com.breadwallet.databinding.ListItemProfileBinding
class ProfileAdapter(
private val items: List<ProfileItem... |
army-knife-timber/src/main/java/com/eaglesakura/armyknife/timber/ConsoleTree.kt | unknown_repo | kotlin | package com.eaglesakura.armyknife.timber
import android.util.Log
import timber.log.Timber
/**
* Simple console(println) out tree.
*/
class ConsoleTree : Timber.Tree() {
override fun log(priority: Int, tag: String?, message: String, t: Throwable?) {
Log.println(priority, tag, message)
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.