file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/com/thedearbear/nnov/activities/AccountEditActivity.kt | unknown_repo | kotlin | package com.thedearbear.nnov.activities
import android.annotation.SuppressLint
import android.content.Intent
import android.content.pm.ActivityInfo
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.viewModels
import androidx.compose... |
android/WhatsAppCompose/app/src/main/java/com/project/pradyotprakash/whatsappcompose/ui/theme/Type.kt | unknown_repo | kotlin | /*
* MIT License
*
* Copyright (c) 2021 Pradyot Prakash
*
* 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, ... |
app/src/main/java/com/nomtek/avonil/smartmirror/utils/ImageUtils.kt | unknown_repo | kotlin | package com.nomtek.avonil.smartmirror.utils
import android.content.Context
import android.graphics.drawable.Drawable
import java.io.IOException
/**
* Created by <NAME> on 9/20/17.
*/
class ImageUtils {
companion object {
fun getDrawableWithCode(context: Context, code: String?): Drawable? {
... |
src/jvmMain/kotlin/ui/views/main/MainViewModel.kt | unknown_repo | kotlin | package ui.views.main
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.SharingStarted
import kotlinx.coroutines.flow.stateIn
import kotlinx.coroutines.flow.update
import model.Group
import ui.views.main.firstCo... |
simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Bmcsoftware.kt | unknown_repo | kotlin | package compose.icons.simpleicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Butt
import androidx.compose.ui.graphics.StrokeJoin.Miter
import androidx.compose.ui.graphics... |
app/src/main/java/com/redhoodhan/drawing/util/DisplayUtil.kt | unknown_repo | kotlin | package com.redhoodhan.drawing.util
import android.content.res.Resources
fun Float.dp2px(): Float = this * Resources.getSystem().displayMetrics.density
fun Float.px2dp(): Float = this / Resources.getSystem().displayMetrics.density
|
novelworld/src/main/java/com/programmersbox/novelworld/MainActivity.kt | unknown_repo | kotlin | package com.programmersbox.novelworld
import androidx.lifecycle.lifecycleScope
import com.programmersbox.models.sourceFlow
import com.programmersbox.novel_sources.Sources
import com.programmersbox.uiviews.BaseMainActivity
import com.programmersbox.uiviews.utils.currentService
import kotlinx.coroutines.launch
class Ma... |
core/filters/src/main/java/ru/tech/imageresizershrinker/core/filters/presentation/model/UiSphereRefractionFilter.kt | unknown_repo | kotlin | package ru.tech.imageresizershrinker.core.filters.presentation.model
import android.graphics.Bitmap
import ru.tech.imageresizershrinker.core.domain.image.filters.Filter
import ru.tech.imageresizershrinker.core.resources.R
class UiSphereRefractionFilter(
override val value: Pair<Float, Float> = 0.25f to 0.71f,
) ... |
app/src/main/java/com/sky/xposed/weishi/ui/base/BaseDialog.kt | unknown_repo | kotlin | /*
* Copyright (c) 2018 The sky Authors.
*
* 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 a... |
app/src/main/java/cn/tinyhai/ban_uninstall/MainActivity.kt | unknown_repo | kotlin | package cn.tinyhai.ban_uninstall
import android.content.Intent
import android.os.Bundle
import android.util.Log
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import cn.tinyhai.ban_uninstall.transact.client.TransactClient
import cn.tinyh... |
composable-graphs/src/main/java/com/jaikeerthick/composable_graphs/composables/pie/model/PieSlice.kt | unknown_repo | kotlin | package com.jaikeerthick.composable_graphs.composables.pie.model
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.Stable
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.graphics.Color
import com.jaikeerthick.composable_graphs.util.getRandomColor
import java.util.UUID
... |
feature-search/src/test/java/com/paulrybitskyi/gamedge/feature/search/presentation/GamesSearchViewModelTest.kt | unknown_repo | kotlin | /*
* Copyright 2022 <NAME>, <EMAIL>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
app/src/main/java/com/tariod/uphub/domain/usecase/repos/GetUserReposUseCaseImpl.kt | unknown_repo | kotlin | package com.tariod.uphub.domain.usecase.repos
import androidx.lifecycle.LiveData
import androidx.paging.PagedList
import com.tariod.uphub.data.contract.ReposRepository
import com.tariod.uphub.data.database.model.Repository
import com.tariod.uphub.data.preferences.UserPreferences
import com.tariod.uphub.domain.base.Imm... |
app/src/main/java/com/vshyrochuk/topcharts/screens/chartslist/ChartsListScreen.kt | unknown_repo | kotlin | package com.vshyrochuk.topcharts.screens.chartslist
import androidx.compose.material.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.ui.graphics.Color
... |
app/src/main/java/tech/muso/demo/architecture/viewmodels/stocks/StocksTradePairsViewModel.kt | unknown_repo | kotlin | package tech.muso.demo.architecture.viewmodels.stocks
import android.annotation.SuppressLint
import android.util.Log
import android.view.MotionEvent
import android.view.View
import android.view.accessibility.AccessibilityEvent
import android.widget.EditText
import android.widget.Toast
import androidx.core.content.Cont... |
app/src/main/java/viacheslav/chugunov/appalet/ui/view/TopAppBarView.kt | unknown_repo | kotlin | package viacheslav.chugunov.appalet.ui.view
import androidx.compose.animation.*
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.width
import androidx.compose.material.TopAppBar
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.comp... |
app/src/androidTest/java/com/jordantymburski/driftoff/service/AlarmReceiverTest.kt | unknown_repo | kotlin | package com.jordantymburski.driftoff.service
import android.content.Intent
import android.content.IntentFilter
import androidx.localbroadcastmanager.content.LocalBroadcastManager
import com.jordantymburski.driftoff.common.ContextProvider
import com.jordantymburski.driftoff.domain.MockDomain
import org.junit.Before
imp... |
app/src/main/java/id/co/minumin/presentation/splashscreen/SplashScreenViewModel.kt | unknown_repo | kotlin | package id.co.minumin.presentation.splashscreen
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import id.co.minumin.data.dto.LanguageDto
import id.co.minumin.dat... |
app/src/main/java/com/demo/sunray/MainActivity.kt | unknown_repo | kotlin | package com.demo.sunray
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.support.v4.content.ContextCompat
import com.sunray.SunRayChart
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState:... |
app/src/main/java/sa/com/morse/teacomputertask/utils/Constants.kt | unknown_repo | kotlin | package sa.com.morse.teacomputertask.utils
import androidx.compose.ui.unit.dp
object Constants {
const val imageApiPoster = "https://image.tmdb.org/t/p/w300"
const val imageApiBackground = "https://image.tmdb.org/t/p/w500"
const val databaseName ="TEAComputer"
const val moviesOrSeriesTable = "WatchedT... |
app/src/main/java/com/android/itunesservice/data/repository/ProductRepository.kt | unknown_repo | kotlin | package com.android.itunesservice.data.repository
import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.PagingData
import com.android.itunesservice.api.ISearchService
import com.android.itunesservice.data.model.ProductResultModel
import com.android.itunesservice.data.paging.ProductPag... |
reveal-common/src/commonMain/kotlin/com/svenjacobs/reveal/common/inserter/RevealOverlayInserter.kt | unknown_repo | kotlin | package com.svenjacobs.reveal.common.inserter
import androidx.compose.runtime.Composable
import androidx.compose.ui.unit.DpOffset
/**
* Defines a strategy of how to insert the overlay into the composition.
*/
public interface RevealOverlayInserter {
/**
* Container which is used to insert the overlay.
*
* @... |
app/src/androidTest/java/com/example/weatherapp/di/component/TestAppComponent.kt | unknown_repo | kotlin | package com.example.weatherapp.di.component
import android.app.Application
import com.example.weatherapp.di.WeatherTestApp
import com.example.weatherapp.di.module.*
import dagger.BindsInstance
import dagger.Component
import javax.inject.Singleton
@Singleton
@Component(
modules = [DataBaseModuleTest::class, Networ... |
app/src/test/java/ca/uwaterloo/cs346project/UndoRedoTest.kt | unknown_repo | kotlin | package ca.uwaterloo.cs346project
import androidx.compose.runtime.mutableStateListOf
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.graphics.Color
import ca.uwaterloo.cs346project.model.Action
import ca.uwaterloo.cs346project.model.ActionType
import ca.uwaterloo.cs346project.model.Shape
import c... |
app/src/main/java/com/blocksdecoded/dex/core/ui/CoreViewModel.kt | unknown_repo | kotlin | package com.blocksdecoded.dex.core.ui
import androidx.lifecycle.ViewModel
import io.reactivex.disposables.CompositeDisposable
abstract class CoreViewModel: ViewModel() {
protected val disposables = CompositeDisposable()
val errorEvent = SingleLiveEvent<Int>()
val messageEvent = SingleLiveEvent<Int>()
... |
hub/src/main/java/co/sentinel/dvpn/hub/tasks/FetchVpnProfile.kt | unknown_repo | kotlin | package co.sentinel.dvpn.hub.tasks
import android.util.Base64
import co.sentinel.cosmos.dao.Account
import co.sentinel.dvpn.domain.core.exception.Failure
import co.sentinel.dvpn.domain.core.extension.bytesToUnsignedShort
import co.sentinel.dvpn.domain.core.functional.Either
import co.sentinel.dvpn.domain.features.hub.... |
PR2 - FormRegistro/app/src/main/java/es/javiercarrasco/formregistro/utils/Utils.kt | unknown_repo | kotlin | package es.javiercarrasco.formregistro.utils
import android.content.Context
import es.javiercarrasco.formregistro.FormRegistro
fun writeFile(context: Context, content: FormRegistro): Boolean {
var result = false
try {
// data/data/es.javiercarrasco.formregistro/files/formRegistro.csv
val file ... |
app/src/main/java/com/ando/file/sample/ui/upload/FileUploader.kt | unknown_repo | kotlin | package com.ando.file.sample.ui.upload
import android.content.Context
import android.net.Uri
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.suspendCancellableCoroutine
import kotlinx.coroutines.withContext
import okhttp3.*
import okhttp3.HttpUrl.Companion.toHttpUrlOrNull
import okhttp3.MediaType.Compa... |
lib/common/src/main/java/com/tongsr/common/coil/CoilUtils.kt | unknown_repo | kotlin | package com.tongsr.common.coil
import android.content.Context
import android.graphics.Bitmap
import android.graphics.drawable.Drawable
import android.os.Build
import android.widget.ImageView
import androidx.annotation.DrawableRes
import androidx.lifecycle.LifecycleOwner
import coil.Coil
import coil.ImageLoader
import ... |
app/src/main/java/com/longluo/ebookreader/ui/adapter/BookshelfAdapter.kt | unknown_repo | kotlin | package com.longluo.ebookreader.ui.adapter
import android.annotation.SuppressLint
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.longluo.ebookreader.R
import com.longluo.ebookreader.db.... |
app/src/main/java/com/yoma/yomahackathon/activity/MainActivity.kt | unknown_repo | kotlin | package com.example.myapplication
import android.app.AlertDialog
import android.app.ProgressDialog
import android.content.Intent
import android.content.SharedPreferences
import android.os.Build
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.Butto... |
samples/android/src/main/java/space/traversal/kapsule/demo/App.kt | unknown_repo | kotlin | /*
* Copyright 2017 Traversal Space
*
* 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, distrib... |
ui/ui-foundation/src/androidAndroidTest/kotlin/androidx/compose/foundation/BackgroundTest.kt | unknown_repo | kotlin | /*
* Copyright 2019 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... |
sandbox/src/main/java/com/badoo/ribs/sandbox/rib/menu/MenuView.kt | unknown_repo | kotlin | package com.badoo.ribs.sandbox.rib.menu
import androidx.annotation.LayoutRes
import androidx.core.content.ContextCompat
import android.view.ViewGroup
import android.widget.TextView
import com.badoo.ribs.core.view.RibView
import com.badoo.ribs.core.view.ViewFactoryBuilder
import com.badoo.ribs.core.customisation.inflat... |
app/src/main/java/dev/iclab/tracker/MainApplication.kt | unknown_repo | kotlin | package dev.iclab.tracker
import android.app.Application
import dev.iclab.tracker.collectors.BatteryCollector
import dev.iclab.tracker.collectors.LocationCollector
import dev.iclab.tracker.collectors.TestCollector
import dev.iclab.tracker.collectors.controller.CollectorControllerInterface
import org.koin.android.ext.a... |
app/src/main/java/com/jaimegc/covid19tracker/ui/adapter/PlaceTotalPieChartAdapter.kt | unknown_repo | kotlin | package com.jaimegc.covid19tracker.ui.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.jaimegc.covid19tracker.R
import com.jaimegc.covid19trac... |
app/src/main/java/com/snorlax/snorlax/viewmodel/DashboardViewModel.kt | unknown_repo | kotlin | package com.snorlax.snorlax.viewmodel
import android.app.Application
class DashboardViewModel(application: Application) : BaseStudentViewModel(application) {
}
|
app/src/main/java/org/metabrainz/android/presentation/features/links/LinksViewModel.kt | unknown_repo | kotlin | package org.metabrainz.android.ui.screens.links
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import org.metabrainz.android.model.entities.Link
class LinksViewModel : ViewModel() {
private val linksLiveData = MutableLiveData<List<Link>>()
val ... |
app/src/main/java/com/sdody/postsapp/list/model/ListLocalData.kt | unknown_repo | kotlin | package com.sdody.postsapp.list.model
import androidx.paging.DataSource
import com.sdody.postsapp.commons.data.local.Post
import com.sdody.postsapp.commons.data.local.PostDb
import com.sdody.postsapp.commons.extensions.performOnBack
import com.sdody.postsapp.commons.networking.Scheduler
import io.reactivex.Completable... |
bwell-kotlin-android/app/src/main/java/com/bwell/sampleapp/activities/ui/home/HomeFragment.kt | unknown_repo | kotlin | package com.bwell.sampleapp.activities.ui.home
import android.annotation.SuppressLint
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.lifecycle.ViewModelProvider
import andro... |
library/src/main/java/com/jaredrummler/cyanea/delegate/CyaneaDelegateImplV26.kt | unknown_repo | kotlin | /*
* Copyright (C) 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 ... |
app/src/main/java/com/teamsixers/vmail/ui/compose/addreceiverstate/AddReceiverState.kt | unknown_repo | kotlin | package com.teamsixers.vmail.ui.compose.addreceiverstate
import android.util.Log
import com.blankj.utilcode.util.RegexUtils
import com.teamsixers.vmail.ui.compose.ComposeActivity
import com.teamsixers.vmail.ui.compose.ComposeState
import com.teamsixers.vmail.ui.compose.IdleState.IdleState
import com.teamsixers.vmail.u... |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/FolderXmark.kt | unknown_repo | kotlin | package me.localx.icons.rounded.filled
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
... |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/FolderXmark.kt | unknown_repo | kotlin | package me.localx.icons.rounded.filled
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
... |
sketch/src/androidTest/java/com/github/panpf/sketch/test/http/HttpHeadersTest.kt | unknown_repo | kotlin | package com.github.panpf.sketch.test.http
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.github.panpf.sketch.http.HttpHeaders
import com.github.panpf.sketch.http.isNotEmpty
import com.github.panpf.sketch.http.merged
import org.junit.Assert
import org.junit.Test
import org.junit.runner.RunWith
@RunWit... |
app/src/main/kotlin/io/github/wykopmobilny/ui/suggestions/HashTagsSuggestionsAdapter.kt | unknown_repo | kotlin | package io.github.wykopmobilny.ui.suggestions
import android.content.Context
import android.view.View
import android.view.ViewGroup
import android.widget.ArrayAdapter
import android.widget.Filter
import android.widget.Filterable
import androidx.core.view.isVisible
import io.github.wykopmobilny.R
import io.github.wykop... |
AndroidDemo/app/src/main/java/com/yeyupiaoling/whisper/LibWhisper.kt | unknown_repo | kotlin | package com.whispercpp.whisper
import android.content.res.AssetManager
import android.os.Build
import android.util.Log
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.asCoroutineDispatcher
import kotlinx.coroutines.withContext
import java.io.File
import java.io.InputStream
import java.util.concurren... |
app/src/main/java/app/xlei/vipexam/ui/question/cloze/cloze.kt | unknown_repo | kotlin | package app.xlei.vipexam.ui.question.cloze
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.ExperimentalLayoutApi
import androidx.compose.foundation.layout.FlowRow
import androi... |
app/src/main/java/edu/stanford/cardinalkit/presentation/welcome/JoinStudyScreen.kt | unknown_repo | kotlin | package edu.stanford.cardinalkit.presentation.welcome
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.found... |
app/src/main/java/com/ant/app/ui/main/tvseries/ontv/OnTvTvShowFragment.kt | unknown_repo | kotlin | package com.ant.app.ui.main.tvseries.ontv
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.navigation.fragment.findNavController
import com.ant.app.ui.main.base.tvseries.BaseMainListTvSeriesFragment
import com.ant.models.entities.TvShow
import dagger.hilt.android.AndroidEnt... |
capture/src/main/kotlin/com/alfresco/ui/WindowCompat.kt | unknown_repo | kotlin | package com.alfresco.ui
import android.annotation.SuppressLint
import android.os.Build
import android.view.View
import android.view.Window
import android.view.WindowInsets
import android.view.WindowInsetsController
@Suppress("DEPRECATION")
@SuppressLint("AnnotateVersionCheck")
object WindowCompat {
private var sy... |
app/src/main/kotlin/vergecurrency/vergewallet/view/ui/fragment/FragmentSend.kt | unknown_repo | kotlin | package vergecurrency.vergewallet.view.ui.fragment
import android.annotation.SuppressLint
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.EditText
import android.widget.... |
CoroutinesExample/app/src/main/java/com/example/coroutinesexample/MainActivity.kt | unknown_repo | kotlin | package com.example.coroutinesexample
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProvider
import androidx.lifecycle.ViewModelProviders
import kotlinx.android.synthetic.main.activity_main.*
import... |
app/src/main/java/com/supersuman/macronium/BackgroundService.kt | unknown_repo | kotlin | package com.supersuman.macronium
import android.app.*
import android.content.Context
import android.content.Intent
import android.os.Build
import android.os.IBinder
import androidx.core.app.NotificationCompat
import androidx.core.app.NotificationManagerCompat
class BackgroundService : Service() {
private val soc... |
app/src/main/java/com/fabler/jetflix/ui/components/Scaffold.kt | unknown_repo | kotlin | package com.fabler.jetflix.ui.components
import androidx.compose.foundation.layout.ColumnScope
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.material.DrawerDefaults
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.material.FabPosition
import androidx.co... |
app/src/main/java/com/sky/android/news/data/cache/impl/CacheManagerImpl.kt | unknown_repo | kotlin | package com.sky.android.news.data.cache.impl
import android.content.Context
import android.os.Environment
import com.google.gson.Gson
import com.jakewharton.disklrucache.DiskLruCache
import com.sky.android.common.utils.Alog
import com.sky.android.common.utils.FileUtils
import com.sky.android.common.utils.MD5Utils
impo... |
app/src/main/java/com/islamversity/reyan/BaseApp.kt | unknown_repo | kotlin | package com.islamversity.reyan
import android.app.Application
import android.util.Log
import com.facebook.common.logging.FLog
import com.facebook.drawee.backends.pipeline.Fresco
import com.facebook.imagepipeline.core.ImagePipelineConfig
import com.islamversity.reyan.BuildConfig.DEBUG
import com.islamversity.daggercore... |
app/src/main/java/com/borabor/movieapp/presentation/ui/fullscreenimage/FullscreenImageActivity.kt | unknown_repo | kotlin | package com.example.landofmoviz.view.activity
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Parcelable
import androidx.core.view.WindowCompat
import androidx.core.view.WindowInsetsCompat
import androidx.core.view.WindowInsetsControllerCompat
import androidx.viewpager2.widge... |
app/src/main/java/com/implementing/cozyspace/domain/usecase/tasks/UpdateTaskUseCase.kt | unknown_repo | kotlin | package com.implementing.cozyspace.domain.usecase.tasks
import android.content.Context
import com.implementing.cozyspace.domain.repository.task.TaskRepository
import com.implementing.cozyspace.model.Task
import javax.inject.Inject
class UpdateTaskUseCase @Inject constructor(
private val tasksRepository: TaskRepos... |
feature_settings/src/main/java/com/allsoftdroid/audiobook/feature_settings/FeedbackFragment.kt | unknown_repo | kotlin | package com.allsoftdroid.audiobook.feature_settings
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.WindowManager
import android.widget.Toast
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.DialogFragment
im... |
app/src/main/java/com/takwolf/android/demo/hfrecyclerview/ui/adapter/LinearHorizontalAdapter.kt | unknown_repo | kotlin | package com.takwolf.android.demo.hfrecyclerview.ui.adapter
import android.view.LayoutInflater
import android.view.ViewGroup
import com.takwolf.android.demo.hfrecyclerview.databinding.ItemLinearHorizontalBinding
class LinearHorizontalAdapter(private val layoutInflater: LayoutInflater) : PhotoListAdapter<LinearHorizont... |
app/src/main/java/com/frogobox/recyclercoroutines/MainViewModel.kt | unknown_repo | kotlin | package com.frogobox.recyclercoroutines
import android.app.Application
import android.util.Log
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.lifecycleScope
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.delay
import kotlinx.coroutines... |
app/src/main/java/com/cerdenia/android/fullcup/util/DateTimeUtils.kt | unknown_repo | kotlin | package com.cerdenia.android.fullcup.util
import android.content.res.Resources
import com.cerdenia.android.fullcup.R
import com.cerdenia.android.fullcup.WEEKDAY
import com.cerdenia.android.fullcup.WEEKEND
import com.cerdenia.android.fullcup.data.model.DateTimeBreakdown
import java.util.*
object DateTimeUtils {
/... |
quickedit/src/main/java/com/abizer_r/quickedit/ui/textMode/bottomToolbarExtension/textFormatOptions/caseOptions/TextCaseOptions.kt | unknown_repo | kotlin | package com.abizer_r.quickedit.ui.textMode.bottomToolbarExtension.textFormatOptions.caseOptions
import android.content.res.Configuration
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangem... |
app/src/main/java/com/hiteshsahu/cool_keyboard/view/fragments/LicensesDialogFragment.kt | unknown_repo | kotlin | /*
* .
* Copyright Copyright (c) 2017 <NAME>(hiteshsahu.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 applicab... |
app/src/main/java/com/devspace/myapplication/EasyRecipesApplication.kt | unknown_repo | kotlin | package com.devspace.myapplication
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class EasyRecipesApplication : Application() |
app/src/main/java/io/sensify/sensor/ui/resource/effects/ColoredShadow.kt | unknown_repo | kotlin | package io.sensify.sensor.ui.resource.effects
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.drawBehind
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.Paint
import androidx.compose.ui.graphics.drawscope.drawIntoCanvas
import androidx.compose.ui.graphics.toArgb
import... |
app/src/main/java/com/cheise_proj/e_commerce/ui/bag/adapter/AddressAdapter.kt | unknown_repo | kotlin | package com.cheise_proj.e_commerce.ui.bag.adapter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.cheise_proj.e_commerce.R
i... |
app/src/main/java/co/kaush/msusf/MSAppDI.kt | unknown_repo | kotlin | package co.kaush.msusf
import android.content.Context
import co.kaush.msusf.movies.MSMovieActivity
import co.kaush.msusf.movies.MSMovieApi
import dagger.Component
import dagger.Module
import dagger.Provides
import okhttp3.OkHttpClient
import okhttp3.logging.HttpLoggingInterceptor
import retrofit2.Retrofit
import retro... |
app/src/main/java/com/rabble/cyril/rabble/fragments/ProductUploadFragment.kt | unknown_repo | kotlin | package com.rabble.cyril.rabble.fragments
import android.net.Uri
import com.rabble.cyril.rabble.utilities.FirebaseHelper.Companion.newInstanceBaseHelper
import com.google.android.material.textfield.TextInputLayout
import com.google.firebase.database.DatabaseReference
import com.google.firebase.storage.StorageReference... |
utils/src/main/java/com/zhangteng/utils/ImageLoader.kt | unknown_repo | kotlin | package com.zhangteng.utils
import android.content.Context
import android.widget.ImageView
/**
* Created by Swing on 2018/4/18.
*/
interface ImageLoader {
fun loadImage(context: Context?, imageView: ImageView?, uri: String?)
} |
wear/compose/integration-tests/demos/src/main/java/androidx/wear/compose/integration/demos/HorizontalPageIndicatorDemo.kt | unknown_repo | kotlin | /*
* Copyright 2022 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... |
common/systemDesign/src/main/java/city/zouitel/systemDesign/RationalDialog.kt | unknown_repo | kotlin | package city.zouitel.note.utils
import android.Manifest
import android.content.Intent
import android.net.Uri
import android.provider.Settings
import androidx.compose.foundation.layout.size
import androidx.compose.material3.AlertDialog
import androidx.compose.material3.OutlinedIconButton
import androidx.compose.materia... |
whatsapprecorder/src/main/java/ir/heydarii/whatsapprecorder/RecorderManager.kt | unknown_repo | kotlin | package ir.heydarii.whatsapprecorder
import android.media.MediaRecorder
/**
* <p>Allows only one player at a time, preventing simultaneous audio sounds</p>
*
*/
class RecorderManager {
companion object {
private val recorderList = mutableListOf<MediaRecorder>()
/**
* Records Audio
... |
app/src/main/java/com/x/wallpaper/RecyclerViewActivityMain.kt | unknown_repo | kotlin | package com.x.wallpaper
import android.animation.AnimatorSet
import android.animation.ObjectAnimator
import android.app.ActivityOptions
import android.content.Intent
import android.os.Build
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.*
import android.view.animation.Dece... |
app/src/main/java/com/erendogan6/kekodproject1/ui/components/SwitchScreen.kt | unknown_repo | kotlin | package com.erendogan6.kekodproject1.ui.components
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.fillMaxSize
import androidx.com... |
app/src/main/java/com/mainstreetcode/teammate/viewmodel/GameViewModel.kt | unknown_repo | kotlin | /*
* MIT License
*
* Copyright (c) 2019 <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, m... |
app/src/main/java/com/mainstreetcode/teammate/viewmodel/GameViewModel.kt | unknown_repo | kotlin | /*
* MIT License
*
* Copyright (c) 2019 <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, m... |
app/src/main/java/com/vo/vozilla/ktextensions/Fragment.kt | unknown_repo | kotlin | package com.vo.vozilla.ktextensions
import android.support.v4.app.Fragment
inline fun <reified T : Any> Fragment.argument(key: String): Lazy<T> =
@Suppress("UNCHECKED_CAST") (lazy { arguments?.get(key) as T }) |
hello-jni/app/src/main/java/com/example/hellojni/HelloJni.kt | unknown_repo | kotlin | /*
* Copyright (C) 2016 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... |
packages/SystemUI/tests/src/com/android/systemui/statusbar/connectivity/ui/MobileContextProviderTest.kt | unknown_repo | kotlin | /*
* Copyright (C) 2022 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... |
framework/kotlin-simple-architecture-client/src/commonMain/kotlin/kim/jeonghyeon/client/BaseViewModel.kt | unknown_repo | kotlin | @file:Suppress("unused", "MemberVisibilityCanBePrivate", "EXPERIMENTAL_API_USAGE")
package kim.jeonghyeon.client
import io.ktor.http.*
import kim.jeonghyeon.annotation.SimpleArchInternal
import kim.jeonghyeon.net.DeeplinkError
import kim.jeonghyeon.net.RedirectionType
import kim.jeonghyeon.type.*
import kim.jeonghye... |
Android/source/app/src/main/java/com/tenginekit/tenginedemo/facedemo/FaceFrameActivity.kt | unknown_repo | kotlin | package com.tenginekit.tenginedemo.bodydemo
import android.graphics.Rect
import android.util.Log
import android.util.Size
import com.tenginekit.engine.body.BodyConfig
import com.tenginekit.tenginedemo.CameraActivity
import com.tenginekit.tenginedemo.R
import com.tenginekit.engine.core.ImageConfig
import com.tenginekit... |
app/src/main/java/com/tientham/weather/ui/login/LoginFragment.kt | unknown_repo | kotlin | package com.tientham.weather.ui.login
import android.os.Bundle
import android.os.Handler
import android.text.Editable
import android.text.TextWatcher
import android.view.LayoutInflater
import android.view.View
import android.view.View.INVISIBLE
import android.view.View.VISIBLE
import android.view.ViewGroup
import andr... |
compose/ui/ui-test/src/androidMain/kotlin/androidx/compose/ui/test/android/WindowCapture.android.kt | unknown_repo | kotlin | /*
* Copyright 2019 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... |
android/src/main/java/si/inova/kotlinova/data/ExtendedMediatorLiveData.kt | unknown_repo | kotlin | /*
* Copyright 2020 INOVA IT d.o.o.
*
* 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, distrib... |
OsmAnd-master/OsmAnd-telegram/src/net/osmand/telegram/ui/views/DirectionDrawable.kt | unknown_repo | kotlin | package net.osmand.telegram.ui.views
import android.graphics.Canvas
import android.graphics.ColorFilter
import android.graphics.PixelFormat
import android.graphics.Rect
import android.graphics.drawable.Drawable
import net.osmand.telegram.TelegramApplication
class DirectionDrawable(private val app: TelegramApplication... |
pix/src/main/java/io/ak1/pix/adapters/MainImageAdapter.kt | unknown_repo | kotlin | package io.ak1.pix.adapters
import android.content.Context
import android.net.Uri
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.FrameLayout
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import co... |
app/src/main/java/de/langerhans/odintools/tiles/L2R2TileService.kt | unknown_repo | kotlin | package de.langerhans.odintools.tiles
import android.service.quicksettings.Tile
import android.service.quicksettings.TileService
import dagger.hilt.android.AndroidEntryPoint
import de.langerhans.odintools.R
import de.langerhans.odintools.data.SharedPrefsRepo
import de.langerhans.odintools.models.L2R2Style
import de.la... |
app/src/main/java/com/sindrenm/spikes/compose/login/profile/ProfileActivity.kt | unknown_repo | kotlin | package com.sindrenm.spikes.compose.login.profile
import android.content.Intent
import android.os.Bundle
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.ui.platform.setContent
import com.sindrenm.spikes.compose.login.App
import com.sindrenm.spikes.compose.log... |
app/src/main/java/com/tarek360/sample/BaseSampleActivity.kt | unknown_repo | kotlin | package com.tarek360.sample
import android.graphics.Bitmap
import android.os.Bundle
import android.support.annotation.LayoutRes
import android.support.v7.app.AppCompatActivity
import android.view.View
import butterknife.ButterKnife
import com.tarek360.instacapture.Instacapture
import com.tarek360.instacapture.listener... |
common/src/main/java/sg/bigo/common/view/BeautifyFragment.kt | unknown_repo | kotlin | package sg.bigo.common.view
import android.content.Context
import android.widget.SeekBar
import androidx.fragment.app.Fragment
import sg.bigo.common.R
abstract class BeautifyFragment:Fragment() {
override fun onAttach(context: Context) {
super.onAttach(context)
}
protected fun getSeekBar(): Seek... |
app/src/main/java/com/carohg/zeldafan/SplashActivity.kt | unknown_repo | kotlin | package com.carohg.zeldafan
import android.content.Intent
import android.os.Bundle
import androidx.activity.compose.setContent
import androidx.appcompat.app.AppCompatActivity
import androidx.compose.animation.AnimatedContent
import androidx.compose.animation.ExitTransition
import androidx.compose.animation.Experimenta... |
app/src/main/java/io/homeassistant/companion/android/nfc/NfcReadFragment.kt | unknown_repo | kotlin | package io.avario.fansolution.android.nfc
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProvider
import androidx.navigation.fragment.findNavCo... |
app/src/main/java/com/example/rickmorty/data/local/dao/LocationResidentDao.kt | unknown_repo | kotlin | package com.example.rickmorty.data.local.dao
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import androidx.room.Update
import androidx.room.Upsert
import com.example.rickmorty.data.local.entities.LocationResidentEntit... |
app/src/main/java/com/appzeto/lms/ui/frag/FinancialSummaryFrag.kt | unknown_repo | kotlin | package com.appzeto.lms.ui.frag
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.appzeto.lms.R
import com.appzeto.lms.databinding.EmptyStateBinding
import com.appzeto.lms.databinding.FragFinancialSummaryB... |
app/src/main/java/com/willy/metu/BaseActivity.kt | unknown_repo | kotlin | package com.willy.metu
import androidx.appcompat.app.AppCompatActivity
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.Job
import kotlin.coroutines.CoroutineContext
abstract class BaseActivity : AppCompatActivity(), CoroutineScope {
val job = Job()
ov... |
arc_menu_demo/src/main/java/com/yhongm/arc_menu_demo/MainActivity.kt | unknown_repo | kotlin | package com.yhongm.arc_menu_demo
import android.app.Activity
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.SeekBar
import android.widget.TextView
import android.widget.Toast
import com.yhongm.arcmenu.ArcMenu
import kotlinx.android.synthetic.main.activity_main.*
/**
... |
arc_menu_demo/src/main/java/com/yhongm/arc_menu_demo/MainActivity.kt | unknown_repo | kotlin | package com.yhongm.arc_menu_demo
import android.app.Activity
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.SeekBar
import android.widget.TextView
import android.widget.Toast
import com.yhongm.arcmenu.ArcMenu
import kotlinx.android.synthetic.main.activity_main.*
/**
... |
src/main/kotlin/dev/schlaubi/musicbot/core/GameAnimator.kt | unknown_repo | kotlin | package dev.schlaubi.musicbot.core
import com.kotlindiscord.kord.extensions.extensions.Extension
import com.kotlindiscord.kord.extensions.extensions.event
import dev.kord.common.entity.ActivityType
import dev.kord.common.entity.PresenceStatus
import dev.kord.core.Kord
import dev.kord.core.event.gateway.ReadyEvent
impo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.