file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
features/shopping_lists/src/test/kotlin/gq/kirmanak/mealient/shopping_lists/ui/details/ShoppingListViewModelTest.kt | unknown_repo | kotlin | package gq.kirmanak.mealient.shopping_lists.ui.details
import androidx.lifecycle.SavedStateHandle
import gq.kirmanak.mealient.datasource.models.GetItemLabelResponse
import gq.kirmanak.mealient.datasource.models.GetFoodResponse
import gq.kirmanak.mealient.datasource.models.GetShoppingListItemRecipeReferenceResponse
imp... |
app/src/main/java/com/knw/myfunandroid/ui/system/SystemViewModel.kt | unknown_repo | kotlin | package com.knw.myfunandroid.ui.system
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.switchMap
import com.knw.myfunandroid.logic.Repository
import com.knw.myfunandroid.logic.model.SystemTreeItem
class SystemViewModel : ViewModel() {
private val treeLiveDa... |
app/src/main/java/xyz/junerver/composehooks/route/routes.kt | unknown_repo | kotlin | package xyz.junerver.composehooks.route
import androidx.compose.runtime.Composable
import xyz.junerver.composehooks.HomeScreen
import xyz.junerver.composehooks.example.UseBooleanExample
import xyz.junerver.composehooks.example.UseDebounceExample
import xyz.junerver.composehooks.example.UseIntervalExample
import xyz.ju... |
app/src/main/java/com/example/techpro_admins_app/screens/MainActivity.kt | unknown_repo | kotlin | package com.example.techpro_admins_app.screens
import android.os.Bundle
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import androidx.fragment.app.Fragment
import com.example.techpro_admins_app... |
sample/src/main/java/io/hammerhead/samplemodule/kotlin/powerhr/PowerHeartRateDataType.kt | unknown_repo | kotlin | /**
* Copyright 2021 Hammerhead Navigation, Inc. 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 requir... |
solar/src/main/java/com/chiksmedina/solar/bold/electronicdevices/Tv.kt | unknown_repo | kotlin | package com.chiksmedina.solar.bold.electronicdevices
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeC... |
logger/src/main/java/com/antoniooliva/logger/ServiceLocator.kt | unknown_repo | kotlin | /*
* Copyright 2018 @ https://github.com/aolivafaura/
*
* 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/com/example/justeattakeawayapplication/presentation/restaurants/RestaurantsAdapter.kt | unknown_repo | kotlin | package com.example.justeattakeawayapplication.presentation.restaurants
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.example.domain.model.Restaurant
import com.example.justeattakeawayapplication.R
import com.example.justeattakeawayapplicat... |
app/src/main/kotlin/io/github/feelfreelinux/wykopmobilny/ui/modules/profile/microblog/MicroblogPagerAdapter.kt | unknown_repo | kotlin | package io.github.feelfreelinux.wykopmobilny.ui.modules.profile.microblog
import android.content.res.Resources
import android.support.v4.app.Fragment
import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentPagerAdapter
import android.util.SparseArray
import android.view.ViewGroup
import io.... |
app/src/androidTest/java/app/books/tanga/components/SummaryGridTest.kt | unknown_repo | kotlin | package app.books.tanga.components
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.compose.ui.test.onNodeWithTag
import androidx.compose.ui.test.onNodeWithText
import androidx.compose.ui.test.performScrollToIndex
import app.books.tanga.R
import app.books.tanga.coreui.components.InfoCard
import... |
coroutine-play/app/src/main/kotlin/com/droidstarter/coroutine/HomeViewModel.kt | unknown_repo | kotlin | package com.droidstarter.coroutine
import android.content.Context
import android.content.Intent
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.util.Log
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableIntStateOf
import androidx.compose.runtime.mutable... |
app/src/main/java/com/htueko/android/journeyofseed/util/ServiceUtil.kt | unknown_repo | kotlin | package com.htueko.android.journeyofseed.util
import android.app.Activity
import android.app.SearchManager
import android.content.Context
import android.net.ConnectivityManager
import android.util.DisplayMetrics
import androidx.core.content.ContextCompat
// to get the SearchManger
fun Context.getSearchManager() =
... |
Bi-tu/app/src/main/java/com/kotuz/mesajbulutu/onSekizOsmanliDevleti.kt | unknown_repo | kotlin | package com.kotuz.mesajbulutu
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
class onSekizOsmanliDevleti : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_on_sekiz_osmanli_devl... |
dxadapter/src/main/java/com/hotmail/or_dvir/dxadapter/interfaces/IItemExpandable.kt | unknown_repo | kotlin | package com.hotmail.or_dvir.dxadapter.interfaces
import androidx.annotation.IdRes
/**
* implement this interface in your ITEM if you wish for it to be expandable
*/
interface IItemExpandable: IItemBase
{
/**
* holds the current expanded state of this item.
*
* other then providing an initial val... |
app/src/main/java/com/suqir/wasaischedule/ui/base_view/BaseDialogFragment.kt | unknown_repo | kotlin | package com.suqir.wasaischedule.ui.base_view
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.Window
import androidx.annotation.LayoutRes
import androidx.fr... |
app/src/main/java/org/wikipedia/suggestededits/SuggestedEditsTask.kt | unknown_repo | kotlin | package org.wikipedia.suggestededits
import androidx.annotation.DrawableRes
class SuggestedEditsTask {
var title: String? = null
var description: String? = null
var disabled: Boolean = false
var showImagePlaceholder: Boolean = true
var showActionLayout: Boolean = false
var unlockActionPositive... |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/datadonation/analytics/modules/exposurewindows/AnalyticsExposureWindowCollector.kt | unknown_repo | kotlin | package de.rki.coronawarnapp.datadonation.analytics.modules.exposurewindows
import com.google.android.gms.nearby.exposurenotification.ExposureWindow
import com.google.android.gms.nearby.exposurenotification.ScanInstance
import de.rki.coronawarnapp.datadonation.analytics.common.AnalyticsExposureWindow
import de.rki.cor... |
glance/glance-appwidget/integration-tests/demos/src/main/java/androidx/glance/appwidget/demos/ErrorUiAppWidget.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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
base/src/main/java/gcu/product/base/models/other/LanguageEntity.kt | unknown_repo | kotlin | package gcu.product.base.models.other
import androidx.annotation.Keep
import androidx.annotation.StringRes
@Keep
data class LanguageEntity(val countryCode: String, val languageCode: String, @StringRes val description: Int) |
app_branch/src/androidTest/java/dev/eastar/branch/BranchDBUnitTest.kt | unknown_repo | kotlin | package dev.eastar.branch
import android.log.Log
import androidx.room.Room
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
import dev.eastar.branch.repository.BranchDatabase
import org.junit.Before
import org.junit.runner.RunWith
@RunWith(AndroidJUnit4::c... |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/filled/TabletSpeaker.kt | unknown_repo | kotlin |
package com.konyaco.fluent.icons.filled
import androidx.compose.ui.graphics.vector.ImageVector
import com.konyaco.fluent.icons.Icons
import com.konyaco.fluent.icons.fluentIcon
import com.konyaco.fluent.icons.fluentPath
public val Icons.Filled.TabletSpeaker: ImageVector
get() {
if (_tabletSpeaker != null... |
sdk/onetap/onetap-compose/src/main/kotlin/com/vk/id/onetap/compose/onetap/OneTap.kt | unknown_repo | kotlin | @file:OptIn(InternalVKIDApi::class)
package com.vk.id.onetap.compose.onetap
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.runtime.Composab... |
app/src/main/java/mobi/lab/throwabletest/common/debug/DebugActions.kt | unknown_repo | kotlin | package mobi.lab.throwabletest.common.debug
import android.content.Context
interface DebugActions {
fun launchDebugActivity(context: Context)
}
|
shared/src/commonMain/kotlin/letHimCook/routes/Navigation.kt | unknown_repo | kotlin | package letHimCook.routes
import androidx.compose.runtime.Composable
import letHimCook.constants.API_KEY
import letHimCook.network.SpoonacularAPI
import letHimCook.views.ingredientSelectionView
import letHimCook.views.recipeFoundView
import letHimCook.views.recipeView
import moe.tlaster.precompose.navigation.NavHost
i... |
presentation/src/main/java/simra/androidtest/gheisary/twtest/utility/extensions/ContextExtensions.kt | unknown_repo | kotlin | package simra.androidtest.gheisary.twtest.utility.extensions
import android.Manifest
import android.content.Context
import android.net.ConnectivityManager
import android.support.annotation.ColorRes
import android.support.annotation.RequiresPermission
import android.support.v4.content.ContextCompat
import android.util.... |
news/src/main/java/com/nowiwr01p/news/NewsScreen.kt | unknown_repo | kotlin | package com.nowiwr01p.news
import androidx.navigation.NavController
import androidx.navigation.NavGraphBuilder
import androidx.navigation.NavType
import androidx.navigation.compose.composable
import androidx.navigation.navArgument
import com.nowiwr01p.core.extenstion.decodeObjectFromString
import com.nowiwr01p.core.ex... |
app/src/main/java/com/example/rangkul/ui/search/CategoryContentActivity.kt | unknown_repo | kotlin | package com.example.rangkul.ui.search
import android.app.Activity
import android.content.Intent
import android.content.res.Resources
import android.net.Uri
import android.os.Bundle
import android.util.TypedValue
import android.view.ViewGroup
import androidx.activity.result.contract.ActivityResultContracts
import andro... |
app/src/main/java/com/example/wildnest/MainActivity.kt | unknown_repo | kotlin | package com.example.wildnest
import android.Manifest
import android.animation.AnimatorSet
import android.animation.ObjectAnimator
import android.annotation.SuppressLint
import android.content.Intent
import android.content.pm.PackageManager
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import... |
src/test/kotlin/io/github/rk012/sourcelock/ResourceWriterTest.kt | unknown_repo | kotlin | package io.github.rk012.sourcelock
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
import kotlin.test.*
class ResourceWriterTest {
private suspend fun coroutineA(r: ResourceDescriptor<String>) {
r.open {
... |
library/src/androidTest/java/com/silverpine/uu/core/test/UUListTest.kt | unknown_repo | kotlin | package com.silverpine.uu.core.test
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.silverpine.uu.core.uuGetOrNull
import com.silverpine.uu.core.uuSlice
import org.junit.Assert
import org.junit.FixMethodOrder
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.runners.MethodSorters
... |
extendedSample/src/main/java/info/mqtt/android/extsample/components/MessageListItemAdapter.kt | unknown_repo | kotlin | package info.mqtt.android.extsample.components
import android.annotation.SuppressLint
import android.content.Context
import android.widget.ArrayAdapter
import android.view.ViewGroup
import android.view.LayoutInflater
import android.view.View
import android.widget.TextView
import info.mqtt.android.extsample.R
import in... |
app/src/main/java/com/sztorm/notecalendar/helpers/DrawableHelper.kt | unknown_repo | kotlin | package com.sztorm.notecalendar.helpers
import android.graphics.drawable.Drawable
import androidx.core.graphics.drawable.DrawableCompat
class DrawableHelper {
companion object {
fun Drawable.wrapCompat(): Drawable
= DrawableCompat.wrap(this)
}
} |
app/src/main/java/dev/efantini/hipopeople/presentation/memberslist/elements/MemberListItem.kt | unknown_repo | kotlin | package dev.efantini.hipopeople.presentation.memberslist.elements
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material.Card
import and... |
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/FolderOpen.kt | unknown_repo | kotlin | package me.localx.icons.straight.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.Mite... |
test-util-android/src/main/java/org/fnives/test/showcase/android/testutil/synchronization/idlingresources/OkHttp3IdlingResource.kt | unknown_repo | kotlin | package org.fnives.test.showcase.android.testutil.synchronization.idlingresources
import androidx.annotation.CheckResult
import androidx.test.espresso.IdlingResource
import okhttp3.Dispatcher
import okhttp3.OkHttpClient
/**
* AndroidX version of Jake Wharton's OkHttp3IdlingResource.
*
* Reference: https://github.c... |
audio-recorder/src/test/java/org/odk/collect/audiorecorder/recording/internal/RecordingForegroundServiceNotificationTest.kt | unknown_repo | kotlin | package org.odk.collect.audiorecorder.recording.internal
import android.app.Application
import android.app.NotificationManager
import android.app.Service
import android.content.Context.NOTIFICATION_SERVICE
import android.content.Intent
import android.os.IBinder
import androidx.test.core.app.ApplicationProvider
import ... |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/PrinterOff.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/plcoding/weatherapp/presentation/ui/theme/Color.kt | unknown_repo | kotlin | package com.plcoding.weatherapp.presentation.ui.theme
import androidx.compose.ui.graphics.Color
val White = Color(0xFFE6E6E6)
val LightBlue = Color(0xFF5EB4FF) |
app/src/main/java/com/plcoding/weatherapp/presentation/ui/theme/Color.kt | unknown_repo | kotlin | package com.plcoding.weatherapp.presentation.ui.theme
import androidx.compose.ui.graphics.Color
val White = Color(0xFFE6E6E6)
val LightBlue = Color(0xFF5EB4FF) |
recommend-sdk/src/main/java/com/recommend/sdk/core/data/ApiManager.kt | unknown_repo | kotlin | package com.recommend.sdk.core.data
import android.content.Context
import androidx.work.*
import com.recommend.sdk.core.data.exception.ApiErrorResponseException
import com.recommend.sdk.core.data.exception.NoConnectionException
import com.recommend.sdk.core.data.exception.RawApiErrorResponseException
import com.recomm... |
util/src/main/java/xyz/dean/util/PaintUtil.kt | unknown_repo | kotlin | @file:Suppress("unused")
package xyz.dean.util
import android.content.Context
import android.content.res.ColorStateList
import android.os.Build
import androidx.annotation.ColorRes
fun Context.px2dpF(pxValue: Float): Float {
val scale = resources.displayMetrics.density
return pxValue / scale
}
fun Context.dp... |
app/src/main/java/com/example/newsiuuu/db/ArticleDAO.kt | unknown_repo | kotlin | package alan.news.app.db
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import alan.news.app.models.Article
@Dao
interface ArticleDao {
@Insert(onConflict = OnConflictStrategy.RE... |
app/src/main/java/com/kvl/cyclotrack/SplitRepository.kt | unknown_repo | kotlin | package com.kvl.cyclotrack
import androidx.lifecycle.LiveData
import javax.inject.Inject
class SplitRepository @Inject constructor(private val splitDao: SplitDao) {
fun observeTripSplits(tripId: Long): LiveData<Array<Split>> = splitDao.subscribe(tripId)
fun observeLastSplit(tripId: Long): LiveData<Split> = s... |
android/src/main/java/co/nimblehq/ic/kmm/suv/android/ui/screens/surveydetail/SurveyDetailScreen.kt | unknown_repo | kotlin | package co.nimblehq.ic.kmm.suv.android.ui.screens.surveydetail
import android.annotation.SuppressLint
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compos... |
app/src/main/java/com/gadgeon_mt/weatherforecast/database/WeatherDao.kt | unknown_repo | kotlin | package com.gadgeon_mt.weatherforecast.database
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
@Dao
interface WeatherDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
suspend fun insert(weatherDb: WeatherDb)
@Query("SELECT * FR... |
app/src/main/java/com/rp/hitta/util/ViewUtils.kt | unknown_repo | kotlin | package com.rp.hitta.util
import android.widget.ImageView
import android.widget.TextView
import com.bumptech.glide.Glide
import com.bumptech.glide.request.RequestOptions
import com.rp.hitta.R
import com.rp.hitta.db.ReviewsDatabase
import com.rp.hitta.model.Review
/**
* Created by roba
*/
class ViewUtils {
comp... |
RxDemo/src/main/java/com/tamsiree/rxdemo/activity/ActivityCardStack.kt | unknown_repo | kotlin | package com.tamsiree.rxdemo.activity
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import android.view.View
import com.tamsiree.rxdemo.R
import com.tamsiree.rxdemo.adapter.AdapterStackTest
import com.tamsiree.rxkit.RxDeviceTool.setPortrait
import com.tamsiree.rxkit.RxTool
import com.ta... |
demoApp/composeApp/src/commonMain/kotlin/sh/calvin/reorderable/demo/ui/ReorderableRowScreen.kt | unknown_repo | kotlin | package sh.calvin.reorderable.demo.ui
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.height
imp... |
common/auth/src/main/java/app/ss/auth/api/UserModel.kt | unknown_repo | kotlin | /*
* Copyright (c) 2023. Adventech <<EMAIL>>
*
* 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, merge... |
android/beagle/src/main/java/br/com/zup/beagle/android/components/Image.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/com/launchkey/android/authenticator/sdk/ui/internal/auth_method/biometric/BiometricScanDialogFragment.kt | unknown_repo | kotlin | /*
* Copyright (c) 2017. iovation, LLC. All rights reserved.
*/
package com.launchkey.android.authenticator.sdk.ui.internal.auth_method.biometric
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment... |
app/src/main/java/com/sdn/teampredators/polima/PolimaApplication.kt | unknown_repo | kotlin | package com.sdn.teampredators.polima
import android.app.Application
import com.sdn.teampredators.polima.utils.ReleaseTree
import dagger.hilt.android.HiltAndroidApp
import timber.log.Timber
@HiltAndroidApp
class PolimaApplication : Application() {
override fun onCreate() {
super.onCreate()
if (Buil... |
app/src/main/java/com/example/findhim/persistency/GameApplication.kt | unknown_repo | kotlin | package com.example.findhim.persistency
import android.app.Application
class GameApplication : Application(){
// Using by lazy so the database and the repository are only created when they're needed
// rather than when the application starts
val database by lazy { GameRoomDatabase.getDatabase(this) }
... |
src/main/java/com/sayzen/campfiresdk/controllers/notifications/ControllerApp.kt | unknown_repo | kotlin | package com.sayzen.campfiresdk.controllers.notifications
import android.graphics.Color
import com.sayzen.campfiresdk.R
import com.sup.dev.android.tools.ToolsResources
object ControllerApp {
fun isLightThem() = ToolsResources.getColorAttr(R.attr.toolbar_content_color) == Color.WHITE
fun isDarkThem() = ToolsR... |
feature/overview/src/main/kotlin/com/kevlina/budgetplus/feature/overview/ui/OverviewScreen.kt | unknown_repo | kotlin | package com.kevlina.budgetplus.feature.overview.ui
import android.Manifest
import android.app.Activity
import android.os.Build
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.activity.result.contract.ActivityResultContracts
import androidx.compose.foundation.layout.Column
import andr... |
app/src/main/java/com/cornellappdev/coffee_chats_android/models/Interest.kt | unknown_repo | kotlin | package com.cornellappdev.coffee_chats_android.models
import android.os.Parcelable
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
import kotlinx.android.parcel.Parcelize
@Parcelize
@JsonClass(generateAdapter = true)
data class Interest(
val id: Int,
val name: String,
val subtitle: Stri... |
app/src/main/java/pro/ksart/rickandmorty/ui/MainActivity.kt | unknown_repo | kotlin | package pro.ksart.rickandmorty.ui
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.NavController
import androidx.navigation.fragment.NavHostFragment
import androidx.navigation.ui.AppBarConfiguration
import androidx.navigation.ui.NavigationUI.setupWithNavController
imp... |
app/src/main/java/com/mvk/news/ui/home/HomeFragment.kt | unknown_repo | kotlin | package com.mvk.news.ui.home
import android.os.Bundle
import android.view.View
import androidx.recyclerview.widget.LinearLayoutManager
import com.mvk.news.BR
import com.mvk.news.R
import com.mvk.news.databinding.FragmentHomeBinding
import com.mvk.news.di.HorizontalRV
import com.mvk.news.di.component.FragmentComponent
... |
src/jsMain/kotlin/dom/DomBasedMap.kt | unknown_repo | kotlin | package dom
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import app.QuizState
import app.asMapLocation
import dom.mapbox.*
@DomComposable
@Composable
fun DomBasedMap(quizState: QuizState) {
val mapState = rememberMapboxMapState(
center = quizState.correctLocation.asM... |
lib/src/main/java/dora/widget/panel/menu/AbsMenuPanelItem.kt | unknown_repo | kotlin | package dora.widget.panel.menu
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.LinearLayout
import dora.widget.panel.IMenu
import dora.widget.panel.MenuPanelItem
import dora.widget.panel.MenuPanelItemRoot
import dora.widget.... |
app/src/main/java/org/bernshtam/moonandsun/MyLocation.kt | unknown_repo | kotlin | package org.bernshtam.moonandsun
import com.google.android.gms.maps.model.LatLng
import net.time4j.calendar.astro.GeoLocation
class MyLocation(private val latitude: Double, private val longitude: Double) :
GeoLocation {
constructor(p: LatLng) : this(p.latitude, p.longitude)
override fun getAltitude(): I... |
formsimple/src/main/java/com/creativity/dev/formsimple/utils/ValidatorRegex.kt | unknown_repo | kotlin | package com.creativity.dev.formsimple.utils
import android.util.Patterns
class EFFValidatorRegex {
companion object {
fun isCorrect(rule: String, str: String): Boolean{
val pattern = Regex(rule)
return pattern.matches(str)
}
}
} |
byco/src/main/java/androidapp/byco/ui/PreviousRidesViewModel.kt | unknown_repo | kotlin | /*
* Copyright 2022 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 ... |
app/src/main/java/com/loan/golden/cash/money/loan/data/response/LottetownResponse.kt | unknown_repo | kotlin | package com.loan.golden.cash.money.loan.data.response
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
/**
* author : huxiaowei
* date : 2023/9/28 22:01
* description :
*/
@Parcelize
data class LottetownResponse(
var status: Int = -1,
var time: Long = 0,
var maxAge: Long = 0,
va... |
app/src/main/kotlin/com/leon/bilihub/utils/DataStoreUtils.kt | unknown_repo | kotlin | package com.leon.bilihub.utils
import android.content.Context
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.*
import androidx.datastore.preferences.preferencesDataStore
import kotlinx.coroutines.flow.*
import kotlinx.coroutines.runBlocking
import java.io.IOException
import java.la... |
app/src/main/java/io/dwak/techtest/MainActivity.kt | unknown_repo | kotlin | package io.dwak.techtest
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.widget.FrameLayout
import butterknife.BindView
import com.bluelinelabs.conductor.Conductor
import com.bluelinelabs.conductor.Router
class MainActivity : AppCompatActivity() {
private lateinit var router:... |
MSDKUIDemo/MSDKUIApp/src/test/java/com/here/msdkuiapp/guidance/GuidanceNextManeuverViewFragmentTest.kt | unknown_repo | kotlin | /*
* Copyright (C) 2017-2020 HERE Europe B.V.
*
* 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... |
mage/src/main/java/mil/nga/giat/mage/data/feed/FeedWithItems.kt | unknown_repo | kotlin | package mil.nga.giat.mage.data.feed
import androidx.room.Embedded
import androidx.room.Entity
import androidx.room.Relation
@Entity
data class FeedWithItems(
@Embedded
val feed: Feed,
@Relation(parentColumn = "id", entityColumn = "feed_id")
val items: List<FeedItem>
) |
feature/musicplayer/src/main/java/com/mcgrady/xproject/feature/musicplayer/extensions/NavigationExtensions.kt | unknown_repo | kotlin | package com.mcgrady.xproject.feature.musicplayer.extensions
import android.animation.Animator
import android.animation.ObjectAnimator
import android.animation.ValueAnimator
import android.content.Context
import android.graphics.drawable.BitmapDrawable
import android.view.View
import android.view.ViewGroup
import andro... |
android/src/main/java/com/google/samples/apps/iosched/ui/widget/HashtagView.kt | unknown_repo | kotlin | /*
* Copyright 2014 Google Inc. 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 required by applic... |
compose-ide-plugin/src/com/android/tools/compose/intentions/ComposeCreateComposableFunction.kt | unknown_repo | kotlin | /*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
px-services/src/main/java/com/mercadopago/android/px/model/GenericCardDisplayInfo.kt | unknown_repo | kotlin | package com.mercadopago.android.px.model
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
@Parcelize
data class GenericCardDisplayInfo(
val iconUrl: String?,
val border: PXBorder?,
val backgroundColor: String?,
val shadow: Boolean?
) : Parcelable
|
VehicleUI/src/main/java/com/drivequant/drivekit/vehicle/ui/odometer/fragment/OdometerInitFragment.kt | unknown_repo | kotlin | package com.drivequant.drivekit.vehicle.ui.odometer.fragment
import android.content.Context
import android.graphics.Color
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.fragment.app.Fragment
import androidx.... |
app/src/main/java/com/permissionx/librarymanagementsystem/logic/database/AppDatabase.kt | unknown_repo | kotlin | package com.permissionx.librarymanagementsystem.logic.database
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import com.permissionx.librarymanagementsystem.LibraryManagementSystemApplication
import com.permissionx.librarymanagementsystem.logic.dao.UserDao
import com.permissi... |
architecture/src/iosMain/kotlin/viewmodel/ViewModel.kt | unknown_repo | kotlin | /*
Copyright 2020 Splendo Consulting B.V. The Netherlands
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by appli... |
android/src/main/java/com/magicleap/magicscript/scene/nodes/UiListViewNode.kt | unknown_repo | kotlin | /*
* Copyright (c) 2019-2020 Magic Leap, Inc. 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... |
app/src/test/java/com/flexcode/devspace/quotes/data/local/QuotesDaoTest.kt | unknown_repo | kotlin | package com.flexcode.devspace.quotes.data.local
import android.content.Context
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.room.Room
import androidx.test.core.app.ApplicationProvider
import androidx.test.filters.SmallTest
import com.flexcode.devspace.quotes.data.local.dao.QuotesD... |
app/src/main/java/com/worldofplay/app/di/AppInjector.kt | unknown_repo | kotlin | package com.worldofplay.app.di
import android.app.Activity
import android.app.Application
import android.os.Bundle
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.fragment.app.FragmentManager
import com.worldofplay.app.WorldOfPlayApp
import com.worldofplay.core.di.In... |
app/src/main/java/com/worldofplay/app/di/AppInjector.kt | unknown_repo | kotlin | package com.worldofplay.app.di
import android.app.Activity
import android.app.Application
import android.os.Bundle
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.fragment.app.FragmentManager
import com.worldofplay.app.WorldOfPlayApp
import com.worldofplay.core.di.In... |
app/src/main/java/nl/amsterdam/openmonumentendag/monuments/MapMonumentsFragment.kt | unknown_repo | kotlin | package nl.amsterdam.openmonumentendag.monuments
import android.Manifest
import android.annotation.SuppressLint
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Bundle
import android.support.v4.app.Fragment
import android.support.v4.content.ContextCompat
import android.util.Type... |
app/src/main/java/com/example/mykotlinapp/background/receiver/ReplyMessageReceiver.kt | unknown_repo | kotlin | package com.example.mykotlinapp.background.receiver
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import androidx.core.app.RemoteInput
import androidx.work.Data
import androidx.work.WorkManager
import com.example.mykotlinapp.R
import com.example.mykotlinapp.WORK_... |
app/src/main/java/online/vapcom/githubstars/ui/list/PagesNavigationBar.kt | unknown_repo | kotlin | /*
* (c) VAP Communications Group, 2023
*/
package online.vapcom.githubstars.ui.list
import android.content.res.Configuration
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.... |
app/src/main/java/com/kenkoro/taurus/client/feature/login/presentation/components/LoginContent.kt | unknown_repo | kotlin | package com.kenkoro.taurus.client.feature.login.presentation.components
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.fou... |
app/src/main/java/com/kenkeremath/mtgcounter/ui/MainActivity.kt | unknown_repo | kotlin | package com.kenkeremath.mtgcounter.ui
import android.os.Bundle
import com.kenkeremath.mtgcounter.R
import com.kenkeremath.mtgcounter.ui.setup.SetupFragment
import dagger.hilt.android.AndroidEntryPoint
@AndroidEntryPoint
class MainActivity : BaseActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
... |
app/src/main/java/com/flowfoundation/wallet/page/backup/BackupListAdapter.kt | unknown_repo | kotlin | package com.flowfoundation.wallet.page.backup
import android.annotation.SuppressLint
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView
import com.flowfoundation.wallet.R
import com.flowfoundation.wallet.base.recyclerview... |
catch-android-sdk/src/main/kotlin/com/getcatch/android/ui/activities/checkout/virtualcard/VirtualCardCheckoutResult.kt | unknown_repo | kotlin | package com.getcatch.android.ui.activities.checkout.virtualcard
import android.os.Parcelable
import com.getcatch.android.models.checkout.CardDetails
import kotlinx.parcelize.Parcelize
internal sealed class VirtualCardCheckoutResult : Parcelable {
@Parcelize
object Canceled : VirtualCardCheckoutResult()
@... |
zoomimage-core/src/main/java/com/github/panpf/zoomimage/subsampling/CoreSubsamplingUtils.kt | unknown_repo | kotlin | /*
* Copyright (C) 2023 panpf <panpfpanpf@outlook.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 applica... |
HTTPShortcuts/app/src/main/kotlin/ch/rmy/android/http_shortcuts/activities/main/usecases/GetContextMenuDialogUseCase.kt | unknown_repo | kotlin | package ch.rmy.android.http_shortcuts.activities.main.usecases
import androidx.annotation.CheckResult
import ch.rmy.android.framework.extensions.mapIf
import ch.rmy.android.framework.viewmodel.viewstate.DialogState
import ch.rmy.android.http_shortcuts.R
import ch.rmy.android.http_shortcuts.activities.main.ShortcutList... |
common/src/main/java/com/clsrfish/common/utils/FishLog.kt | unknown_repo | kotlin | package com.clsrfish.common.utils
import android.util.Log
import com.clsrfish.common.BuildConfig
/**
* @author clsrfish
* @since 6/25/20 16:12
* @email clsrfish@gmail.com
*/
fun logVerbose(tag: String?, msg: String?, tr: Throwable? = null) {
if (tr == null) {
Log.v(tag, formatMsg(msg))
} else {
... |
shortkuts/lib/src/test/kotlin/com/diegocarloslima/shortkuts/compat/ConfigurationTest.kt | unknown_repo | kotlin | /*
* Copyright 2023 <NAME> <https://diegocarloslima.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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... |
settings/app/src/main/java/com/example/settings/ui/MarketingSettingItem.kt | unknown_repo | kotlin | package com.example.settings.ui
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.foundation.layout.height
import androidx.compose.foundation.layo... |
code/app/src/main/java/coms/dypatil/noticeboard/viewmodel/CreateNoticeVM.kt | unknown_repo | kotlin | package coms.dypatil.noticeboard.viewmodel
import android.app.Application
import android.util.Log
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.MutableLiveData
import coms.dypatil.noticeboard.App
import coms.dypatil.noticeboard.data.datastore.firebase.model.FBNotice
import coms.dypatil.noticeboa... |
pluto-plugins/base/lib/src/main/java/com/pluto/utilities/AutoClearedValue.kt | unknown_repo | kotlin | /**
* Source: https://gist.github.com/Zhuinden/ea3189198938bd16c03db628e084a4fa#file-fragmentviewbindingdelegate-kt
*/
// https://github.com/Zhuinden/fragmentviewbindingdelegate-kt
package com.pluto.utilities
import android.view.View
import androidx.fragment.app.Fragment
import androidx.lifecycle.DefaultLifecycleOb... |
toolkit/src/main/java/com/william/toolkit/util/AppUtils.kt | unknown_repo | kotlin | /*
* Copyright WeiLianYang
*
* 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... |
apps/mobile_app/src/main/kotlin/dev/marlonlom/apps/glucoreo/ui/timber/CrashReportingTree.kt | unknown_repo | kotlin | /*
* Copyright 2023 Marlonlom
* SPDX-License-Identifier: Apache-2.0
*/
package dev.marlonlom.apps.glucoreo.ui.timber
import android.util.Log
import timber.log.Timber
class CrashReportingTree : Timber.Tree() {
override fun log(priority: Int, tag: String?, message: String, t: Throwable?) {
if (isPriorityVerb... |
app/src/main/java/com/jaylabs/ispacebootcampapp/profiles/ProfileActivity.kt | unknown_repo | kotlin | package com.jaylabs.ispacebootcampapp.profiles
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.jaylabs.ispacebootcampapp.R
class ProfileActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setCo... |
widgets/src/androidMain/kotlin/dev/icerock/moko/widgets/core/utils/BundleExt.kt | unknown_repo | kotlin | /*
* Copyright 2020 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/
package dev.icerock.moko.widgets.utils
import android.os.Bundle
fun Bundle.getIntNullable(key: String): Int? {
return if (containsKey(key)) getInt(key)
else null
}
|
jdroid-android-google-inappbilling/src/debug/java/com/jdroid/android/google/inappbilling/InAppBillingDebugPrefsAppender.kt | unknown_repo | kotlin | package com.jdroid.android.google.inappbilling
import android.preference.CheckBoxPreference
import android.preference.ListPreference
import android.preference.Preference
import android.preference.PreferenceGroup
import androidx.appcompat.app.AppCompatActivity
import com.jdroid.android.debug.PreferencesAppender
import ... |
jdroid-android-google-inappbilling/src/debug/java/com/jdroid/android/google/inappbilling/InAppBillingDebugPrefsAppender.kt | unknown_repo | kotlin | package com.jdroid.android.google.inappbilling
import android.preference.CheckBoxPreference
import android.preference.ListPreference
import android.preference.Preference
import android.preference.PreferenceGroup
import androidx.appcompat.app.AppCompatActivity
import com.jdroid.android.debug.PreferencesAppender
import ... |
app/src/main/java/com/antonio/samir/meteoritelandingsspots/features/detail/mapper/MeteoriteViewMapper.kt | unknown_repo | kotlin | package com.antonio.samir.meteoritelandingsspots.features.detail.mapper
import android.content.Context
import android.location.Location
import com.antonio.samir.meteoritelandingsspots.R
import com.antonio.samir.meteoritelandingsspots.common.mapper.MapperBase
import com.antonio.samir.meteoritelandingsspots.common.ui.ex... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.