file_path
stringlengths
6
261
repository
stringclasses
2 values
language
stringclasses
1 value
content
stringlengths
121
454k
ktlint/src/test/kotlin/au/sjowl/lib/ktlint/SortRuleTest.kt
unknown_repo
kotlin
package au.sjowl.lib.ktlint import com.pinterest.ktlint.test.format import org.junit.Test val inputCode = """ package au.sjowl.apps.everlang.presentation.rssfeeds import org.jetbrains.anko.dip import org.jetbrains.anko.layoutInflater import org.jetbrains.anko.sp import org.jetbrains.anko.textAppearance import org.je...
app/src/androidTest/java/al/ahgitdevelopment/municion/ext/TestExtensions.kt
unknown_repo
kotlin
package al.ahgitdevelopment.municion.ext import android.view.View import com.google.android.material.textfield.TextInputLayout import org.hamcrest.Description import org.hamcrest.Matcher import org.hamcrest.TypeSafeMatcher fun hasTextInputLayoutErrorText(expectedErrorText: String): Matcher<View> = object : TypeSa...
app/src/main/java/com/david/hackro/covid/presentation/adapter/country/CountryViewHolder.kt
unknown_repo
kotlin
package com.david.hackro.covid.presentation.adapter.country import android.view.View import androidx.recyclerview.widget.RecyclerView import com.david.hackro.androidext.setUrlCircle import com.david.hackro.covid.R import com.david.hackro.covid.presentation.model.CountryItem import com.david.hackro.kotlinext.formatValu...
Owl/app/src/main/java/com/materialstudies/owl/model/Lesson.kt
unknown_repo
kotlin
/* * Copyright 2019 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
common/src/main/java/com/netchar/common/extensions/ViewExt.kt
unknown_repo
kotlin
/* * Copyright © 2019 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
app/src/main/java/com/rangganf/storyappearly/ui/story/liststory/LoadingStateAdapter.kt
unknown_repo
kotlin
package com.rangganf.storyappearly.ui.story.liststory import android.view.LayoutInflater import android.view.ViewGroup import androidx.core.view.isVisible import androidx.paging.LoadState import androidx.paging.LoadStateAdapter import androidx.recyclerview.widget.RecyclerView import com.rangganf.storyappearly.databind...
app/src/main/java/com/mmdev/kudago/app/data/BaseRepository.kt
unknown_repo
kotlin
/* * * Copyright (c) 2020. <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 ...
demo/src/main/java/de/wirecard/ecr/demo/dialog/LoadingFragment.kt
unknown_repo
kotlin
package de.wirecard.ecr.demo.dialog import android.os.Bundle import android.os.Handler import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import de.wirecard.ecr.demo.R import de.wirecard.ecr.demo.dialog.abs.BaseDialogFragment import kotlinx.android.synthetic.main.fragment_loading...
wear-tile/src/main/java/kndroidx/wear/tile/layout/Box.kt
unknown_repo
kotlin
package kndroidx.wear.tile.layout import androidx.wear.protolayout.DimensionBuilders.ContainerDimension import androidx.wear.protolayout.LayoutElementBuilders import androidx.wear.protolayout.ModifiersBuilders.Modifiers.Builder as ModifiersBuilder fun Box( width: ContainerDimension, height: ContainerDimension...
app/src/main/java/com/reggar/earthquakes/earthquakelist/data/models/Earthquake.kt
unknown_repo
kotlin
package com.reggar.earthquakes.earthquakelist.data.models import android.os.Parcelable import kotlinx.parcelize.Parcelize @Parcelize data class Earthquake( val eqid: String, val datetime: String, val depth: Double, val lat: Double, val lng: Double, val src: String, val magnitude: Double, )...
ListDetail/src/androidTest/java/com/microsoft/device/display/samples/listdetail/ListDetailTest.kt
unknown_repo
kotlin
package com.microsoft.device.display.samples.listdetail import androidx.compose.ui.test.junit4.createAndroidComposeRule import androidx.compose.ui.test.onNodeWithContentDescription import androidx.compose.ui.test.onNodeWithTag import androidx.compose.ui.test.performClick import androidx.window.testing.layout.WindowLay...
feature-assets/src/main/java/io/novafoundation/nova/feature_assets/presentation/transaction/detail/swap/SwapDetailViewModel.kt
unknown_repo
kotlin
package io.novafoundation.nova.feature_assets.presentation.transaction.detail.swap import io.novafoundation.nova.common.address.AddressIconGenerator import io.novafoundation.nova.common.address.AddressModel import io.novafoundation.nova.common.base.BaseViewModel import io.novafoundation.nova.common.utils.flowOf import...
buildSrc/src/main/kotlin/androidx/build/metalava/GenerateApiTask.kt
unknown_repo
kotlin
/* * Copyright 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 applica...
lite/examples/generative_ai/android/app/src/main/java/com/google/tensorflowdemo/ui/screens/autocomplete/components/WindowSizeSelection.kt
unknown_repo
kotlin
/* * Copyright 2023 The TensorFlow Authors. All Rights Reserved. * * 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 requi...
android/beagle/src/main/java/br/com/zup/beagle/android/action/FormLocalAction.kt
unknown_repo
kotlin
/* * Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA * * 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...
app/src/main/java/org/oppia/android/app/story/StoryActivity.kt
unknown_repo
kotlin
package org.oppia.android.app.story import android.content.Context import android.content.Intent import android.os.Bundle import org.oppia.android.app.activity.InjectableAppCompatActivity import org.oppia.android.app.home.RouteToExplorationListener import org.oppia.android.app.player.exploration.ExplorationActivity im...
app/src/main/java/com/ty/voogla/adapter/InspectionAdapter.kt
unknown_repo
kotlin
package com.ty.voogla.adapter import android.content.Context import com.ty.voogla.R import com.ty.voogla.bean.CheckInfoList import com.zhy.adapter.recyclerview.CommonAdapter import com.zhy.adapter.recyclerview.base.ViewHolder /** * @author TY on 2019/1/7. */ class InspectionAdapter(context: Context, layoutId: Int, ...
app/src/main/java/work/airz/primanager/MembersActivity.kt
unknown_repo
kotlin
package work.airz.primanager import android.content.Intent import android.graphics.Bitmap import android.os.Bundle import android.support.v7.app.AppCompatActivity import android.util.Log import android.view.MenuItem import android.view.View import kotlinx.android.synthetic.main.activity_members.* import kotlinx.androi...
library/src/test/java/io/karn/notify/NotifyAlertingTest.kt
unknown_repo
kotlin
package io.karn.notify import android.support.v4.app.NotificationCompat import org.junit.Assert import org.junit.Test import org.junit.runner.RunWith import org.robolectric.RobolectricTestRunner @RunWith(RobolectricTestRunner::class) class NotifyAlertingTest : NotifyTestBase() { @Test fun defaultAlertingTest...
tabler-icons/src/commonMain/kotlin/compose/icons/tablericons/BuildingBank.kt
unknown_repo
kotlin
package compose.icons.tablericons 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.compose.ui.graphic...
app/src/main/kotlin/nz/co/ventegocreative/rgIntegrationSample/detail/DetailViewModel.kt
unknown_repo
kotlin
package nz.co.ventegocreative.rgIntegrationSample.detail import androidx.databinding.BindingAdapter import android.widget.ImageView import com.squareup.picasso.Picasso import nz.co.ventegocreative.rgIntegrationSample.R import nz.co.ventegocreative.rgIntegrationSample.data.models.Film class DetailViewModel(private val...
app/src/main/kotlin/com/futtetennista/trading/product/WebSocketApi.kt
unknown_repo
kotlin
package com.futtetennista.trading.product import android.util.Log import com.squareup.moshi.JsonReader import com.squareup.moshi.JsonWriter import io.reactivex.* import io.reactivex.disposables.CompositeDisposable import io.reactivex.disposables.Disposable import io.reactivex.rxkotlin.addTo import io.reactivex.subject...
app/src/main/java/com/jinbo/newsdemo/DetailsActivity.kt
unknown_repo
kotlin
package com.jinbo.newsdemo import android.annotation.SuppressLint import android.content.Intent import android.opengl.Visibility import android.os.Bundle import android.os.PersistableBundle import android.util.Log import android.view.Menu import android.view.MenuItem import android.view.View import android.webkit.WebV...
test/src/sharedTest/kotlin/com/moriatsushi/launcher/test/Main.kt
unknown_repo
kotlin
package com.moriatsushi.launcher.test import androidx.compose.material.Text import androidx.compose.runtime.Composable import com.moriatsushi.launcher.Entry @Entry(default = true) @Composable fun Main() { Text(text = "Main") }
compose-app/src/main/java/com/ahmadhamwi/tabsync_compose_example/ui/components/ItemCard.kt
unknown_repo
kotlin
package com.ahmadhamwi.tabsync_compose_example.ui.components import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.defaultMinSize import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.material.Card import androidx.compose.material.Text import androidx.compose....
library/src/main/java/com/spendesk/grapes/list/simple/SimpleListAdapter.kt
unknown_repo
kotlin
package com.spendesk.grapes.list.simple import android.view.View import android.view.ViewGroup import androidx.recyclerview.widget.RecyclerView import com.spendesk.grapes.component.SimpleEntryItemView import com.spendesk.grapes.component.SimpleSectionItemView /** * @author danyboucanova * @since 12/07/2021 */ clas...
LearnFlow/app/src/main/java/com/example/learnflow/network/NetworkManager.kt
unknown_repo
kotlin
package com.example.learnflow.network import android.app.Activity import android.app.AlertDialog import android.content.Context import android.content.Intent import android.net.ConnectivityManager import android.net.Network import android.net.NetworkCapabilities import android.provider.Settings import android.util.Log...
app/src/main/java/com/oajstudios/pocketshop/activity/PaymentSuccessfullyActivity.kt
unknown_repo
kotlin
package com.oajstudios.pocketshop.activity import android.os.Bundle import com.oajstudios.pocketshop.AppBaseActivity import com.oajstudios.pocketshop.R import com.oajstudios.pocketshop.models.CreateOrderNotes import com.oajstudios.pocketshop.models.CreateOrderResponse import com.oajstudios.pocketshop.utils.BroadcastRe...
app/src/main/java/com/oajstudios/pocketshop/activity/PaymentSuccessfullyActivity.kt
unknown_repo
kotlin
package com.oajstudios.pocketshop.activity import android.os.Bundle import com.oajstudios.pocketshop.AppBaseActivity import com.oajstudios.pocketshop.R import com.oajstudios.pocketshop.models.CreateOrderNotes import com.oajstudios.pocketshop.models.CreateOrderResponse import com.oajstudios.pocketshop.utils.BroadcastRe...
compose-multiplatform-material3/src/androidxCommonMain/kotlin/com/huanshankeji/compose/material3/ProgressIndicator.androidxCommon.kt
unknown_repo
kotlin
package com.huanshankeji.compose.material3 import androidx.compose.runtime.Composable import com.huanshankeji.compose.ui.Modifier import androidx.compose.material3.CircularProgressIndicator as PlatformCircularProgressIndicator import androidx.compose.material3.LinearProgressIndicator as PlatformLinearProgressIndicator...
shared/src/commonMain/kotlin/org/noise_planet/noisecapture/shared/child/PermissionScreen.kt
unknown_repo
kotlin
package org.noise_planet.noisecapture.shared.child import androidx.compose.animation.AnimatedVisibility import androidx.compose.animation.animateColorAsState import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.PaddingValues im...
theme/src/main/java/xyz/aprildown/theme/tint/ToolbarTint.kt
unknown_repo
kotlin
package xyz.aprildown.theme.tint import android.graphics.PorterDuff import android.view.Menu import android.view.MenuItem import androidx.annotation.ColorInt import androidx.appcompat.widget.Toolbar import xyz.aprildown.theme.utils.tint internal class ToolbarTint private constructor() { init { throw Ille...
Client/core/src/main/java/com/t3ddyss/core/util/Log.kt
unknown_repo
kotlin
package com.t3ddyss.core.util import android.util.Log private const val DEBUG_TAG = "ClotherLogs" fun log(message: String, tag: String = DEBUG_TAG) { Log.d(tag, message) }
dslitem/src/main/java/com/angcyo/item/DslLabelOptionItem.kt
unknown_repo
kotlin
package com.angcyo.item import android.app.Dialog import android.content.Context import android.view.View import com.angcyo.dialog.OptionDialogConfig import com.angcyo.dialog.optionDialog import com.angcyo.dsladapter.DslAdapterItem import com.angcyo.item.style.itemText import com.angcyo.library.ex.string import com.an...
screenShareKit/src/main/java/org/loka/screensharekit/ScreenReaderService.kt
unknown_repo
kotlin
package org.loka.screensharekit import android.app.Activity.RESULT_CANCELED import android.app.Service import android.content.Context import android.content.Intent import android.content.res.Resources import android.graphics.PixelFormat import android.hardware.display.DisplayManager import android.hardware.display.Vir...
app/src/main/java/com/mvfkotlin/myapplication/adapters/MoviesAdapter.kt
unknown_repo
kotlin
package com.mvfkotlin.myapplication.adapters import android.view.LayoutInflater import android.view.ViewGroup import androidx.databinding.DataBindingUtil import androidx.recyclerview.widget.RecyclerView import com.mvfkotlin.myapplication.R import com.mvfkotlin.myapplication.databinding.MoviesItemBinding import com.mvf...
app/src/main/java/dxmnd/com/mymusicplayer/service/MusicService.kt
unknown_repo
kotlin
package dxmnd.com.mymusicplayer.service import android.app.Service import android.content.Context import android.content.Intent import android.media.AudioManager import android.media.MediaPlayer import android.net.Uri import android.os.Binder import android.os.IBinder import android.os.PowerManager import android.prov...
favorite/src/main/java/com/masscode/animesuta/favorite/FavoriteViewModel.kt
unknown_repo
kotlin
package com.masscode.animesuta.favorite import androidx.lifecycle.ViewModel import androidx.lifecycle.asLiveData import com.masscode.animesuta.core.domain.usecase.AnimeUseCase class FavoriteViewModel(animeUseCase: AnimeUseCase) : ViewModel() { val favoriteAnime = animeUseCase.getFavoriteAnime().asLiveData() }
ui/src/main/java/com/nemesis/sunrise/ui/location/LocationViewModel.kt
unknown_repo
kotlin
package com.nemesis.sunrise.ui.location import androidx.lifecycle.SavedStateHandle import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import androidx.paging.Pager import androidx.paging.PagingConfig import androidx.paging.PagingData import androidx.paging.cachedIn import com.nemesis.sunrise.d...
font-awesome/src/commonMain/kotlin/compose/icons/fontawesomeicons/brands/Hive.kt
unknown_repo
kotlin
package compose.icons.fontawesomeicons.brands 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...
example/src/main/kotlin/com/example/afterpay/data/CashData.kt
unknown_repo
kotlin
package com.example.afterpay.data import android.os.Parcelable import kotlinx.parcelize.Parcelize @Parcelize data class CashData(val cashTag: String, val amount: String, val grantId: String) : Parcelable
app/src/main/java/com/example/chessmate/ui/pages/multiplayer/FindGameScreen.kt
unknown_repo
kotlin
package com.example.chessmate.ui.pages.multiplayer import android.util.Log import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.s...
forage-android/src/main/java/com/joinforage/forage/android/ForageSDKApi.kt
unknown_repo
kotlin
package com.joinforage.forage.android import android.content.Context import com.joinforage.forage.android.network.model.ForageApiResponse import com.joinforage.forage.android.ui.ForagePINEditText /** * The Forage SDK public API */ internal interface ForageSDKApi { suspend fun tokenizeEBTCard( merchantAc...
messagecenter/src/main/java/ruolan/com/messagecenter/provider/PushProviderImpl.kt
unknown_repo
kotlin
package ruolan.com.messagecenter.provider import android.content.Context import cn.jpush.android.api.JPushInterface import com.alibaba.android.arouter.facade.annotation.Route import com.ruolan.factory.PushProvider import com.ruolan.factory.router.RouterPath /** * Created by wuyinlei on 2018/1/30. * * @function 模块间...
paletteon-core/src/commonMain/kotlin/dev/teogor/paletteon/ktx/CorePalette.kt
unknown_repo
kotlin
/* * Copyright 2024 Teogor (<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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agree...
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/ArrowDownLeft.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...
video-sdk/src/test/java/com/kaleyra/video_sdk/viewmodel/call/VirtualBackgroundViewModelTest.kt
unknown_repo
kotlin
/* * Copyright 2023 Kaleyra @ https://www.kaleyra.com * * 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 applic...
compiler-plugin/src/main/kotlin/com/google/devtools/ksp/symbol/impl/kotlin/KSFunctionDeclarationImpl.kt
unknown_repo
kotlin
/* * Copyright 2020 Google LLC * Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors. * * 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.apac...
app/src/main/java/me/raghu/mvpassignment/DemoApplication.kt
unknown_repo
kotlin
package me.raghu.mvpassignment import android.app.Application import dagger.android.AndroidInjector import dagger.android.DispatchingAndroidInjector import dagger.android.HasAndroidInjector import me.raghu.mvpassignment.dagger.DaggerAppComponent import javax.inject.Inject class DemoApplication : Application(), HasAnd...
app/src/main/java/io/horizontalsystems/bankwallet/modules/market/topnftcollections/TopNftCollectionsService.kt
unknown_repo
kotlin
package io.horizontalsystems.bankwallet.modules.market.topnftcollections import io.horizontalsystems.bankwallet.modules.market.SortingField import io.horizontalsystems.bankwallet.modules.market.TimeDuration import io.horizontalsystems.bankwallet.modules.nft.TopNftCollection import kotlinx.coroutines.* import kotlinx.c...
android/apollo/src/main/java/io/muun/apollo/data/preferences/UserPreferencesRepository.kt
unknown_repo
kotlin
package io.muun.apollo.data.preferences import android.content.Context import androidx.annotation.VisibleForTesting import com.fasterxml.jackson.annotation.JsonIgnoreProperties import com.fasterxml.jackson.annotation.JsonInclude import io.muun.apollo.data.preferences.adapter.JsonPreferenceAdapter import io.muun.apollo...
app/src/main/java/com/delishstudio/delish/view/activities/CategoryBahanMakananActivity.kt
unknown_repo
kotlin
package com.delishstudio.delish.view.activities import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import androidx.core.content.ContextCompat import androidx.recyclerview.widget.LinearLayoutManager import androidx.recyclerview.widget.RecyclerView import com.delishstudio.delish.R import com.delish...
components/src/androidTest/java/emperorfin/android/components/ui/constants/LongConstants.kt
unknown_repo
kotlin
/** * Copyright 2023 <NAME> (emperorfin) * * 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 agree...
materialchecklist/src/main/java/com/dvdb/materialchecklist/recycler/checklist/model/ChecklistRecyclerHolderConfig.kt
unknown_repo
kotlin
/* * Designed and developed by <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 agr...
app/src/main/java/org/room76/cryptoobserver/MainActivity.kt
unknown_repo
kotlin
package org.room76.cryptoobserver import android.support.v7.app.AppCompatActivity import android.os.Bundle import android.util.Log import retrofit2.Call import retrofit2.Callback import retrofit2.Response class MainActivity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundle?) { supe...
font-awesome/src/commonMain/kotlin/compose/icons/fontawesomeicons/solid/PlayCircle.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....
widget/src/main/java/com/yzq/widget/HorizontalEditView.kt
unknown_repo
kotlin
package com.yzq.widget import android.annotation.SuppressLint import android.content.Context import android.text.InputType import android.util.AttributeSet import android.view.LayoutInflater import android.view.View import androidx.constraintlayout.widget.ConstraintLayout import androidx.core.graphics.BlendModeColorFi...
core/src/main/kotlin/ca/allanwang/kau/swipe/SwipeBackPage.kt
unknown_repo
kotlin
/* * Copyright 2018 <NAME> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
app/src/main/java/org/string/employees/geofence/GeofenceManagerService.kt
unknown_repo
kotlin
package org.string.employees.geofence import android.annotation.SuppressLint import android.app.Application import android.app.PendingIntent import android.arch.lifecycle.LiveData import android.arch.lifecycle.MutableLiveData import android.content.Intent import android.location.Location import android.util.Log import...
longan/src/main/java/com/dylanc/longan/DeviceInfo.kt
unknown_repo
kotlin
/* * Copyright (c) 2021. Dylan Cai * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
recyclerview/src/main/java/com/simonmcd/adapterbindings/recyclerview/adapters/BindableViewHolder.kt
unknown_repo
kotlin
package com.simonmcd.adapterbindings.recyclerview.adapters import androidx.databinding.BaseObservable import androidx.databinding.ViewDataBinding import androidx.recyclerview.widget.RecyclerView import com.simonmcd.adapterbindings.recyclerview.BR import com.simonmcd.adapterbindings.recyclerview.R /** * ViewHolder th...
playground/src/commonMain/kotlin/me/lincolnstuart/funblocks/playground/screens/components/form/SwitchButtonScreen.kt
unknown_repo
kotlin
package me.lincolnstuart.funblocks.playground.screens.components.form import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateOf import androidx.compose.runtime.remember import androidx.compose.runtime.setValue import cafe.adriel.voyager.core.scre...
app/src/main/java/com/garnegsoft/hubs/ui/common/feedCards/article/ArticleCardStyle.kt
unknown_repo
kotlin
package com.garnegsoft.hubs.ui.common.feedCards.article import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material.MaterialTheme import androidx.compose.runtime.Composable import androidx.compose.runtime.Immutable import androidx.compose.runtime.ReadOnlyComposable import androidx.comp...
app/src/main/java/com/example/chessgo/frontend/mainmenu/MenuItem.kt
unknown_repo
kotlin
package com.example.chessgo.frontend.mainmenu import androidx.compose.ui.graphics.vector.ImageVector data class MenuItem( var id: String, val title: String, val contentDescription: String, val icon: ImageVector )
services/src/main/java/knaufdan/android/services/media/implementation/MediaRequestResolver.kt
unknown_repo
kotlin
@file:Suppress("unused") package knaufdan.android.services.media.implementation import android.app.Activity import android.content.Context import android.content.Intent import android.net.Uri import android.os.Build import android.util.Log import androidx.activity.result.ActivityResultLauncher import androidx.activit...
services/src/main/java/knaufdan/android/services/media/implementation/MediaRequestResolver.kt
unknown_repo
kotlin
@file:Suppress("unused") package knaufdan.android.services.media.implementation import android.app.Activity import android.content.Context import android.content.Intent import android.net.Uri import android.os.Build import android.util.Log import androidx.activity.result.ActivityResultLauncher import androidx.activit...
app/src/main/java/com/example/haominwu/countriesinfoapplication/adapter/CountriesAdapter.kt
unknown_repo
kotlin
package com.example.haominwu.countriesinfoapplication.adapter import android.content.Context import android.content.Intent import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.BaseAdapter import android.widget.TextView import com.example.haominwu.countriesinfo...
features/src/main/java/com/yodeput/newsapp/feature/utils/Notifier.kt
unknown_repo
kotlin
/* * Created by <NAME> * URL: https://github.com/yodeput * Copyright (c) 2022 . All rights reserved. * Last modified 2/23/22, 10:25 PM * */ package com.yodeput.newsapp.feature.utils import android.app.Activity import android.app.NotificationChannel import android.app.NotificationManager import android.os.Build ...
TodoApp/app/src/main/java/br/com/fiap/todoapp/MainActivity.kt
unknown_repo
kotlin
package br.com.fiap.todoapp import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import br.com.fiap.todoapp.databinding.ActivityMainBinding import br.com.fiap.todoapp.databinding.ViewFilterItemBinding class MainActivity : AppCompatActivity() { private lateinit var binding: ActivityMainBinding...
app/src/main/java/com/liflymark/normalschedule/ui/app_widget_week/WeekAppwidgetAppwidget.kt
unknown_repo
kotlin
package com.liflymark.normalschedule.ui.app_widget_week import android.content.Context import android.util.Log import androidx.compose.runtime.Composable import androidx.compose.ui.graphics.Color import androidx.compose.ui.unit.dp import androidx.compose.ui.unit.sp import androidx.glance.* import androidx.glance.actio...
cleanableedittextcore/src/main/java/com/ggdsn/cleanableedittextcore/CleanableEditText.kt
unknown_repo
kotlin
package com.ggdsn.cleanableedittextcore import android.content.Context import android.content.res.Resources import android.graphics.drawable.Drawable import android.support.v7.widget.AppCompatEditText import android.util.AttributeSet import android.util.TypedValue import android.view.MotionEvent /** * Created by Lia...
app/src/main/java/com/github/pavelkv96/timetable/grsu/data/remote/models/Day.kt
unknown_repo
kotlin
/* * Copyright (C) 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required b...
android/app/src/main/java/com/tyhoo/android/nba/ui/HomeScreen.kt
unknown_repo
kotlin
package com.tyhoo.android.nba.ui import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.padding import androidx.compose.foundation.layout.size import androidx.compose.material3.Icon import androidx.compose.material3.NavigationBar import androidx.compose.material3.NavigationBarI...
presentation/src/main/java/com/example/presentation/view/MainActivity.kt
unknown_repo
kotlin
package com.example.presentation.view import android.os.Bundle import androidx.appcompat.app.AppCompatActivity import androidx.lifecycle.Observer import androidx.lifecycle.ViewModelProvider import com.example.presentation.R import kotlinx.android.synthetic.main.activity_main.* import org.koin.androidx.viewmodel.ext.an...
nrstations/src/iosMain/kotlin/com/intsoftdev/nrstations/viewmodels/NearbyCallbackViewModel.kt
unknown_repo
kotlin
package com.intsoftdev.nrstations.viewmodels import io.github.aakira.napier.Napier @Suppress("Unused") // Members are called from Swift class NearbyCallbackViewModel : CallbackSdkViewModel() { init { Napier.d("init") } override val viewModel = NrNearbyViewModel() val stations = viewModel.ui...
LayoutsCodelab/app/src/main/java/com/codelab/layouts/MyOwnColumn.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...
communication/tests/unit/src/com/google/android/libraries/car/communication/messagingsync/MessagingUtilsTest.kt
unknown_repo
kotlin
// Copyright 2021 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
dialog/src/main/java/com/koonny/dialog/base/DialogConfig.kt
unknown_repo
kotlin
package com.koonny.dialog.base import android.view.Gravity import androidx.annotation.GravityInt import androidx.annotation.StyleRes import com.koonny.dialog.R class DialogConfig( @StyleRes var style: Int = R.style.Theme_Koonny_Dialog, @androidx.annotation.FloatRange(from = 0.0, to = 1.0) var width: F...
hollowkit/src/main/java/com/funnywolf/hollowkit/view/scroll/behavior/PullRefreshBehavior.kt
unknown_repo
kotlin
package com.funnywolf.hollowkit.view.scroll.behavior import android.animation.ValueAnimator import android.content.Context import android.util.AttributeSet import android.view.Gravity import android.view.MotionEvent import android.view.View import android.widget.FrameLayout import android.widget.ImageView import andro...
FluentUI.Demo/src/androidTest/java/com/microsoft/fluentuidemo/demos/V2ShimmerUITest.kt
unknown_repo
kotlin
package com.microsoft.fluentuidemo.demos import androidx.compose.foundation.layout.height import androidx.compose.foundation.layout.size import androidx.compose.foundation.layout.width import androidx.compose.ui.Modifier import androidx.compose.ui.platform.testTag import androidx.compose.ui.test.assertHeightIsEqualTo ...
BookKeeper/app/src/main/java/com/example/bookkeeper/SearchResultActivity.kt
unknown_repo
kotlin
@file:Suppress("DEPRECATION") package com.example.bookkeeper import android.app.Activity import android.app.SearchManager import android.content.Intent import android.os.Bundle import android.util.Log import android.view.View import android.widget.Toast import androidx.appcompat.app.AppCompatActivity import androidx....
app/src/main/java/com/example/surfin/data/localsource/SurfinConverters.kt
unknown_repo
kotlin
package com.example.surfin.data.localsource import androidx.room.TypeConverter import com.squareup.moshi.JsonAdapter import com.squareup.moshi.Moshi import com.squareup.moshi.Types import java.nio.charset.Charset class SurfinConverters { @TypeConverter fun convertListToJson(list: List<String>?): String? { ...
app/src/main/java/com/mycompany/advioo/util/DataConverter.kt
unknown_repo
kotlin
package com.mycompany.advioo.util import androidx.room.TypeConverter import com.google.firebase.firestore.GeoPoint import com.google.gson.Gson import com.google.gson.reflect.TypeToken import com.mycompany.advioo.models.MyPair import com.mycompany.advioo.models.campaign.LatLngPoint import java.lang.reflect.Type class ...
component-toolkit/src/commonMain/kotlin/com/pablichj/templato/component/core/panel/PanelHeaderView.kt
unknown_repo
kotlin
package com.macaosoftware.component.panel import androidx.compose.foundation.background import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Spacer import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundati...
hybid.demo/src/main/java/net/pubnative/lite/demo/ui/fragments/hybid/HyBidNativeFragment.kt
unknown_repo
kotlin
// The MIT License (MIT) // // Copyright (c) 2018 PubNative GmbH // // 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, ...
app/src/main/java/com/tmdb/movie/ui/people/component/PeopleActingBottomSheet.kt
unknown_repo
kotlin
package com.tmdb.movie.ui.people.component import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.WindowInsets import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.foundation.layout.padding import androidx.compose.foundation.lazy.LazyColumn import androidx.c...
library/src/main/java/com/opensource/svgaplayer/bitmap/SVGABitmapUrlDecoder.kt
unknown_repo
kotlin
package com.opensource.svgaplayer.bitmap import android.graphics.Bitmap import android.graphics.BitmapFactory import java.net.HttpURLConnection import java.net.URL /** * 通过文件解码 Bitmap * * Create by im_dsd 2020/7/7 17:50 */ internal object SVGABitmapUrlDecoder : SVGABitmapDecoder<URL>() { private const val TIM...
ui/features/note/src/main/java/com/example/note/ui/bottom_bar/AddEditBottomBar.kt
unknown_repo
kotlin
package com.example.note.ui.bottom_bar import android.net.Uri import androidx.activity.compose.ManagedActivityResultLauncher import androidx.compose.foundation.ExperimentalFoundationApi import androidx.compose.foundation.background import androidx.compose.foundation.combinedClickable import androidx.compose.foundation...
compose/src/commonMain/kotlin/pro/respawn/flowmvi/compose/dsl/LocalSubscriberLifecycle.kt
unknown_repo
kotlin
package pro.respawn.flowmvi.compose.dsl import androidx.compose.runtime.Composable import androidx.compose.runtime.CompositionLocalProvider import androidx.compose.runtime.ProvidableCompositionLocal import androidx.compose.runtime.remember import androidx.compose.runtime.staticCompositionLocalOf import androidx.lifecy...
app/src/main/java/com/oxyethylene/easynote/database/convertor/KeywordSetConvertor.kt
unknown_repo
kotlin
package com.oxyethylene.easynote.database.convertor import androidx.room.TypeConverter import com.google.gson.reflect.TypeToken import com.hjq.gson.factory.GsonFactory import java.util.TreeSet /** * Created with IntelliJ IDEA. * @Project : EasyNote * @Package : com.oxyethylene.easynote.database.convertor...
app/src/main/java/edu/swu/xn/app/component/DeptCard.kt
unknown_repo
kotlin
package edu.swu.xn.app.component import androidx.compose.foundation.Image import androidx.compose.foundation.border import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Row import androidx.compose.foundation.layout.fillMaxWidth import androidx.compose.foundation.layout.paddi...
app/src/test/java/hu/csabapap/seriesreminder/ui/search/TestSearchViewModel.kt
unknown_repo
kotlin
package hu.csabapap.seriesreminder.ui.search import androidx.arch.core.executor.testing.InstantTaskExecutorRule import androidx.lifecycle.Observer import com.nhaarman.mockitokotlin2.any import com.nhaarman.mockitokotlin2.inOrder import com.nhaarman.mockitokotlin2.mock import com.nhaarman.mockitokotlin2.whenever import...
MyNewsApp/app/src/main/java/com/aarush/newsapp/widget/CustomSearchBar.kt
unknown_repo
kotlin
package com.aarush.newsapp.widget import android.content.Context import android.util.AttributeSet import android.view.View import android.widget.ImageView import android.widget.LinearLayout import androidx.appcompat.widget.SearchView import com.bumptech.glide.Glide import com.aarush.newsapp.R class CustomSearchBar : ...
pagerindicatorview/src/main/java/com/mahdikh/vision/pagerindicatorview/progress/SwapProgress.kt
unknown_repo
kotlin
package com.mahdikh.vision.pagerindicatorview.progress import android.graphics.Canvas import androidx.viewpager.widget.ViewPager import com.mahdikh.vision.pagerindicatorview.info.IndicatorInfo import com.mahdikh.vision.pagerindicatorview.util.Paint2 import kotlin.math.abs class SwapProgress : IndicatorProgress() { ...
app/src/main/java/com/odhiambopaul/movie/data/entity/Genre.kt
unknown_repo
kotlin
package com.odhiambopaul.movie.data.entity import androidx.room.Entity import androidx.room.PrimaryKey data class Genre( val id: Int, // 16 val name: String // Animation )
app/router/src/main/java/com/gmail/jiangyang5157/router/fragment/setup/AsFragmentActivityRouterHost.kt
unknown_repo
kotlin
package com.gmail.jiangyang5157.router.fragment.setup import androidx.fragment.app.FragmentActivity import androidx.lifecycle.Lifecycle internal class AsFragmentActivityRouterHost( override val activity: FragmentActivity ) : FragmentRouterHost { override val lifecycle: Lifecycle get() = activity.life...
UIViewLess/src/main/java/com/angcyo/uiview/less/kotlin/dialog/GridDialogConfig.kt
unknown_repo
kotlin
package com.angcyo.uiview.less.kotlin.dialog import android.app.Dialog import android.graphics.drawable.Drawable import com.angcyo.uiview.less.R import com.angcyo.uiview.less.kotlin.dslAdapter import com.angcyo.uiview.less.kotlin.renderItem import com.angcyo.uiview.less.recycler.RBaseViewHolder import com.angcyo.uivie...
app/src/main/java/com/example/androiddevchallenge/MainActivity.kt
unknown_repo
kotlin
/* * Copyright 2021 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
app/src/main/java/com/coupleblog/adapter/CB_EmailAdapter.kt
unknown_repo
kotlin
package com.coupleblog.adapter import com.coupleblog.fragment.mail.CB_MailBoxFragment import com.coupleblog.fragment.mail.MailItemBinding import com.coupleblog.model.CB_Mail import android.util.Log import android.view.LayoutInflater import android.view.ViewGroup import androidx.databinding.DataBindingUtil import andr...
app/src/main/java/de/bauerapps/resimulate/PostShockConfig.kt
unknown_repo
kotlin
package de.bauerapps.resimulate import android.annotation.SuppressLint import android.view.LayoutInflater import android.view.View import androidx.appcompat.app.AppCompatActivity import de.bauerapps.resimulate.config.VitalSignConfig import de.bauerapps.resimulate.helper.VSConfigType import de.bauerapps.resimulate.view...