file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
feature/explore/src/main/java/com/peonlee/explore/ExploreActivity.kt | unknown_repo | kotlin | package com.peonlee.explore
import android.content.Context
import android.content.Intent
import androidx.activity.viewModels
import androidx.core.view.isVisible
import androidx.core.widget.addTextChangedListener
import com.peonlee.core.ui.base.BaseActivity
import com.peonlee.core.ui.base.ProductSearchableViewModel
imp... |
app/src/main/java/com/mozhimen/taskk/provider/test/MainActivity.kt | unknown_repo | kotlin | package com.mozhimen.taskk.provider.test
import android.annotation.SuppressLint
import android.os.Bundle
import com.mozhimen.basick.elemk.androidx.appcompat.bases.viewbinding.BaseActivityVB
import com.mozhimen.basick.elemk.commons.I_Listener
import com.mozhimen.basick.lintk.optins.OApiInit_InApplication
import com.moz... |
xposed/src/main/java/moe/fuqiuluo/xposed/hooks/blindhook/BlindHookLocation.kt | unknown_repo | kotlin | package moe.fuqiuluo.xposed.hooks.blindhook
import android.location.Location
import de.robv.android.xposed.XposedBridge
import moe.fuqiuluo.xposed.BaseLocationHook
import moe.fuqiuluo.xposed.utils.FakeLoc
import moe.fuqiuluo.xposed.utils.Logger
object BlindHookLocation: BaseLocationHook() {
operator fun invoke(cl... |
modules/bridge/src/main/kotlin/ru/astrainteractive/discordbot/module/bridge/WebSocketClient.kt | unknown_repo | kotlin | package ru.astrainteractive.discordbot.module.bridge
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.cancel
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow... |
app/src/main/java/com/admin/ozieats_app/ui/home/cart/CartItemAdapter.kt | unknown_repo | kotlin | package com.admin.ozieats_app.ui.home.cart
import android.app.Activity
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import android.view.WindowManager
import android.widget.ImageView
import android.widget.TextView
import androidx.databinding.DataBindingUtil
import andr... |
app/src/main/java/com/kevalpatel2106/ci/greenbuild/main/AccountsAdapter.kt | unknown_repo | kotlin | /*
* Copyright 2018 <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing, s... |
app/src/main/java/com/stevenschoen/putionew/files/FileDownloadMaintenance.kt | unknown_repo | kotlin | package com.stevenschoen.putionew.files
import android.app.Activity
import android.app.DownloadManager
import android.app.job.JobParameters
import android.app.job.JobService
import android.content.Context
import android.os.AsyncTask
import androidx.annotation.WorkerThread
import com.stevenschoen.putionew.putioApp
cla... |
app/src/main/java/com/neoapps/skijahorina/features/skicenter/weather/WeatherFragment.kt | unknown_repo | kotlin | package com.neoapps.skijahorina.features.skicenter.weather
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.navArgs
import androidx.recyclerview.wid... |
app/src/main/kotlin/ir/erfansn/nsmavpn/data/util/NetworkUsageTracker.kt | unknown_repo | kotlin | /*
* Copyright 2024 Erfan Sn
*
* 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/ch/dreipol/rezhycle/utils/ReminderUtils.kt | unknown_repo | kotlin | package ch.dreipol.rezhycle.utils
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import androidx.work.*
import ch.dreipol.multiplatform.reduxsample.shared.database.*
import java.util.concurrent.TimeUnit
import kotlin.time.ExperimentalTime
import kotlinx.datetime.C... |
fundamentals/android/auth-sign-in-with-google/Notes/app/src/main/java/com/notes/app/screens/account_center/AccountCenterButtons.kt | unknown_repo | kotlin | package com.notes.app.screens.account_center
import android.util.Log
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.compose.material.icons.Icons
impor... |
android/src/main/java/com/google/samples/apps/iosched/gcm/command/NotificationCommand.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... |
app/src/main/java/com/wavesplatform/wallet/v2/injection/module/NetworkModule.kt | unknown_repo | kotlin | /*
* Created by Eduard Zaydel on 1/4/2019
* Copyright © 2019 Waves Platform. All rights reserved.
*/
package com.wavesplatform.wallet.v2.injection.module
import android.content.Context
import android.util.Log
import com.google.gson.FieldNamingPolicy
import com.google.gson.Gson
import com.google.gson.GsonBuilder
im... |
app/src/main/java/com/yenaly/han1meviewer/util/Versions.kt | unknown_repo | kotlin | package com.yenaly.han1meviewer.util
import android.content.Context
import android.content.Intent
import android.graphics.Typeface
import androidx.appcompat.app.AlertDialog
import androidx.core.content.FileProvider
import com.google.android.material.dialog.MaterialAlertDialogBuilder
import com.itxca.spannablex.spannab... |
goldeneye/src/main/java/co/infinum/goldeneye/GoldenEye1Impl.kt | unknown_repo | kotlin | @file:Suppress("DEPRECATION")
package co.infinum.goldeneye
import android.annotation.SuppressLint
import android.app.Activity
import android.graphics.Bitmap
import android.hardware.Camera
import android.os.Build
import android.view.TextureView
import co.infinum.goldeneye.config.CameraConfig
import co.infinum.goldeney... |
platform/collaboration-tools/src/com/intellij/collaboration/async/CoroutineUtil.kt | unknown_repo | kotlin | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.collaboration.async
import com.intellij.collaboration.util.ComputedResult
import com.intellij.collaboration.util.HashingUtil
import com.intellij.openapi.Disposable
import com.in... |
src/chain-wallet-libs/bindings/wallet-cordova/src/android/WalletPlugin.kt | unknown_repo | kotlin | package com.iohk.jormungandr_wallet;
import android.util.Base64
import android.util.Log
import org.apache.cordova.*
import org.json.JSONException
import org.json.JSONObject
import java.text.Normalizer
import java.text.Normalizer.Form
import java.util.concurrent.atomic.AtomicInteger
class WalletPlugin
/**
* Construct... |
app/src/main/java/com/alexvt/datapoints/entrypoints/DataPointCollectionTimeEventReceiver.kt | unknown_repo | kotlin | package com.alexvt.datapoints.entrypoints
import android.app.Activity
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.Service
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import and... |
app/src/main/java/com/duckduckgo/app/global/view/DividerAdapter.kt | unknown_repo | kotlin | /*
* Copyright (c) 2021 DuckDuckGo
*
* 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 ... |
ViewPager22/app/src/main/java/com/app/mytaxi/di/module/ApplicationModule.kt | unknown_repo | kotlin | package com.app.mytaxi.di.module
import android.app.Application
import android.content.Context
import com.app.mytaxi.BuildConfig
import com.app.mytaxi.MyTaxiApplication
import com.app.mytaxi.data.NetworkService
import com.app.mytaxi.data.Networking
import com.app.mytaxi.di.ApplicationContext
import com.app.mytaxi.util... |
app/src/main/java/com/example/appwritedemoapplication/ui/Functions/FunctionsViewModel.kt | unknown_repo | kotlin | package com.example.appwritedemoapplication.ui.Functions
import android.text.Editable
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.appwritedemoapplication.utils.Client
import com.example.appw... |
libraries/timeline-view/src/main/java/com/trendyol/timelineview/TimelineItemViewState.kt | unknown_repo | kotlin | package com.trendyol.timelineview
import android.graphics.Color
import android.view.View
class TimelineItemViewState(
private val timelineItem: TimelineItem,
val dotSize: Float,
val borderWidth: Float,
val textSize: Float,
val lineWidth: Float,
val fontFamily: String,
val maxLineCount: Int... |
app/src/main/java/com/example/kphrase/PhrasesViewRecyclerViewAdapter.kt | unknown_repo | kotlin | package com.example.kphrase
import android.content.Context
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.animation.Animation
import android.view.animation.BounceInterpolator
import android.view.animation.ScaleAnimation
import andro... |
src/main/kotlin/theme/Typography.kt | unknown_repo | kotlin | @file:Suppress("MagicNumber")
package org.ossreviewtoolkit.workbench.theme
import androidx.compose.desktop.ui.tooling.preview.Preview
import androidx.compose.foundation.layout.Column
import androidx.compose.material.Text
import androidx.compose.material.Typography
import androidx.compose.runtime.Composable
import and... |
appreader/src/main/java/com/ul/ims/gmdl/reader/viewmodel/NfcScanViewModel.kt | unknown_repo | kotlin | /*
* Copyright (C) 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
PineLib/src/main/java/com/blueberrysolution/pinelib19/sqlite/mylib/model/SelectModel.kt | unknown_repo | kotlin | package com.blueberrysolution.pinelib19.sqlite.mylib.model
import android.database.Cursor
import com.blueberrysolution.pinelib19.activity.A
import com.blueberrysolution.pinelib19.addone.convert.AnyToString
import com.blueberrysolution.pinelib19.debug.G
import com.blueberrysolution.pinelib19.reflection.ReflectHelper
im... |
Mobile/SimplexLudum/composeApp/src/androidMain/kotlin/palbp/laboratory/simplexludum/previews/MyCollectionScreenPreview.kt | unknown_repo | kotlin | package palbp.laboratory.simplexludum.previews
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
import palbp.laboratory.simplexludum.ui.common.theme.SimplexLudumTheme
import palbp.laboratory.simplexludum.ui.mycollection.MyCollectionScreen
@Preview(showBackground = true, sh... |
app/src/main/java/com/concordium/wallet/data/room/AccountWithTransfersDao.kt | unknown_repo | kotlin | package com.concordium.wallet.data.room
import androidx.room.Dao
import androidx.room.Query
import androidx.room.Transaction
@Dao
interface AccountWithTransfersDao {
@Transaction
@Query("SELECT * FROM account_table")
fun getAccountsWithTransfers(): List<AccountWithTransfers>
} |
app/src/main/java/com/example/githubuserapp/ui/detail/viewmodel/ReposViewModel.kt | unknown_repo | kotlin | package com.example.githubuserapp.ui.detail.viewmodel
import android.util.Log
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.example.githubuserapp.api.ApiConfig
import com.example.githubuserapp.data.response.RepositoryResponseItem
import com.... |
system-service/permission-manager/src/main/kotlin/org/a_cyb/sayitalarm/system_service/permission_manager/PermissionChecker.kt | unknown_repo | kotlin | /*
* Copyright (c) 2024 <NAME> / All rights reserved.
*
* Use of this source code is governed by Apache v2.0
*/
package org.a_cyb.sayitalarm.system_service.permission_manager
import android.Manifest
import android.app.AlarmManager
import android.app.NotificationManager
import android.content.Context
import androi... |
app/src/main/java/com/bannanguy/task1androidapp/ui/cityList/CitiesListViewModel.kt | unknown_repo | kotlin | package com.bannanguy.task1androidapp.ui.cityList
import android.content.Context
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.bannanguy.task1androidapp.api.weather.WeatherAPI
import com.bannanguy.... |
parent/src/main/java/sk/backbone/parent/application/dependency_injection/ParentServerRepositoryModule.kt | unknown_repo | kotlin | package sk.backbone.parent.application.dependency_injection
import android.content.Context
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.hilt.components.SingletonComponent
import okhttp3.logging.HttpLoggingInterceptor
imp... |
android/app/src/main/java/com/fabirt/debty/ui/people/detail/PersonDetailViewModel.kt | unknown_repo | kotlin | package com.fabirt.debty.ui.people.detail
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.fabirt.debty.domain.model.Movement
import com.fabirt.debty.domain.model.MovementType
import com.fabirt.debty.dom... |
domain/src/main/java/com/seo4d696b75/android/ekisagasu/domain/dataset/update/DataUpdateUseCase.kt | unknown_repo | kotlin | package com.seo4d696b75.android.ekisagasu.domain.dataset.update
import com.seo4d696b75.android.ekisagasu.domain.dataset.DataRepository
import com.seo4d696b75.android.ekisagasu.domain.dataset.DataVersion
import com.seo4d696b75.android.ekisagasu.domain.dataset.LatestDataVersion
import com.seo4d696b75.android.ekisagasu.d... |
app/src/main/java/com/mindorks/framework/mvvm/ui/account/login/register/RegisterActivity.kt | unknown_repo | kotlin | /*
* Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
*
* 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://mindorks.com/license/apache-v2
*
* Unless required by a... |
app/src/main/java/knf/kuma/database/dao/QueueDAO.kt | unknown_repo | kotlin | package knf.kuma.database.dao
import androidx.lifecycle.LiveData
import androidx.room.*
import knf.kuma.database.BaseConverter
import knf.kuma.pojos.QueueObject
@Dao
@TypeConverters(BaseConverter::class)
interface QueueDAO {
@get:Query("SELECT MIN(aid) AS id,`key`,aid,name,number,eid,isFile,uri,time,link FROM qu... |
app/src/main/java/com/vivekupasani/single/viewModels/ProfileViewModel.kt | unknown_repo | kotlin | package com.vivekupasani.single.viewModels
import android.app.Application
import android.widget.ProgressBar
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.firestore.FirebaseF... |
chapter4-pwm/src/main/java/com/plattysoft/pwmsamples/LedBrightnessActivity.kt | unknown_repo | kotlin | package com.plattysoft.pwmsamples
import android.app.Activity
import android.os.Bundle
import android.os.Handler
import com.google.android.things.pio.PeripheralManager
import com.google.android.things.pio.Pwm
import java.util.*
import kotlin.concurrent.timerTask
/**
* Created by <NAME> on 13/05/18.
*/
class LedBrig... |
app/src/main/java/com/alossa/alossacapstone/ui/profile/InputWishlistActivity.kt | unknown_repo | kotlin | package com.alossa.alossacapstone.ui.profile
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import androidx.lifecycle.ViewModelProvider
import com.alossa.alossacapstone.databinding.ActivityInputWishlistBinding
import com.alossa.alossac... |
app/src/main/java/com/ladsers/ztemp/domain/states/DeviceStatusState.kt | unknown_repo | kotlin | package com.ladsers.ztemp.domain.states
import androidx.compose.ui.graphics.vector.ImageVector
import com.ladsers.ztemp.data.models.DeviceStatus
interface DeviceStatusState {
object InProcessing : DeviceStatusState
object NotSignedIn : DeviceStatusState
object NoDeviceSelected : DeviceStatusState
obje... |
app/src/main/java/com/cyberwalker/fashionstore/splash/SplashViewModel.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/camven/test/MainActivity.kt | unknown_repo | kotlin | package com.camven.test
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import com.camven.test.databinding.ActivityMainBinding
import com.camven.test.view.requestlayout.TestRequestLayoutActivity
class MainActivity : AppCompatActivity() {
... |
app/src/main/java/blue/aodev/animeultimetv/presentation/screen/episodes/EpisodesFragment.kt | unknown_repo | kotlin | package blue.aodev.animeultimetv.presentation.screen.episodes
import android.os.Bundle
import android.support.v17.leanback.app.VerticalGridFragment
import android.support.v17.leanback.widget.ArrayObjectAdapter
import android.support.v17.leanback.widget.FocusHighlight
import android.support.v17.leanback.widget.OnItemVi... |
app/src/main/java/com/example/submisionawal/ui/detail/DetailViewModel.kt | unknown_repo | kotlin | package com.example.submisionawal.ui.detail
import android.util.Log
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.example.submisionawal.data.response.DetailUserResponse
import com.example.submisionawal.data.retrofit.ApiConfig
import retrofit... |
src/feature/details/src/commonMain/kotlin/com/gabrielbmoro/moviedb/details/ui/widgets/GenresCard.kt | unknown_repo | kotlin | package com.gabrielbmoro.moviedb.details.ui.widgets
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.ExperimentalLayoutApi
import androidx.compose.foundation.layout.FlowRow
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.shape.CircleSh... |
src/main/kotlin/examples/forces/GravitationalAttraction.kt | unknown_repo | kotlin | package examples.forces
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.drawscope.DrawScope
import androidx.compose.ui.input.pointer.pointerMoveFilter
import k5
import math.Vector2D
import math.constra... |
app/src/main/java/org/covidwatch/android/presentation/settings/SettingsFragment.kt | unknown_repo | kotlin | package org.covidwatch.android.presentation
import android.Manifest
import android.annotation.SuppressLint
import android.bluetooth.BluetoothAdapter
import android.content.Context.MODE_PRIVATE
import android.content.Intent
import android.content.SharedPreferences
import android.content.res.ColorStateList
import androi... |
app/src/main/java/com/example/android/coordinatedeffort/behaviors/navbars/ButtonsLayoutBehavior.kt | unknown_repo | kotlin | package com.example.android.coordinatedeffort.behaviors.navbars
import android.content.Context
import android.util.AttributeSet
import android.view.View
import android.widget.FrameLayout
import androidx.coordinatorlayout.widget.CoordinatorLayout
import androidx.core.view.isGone
import com.google.android.material.botto... |
app/src/main/java/dev/marcos/podcast/MainActivity.kt | unknown_repo | kotlin | package dev.marcos.podcast
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.LinearLayout
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import androidx.viewpager2.widget.ViewPager2
import co... |
app/src/main/kotlin/net/primal/android/explore/db/TrendingHashtagDao.kt | unknown_repo | kotlin | package net.primal.android.explore.db
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import kotlinx.coroutines.flow.Flow
@Dao
interface TrendingHashtagDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
fun upsertAll(data: List<Trend... |
app/src/main/java/com/zhou/android/kotlin/album/AlbumScrollListener.kt | unknown_repo | kotlin | package com.zhou.android.kotlin.album
import android.support.v7.widget.RecyclerView
import android.support.v7.widget.SnapHelper
open class AlbumScrollListener : RecyclerView.OnScrollListener {
private var helper: SnapHelper
private var currentPosition = RecyclerView.NO_POSITION
constructor(helper: SnapH... |
app/src/main/java/com/bsuir/bsuirschedule/presentation/viewModels/ScheduleViewModel.kt | unknown_repo | kotlin | package com.bsuir.bsuirschedule.presentation.viewModels
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.bsuir.bsuirschedule.BuildConfig
import com.bsuir.bsuirschedule.domain.models.*
import com.bsuir.bsuirschedule.domain.models.scheduleS... |
LAB9/app/src/main/java/com/example/lab9/DatabaseHelper.kt | unknown_repo | kotlin | package com.example.lab9
import android.content.ContentValues
import android.content.Context
import android.database.Cursor
import android.database.sqlite.SQLiteDatabase
import android.database.sqlite.SQLiteOpenHelper
class DatabaseHelper(context : Context) :
SQLiteOpenHelper(context, DATABASE_NAME, null, DB_VERSION)... |
directappupdate/src/main/java/com/micoder/directappupdate/viewmodel/NotificationViewModel.kt | unknown_repo | kotlin | package com.micoder.directappupdate.viewmodel
import android.annotation.SuppressLint
import androidx.core.app.NotificationCompat
import androidx.core.app.NotificationManagerCompat
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.micoder.directappupdate.di.DirectAppUpdateNotificat... |
app/src/main/java/com/jadebyte/jadeplayer/main/common/view/ZoomOutPageTransformer.kt | unknown_repo | kotlin | // Copyright (c) 2019 . <NAME>. All Rights Reserved.
package com.jadebyte.jadeplayer.main.common.view
import android.view.View
import androidx.viewpager.widget.ViewPager
import kotlin.math.abs
import kotlin.math.max
/**
* Created by Wilberforce on 2019-05-02 at 01:58.
*
* Original source: https://developer.androi... |
app/src/main/java/com/zxhhyj/music/ui/common/AlbumMotionBlur.kt | unknown_repo | kotlin | package com.zxhhyj.music.ui.common
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.drawable.Drawable
import android.view.animation.LinearInterpolator
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
... |
app/src/main/java/ar/edu/unlam/mobile/scaffold/ui/components/GameScore.kt | unknown_repo | kotlin | package ar.edu.unlam.mobile.scaffold.ui.components
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.padding
import androidx.compose.materi... |
app/src/main/java/com/eyepetizer/android/ui/MainActivity.kt | unknown_repo | kotlin | /*
* Copyright (c) 2020. vipyinzhiwei <vipyinzhiwei@gmail.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 ... |
app/src/main/java/com/eyepetizer/android/ui/MainActivity.kt | unknown_repo | kotlin | /*
* Copyright (c) 2020. vipyinzhiwei <<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 l... |
feature/system/src/main/kotlin/top/chengdongqing/weui/feature/system/screens/Notification.kt | unknown_repo | kotlin | package top.chengdongqing.weui.feature.system.screens
import android.Manifest
import android.annotation.SuppressLint
import android.app.NotificationChannel
import android.app.NotificationManager
import android.content.Context
import android.os.Build
import androidx.compose.runtime.Composable
import androidx.compose.ui... |
http4k-incubator/src/main/kotlin/org/http4k/openapi/v3/server/server.kt | unknown_repo | kotlin | package org.http4k.openapi.v3.server
import com.squareup.kotlinpoet.FunSpec
import com.squareup.kotlinpoet.KModifier.OPERATOR
import com.squareup.kotlinpoet.TypeSpec
import org.http4k.openapi.v3.OpenApi3Spec
import org.http4k.openapi.v3.apiName
fun OpenApi3Spec.buildServer(endpoints: List<FunSpec>) =
TypeSpec.obj... |
_pending/Projemanag_v51/app/src/main/java/com/projemanag/adapters/TaskListItemsAdapter.kt | unknown_repo | kotlin | package com.projemanag.adapters
import android.content.Context
import android.content.res.Resources
import android.util.Log
import android.view.DragEvent
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.LinearLayout
import android.widget.Toast
import andro... |
exampleapp/src/androidTest/java/com/gerardbradshaw/exampleapp/squareview/SquareViewAndroidTest.kt | unknown_repo | kotlin | package com.gerardbradshaw.exampleapp.squareview
import androidx.test.ext.junit.rules.ActivityScenarioRule
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.gerardbradshaw.exampleapp.R
import com.gerardbradshaw.exampleapp.SquareViewActivity
import com.gerardbradshaw.exampleapp.squareview.SquareViewAndroi... |
packages/expo-image/android/src/main/java/expo/modules/image/okhttp/ExpoImageOkHttpClientGlideModule.kt | unknown_repo | kotlin | package expo.modules.image.okhttp
import android.content.Context
import com.bumptech.glide.Glide
import com.bumptech.glide.Registry
import com.bumptech.glide.annotation.GlideModule
import com.bumptech.glide.integration.okhttp3.OkHttpUrlLoader
import com.bumptech.glide.load.model.GlideUrl
import com.bumptech.glide.modu... |
KMM_example/src/main/java/com/example/kmmExample/android/EncryptionActivity.kt | unknown_repo | kotlin | package com.example.kmmExample.android
import android.os.Bundle
import com.example.kmmExample.Encryption
import com.example.kmmExample.Greeting
import com.example.kmmExample.android.databinding.ActivityEncryptionBinding
import com.example.kmmExample.android.databinding.ActivityMainBinding
class EncryptionActivity :... |
app/src/main/java/com/example/mrokey/besttrip/features/authentication/forgot/ForgotPasswordActivity.kt | unknown_repo | kotlin | package com.example.mrokey.besttrip.features.authentication.forgot
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.View
import android.widget.Button
import android.widget.Toast
import com.example.mrokey.besttrip.R
import kotlinx.android.synthetic.main.activity_forgot_passwo... |
app/src/main/java/me/amitshekhar/ridesharing/ui/maps/MapsActivity.kt | unknown_repo | kotlin | package com.mindorks.ridesharing.ui.maps
import android.app.Activity
import android.content.Intent
import android.content.pm.PackageManager
import android.graphics.Color
import android.os.Bundle
import android.os.Looper
import android.util.Log
import android.view.View
import android.widget.Toast
import androidx.appcom... |
components/archive/impl/src/main/java/com/flipperdevices/archive/impl/composable/page/ArchivePage.kt | unknown_repo | kotlin | package com.flipperdevices.archive.impl.composable.page
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.runtime.Composable
import andr... |
packages/react-native/ReactAndroid/src/main/java/com/facebook/react/touch/ReactHitSlopView.kt | unknown_repo | kotlin | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.react.touch
import android.graphics.Rect
/**
* This interface should be implemented by all [View] subclas... |
play-services-maps/core/mapbox/src/main/kotlin/org/microg/gms/maps/mapbox/AbstractGoogleMap.kt | unknown_repo | kotlin | package org.microg.gms.maps.mapbox
import android.content.Context
import android.location.Location
import android.os.Bundle
import android.util.DisplayMetrics
import android.util.Log
import com.google.android.gms.dynamic.IObjectWrapper
import com.google.android.gms.dynamic.ObjectWrapper
import com.google.android.gms.m... |
populator/coroutine-source-cache/src/main/java/com/cube/fusion/populator/coroutinesourcecache/cache/LruDataCache.kt | unknown_repo | kotlin | package com.cube.fusion.populator.coroutinesourcecache.cache
import android.util.LruCache
/**
* [FusionDataCache] implementation utilising Android [LruCache] to store pages in memory with a maximum size
*
* Created by <NAME> on 10/March/2022.
* Copyright ® 3SidedCube. All rights reserved.
*
* @param cache the L... |
src/main/kotlin/com/ridi/books/helper/view/BindingAdapters.kt | unknown_repo | kotlin | package com.ridi.books.helper.view
import android.graphics.drawable.GradientDrawable
import android.view.View
import android.widget.TextView
import androidx.annotation.ColorInt
import androidx.annotation.Px
import androidx.databinding.BindingAdapter
import com.ridi.books.helper.text.makeSpannedFromHtml
class BindingA... |
examples/imageviewer/shared/src/commonMain/kotlin/example/imageviewer/Dependencies.kt | unknown_repo | kotlin | package example.imageviewer
import androidx.compose.runtime.mutableStateListOf
import androidx.compose.runtime.snapshots.SnapshotStateList
import androidx.compose.runtime.staticCompositionLocalOf
import androidx.compose.ui.graphics.ImageBitmap
import example.imageviewer.filter.PlatformContext
import example.imageviewe... |
app/src/main/java/dev/teogor/ceres/presentation/feature/home/HomeFragment.kt | unknown_repo | kotlin | /*
* Copyright 2022 teogor (<NAME>) 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 applica... |
app/src/main/kotlin/de/marionoll/wgautoconnect/service/NetworkMonitorService.kt | unknown_repo | kotlin | package de.marionoll.wgautoconnect.service
import android.Manifest
import android.app.Notification
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.app.Service
import android.content.Context
import android.content.Intent
import android.conten... |
app/src/main/java/org/mightyfrog/android/s4fd/details/tabcontents/attributes/AttributesAdapter.kt | unknown_repo | kotlin | package org.mightyfrog.android.s4fd.details.tabcontents.attributes
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import com.raizlabs.android.dbflow.sql.language.Select
import org.mightyfrog.android.... |
app/src/main/java/com/utsman/osmapp/MainActivity.kt | unknown_repo | kotlin | package com.utsman.osmapp
import android.graphics.drawable.Drawable
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layo... |
android/src/main/java/com/theoplayer/source/SourceAdapter.kt | unknown_repo | kotlin | package com.theoplayer.source
import android.text.TextUtils
import android.util.Log
import com.facebook.react.bridge.Arguments
import com.google.gson.Gson
import com.theoplayer.android.api.error.THEOplayerException
import com.facebook.react.bridge.ReadableMap
import com.facebook.react.bridge.WritableArray
import com.f... |
app/src/main/java/com/app/moodtrack_android/di/DatabaseModule.kt | unknown_repo | kotlin | package com.app.moodtrack_android.di
import android.content.Context
import androidx.room.Room
import com.app.moodtrack_android.database.AppDatabase
import com.app.moodtrack_android.database.dao.FileDao
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.Applic... |
SceytChatUiKit/src/main/java/com/sceyt/chatuikit/presentation/uicomponents/channels/viewmodels/ChannelsViewModel.kt | unknown_repo | kotlin | package com.sceyt.chatuikit.presentation.uicomponents.channels.viewmodels
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import com.sceyt.chat.models.user.User
import com.sceyt.chatuikit.data.models.LoadKeyData
import com.sceyt.chatuikit.data.models.PaginationResponse
import com.sce... |
app/src/main/java/edu/rosehulman/condrak/roseschedule/RightNowFragment.kt | unknown_repo | kotlin | package edu.rosehulman.condrak.roseschedule
import android.os.Bundle
import android.os.Handler
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import kotlinx.android.synthetic.main.fragment_right_now.view.*
import org.joda.time.LocalTime... |
app/src/main/java/com/example/trendingtimes/ui/activity/ReadNewsActivity.kt | unknown_repo | kotlin | package com.example.trendingtimes.ui.activity
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.webkit.WebView
import androidx.appcompat.widget.Toolbar
import com.example.trendingtimes.R
class ReadNewsActivity : AppCompatActivity() {
companion object {
const val EXTRA... |
components/bridge/dao/impl/src/main/java/com/flipperdevices/bridge/dao/impl/model/FlipperAdditionalFile.kt | unknown_repo | kotlin | package com.flipperdevices.bridge.dao.impl.model
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.ForeignKey
import androidx.room.Index
import androidx.room.PrimaryKey
import com.flipperdevices.bridge.dao.api.model.FlipperFilePath
import java.io.File
@Entity(
tableName = "flipper_f... |
commons/base/src/main/java/com/cactus/commons/base/ViewModelDelegate.kt | unknown_repo | kotlin | /*
* Copyright (c)
* 2018-2021 XP Inc
* All Rights Reserved
*/
package com.cactus.commons.base
import androidx.fragment.app.FragmentActivity
import androidx.lifecycle.ViewModelProvider
import kotlin.properties.ReadWriteProperty
import kotlin.reflect.KClass
import kotlin.reflect.KProperty
class ViewModelDelegate<T... |
app/src/main/java/com/samuelokello/kazihub/presentation/business/Home/state/CreateJobViewModel.kt | unknown_repo | kotlin | package com.samuelokello.kazihub.presentation.business.Home.state
import android.content.Context
import android.widget.Toast
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.samuelokello.kazihub.domain.model.job.category.CategoryResponse
import com.samuelokello.kazihub.domain.mod... |
app/src/main/java/com/example/lanashop/MyApplication.kt | unknown_repo | kotlin | package com.example.lanashop
import android.app.Application
import com.example.lanashop.di.AppModule
import org.koin.android.ext.koin.androidContext
import org.koin.android.ext.koin.androidLogger
import org.koin.core.context.startKoin
import androidx.multidex.MultiDex
class MyApplication : Application() {
over... |
papa/src/main/java/papa/internal/AppStartListener.kt | unknown_repo | kotlin | package tart.internal
import android.content.ContentProvider
import android.content.ContentValues
import android.content.Context
import android.content.pm.ProviderInfo
import android.database.Cursor
import android.net.Uri
/**
* Registered [ContentProvider]s receive their [attachInfo] callback before
* [android.app.... |
Android/app/src/main/java/top/vuhe/android/model/UserViewModel.kt | unknown_repo | kotlin | package top.vuhe.android.model
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import top.vuhe.android.entity.User
object UserViewModel : ViewModel() {
val user
get() = currUser.value!!
private val currUser = MutableLiveData<User>()
init {
currUser.value = Us... |
fragmentation-core-androidx/src/main/java/me/yokeyword/fragmentation/helper/internal/TransactionRecord.kt | unknown_repo | kotlin | package me.yokeyword.fragmentation.helper.internal
import android.view.View
import java.util.ArrayList
/**
* @hide Created by YoKey on 16/11/25.
*/
class TransactionRecord {
var tag: String? = null
var targetFragmentEnter = Integer.MIN_VALUE
var currentFragmentPopExit = Integer.MIN_VALUE
var curren... |
app/src/main/java/com/cataractaction/ui/components/cataractcheck/TextCataract.kt | unknown_repo | kotlin | package com.cataractaction.ui.components.cataractcheck
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.material.MaterialTheme
import androidx.compose.m... |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/filled/FireHydrant.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
... |
testksp/app/src/main/java/com/example/testksp/ui/lc/Tabs.kt | unknown_repo | kotlin | package com.example.testksp.ui.lc
import androidx.compose.material.Tab
import androidx.compose.material.TabRow
import androidx.compose.runtime.Composable
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
|
feature-polkaswap-impl/src/main/kotlin/jp/co/soramitsu/polkaswap/impl/presentation/swap_preview/SwapPreviewFragment.kt | unknown_repo | kotlin | package jp.co.soramitsu.polkaswap.impl.presentation.swap_preview
import android.content.DialogInterface
import android.widget.FrameLayout
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.get... |
Common/src/main/java/cn/githink/common/presenter/AppPresenter.kt | unknown_repo | kotlin | package cn.githink.common.presenter
import android.content.Context
import cn.githink.common.presenter.view.AppView
import com.githink.common.utils.NetWorkUtils
import com.trello.rxlifecycle.LifecycleProvider
import javax.inject.Inject
open class AppPresenter<V:AppView> {
lateinit var mView: V
@Inject
l... |
app/src/main/java/com/yuhang/novel/pirate/ui/main/viewmodel/MeViewModel.kt | unknown_repo | kotlin | package com.yuhang.novel.pirate.ui.main.viewmodel
import android.content.Intent
import android.net.Uri
import android.os.Build
import android.provider.Settings
import androidx.annotation.RequiresApi
import com.tamsiree.rxkit.RxDeviceTool
import com.yuhang.novel.pirate.base.BaseViewModel
import com.yuhang.novel.pirate.... |
app/src/main/java/com/kyberswap/android/domain/usecase/send/ENSResolveUseCase.kt | unknown_repo | kotlin | package com.kyberswap.android.domain.usecase.send
import androidx.annotation.VisibleForTesting
import com.kyberswap.android.domain.SchedulerProvider
import com.kyberswap.android.domain.repository.SwapRepository
import com.kyberswap.android.domain.usecase.SequentialUseCase
import io.reactivex.Single
import javax.inject... |
app/src/main/java/com/app/biometricscanner/application/ApplicationClass.kt | unknown_repo | kotlin | package com.app.biometricscanner.application
import android.app.Activity
import android.app.Application
import android.content.Context
import android.content.Intent
import android.os.Bundle
import com.app.biometricscanner.HelperClass
import com.app.biometricscanner.activities.LockScreenActivity
import com.app.biometri... |
vpn/src/main/java/com/duckduckgo/mobile/android/vpn/blocklist/AppTrackerListUpdateWorker.kt | unknown_repo | kotlin | /*
* Copyright (c) 2021 DuckDuckGo
*
* 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 ... |
baselibrary/src/main/kotlin/com/notch/DefaultNotchScreenSupport.kt | unknown_repo | kotlin | package com.notch
import android.graphics.Rect
import android.view.Window
import java.util.*
/**
* Created by feifan on 2018/6/15.
* Contacts me:<EMAIL>
*/
internal class DefaultNotchScreenSupport : INotchScreenSupport {
override fun hasNotchInScreen(window: Window): Boolean {
val decorView = window.de... |
fragment/fragment/src/main/java/androidx/fragment/app/strictmode/SetUserVisibleHintViolation.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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.