file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/com/softartdev/poder/injection/module/AppModule.kt | unknown_repo | kotlin | package com.softartdev.poder.injection.module
import android.app.Application
import android.content.Context
import com.softartdev.poder.injection.ApplicationContext
import dagger.Module
import dagger.Provides
@Module(includes = [ApiModule::class, MediaModule::class])
class AppModule(private val application: Applicati... |
MeowFramework/src/main/kotlin/meow/widget/MeowCircleImageView.kt | unknown_repo | kotlin | /*
* Copyright (C) 2020 <NAME> & <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 ... |
app/src/main/java/cz/movapp/app/ui/children/ChildrenFairyTalePlayerAdapter.kt | unknown_repo | kotlin | package cz.movapp.app.ui.children
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.core.content.ContextCompat
import androidx.recyclerview.widget.RecyclerView
import cz.movapp.app.R
import cz.movapp.app.data.FairyTale
import cz.movapp.app.data.LanguagePair
import cz.movapp.app.databindi... |
app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/SourceItem.kt | unknown_repo | kotlin | package eu.kanade.tachiyomi.ui.browse.source
import android.view.View
import androidx.recyclerview.widget.RecyclerView
import eu.davidea.flexibleadapter.FlexibleAdapter
import eu.davidea.flexibleadapter.items.AbstractSectionableItem
import eu.davidea.flexibleadapter.items.IFlexible
import eu.kanade.tachiyomi.R
import ... |
app/src/main/java/eu/kanade/tachiyomi/ui/browse/source/SourceItem.kt | unknown_repo | kotlin | package eu.kanade.tachiyomi.ui.browse.source
import android.view.View
import androidx.recyclerview.widget.RecyclerView
import eu.davidea.flexibleadapter.FlexibleAdapter
import eu.davidea.flexibleadapter.items.AbstractSectionableItem
import eu.davidea.flexibleadapter.items.IFlexible
import eu.kanade.tachiyomi.R
import ... |
android/app/src/main/java/me/gentielezaj/wagwoord/managers/autofill/AppAutofillService.kt | unknown_repo | kotlin | package me.gentielezaj.wagwoord.managers.autofill
import android.app.assist.AssistStructure
import android.os.CancellationSignal
import android.service.autofill.*
import android.view.autofill.AutofillValue
import android.widget.RemoteViews
import com.google.common.net.InternetDomainName
import me.gentielezaj.wagwoord.... |
app/src/main/java/dzmitryk/app/template/ui/hello/Greetings.kt | unknown_repo | kotlin | package dzmitryk.app.template.ui.hello
import androidx.compose.foundation.layout.Row
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.c... |
sample/src/main/java/re/notifica/sample/ui/beacons/BeaconsListAdapter.kt | unknown_repo | kotlin | package re.notifica.sample.ui.beacons
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import re.notifica.geo.models.NotificareBeacon
import re.notifica.sample.R... |
presentation/src/main/java/com/anytypeio/anytype/presentation/main/MainViewModel.kt | unknown_repo | kotlin | package com.anytypeio.anytype.presentation.main
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.anytypeio.anytype.analytics.base.Analytics
import com.anytypeio.anytype.analytics.base.updateUserProperties
import com.anytypeio.anytype.analytics.props.UserProperty
import com.anytyp... |
app/src/main/java/com/iserbin/diykstra/utils/Extensions.kt | unknown_repo | kotlin | package com.iserbin.diykstra.utils
import androidx.fragment.app.Fragment
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
fun <T> MutableLiveData<T>.asLiveData() = this as LiveData<T>
fun <T, LD : LiveData<T>> Fragment.observe(liveData: LD, onChanged: (T) -> Unit) {
liveData.observe(
... |
app/src/main/java/ke/co/tulivuapps/hobbyhorsetours/features/screen/travelstyles/navigation/TravelStyleNavigation.kt | unknown_repo | kotlin | @file:OptIn(ExperimentalAnimationApi::class)
package ke.co.tulivuapps.hobbyhorsetours.features.screen.travelstyles.navigation
import androidx.compose.animation.ExperimentalAnimationApi
import androidx.hilt.navigation.compose.hiltViewModel
import androidx.navigation.NavController
import androidx.navigation.NavGraphBui... |
app/src/main/java/me/rosuh/easywatermark/ui/widget/DetectedPerformanceSeekBarListener.kt | unknown_repo | kotlin | package me.rosuh.easywatermark.utils
import android.widget.SeekBar
import me.rosuh.easywatermark.MyApp
import me.rosuh.easywatermark.model.WaterMarkConfig
import me.rosuh.easywatermark.utils.DetectedPerformanceSeekBarListener.Companion.HIGH_PERFORMANCE_MEMORY
/**
* An subClass of [SeekBar.OnSeekBarChangeListener] wh... |
app/src/main/java/com/arturlasok/composeArturApp/MainActivity.kt | unknown_repo | kotlin | package com.arturlasok.composeArturApp
import android.content.Context
import android.os.Bundle
import android.provider.AlarmClock
import android.util.Log
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compo... |
app/src/main/java/com/ghstudios/android/ClickListeners/ItemClickListener.kt | unknown_repo | kotlin | package com.ghstudios.android.ClickListeners
import android.content.Context
import android.view.View
import com.ghstudios.android.data.classes.Item
import com.ghstudios.android.data.classes.ItemType
/**
* A proxy listener that internally uses an actual listener for general item pages.
* Created by Carlos on 1/22/2... |
presentation/src/main/java/com/sms/presentation/main/ui/detail/project/ProjectRelatedLinksComponent.kt | unknown_repo | kotlin | package com.sms.presentation.main.ui.detail.project
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.heightIn
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.runtime.Composable
import androidx.compose.runtime.mutableStateOf
import androidx.compo... |
PennMobile/src/main/java/com/pennapps/labs/pennmobile/GsrFragment.kt | unknown_repo | kotlin | package com.pennapps.labs.pennmobile
import android.app.DatePickerDialog
import android.app.TimePickerDialog
import android.os.Bundle
import android.support.v4.app.Fragment
import android.support.v7.widget.LinearLayoutManager
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
imp... |
feature/mobile/provider/src/main/kotlin/com/flixclusive/feature/mobile/provider/ProvidersScreen.kt | unknown_repo | kotlin | package com.flixclusive.feature.mobile.provider
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.core.animateDpAsState
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.animation.slideInVertically
import androidx.compose.ani... |
app/src/main/kotlin/wskim/aos/appMonitoring/MonitoringForegroundService.kt | unknown_repo | kotlin | package wskim.aos.appMonitoring
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationChannelGroup
import android.app.NotificationManager
import android.app.PendingIntent
import android.app.Service
import android.content.Context
import android.content.Intent
import andro... |
app/src/main/java/br/com/francielilima/marvelcharacters/presentation/character_detail/CharacterDetailViewModel.kt | unknown_repo | kotlin | package br.com.francielilima.marvelcharacters.presentation.character_detail
import androidx.compose.runtime.State
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import br.com.francielilima.marvelcharacters.common.Resource
import br.com.franci... |
rxbilling/src/main/java/com/gen/rxbilling/flow/delegate/support/FragmentFlowDelegate.kt | unknown_repo | kotlin | package com.gen.rxbilling.flow.delegate.support
import android.app.PendingIntent
import android.content.Intent
import android.support.v4.app.Fragment
import com.gen.rxbilling.flow.delegate.FlowDelegate
class FragmentFlowDelegate(private val fragment: Fragment) : FlowDelegate {
override fun startFlow(pendingInten... |
app/src/main/java/traps/celestnaveasy/View.kt | unknown_repo | kotlin | package traps.celestnaveasy
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.horizontalScroll
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
imp... |
demo/src/main/java/br/com/suamusica/rxmediaplayer/QueueActivity.kt | unknown_repo | kotlin | package br.com.suamusica.rxmediaplayer
import android.os.Bundle
import br.com.suamusica.rxmediaplayer.android.RxMediaServiceActivity
class QueueActivity : RxMediaServiceActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_queu... |
app/src/main/java/com/example/androiddevchallenge/ui/theme/Color.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/geekymusketeers/uncrack/presentation/auth/AuthViewModel.kt | unknown_repo | kotlin | package com.aritradas.uncrack.presentation.auth
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.aritradas.uncrack.domain.model.User
import com.aritradas.uncrack.util.runIO
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.auth.FirebaseUser
import com.googl... |
app/src/main/java/com/jskako/githubrepobrowser/domain/splash/KeepSplashAlive.kt | unknown_repo | kotlin | package com.jskako.githubrepobrowser.domain.splash
import androidx.core.splashscreen.SplashScreen
import com.jskako.githubrepobrowser.domain.util.delay
class KeepSplashAlive(private val splashScreen: SplashScreen) {
private var splashScreenAlive = true
fun init(splashScreenDuration: Long = 2000L) {
... |
ui/src/main/java/com/pyamsoft/tetherfi/ui/LinkText.kt | unknown_repo | kotlin | /*
* Copyright 2023 pyamsoft
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
line-awesome/src/commonMain/kotlin/compose/icons/lineawesomeicons/MapMarkerSolid.kt | unknown_repo | kotlin | package compose.icons.lineawesomeicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
... |
app/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/NIP90ContentDiscoveryScreen.kt | unknown_repo | kotlin | /**
* Copyright (c) 2024 <NAME>
*
* 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, publish, di... |
reword/src/main/java/dev/b3nedikt/reword/transformer/ToolbarViewTransformer.kt | unknown_repo | kotlin | package dev.b3nedikt.reword.transformer
import android.os.Build
import android.widget.Toolbar
import androidx.annotation.RequiresApi
/**
* A transformer which transforms [Toolbar]: it transforms the text set as title.
*/
@RequiresApi(Build.VERSION_CODES.LOLLIPOP)
internal object ToolbarViewTransformer : AbstractVie... |
ui/src/main/java/com/mhacks/app/ui/qrscan/QRScanActivity.kt | unknown_repo | kotlin | @file:Suppress("DEPRECATION")
package com.mhacks.app.ui.qrscan
import android.Manifest
import android.annotation.SuppressLint
import android.content.DialogInterface
import android.content.Intent
import android.content.IntentFilter
import android.content.pm.PackageManager
import android.content.res.ColorStateList
impo... |
app/src/main/java/com/codelab/basiclayouts/clases/aligns/AlingYourBodyRow.kt | unknown_repo | kotlin | package com.codelab.basiclayouts.clases.aligns
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.lazy.LazyRow
import androidx.compose.foundation.lazy.items
import androidx.compose.runtime.Composable
import androidx.compose.u... |
app/src/main/java/co/devhack/reciperecommendergemini/ui/screens/MainActivity.kt | unknown_repo | kotlin | package co.devhack.reciperecommendergemini.ui.screens
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import a... |
data/src/main/kotlin/data/tinder/recommendation/RecommendationUserCommonConnectionEntity_PhotoEntity.kt | unknown_repo | kotlin | package data.tinder.recommendation
import android.arch.persistence.room.Entity
import android.arch.persistence.room.Index
@Entity(indices = arrayOf(Index("recommendationUserCommonConnectionEntityId")),
primaryKeys = arrayOf("recommendationUserCommonConnectionEntityId",
"recommendationUserCommo... |
app/src/main/java/com/hfut/schedule/logic/network/ServiceCreator.kt | unknown_repo | kotlin | package com.hfut.schedule.logic.network
import android.content.Context
import com.chiuxah.weather.MyApplication
import com.hfut.schedule.logic.network.OkHttp.AddCookiesInterceptor
import com.hfut.schedule.logic.network.OkHttp.SaveCookiesInterceptor
import okhttp3.OkHttpClient
import retrofit2.Retrofit
import retrofit2... |
app/src/main/java/jp/hazuki/yuzubrowser/utils/view/recycler/OutSideClickableRecyclerView.kt | unknown_repo | kotlin | /*
* Copyright (C) 2017 Hazuki
*
* 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 i... |
app/src/main/java/com/example/franchisemanagement/ui/LoginActivity.kt | unknown_repo | kotlin | package com.example.franchisemanagement.ui
import android.app.ProgressDialog
import android.content.Context
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.text.TextUtils
import android.util.Log
import android.view.View
import android.widget.Toast
i... |
features/publish/src/main/java/com/ujizin/leafy/publish/viewmodel/PublishViewModel.kt | unknown_repo | kotlin | package com.ujizin.leafy.publish.viewmodel
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.ujizin.leafy.domain.usecase.plant.AddDraftPlant
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.launchIn
import kotlinx.coroutines.flow.onCompletion
impor... |
_pending/android-super-hero-app/features/characters/characters-ui/src/main/java/com/carlosrd/superhero/ui/characters/feature/home/adapter/CharactersPagedListAdapter.kt | unknown_repo | kotlin | package com.carlosrd.superhero.ui.characters.feature.home.adapter
import android.util.Log
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.paging.PagingDataAdapter
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.Recycl... |
SensorMonitor/app/src/main/java/jp/nagano/northfield/sensormonitor/sensor/AppSensorEventListener.kt | unknown_repo | kotlin | package jp.nagano.northfield.sensormonitor.sensor
import android.hardware.Sensor
import android.hardware.SensorEvent
import android.hardware.SensorEventListener
import android.widget.TextView
class AppSensorEventListener(
private val status: TextView,
private val sensor: SensorInterface
) : SensorEventListene... |
app/src/main/java/com/naftarozklad/views/activities/GroupsActivity.kt | unknown_repo | kotlin | package com.naftarozklad.views.activities
import android.os.Bundle
import android.support.design.widget.Snackbar
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.DividerItemDecoration
import android.support.v7.widget.LinearLayoutManager
import android.view.Menu
import android.view.MenuI... |
app/src/main/java/com/rk/xededitor/MainActivity/treeview2/PrepareRecyclerView.kt | unknown_repo | kotlin | package com.rk.xededitor.MainActivity.treeview2
import android.view.View
import android.view.ViewGroup
import android.widget.HorizontalScrollView
import android.widget.LinearLayout
import androidx.recyclerview.widget.RecyclerView
import com.rk.xededitor.MainActivity.MainActivity
import com.rk.xededitor.Settings.Settin... |
app/src/main/java/com/steve_md/smartmkulima/ui/fragments/others/crop_cycle/CropCycleFinancialRecordsAnalyticsFragment.kt | unknown_repo | kotlin | package com.steve_md.smartmkulima.ui.fragments.others.crop_cycle
import android.content.Intent
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.AdapterView
import android.widget.ArrayAdapter
im... |
app/src/main/java/com/whatshelp/ui/chat/ChatFragment.kt | unknown_repo | kotlin | package com.whatshelp.ui.chat
import android.app.AlertDialog
import android.graphics.Color
import android.os.Bundle
import android.view.Menu
import android.view.MenuInflater
import android.view.MenuItem
import android.view.View
import androidx.fragment.app.activityViewModels
import androidx.fragment.app.viewModels
imp... |
app/src/main/java/com/example/androiddevchallenge/ui/detail/DetailScreen.kt | unknown_repo | kotlin | package com.example.androiddevchallenge.ui.detail
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyRow
import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.ma... |
main/src/main/kotlin/io/androidalatan/lifecycle/template/main/MainActivity.kt | unknown_repo | kotlin | package io.androidalatan.lifecycle.template.main
import androidx.compose.runtime.Composable
import io.androidalatan.lifecycle.handler.compose.activity.ComposeLifecycleDaggerActivity
import io.androidalatan.lifecycle.handler.compose.cache.composeCached
import javax.inject.Inject
class MainActivity : ComposeLifecycleDa... |
screenshots/src/main/java/me/vavra/screenshots/ShowkaseNavigation.kt | unknown_repo | kotlin | package me.vavra.screenshots
import android.app.Activity
import com.airbnb.android.showkase.models.Showkase
object ShowkaseNavigation {
fun goToShowkase(activity: Activity) {
activity.startActivity(Showkase.getBrowserIntent(activity))
}
} |
app/src/main/java/io/github/takusan23/photransfer/ui/screen/HomeScreen.kt | unknown_repo | kotlin | package io.github.takusan23.photransfer.ui.screen
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.ui.platform.LocalContext
import io.github.takusan23.photransfer.set... |
app/src/main/java/com/steleot/jetpackcompose/playground/compose/materialicons/TwoToneScreen.kt | unknown_repo | kotlin | package com.steleot.jetpackcompose.playground.compose.materialicons
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.grid.GridCells
import androidx.compose.foundation.lazy.grid.LazyVerticalGrid
import androidx.compose.foun... |
src/androidMain/kotlin/com/dxc/utils/System.kt | unknown_repo | kotlin | package com.dxc.utils
import android.system.Os
import java.lang.System
actual class System {
actual companion object {
actual fun currentTimeMillis(): Long {
return java.lang.System.currentTimeMillis()
}
actual fun getEnv(key: String): String? {
return System.gete... |
library/src/main/java/com/schibsted/spain/barista/internal/failurehandler/SpyFailureHandler.kt | unknown_repo | kotlin | package com.adevinta.android.barista.internal.failurehandler
import android.view.View
import androidx.test.espresso.FailureHandler
import androidx.test.espresso.getFailureHandler
import org.hamcrest.Matcher
open class SpyFailureHandler : FailureHandler {
val capturedFailures = mutableListOf<EspressoFailure>()
o... |
app/src/main/java/com/schedule/ui/presentation/MainScaffold.kt | unknown_repo | kotlin | package com.schedule.ui.presentation
import androidx.compose.foundation.layout.*
import androidx.compose.material3.*
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.navigation.NavHostController
import androidx.navigation.compose.curren... |
app/src/main/java/com/schedule/ui/presentation/MainScaffold.kt | unknown_repo | kotlin | package com.schedule.ui.presentation
import androidx.compose.foundation.layout.*
import androidx.compose.material3.*
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.navigation.NavHostController
import androidx.navigation.compose.curren... |
guardian/src/main/java/com/guardianconnect/GRDConnectSubscriber.kt | unknown_repo | kotlin | package com.guardianconnect
import android.util.Log
import com.google.gson.Gson
import com.guardianconnect.api.IOnApiResponse
import com.guardianconnect.api.Repository
import com.guardianconnect.model.api.*
import com.guardianconnect.util.Constants.Companion.GRD_CONNECT_SUBSCRIBER
import com.guardianconnect.util.Const... |
app/src/main/java/io/gebes/composer/views/showcases/InfiniteList.kt | unknown_repo | kotlin | package io.gebes.composer.views.showcases
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.LazyListState
import androidx.com... |
app/src/main/java/com/hadilq/mastan/di/RealRootDependencies.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 writi... |
SentinelArmor/src/main/java/com/androidacestudio/sentinelarmor/AndroidSentinelImpl.kt | unknown_repo | kotlin | package com.androidacestudio.sentinelarmor
import android.content.Context
/**
* AndroidSentinelImpl
*
* This class is the concrete implementation of the [AndroidSentinel] interface.
* It orchestrates a comprehensive security analysis of an Android application by
* executing a series of specific security checks.
... |
app/src/main/java/io/github/drumber/kitsune/ui/settings/SettingsFragment.kt | unknown_repo | kotlin | package io.github.drumber.kitsune.ui.settings
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.activity.result.ActivityResultLauncher
import androidx.activity.result.contract.ActivityResultContracts
import and... |
app/src/main/java/com/jichinx/open/demo/abadge/MainActivity.kt | unknown_repo | kotlin | package com.jichinx.open.demo.abadge
import android.os.Bundle
import android.widget.Toast
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import com.jichinx.open.abadge.BadgeManager
import com.ji... |
core/compose-ui/src/main/kotlin/xyz/qwexter/compose_ui/Theme.kt | unknown_repo | kotlin | package xyz.qwexter.compose_ui
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.Composable
import xyz.qwexter.compose_ui.PlantsColors
import xyz.qwexter.compose_ui.PlantsShapes
import xyz.qwexter.compose_ui.PlantsTypography
@Composable
fun PlantsTheme(
content: @Composable () -> Unit... |
demo/composeApp/src/commonMain/kotlin/com/kmpalette/demo/dominant/DominantPhotoColorScreen.kt | unknown_repo | kotlin | package com.kmpalette.demo.dominant
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.FlowR... |
components/archive/category/src/main/java/com/flipperdevices/archive/category/composable/ComposableDeleted.kt | unknown_repo | kotlin | package com.flipperdevices.archive.category.composable
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.foundation.layout.Ro... |
_router/router-api/src/main/java/io/androidalatan/router/api/journey/builder/JourneyBuilder.kt | unknown_repo | kotlin | package io.androidalatan.router.api.journey.builder
import android.app.Activity
import android.app.Service
import android.content.Intent
import androidx.fragment.app.Fragment
interface JourneyBuilder {
fun activity(destination: Class<out Activity>): ActivityJourneyBuilder
fun activityIntent(intent: Intent? = ... |
core-android/src/main/java/ru/mail/march/interactor/InteractorViewModel.kt | unknown_repo | kotlin | package ru.mail.march.interactor
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import ru.mail.march.channel.LiveDataChannelFactory
class InteractorViewModel<I : Interactor>(
val interactor: I,
val channelFactory: LiveDataChannelFactory
) : ViewModel() {
init {
inter... |
libs/ui/src/main/kotlin/com/illiarb/tmdbclient/libs/ui/v2/theme/Font.kt | unknown_repo | kotlin | package com.illiarb.tmdbclient.libs.ui.v2.theme
import androidx.compose.material.Typography
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.font.font
import androidx.compose.ui.text.font.fontFamily
import androidx.compose.ui.unit.sp
import com.i... |
components/keyscreen/impl/src/main/java/com/flipperdevices/keyscreen/impl/composable/actions/ComposableDelete.kt | unknown_repo | kotlin | package com.flipperdevices.keyscreen.impl.composable.actions
import androidx.compose.runtime.Composable
import com.flipperdevices.core.ui.R as DesignSystem
import com.flipperdevices.keyscreen.impl.R
import com.flipperdevices.keyscreen.impl.model.DeleteState
@Composable
fun ComposableDelete(deleteState: DeleteState, o... |
app/src/main/java/com/forcetower/uefs/feature/shared/ViewPagerPager.kt | unknown_repo | kotlin | /*
* Copyright (c) 2019.
* João Paulo Sena <joaopaulo761@gmail.com>
*
* This file is part of the UNES Open Source Project.
*
* UNES is licensed under the MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Soft... |
android/app/src/main/kotlin/com/example/remote/MainActivity.kt | unknown_repo | kotlin | package com.example.remote
import android.os.Bundle
import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.engine.FlutterEngine
import io.flutter.plugin.common.MethodChannel
import dev.darttools.flutter_android_volume_keydown.FlutterAndroidVolumeKeydownActivity
class MainActivity : FlutterAnd... |
PurposefulCommunity/app/src/main/java/com/bounswe/purposefulcommunity/Fragments/Instances/ShowTemplatesActivity.kt | unknown_repo | kotlin | package com.bounswe.purposefulcommunity.Fragments.Instances
import android.content.Context
import android.os.Bundle
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.bounswe.mer... |
app/src/debug/java/hu/mrolcsi/muzik/theme/ThemeTestViewModel.kt | unknown_repo | kotlin | package hu.mrolcsi.muzik.theme
import androidx.databinding.Observable
import androidx.lifecycle.LiveData
import hu.mrolcsi.muzik.data.model.theme.Theme
interface ThemeTestViewModel : Observable {
val theme: LiveData<Theme>
} |
platform/lang-impl/src/com/intellij/ide/navbar/ui/StaticNavBarPanel.kt | unknown_repo | kotlin | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.ide.navbar.ui
import com.intellij.ide.navbar.vm.StaticNavBarVm
import com.intellij.openapi.application.EDT
import com.intellij.openapi.project.Project
import com.intellij.util.u... |
all-alarms/src/main/java/com/eventful/all/alarms/AllAlarmsViewModel.kt | unknown_repo | kotlin | package com.eventful.all.alarms
import androidx.lifecycle.SavedStateHandle
import com.eventful.alarms.AlarmsFlowProcessor
import com.eventful.alarms.AlarmsViewModel
import com.eventful.core.android.di.viewmodel.AssistedSavedStateViewModelFactory
import com.squareup.inject.assisted.Assisted
import com.squareup.inject.a... |
ui/src/main/java/com/wb/ui/screens/contacts/list/ContactListLoadingScreen.kt | unknown_repo | kotlin | package com.wb.ui.screens.contacts.detail
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material.CircularProgressIndicator
import androidx.compose.material.Surface
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignme... |
app/src/main/java/com/example/todo/adapters/TodoAdapter.kt | unknown_repo | kotlin | package com.example.todo.adapters
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.CheckBox
import android.widget.ImageView
import android.widget.Toast
import androidx.recyclerview.widget.RecyclerView
import com.example.todo... |
library/src/main/java/io/github/boguszpawlowski/composecalendar/header/WeekState.kt | unknown_repo | kotlin | package io.github.boguszpawlowski.composecalendar.header
import androidx.compose.runtime.Stable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.saveable.Saver
import androidx.compose.runtime.setValue
import io.github.boguszpawlowski.composecalenda... |
comsumerapp/src/main/java/com/noranekoit/comsumerapp/MappingHelper.kt | unknown_repo | kotlin | package com.noranekoit.comsumerapp
import android.database.Cursor
import com.noranekoit.comsumerapp.model.UserGithub
object MappingHelper {
fun mapCursorToArrayList(cursor: Cursor?): ArrayList<UserGithub>{
val list = ArrayList<UserGithub>()
if (cursor != null){
while (cursor.moveToNext... |
core/designsystem/src/main/java/com/melih/android/pokeapp/core/designsystem/compose/DevicePreviews.kt | unknown_repo | kotlin | package com.melih.android.pokeapp.core.designsystem.compose
import android.content.res.Configuration
import androidx.compose.ui.tooling.preview.Preview
@Preview(
showBackground = true,
name = "phone",
device = "spec:shape=Normal,width=360,height=640,unit=dp,dpi=480",
uiMode = Configuration.UI_MODE_NIG... |
HingeAngle/src/main/java/com/microsoft/device/display/samples/hingeangle/fragments/SingleScreenFragment.kt | unknown_repo | kotlin | /*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*
*/
package com.microsoft.device.display.samples.hingeangle.fragments
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
im... |
core/database/src/main/java/com/merxury/blocker/core/database/cmpdetail/ComponentDetailDao.kt | unknown_repo | kotlin | /*
* Copyright 2023 Blocker
*
* 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 in ... |
app/src/main/java/com/example/kavach/Onboarding/Splash_Screen.kt | unknown_repo | kotlin | package com.Onboarding
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Handler
import com.example.kavach.R
class Splash_Screen : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceS... |
app/src/main/java/com/vr/app/sh/ui/books/viewmodel/AddBookViewModel.kt | unknown_repo | kotlin | package com.vr.app.sh.ui.books.viewmodel
import android.content.res.Resources
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.vr.app.sh.R
import com.vr.app.sh.domain.UseCase.GetAllBookListInternet
import com.vr.app.sh.domain.UseCase.SaveBookListInBD
import com.vr.app.sh.domain.... |
app-desktop/src/jvmMain/kotlin/io/stardewvalleydesigner/screens/mainmenu/rightside/topmenu/LayoutsGrid.kt | unknown_repo | kotlin | /*
* Copyright 2021-2024 <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 ... |
app/src/main/java/com/hoc/comicapp/ui/downloaded_comics/DownloadedComicsFragment.kt | unknown_repo | kotlin | package com.hoc.comicapp.ui.downloaded_comics
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavController
import androidx.recyclerview.w... |
app/src/main/java/com/aqib/chatty/ui/ChattyApp.kt | unknown_repo | kotlin | package com.aqib.chatty.ui
import android.content.Context
import android.content.Intent
import androidx.activity.compose.BackHandler
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spa... |
app/src/main/java/com/example/androiddevchallenge/models/Pet.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/org/tuerantuer/launcher/ui/components/SettingsSwitch.kt | unknown_repo | kotlin | package org.tuerantuer.launcher.ui.components
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.com... |
identity-sample/src/main/java/io/falu/identity/VerificationViewModel.kt | unknown_repo | kotlin | package io.falu.identity
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.liveData
import io.falu.identity.models.IdentityVerification
import io.falu.identity.models.IdentityVerificationCreationRequest
import io.falu.identity.models.IdentityVerificationOptions
import ... |
Library/base/src/main/kotlin/com/existing/boilerx/core/base/view/SystemUISpaceView.kt | unknown_repo | kotlin | package com.existing.boilerx.core.base.view
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.Rect
import android.os.Build
import android.util.AttributeSet
import android.view.View
import android.view.WindowInsets
import androidx.annotation.RequiresApi
import com.existing.bo... |
app/src/main/java/volovyk/thenullpointer/ui/MainScreen.kt | unknown_repo | kotlin | package volovyk.thenullpointer.ui
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
i... |
app/src/main/java/com/skydoves/pokedexar/ui/login/LoginActivity.kt | unknown_repo | kotlin | package com.skydoves.pokedexar.ui.login
import android.app.Dialog
import android.content.Context
import android.content.Intent
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.Window
import android.... |
owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/shares/GetRemoteShareOperation.kt | unknown_repo | kotlin | /* ownCloud Android Library is available under MIT license
* @author <NAME>
* Copyright (C) 2021 ownCloud 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 restri... |
laser-native-editor/src/main/java/com/github/irshulx/components/input/spans/custom/SpecialSpansBase.kt | unknown_repo | kotlin | package com.github.irshulx.components.input.spans.custom
import android.text.TextPaint
import android.text.style.UnderlineSpan
import androidx.annotation.ColorInt
abstract class SpecialSpansBase<T>(
val value: T,
@ColorInt private val textColor: Int
) : UnderlineSpan() {
abstract override fun getSpanType... |
app/src/main/java/com/example/cookrecipe/view_model/LoginViewModel.kt | unknown_repo | kotlin | package com.example.cookrecipe.view_model
import android.app.Application
import android.util.Log
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.example.cookrecipe.R
import com.example.cookrecipe.model.repo.FirebaseAuth
class LoginView... |
design-catalog/src/main/java/little/goose/design/catalog/ui/ChartCatalogScreen.kt | unknown_repo | kotlin | package little.goose.design.catalog.ui
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.ExperimentalLayoutApi
import androidx.compose.foundation.layout.FlowRow
import androidx.c... |
app/src/main/java/com/coolweather/coolweatherjetpack/ui/area/ChooseAreaViewModel.kt | unknown_repo | kotlin | package com.coolweather.coolweatherjetpack.ui.area
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.coolweather.coolweatherjetpack.data.PlaceRepository
import com.coolweather.coolweatherjetpack.data.model.place.City
import com.coolweather... |
android/app/src/main/java/com/algorand/android/modules/perawebview/ui/BasePeraWebViewViewModel.kt | unknown_repo | kotlin | /*
* Copyright 2022 Pera Wallet, LDA
* 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,... |
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/HandFist.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... |
lib-kotlinmvvm/src/main/java/com/mtjsoft/www/kotlinmvputils/utils/AndDialogUtils.kt | unknown_repo | kotlin | package com.mtjsoft.www.kotlinmvputils.utils
import android.app.Dialog
import android.content.Context
import android.text.Html
import android.view.View
import android.widget.TextView
import com.mtjsoft.www.kotlinmvputils.R
import com.mtjsoft.www.kotlinmvputils.imp.AndDialogClickListener
/**
* 对话框操作的工具类
*
* @author... |
navigationlistview/src/main/java/com/dvinfosys/adapter/NavigationListAdapter.kt | unknown_repo | kotlin | package com.dvinfosys.adapter
import android.content.Context
import android.graphics.Typeface
import android.os.Build
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.BaseExpandableListAdapter
import android.widget.ImageView
import android.widget.TextView
... |
extensions-compose-jetpack/src/main/java/com/arkivanov/decompose/extensions/compose/jetpack/animation/child/Typealias.kt | unknown_repo | kotlin | @file:OptIn(ExperimentalDecomposeApi::class)
package com.arkivanov.decompose.extensions.compose.jetbrains.animation.child
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import com.arkivanov.decompose.Child
import com.arkivanov.decompose.ExperimentalDecomposeApi
import com.arkivanov.dec... |
feature/login/src/main/java/dev/enesky/feature/login/navigation/LoginDestination.kt | unknown_repo | kotlin | package dev.enesky.feature.login.navigation
import androidx.navigation.NavGraphBuilder
import androidx.navigation.NavHostController
import androidx.navigation.compose.composable
import androidx.navigation.navigation
import dev.enesky.core.navigation.DoodleNavigationDestination
import dev.enesky.core.navigation.composa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.