file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/com/example/avjindersinghsekhon/minimaltodo/utility/DeleteNotificationReceiver.kt | unknown_repo | kotlin | package com.example.avjindersinghsekhon.minimaltodo.utility
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import androidx.work.OneTimeWorkRequest
import androidx.work.WorkManager
import androidx.work.workDataOf
class DeleteNotificationReceiver: BroadcastReceiver... |
core/src/main/java/at/guger/moneybook/core/ui/fragment/BaseFragment.kt | unknown_repo | kotlin | /*
* Copyright 2021 <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 ag... |
app/src/main/java/com/shicheeng/hacg/ui/view/detail/Detail.kt | unknown_repo | kotlin | package com.shicheeng.hacg.ui.view.detail
import androidx.activity.compose.BackHandler
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.core.animateDpAsState
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.foundation.layou... |
android/nsn/app/src/main/java/com/gingercake/nsn/framework/ui.kt | unknown_repo | kotlin | package com.gingercake.nsn.framework
import android.view.View
import androidx.recyclerview.widget.RecyclerView
class GenericViewHolder constructor(
itemView: View
) : RecyclerView.ViewHolder(itemView) |
presentation/src/main/java/com/wa2c/android/cifsdocumentsprovider/presentation/ext/ValueResource.kt | unknown_repo | kotlin | package com.wa2c.android.cifsdocumentsprovider.presentation.ext
import android.content.Context
import androidx.annotation.StringRes
import androidx.appcompat.app.AppCompatDelegate
import com.wa2c.android.cifsdocumentsprovider.common.exception.Edit
import com.wa2c.android.cifsdocumentsprovider.common.values.ConnectionR... |
app/src/androidTest/java/android/support/test/InstrumentationRegistry.kt | unknown_repo | kotlin | package android.support.test
import android.content.Context
import androidx.test.core.app.ApplicationProvider
/**
* This solves the issue with mockito looking for InstrumentationRegistry with reflection.
* Hopefully this class won't be required with a mockito update.
*
* Report: https://github.com/mockito/mockito... |
commerce-services-sample/src/main/java/com/godaddy/commerce/services/sample/catalog/priceAdjustment/update/PriceAdjustmentUpdateFragment.kt | unknown_repo | kotlin | package com.godaddy.commerce.services.sample.catalog.priceAdjustment.update
import android.os.Bundle
import android.view.View
import androidx.fragment.app.viewModels
import com.godaddy.commerce.catalog.models.Product
import com.godaddy.commerce.services.sample.R
import com.godaddy.commerce.services.sample.catalog.pric... |
utils/src/test/java/com/grappim/hateitorrateit/utils/file/ImagePersistenceManagerImplTest.kt | unknown_repo | kotlin | package com.grappim.hateitorrateit.utils.file
import android.net.Uri
import com.grappim.hateitorrateit.domain.ProductImageData
import com.grappim.hateitorrateit.utils.file.images.ImagePersistenceManager
import com.grappim.hateitorrateit.utils.file.images.ImagePersistenceManagerImpl
import com.grappim.hateitorrateit.ut... |
solar/src/main/java/com/chiksmedina/solar/outline/search/RoundedMagniferBug.kt | unknown_repo | kotlin | package com.chiksmedina.solar.outline.search
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.... |
fliptimerviewlibrary/src/main/java/com/asp/fliptimerviewlibrary/CountdownDigit.kt | unknown_repo | kotlin | package com.asp.fliptimerviewlibrary
import android.content.Context
import android.graphics.Typeface
import android.util.AttributeSet
import android.view.LayoutInflater
import android.view.animation.AccelerateInterpolator
import android.view.animation.DecelerateInterpolator
import android.widget.FrameLayout
import com... |
Kotlin/app/src/main/java/com/ahmadabuhasan/dicoding/model/Language.kt | unknown_repo | kotlin | package com.ahmadabuhasan.dicoding.model
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
data class Language(
var name: String = "",
var detail: String = "",
var skill: String = "",
var link: String = "",
var image: Int = 0
) : Parcelable
|
week4/FragmentKotlin/app/src/main/java/com/example/fragmentkotlin/ViewFragment.kt | unknown_repo | kotlin | package com.example.fragmentkotlin
import android.content.Context
import android.content.SharedPreferences
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.example.fragmentkotlin.databinding.ViewFragmentB... |
app/src/main/java/knf/kuma/videoservers/NatsukiServer.kt | unknown_repo | kotlin | package knf.kuma.videoservers
import android.content.Context
import knf.kuma.commons.PatternUtil
import knf.kuma.commons.jsoupCookies
import knf.kuma.videoservers.VideoServer.Names.NATSUKI
import org.json.JSONObject
class NatsukiServer internal constructor(context: Context, baseLink: String) : Server(context, baseLin... |
vector/src/main/java/im/vector/riotx/features/crypto/keysbackup/restore/KeysBackupRestoreFromKeyViewModel.kt | unknown_repo | kotlin | /*
* Copyright 2019 New Vector Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
prado/src/main/java/com/schibsted/spain/prado/PradoGalleryActivity.kt | unknown_repo | kotlin | package com.schibsted.spain.prado
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.LinearLayoutManager
import android.view.Gravity
import com.github.rubensousa.gravitysnaphe... |
app_kchttp_sample/src/main/java/com/zsc/app_kchttp_sample/ui/MainActivity.kt | unknown_repo | kotlin | package com.zsc.app_kchttp_sample.ui
import android.annotation.SuppressLint
import android.app.Dialog
import android.os.Bundle
import androidx.appcompat.app.AlertDialog
import androidx.appcompat.app.AppCompatActivity
import com.zsc.aac.kchttp.ext.requestEasy
import com.zsc.app_kchttp_sample.R
import com.zsc.app_kchttp... |
app/src/main/java/com/kenilt/loopingviewpager/example/fragmentPager/PageFragment.kt | unknown_repo | kotlin | package com.kenilt.loopingviewpager.example.fragmentPager
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import com.kenilt.loopingviewpager.example.R
import com.kenilt.l... |
domain/src/test/java/org/oppia/android/domain/locale/LocaleControllerTest.kt | unknown_repo | kotlin | package org.oppia.android.domain.locale
import android.app.Application
import android.content.Context
import android.content.res.Configuration
import android.os.LocaleList
import androidx.test.core.app.ApplicationProvider
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.google.common.truth.Truth.assertT... |
app/src/main/java/dev/kozinski/alusia/ui/theme/Theme.kt | unknown_repo | kotlin | package dev.kozinski.alusia.ui.theme
import android.app.Activity
import android.os.Build
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material3.*
import androidx.compose.runtime.Composable
import androidx.compose.runtime.SideEffect
import androidx.compose.ui.graphics.Color
import andr... |
features/setup/src/commonMain/kotlin/dev/avatsav/linkding/ui/setup/SetupScreen.kt | unknown_repo | kotlin | package dev.avatsav.linkding.ui.setup
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foun... |
app-simple-wallet/app/src/main/java/com/goldenraven/devkitwallet/data/Wallet.kt | unknown_repo | kotlin | /*
* Copyright 2021 thunderbiscuit and contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the ./LICENSE file.
*/
package com.goldenraven.devkitwallet.data
import android.util.Log
import com.goldenraven.devkitwallet.utilities.TAG
import org.bitcoindevkit.*
import org.... |
app/src/main/java/tk/zwander/common/views/RemoveWidgetConfirmationView.kt | unknown_repo | kotlin | package tk.zwander.common.views
import android.content.Context
import android.util.AttributeSet
import androidx.core.view.isVisible
import com.google.android.material.card.MaterialCardView
import tk.zwander.common.data.WidgetData
import tk.zwander.lockscreenwidgets.databinding.RemoveWidgetConfirmationLayoutBinding
imp... |
app/src/main/java/com/dede/android_eggs/ui/views/OnApplyWindowEdge.kt | unknown_repo | kotlin | package com.dede.android_eggs.ui.views
import android.view.View
import androidx.core.graphics.Insets
import androidx.core.view.OnApplyWindowInsetsListener
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
fun <T : View> T.onApplyWindowEdge(
typeMask: Int = WindowInsetsCompat.Type.... |
app/src/main/java/nl/rsdt/japp/jotial/maps/wrapper/osm/OsmJotiMap.kt | unknown_repo | kotlin | package nl.rsdt.japp.jotial.maps.wrapper.osm
import android.graphics.Bitmap
import android.location.Location
import android.util.Pair
import android.view.PixelCopy
import com.google.android.gms.maps.GoogleMap
import com.google.android.gms.maps.model.*
import nl.rsdt.japp.jotial.maps.window.CustomInfoWindowAdapter
impo... |
app/src/main/java/com/example/businesshours/ui/screens/BusinessHoursViewModel.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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
androidApp/src/main/java/com/gdgnantes/devfest/androidapp/ui/screens/agenda/Agenda.kt | unknown_repo | kotlin | @file:OptIn(ExperimentalMaterial3Api::class)
package com.gdgnantes.devfest.androidapp.ui.screens.agenda
import androidx.compose.material3.DrawerState
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.ModalDrawerSheet
import androidx.compose.material3.ModalNavigationDrawer
im... |
networklogger/src/main/java/dev/kgbier/util/networklogger/data/HttpLoggingDatabase.kt | unknown_repo | kotlin | package dev.kgbier.util.networklogger.data
import android.content.Context
import android.database.Cursor
import android.database.sqlite.SQLiteDatabase
import android.database.sqlite.SQLiteOpenHelper
import androidx.core.database.getIntOrNull
import androidx.core.database.getLongOrNull
import androidx.core.database.get... |
app/src/main/java/ak/android/metalktalk/main/test/TestFragment.kt | unknown_repo | kotlin | package ak.android.metalktalk.main.test
import ak.android.metalktalk.R
import android.Manifest
import android.content.pm.PackageManager
import android.os.Bundle
import android.view.LayoutInflater
import android.view.MotionEvent
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import a... |
core/designsystem/src/commonMain/kotlin/io/spherelabs/designsystem/meterprogress/LKDashProgress.kt | unknown_repo | kotlin | package io.spherelabs.designsystem.meterprogress
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.shape.CircleShape
import androidx.compo... |
app/src/main/java/com/pravin/nyt/viewModel/TopStoryViewModel.kt | unknown_repo | kotlin | package com.pravin.nyt.viewModel
import android.app.Application
import android.content.Intent
import android.content.Intent.ACTION_VIEW
import android.net.Uri
import android.os.Bundle
import android.util.Log
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.Mutable... |
notes/src/main/java/com/architecture/light/ui/dialog/InputPwdDialog.kt | unknown_repo | kotlin | package com.architecture.light.ui.dialog
import android.content.Context
import android.view.KeyEvent
import android.view.inputmethod.EditorInfo
import android.widget.TextView
import com.android.architecture.extension.showKeyboard
import com.android.architecture.ui.page.BaseDialog
import com.android.architecture.ui.wid... |
app/src/main/java/gustavo/guterres/leite/tcc/data/entity/model/Spotlight.kt | unknown_repo | kotlin | package gustavo.guterres.leite.tcc.data.entity.model
import android.os.Parcel
import android.os.Parcelable
import androidx.annotation.Keep
@Keep
data class Spotlight(
val image: Int,
val value: Double? = null
) : Parcelable {
constructor(parcel: Parcel) : this(
parcel.readInt(),
parcel.r... |
feature/collage/view/api/src/main/kotlin/com/savvasdalkitsis/uhuruphotos/feature/collage/view/api/ui/state/CollageDisplayState.kt | unknown_repo | kotlin | /*
Copyright 2022 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distribu... |
templates/androidstarters-kotlin/app/src/androidTest/java/io/mvpstarter/sample/runner/RxAndroidJUnitRunner.kt | unknown_repo | kotlin | package <%= appPackage %>.runner
import <%= appPackage %>.util.RxIdlingExecutionHook
import <%= appPackage %>.util.RxIdlingResource
import android.os.Bundle
import android.support.test.espresso.Espresso
import rx.plugins.RxJavaPlugins
/**
* Runner that registers a Espresso Indling resource that handles waiting for
... |
platforms/intellij/compose/src/jvmMain/kotlin/foundry/intellij/compose/aibot/LoadingAnimation.kt | unknown_repo | kotlin | /*
* Copyright (C) 2024 Slack Technologies, 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 l... |
app/src/main/kotlin/com/paperloong/illuminometer/ui/theme/Type.kt | unknown_repo | kotlin | package com.paperloong.illuminometer.ui.theme
import androidx.compose.material3.Typography
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.sp
/**
*
*
* @author WangZhiYao
* @since 2024/4/23
*... |
viewmodel/src/main/kotlin/com/motorro/rxlcemodel/view/LceStateView.kt | unknown_repo | kotlin | package com.motorro.rxlcemodel.view
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.ViewModelStoreOwner
import com.motorro.rxlcemodel.lce.LceState
import com.motorro.rxlcemodel.lce.LceState.*
import com.motorro.rxlcemodel.lce.LceState.Loading.Type.LOADING
... |
BaseLibrary/src/main/java/com/ccp/base/ui/activity/BaseActivity.kt | unknown_repo | kotlin | package com.ccp.base.ui.activity
import android.os.Bundle
import com.ccp.base.common.AppManager
import com.trello.rxlifecycle.components.support.RxAppCompatActivity
/**
* <p>desc:<p>
* <p>author:CP<p>
* <p>create time:2018/7/14<p>
* <p>change time:2018/7/14<p>
* <p>version:1<p>
*
*/
open class BaseActivity:RxA... |
app/src/main/java/com/machineinsight_it/smartgarden/presentation/analytics/AnalyticsModule.kt | unknown_repo | kotlin | package com.machineinsight_it.smartgarden.presentation.analytics
import android.content.Context
import com.google.firebase.analytics.FirebaseAnalytics
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import javax.inject.Singleton
@Module
@Instal... |
app/src/main/java/org/savit/savitauthenticator/model/useraccounts/UserAccountDao.kt | unknown_repo | kotlin | package org.savit.savitauthenticator.model.useraccounts
import androidx.lifecycle.LiveData
import androidx.room.*
@Dao
interface UserAccountDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
suspend fun inserUserData(vararg userAccount: UserAccount)
@Update
suspend fun updateUserAccountData(vara... |
css-gg/src/commonMain/kotlin/compose/icons/cssggicons/Music.kt | unknown_repo | kotlin | package compose.icons.cssggicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
import... |
app/src/main/kotlin/io/github/feelfreelinux/wykopmobilny/ui/adapters/NoProgressLinkAdapter.kt | unknown_repo | kotlin | package io.github.feelfreelinux.wykopmobilny.ui.adapters
import android.view.ViewGroup
import io.github.feelfreelinux.wykopmobilny.models.dataclass.Link
import io.github.feelfreelinux.wykopmobilny.ui.adapters.viewholders.BlockedViewHolder
import io.github.feelfreelinux.wykopmobilny.ui.adapters.viewholders.LinkViewHold... |
reactiveandroid-ui/src/androidTest/kotlin/com/github/kittinunf/reactiveandroid/view/ViewGroupPropertyTest.kt | unknown_repo | kotlin | package com.github.kittinunf.reactiveandroid.view
import android.annotation.TargetApi
import android.os.Build
import android.support.test.InstrumentationRegistry
import android.support.test.annotation.UiThreadTest
import android.support.test.filters.SdkSuppress
import android.support.test.rule.UiThreadTestRule
import ... |
libCore/src/main/java/ru/elron/libcore/base/BaseFragment.kt | unknown_repo | kotlin | package ru.elron.libcore.base
import android.os.Bundle
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
/**
* Абстрактный базовый фрагмент для связи с BaseViewModel
*/
abstract class BaseFragment<ENTITY : AEntity, STATE : IState, EVENT : IEvent>() : Fragment() {
protected val stateObserv... |
app/src/main/java/com/dluvian/voyage/data/room/dao/tx/TopicUpsertDao.kt | unknown_repo | kotlin | package com.dluvian.voyage.data.room.dao.tx
import android.util.Log
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import androidx.room.Transaction
import com.dluvian.voyage.core.PubkeyHex
import com.dluvian.voyage.data.event.ValidatedTopicList
i... |
base/src/main/java/com/tulaune/base/helper/CustomSnapHelper.kt | unknown_repo | kotlin | package com.tulaune.base.helper
import android.view.View
import androidx.recyclerview.widget.*
/**
* Created by Tư Lầu on 1/6/21.
*/
class CustomSnapHelper : SnapHelper() {
// Orientation helpers are lazily created per LayoutManager.
private var mVerticalHelper: OrientationHelper? = null
private var mH... |
app/src/main/java/com/supplier/sl_delivery/rest/APIClient.kt | unknown_repo | kotlin | package com.supplier.sl_delivery.rest
import androidx.lifecycle.MutableLiveData
import com.supplier.sl_delivery.modals.Merchant
import com.supplier.sl_delivery.rest.responses.CategoriesResponse
import com.supplier.sl_delivery.rest.responses.ItemsByCategoryResponse
import com.supplier.sl_delivery.rest.responses.LoginRe... |
paymentsheet/src/test/java/com/stripe/android/customersheet/CustomerSheetConfigViewModelTest.kt | unknown_repo | kotlin | package com.stripe.android.customersheet
import androidx.lifecycle.SavedStateHandle
import com.google.common.truth.Truth.assertThat
import kotlin.test.Test
class CustomerSheetConfigViewModelTest {
@Test
fun `On set configure request, should be able to retrieve the same request`() {
val viewModel = Cus... |
app/src/test/java/io/github/wellingtoncosta/cursoandroidcongressodeti/app/ui/BaseViewModelTest.kt | unknown_repo | kotlin | package io.github.wellingtoncosta.cursoandroidcongressodeti.app.ui
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.lifecycle.Observer
import io.github.wellingtoncosta.cursoandroidcongressodeti.domain.repository.ContatoRepository
import io.github.wellingtoncosta.cursoandroidcongressod... |
app/src/main/java/com/khanappsnj/nycschools/adapter/SchoolAdapter.kt | unknown_repo | kotlin | package com.khanappsnj.nycschools
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.khanappsnj.nycschools.databinding.SchoolListItemBinding
/**
Adapter for the RecyclerView displaying the list of schools
@param schools List of schools to disp... |
lighthouse/src/main/java/com/ivanempire/lighthouse/core/LighthouseState.kt | unknown_repo | kotlin | package com.ivanempire.lighthouse.core
import com.ivanempire.lighthouse.LighthouseLogger
import com.ivanempire.lighthouse.models.Constants.NOT_AVAILABLE_CACHE
import com.ivanempire.lighthouse.models.devices.AbridgedMediaDevice
import com.ivanempire.lighthouse.models.packets.AliveMediaPacket
import com.ivanempire.light... |
app/src/main/java/com/example/tokumemo/ClubListsFragment.kt | unknown_repo | kotlin | package com.example.tokumemo
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.webkit.WebView
import android.webkit.WebViewClient
class ClubListsFragment : Fragment() {
override fun onCreateView(... |
app/src/main/java/com/ali/filmrent/dataClass/Payment.kt | unknown_repo | kotlin | package com.ali.filmrent.dataClass
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.util.Calendar
@Entity(tableName = "Payment")
data class Payment(
@PrimaryKey(autoGenerate = true)
val payment_id: Int? = null,
val customer_id : Int ,
val store_id : Int ,
val rental_id : Int... |
app/src/main/java/com/sovize/ultracop/views/adapters/ReportPhotoAdapter.kt | unknown_repo | kotlin | package com.sovize.ultracop.views.adapters
import android.graphics.BitmapFactory
import android.media.ThumbnailUtils
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.sovize.ultracop.R
import kotlinx.android.synthetic.m... |
feature_album/src/main/kotlin/com/igorwojda/showcase/album/presentation/screen/albumdetail/AlbumDetailFragment.kt | unknown_repo | kotlin | package com.igorwojda.showcase.album.presentation.screen.albumdetail
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layou... |
bot/src/main/kotlin/dev/schlaubi/tonbrett/bot/server/WebSocket.kt | unknown_repo | kotlin | package dev.schlaubi.tonbrett.bot.server
import com.auth0.jwt.exceptions.JWTVerificationException
import dev.schlaubi.tonbrett.bot.util.badRequest
import dev.schlaubi.tonbrett.common.*
import dev.schlaubi.tonbrett.common.Route.Me
import dev.schlaubi.tonbrett.common.util.convertForNonJvmPlatforms
import io.ktor.server.... |
composeApp/src/jvmMain/kotlin/io/github/opletter/espul/util/BackHandler.jvm.kt | unknown_repo | kotlin | package io.github.opletter.espul.util
import androidx.compose.runtime.Composable
@Composable
actual fun BackHandler(enabled: Boolean, onBack: () -> Unit) = Unit // No-op
|
app/src/main/java/org/stepik/android/view/comment/ui/adapter/decorator/CommentItemDecoration.kt | unknown_repo | kotlin | package org.stepik.android.view.comment.ui.adapter.decorator
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.Rect
import android.support.annotation.ColorInt
import android.support.v7.widget.RecyclerView
import android.view.View
import org.stepic.droid.ui.util.children
import org.st... |
CodeCafe/app/src/main/java/top/codecafe/app/ui/fragment/BlogFragment.kt | unknown_repo | kotlin | package top.codecafe.app.ui.fragment;
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import top.codecafe.app.R
import top.codecafe.app.ui.base.BaseMainFragment
/**
* 博客界面
*
* @author kymjs (http://www.kymjs.com/) on 8/26/15.
*/
public class BlogF... |
riistaandroid/src/main/java/fi/riista/mobile/feature/groupHunting/observations/ViewGroupObservationFragment.kt | unknown_repo | kotlin | package fi.riista.mobile.feature.groupHunting.observations
import android.content.Context
import android.content.Intent
import android.location.Location
import android.os.Bundle
import android.view.*
import androidx.recyclerview.widget.RecyclerView
import com.google.android.material.button.MaterialButton
import dagger... |
app/src/main/java/g/takeru/renshu/kotlin/animation/sharedelement/GridViewFragment.kt | unknown_repo | kotlin | package g.takeru.renshu.kotlin.animation.sharedelement
import android.annotation.TargetApi
import android.os.Build
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import androidx.fragment.app.Fragment
import androidx.rec... |
presentation/src/main/java/com/tutorial/aperezsi/movdrid/viewmodel/SplashViewModel.kt | unknown_repo | kotlin | package com.tutorial.aperezsi.movdrid.viewmodel
import androidx.lifecycle.MutableLiveData
import com.tutorial.aperezsi.domain.errors.GetBusesError
import com.tutorial.aperezsi.domain.errors.GetLightSubWaysError
import com.tutorial.aperezsi.domain.errors.GetSubUrbansError
import com.tutorial.aperezsi.domain.errors.GetS... |
app/src/main/java/com/vtoken/application/view/activity/create/WalletCreateThirdActivity.kt | unknown_repo | kotlin | package com.vtoken.application.view.activity.create
import androidx.databinding.DataBindingUtil
import android.os.Bundle
import com.vtoken.application.BR
import com.vtoken.application.R
import com.vtoken.application.databinding.WalletCreateThirdBinding
import com.vtoken.application.view.activity.IntroBaseActivity
impo... |
app/src/main/java/com/matthew/carvalhodagenais/coinhuntingbuddy/ui/components/RoundedCounterCard.kt | unknown_repo | kotlin | package com.matthew.carvalhodagenais.coinhuntingbuddy.ui.components
import androidx.compose.foundation.layout.*
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.drawBehind
import androidx.compose.ui.geometry.Offset
impo... |
app/src/main/java/com/fionicholas/footballapp/ui/favorite/team/TeamFavoriteViewModel.kt | unknown_repo | kotlin | package com.fionicholas.footballapp.ui.favorite.team
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.fionicholas.footballapp.base.BaseViewModel
import com.fionicholas.footballapp.data.teamfavorite.TeamFavoriteDataSource
import com.fionicholas.footballapp.data.teamfavorite.local.... |
app/src/main/java/com/example/vofaz/main/add/view/AddDialog.kt | unknown_repo | kotlin | package com.example.vofaz.main.add.view
import android.app.AlertDialog
import android.app.Dialog
import android.os.Build
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.*
import androidx.annotation.Requires... |
app/src/main/java/com/example/firstchallange/AnotherActivity.kt | unknown_repo | kotlin | package com.example.firstchallange
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.widget.TextView
import android.widget.ImageView
import android.content.Intent
import android.net.Uri
import android.view.View
import android.widget.ImageButton
class AnotherActivity : AppCompatA... |
app/src/main/java/demo/tran/nam/dragview/MainActivity.kt | unknown_repo | kotlin | package demo.tran.nam.dragview
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
class MainActivity : AppCompatActivity(), DragView.onDragViewListener {
override fun onDragCancel() {
Toast.makeText(this,"onDragCancel",Toast.LENGTH_SHORT).show()
}
... |
app/src/main/java/com/example/quotidian/screens/HomeScreen.kt | unknown_repo | kotlin | package com.example.quotidian.screens
import android.app.Application
import android.util.Log
import androidx.compose.animation.core.*
import androidx.compose.foundation.background
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape... |
app/src/main/java/com/example/litendapp/ui/login/LoginViewModel.kt | unknown_repo | kotlin | package com.example.litendapp.ui.login
import android.content.Context
import android.util.Log
import androidx.lifecycle.ViewModel
import android.util.Patterns
import android.widget.Toast
import com.example.litendapp.data.Result
import com.example.litendapp.R
import com.google.firebase.auth.ktx.auth
import com.google.... |
ultron-compose/src/commonMain/kotlin/com/atiurin/ultron/core/compose/list/UltronComposeList.kt | unknown_repo | kotlin | package com.atiurin.ultron.core.compose.list
import androidx.compose.ui.semantics.SemanticsNode
import androidx.compose.ui.semantics.SemanticsPropertyKey
import androidx.compose.ui.test.SemanticsMatcher
import androidx.compose.ui.test.SemanticsNodeInteraction
import androidx.compose.ui.test.filterToOne
import androidx... |
app/src/main/java/com/adreal/birdmessenger/ViewModel/OfflineViewModel.kt | unknown_repo | kotlin | package com.adreal.birdmessenger.ViewModel
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import androidx.work.*
import com.adreal.birdmessenger.Database.Database
import com.... |
app/src/main/java/co/onlini/rxdata/presentation/vehicleList/VehicleListModule.kt | unknown_repo | kotlin | /*
* Copyright (C) 2017 ONLINICO OU
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
package co.onlini.rxdata.presentation.vehicleList
import android.content.Context
import android.support.v7.widget.DividerItemDecoration
import android.... |
app/src/main/java/antuere/how_are_you/presentation/base/ui_compose_components/days_grid/DaysGridItem.kt | unknown_repo | kotlin | package antuere.how_are_you.presentation.base.ui_compose_components.days_grid
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.Image
import androidx.compose.foundation.combinedClickable
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundati... |
example/app/src/main/java/com/example/mohammed/kotlintest/MainActivity.kt | unknown_repo | kotlin | package com.example.mohammed.kotlintest
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.widget.CheckBox
import kotlinForm.*
import kotlinx.android.synthetic.main.activity_main.*
import org.jetbrains.anko.toast
class MainActivity : AppCompatActivity() {
lateinit var form :... |
app/src/main/java/com/qs/tv/tvplayer/utils/helpers/exoplayer/ExoPlayerHelper.kt | unknown_repo | kotlin | package com.qs.tv.tvplayer.utils.helpers.exoplayer
import android.content.Context
import android.content.ContextWrapper
import android.net.Uri
import android.os.Handler
import android.os.Looper
import android.text.TextUtils
import androidx.databinding.ObservableBoolean
import androidx.media3.common.MediaItem
import an... |
app/src/main/java/com/qs/tv/tvplayer/utils/helpers/exoplayer/ExoPlayerHelper.kt | unknown_repo | kotlin | package com.qs.tv.tvplayer.utils.helpers.exoplayer
import android.content.Context
import android.content.ContextWrapper
import android.net.Uri
import android.os.Handler
import android.os.Looper
import android.text.TextUtils
import androidx.databinding.ObservableBoolean
import androidx.media3.common.MediaItem
import an... |
app/src/main/java/com/jetpack/modalbottomsheet/MainActivity.kt | unknown_repo | kotlin | package com.jetpack.modalbottomsheet
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.sha... |
libraries/widget/src/main/java/taiwan/no/one/widget/fragment/ErrorFragment.kt | unknown_repo | kotlin | /*
* MIT License
*
* Copyright (c) 2020 Jieyi
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, me... |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/bulk/Messagenotif.kt | unknown_repo | kotlin | package moe.tlaster.icons.vuesax.vuesaxicons.bulk
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 androidx.co... |
app/src/main/java/com/example/weather/ui/place/PlaceViewModel.kt | unknown_repo | kotlin | package com.example.weather.ui.place
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Transformations
import androidx.lifecycle.ViewModel
import com.example.weather.logic.Repository
import com.example.weather.logic.model.Place
import java.util.ArrayList
class PlaceViewModel:ViewModel() {
privat... |
app/src/main/java/com/se7en/jetmessenger/data/models/Message.kt | unknown_repo | kotlin | package com.se7en.jetmessenger.data.models
import androidx.compose.ui.unit.Dp
sealed class Message(val from: User) {
class Text(val message: String, from: User) : Message(from)
class Emoji(
val id: String,
val size: Dp,
var shouldAnimate: Boolean,
from: User
) : Message(f... |
LostLantern/app/src/main/java/com/jonahstarling/lostlantern/MainMenuActivity.kt | unknown_repo | kotlin | package com.jonahstarling.lostlantern
import android.app.Activity
import android.os.Bundle
/**
* Created by jonah on 11/11/17.
*/
class MainMenuActivity : Activity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main_m... |
app/src/main/java/com/example/adidaschallenge/extenstions/Toast.kt | unknown_repo | kotlin | package com.example.adidaschallenge
import android.content.Context
import android.widget.Toast
/**
* Created by <NAME> on 5/8/21
* Dubai, UAE.
*/
fun Context.toast(message: CharSequence) =
Toast.makeText(this, message, Toast.LENGTH_SHORT).show()
|
androidui/app/src/main/java/com/example/androidfinalprojectcmsc436/SignUpActivity.kt | unknown_repo | kotlin | package com.example.androidfinalprojectcmsc436
import android.os.Bundle
import android.view.MotionEvent
import android.view.View
import android.widget.Button
import android.widget.EditText
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
class SignUpActivity : AppCompatActivity(), View.OnCl... |
basicktest/src/main/java/com/mozhimen/basicktest/taskk/TaskKPollActivity.kt | unknown_repo | kotlin | package com.mozhimen.basicktest.taskk
import android.os.Bundle
import com.mozhimen.basick.elemk.activity.bases.BaseActivityVB
import com.mozhimen.basick.lintk.optin.annors.AOptLazyInit
import com.mozhimen.basick.utilk.android.widget.showToast
import com.mozhimen.basick.taskk.temps.TaskKPoll
import com.mozhimen.basickt... |
app/src/main/java/xyz/teamgravity/runningtracker/service/TrackingService.kt | unknown_repo | kotlin | package xyz.teamgravity.runningtracker.service
import android.annotation.SuppressLint
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.location.Location
import android.os.Looper
import androidx.core.app.NotificationCompa... |
app/src/main/java/com/example/nikhiltest/MainActivity.kt | unknown_repo | kotlin | package com.example.nikhiltest
import android.content.Context
import android.os.Bundle
import android.widget.Toast
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.room.Room
import com.example.nikhiltest.databind... |
foundation/ui/assets-icons/src/main/kotlin/ru/pixnews/foundation/ui/assets/icons/externallink/FacebookLink.kt | unknown_repo | kotlin | /*
* Copyright 2023 <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 wr... |
lib_base/src/main/kotlin/com/crow/base/tools/coroutine/CoroutineExt.kt | unknown_repo | kotlin | package com.crow.base.tools.coroutine
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.lifecycleScope
import com.crow.base.tools.extensions.logError
import kotlinx.coroutines.CoroutineExceptionHandler
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import kotlin.coroutines.CoroutineC... |
app/src/main/java/com/farahaniconsulting/eechat/presenter/message/ComposeMessagePresenter.kt | unknown_repo | kotlin | package com.farahaniconsulting.eechat.presenter.message
import androidx.room.withTransaction
import com.farahaniconsulting.eechat.db.EEChatDb
import com.farahaniconsulting.eechat.db.MessageDao
import com.farahaniconsulting.eechat.ui.common.extensions.currentTimeUTC
import com.farahaniconsulting.eechat.ui.message.Compo... |
app/src/main/java/org/seeingpixels/adoptionimpact/theme/PetOverflowTheme.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... |
jetcompose/src/main/java/com/skele/jetcompose/ui/timer/TimerState.kt | unknown_repo | kotlin | package com.skele.jetcompose.ui.timer
import android.util.Log
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableIntStateOf
import androidx.compose.runtime.setValue
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Job
import kotlinx.c... |
app/src/main/java/com/lml/coolweather/logic/dao/LocationDao.kt | unknown_repo | kotlin | package com.lml.coolweather.logic.dao
import android.content.Context
import androidx.core.content.edit
import com.google.gson.Gson
import com.lml.coolweather.CoolWeatherApplication
import com.lml.coolweather.logic.model.LocationResponse
object LocationDao {
fun saveLocation(location: LocationResponse.Location){
... |
library/src/main/java/io/zhuliang/photopicker/PhotoPickerFragment.kt | unknown_repo | kotlin | package io.zhuliang.photopicker
import android.Manifest
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.graphics.drawable.ColorDrawable
import android.net.Uri
import android.os.AsyncT... |
app/src/main/java/com/example/gameoflife/user_profiles/GridData.kt | unknown_repo | kotlin | package com.example.gameoflife.user_profiles
import androidx.room.Entity
import androidx.room.PrimaryKey
import androidx.room.ForeignKey
@Entity(
tableName = "grid_data_table",
foreignKeys = [ForeignKey(
entity = User::class,
parentColumns = arrayOf("id"),
childColumns = arrayOf("userI... |
shared/src/commonMain/kotlin/sharedelementtransaction/PathMotion.kt | unknown_repo | kotlin | package sharedelementtransaction
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.geometry.lerp
open class PathMotion(val a:Int) {
open operator fun invoke(start: Offset, end: Offset, fraction: Float) = lerp(start, end, fraction)
}
typealias PathMotionFactory = () -> PathMotion
val LinearMo... |
app/src/main/java/com/nsz/kotlin/ux/common/ViewExtension.kt | unknown_repo | kotlin | package com.nsz.kotlin.ux.common
import android.view.View
import kotlinx.coroutines.suspendCancellableCoroutine
import kotlin.coroutines.resume
private const val TAG = "ViewExtension"
suspend fun View.awaitNextLayout() = suspendCancellableCoroutine<Unit> { block ->
val listener = object : View.OnLayoutChangeList... |
lib-moshi/src/main/java/net/codefeet/lemmyandroidclient/gen/types/AdminPurgeCommentView.kt | unknown_repo | kotlin | package net.codefeet.lemmyandroidclient.gen.types
import android.os.Parcelable
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
import kotlinx.parcelize.Parcelize
@Parcelize
@JsonClass(generateAdapter = true)
public data class AdminPurgeCommentView(
@Json(name = "admin_purge_comment")
public val... |
domain/src/test/java/com/akshay/domain/credplans/CredPlansControllerTest.kt | unknown_repo | kotlin | package com.akshay.domain.credplans
import android.app.Application
import androidx.test.core.app.ApplicationProvider
import com.google.common.truth.Truth.assertThat
import dagger.BindsInstance
import dagger.Component
import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.R... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.