file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
activity/activity-compose/src/androidTest/java/androidx/activity/compose/LocalActivityTest.kt | unknown_repo | kotlin | /*
* Copyright 2024 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... |
canvas2_lp/src/main/java/com/angcyo/canvas2/laser/pecker/dialog/PathPreviewDialogConfig.kt | unknown_repo | kotlin | package com.angcyo.canvas2.laser.pecker.dialog
import android.app.Dialog
import android.content.Context
import android.graphics.Matrix
import android.graphics.Path
import android.graphics.RectF
import androidx.lifecycle.Lifecycle
import com.angcyo.bluetooth.fsc.enqueue
import com.angcyo.bluetooth.fsc.laserpacker.Devic... |
app/src/main/java/com/example/wishlist/MainActivity.kt | unknown_repo | kotlin | package com.example.wishlist
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import android.widget.EditText
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
class MainActivity : AppCompatActivity() {
lat... |
app/src/main/java/com/example/moviecompose/ui/series/genreSeriesList/GenreSeriesDetailViewModel.kt | unknown_repo | kotlin | package com.example.moviecompose.ui.series.genreSeriesList
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.moviecompose.model.entities.Series
import com.example.moviecompose.netwo... |
android/src/main/java/com/detectdocument/DocumentDetector.kt | unknown_repo | kotlin | package com.detectdocument
import com.facebook.react.bridge.WritableMap;
import com.facebook.react.bridge.WritableNativeMap;
import android.graphics.Bitmap
import org.opencv.android.Utils
import org.opencv.core.Core
import org.opencv.core.CvType
import org.opencv.core.Mat
import org.opencv.core.MatOfPoint
import org.o... |
design-system/src/main/kotlin/br/com/stonks/designsystem/components/HeaderLayout.kt | unknown_repo | kotlin | package br.com.stonks.designsystem.components
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material3.HorizontalDivider
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtim... |
app/src/main/java/com/example/inventory/data/AppContainer.kt | unknown_repo | kotlin | /*
* Copyright (C) 2023 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 app... |
app/src/main/java/com/jnfran92/kotcoin/crypto/presentation/CryptoListViewModel.kt | unknown_repo | kotlin | package com.jnfran92.kotcoin.crypto.presentation
import androidx.hilt.lifecycle.ViewModelInject
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.jnfran92.domain.crypto.GetCryptoListUseCase
import com.jnfran92.kotcoin.crypto.presentation.mapper.DomainCryptoToUIMapper
import com.j... |
appAndroid/post/src/main/java/com/gchristov/newsfeed/post/PostActivity.kt | unknown_repo | kotlin | package com.gchristov.newsfeed.post
import android.content.Intent
import android.util.Log
import androidx.activity.viewModels
import androidx.compose.foundation.ScrollState
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.rememberScrollState
i... |
app/src/main/java/com/duckduckgo/app/usage/app/AppDaysUsedDatabaseRepository.kt | unknown_repo | kotlin |
package com.duckduckgo.app.usage.app
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import java.text.SimpleDateFormat
import java.util.*
import java.util.concurrent.Executors
import kotlinx.coroutines.asCoroutineDispatcher
import kotlinx.coroutines.withContext
private va... |
app/src/main/java/com/example/masearch/room/RecentSearchViewModel.kt | unknown_repo | kotlin | package com.example.masearch.room
import android.util.Log
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.masearch.api.vo.RecentSearchVO
import dagger.hilt.android.lifecycle.HiltViewModel
import... |
preferences/src/main/java/com/atanana/currencycompose/preferences/PreferencesProvider.kt | unknown_repo | kotlin | package com.atanana.currencycompose.preferences
import android.content.Context
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.*
import androidx.datastore.preferences.preferencesDataStore
import com.atanana.currencycompose.domain.Currency
import dagger.hilt.android.qualifiers.Applic... |
app/src/main/java/com/absoft/storyViewer/StoryViewerApplication.kt | unknown_repo | kotlin | package com.absoft.storyViewer
import android.app.Application
import com.google.android.exoplayer2.database.ExoDatabaseProvider
import com.google.android.exoplayer2.upstream.cache.LeastRecentlyUsedCacheEvictor
import com.google.android.exoplayer2.upstream.cache.SimpleCache
class StoryViewerApplication : Application()... |
app/src/main/java/com/bsoftwares/myapplication/database/DatabaseEntities.kt | unknown_repo | kotlin | package com.bsoftwares.myapplication.database
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.bsoftwares.myapplication.model.Banner
import com.bsoftwares.myapplication.model.Cart
import com.bsoftwares.myapplication.model.Spotlight
@Entity
data class BannerDB constructor(
@PrimaryKey
val... |
src/main/java/com/library/base/mvpDemo/model/UploadModelImpl.kt | unknown_repo | kotlin | package com.library.base.mvpDemo.model
import android.content.Context
import com.library.base.net.HttpCallback
/**
* 日志上传
* @author : jerome
*/
class UploadModelImpl(context: Context) : BaseModelImpl(context) {
/**
* 上传日志
*
* @param listener
*/
fun uploadErrorData(content: String, li... |
app/src/main/java/com/sawapps/space/views/BaseActivity.kt | unknown_repo | kotlin | package com.sawapps.space.views
import android.os.Bundle
import android.view.View
import androidx.annotation.LayoutRes
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.Navigation
import androidx.navigation.findNavController
import com.sawapps.space.R
import com.sawapps.space.navigation.Naviga... |
kmpalette-core/src/commonMain/kotlin/com/kmpalette/loader/Loader.kt | unknown_repo | kotlin | package com.kmpalette.loader
import androidx.compose.ui.graphics.ImageBitmap
/**
* A default loader that takes an [ImageBitmap] and returns it.
*/
internal val ImageBitmapLoader = object : ImageBitmapLoader<ImageBitmap> {
override suspend fun load(input: ImageBitmap): ImageBitmap = input
}
|
feature/menu/main/src/main/kotlin/com/ngapp/metanmobile/feature/menu/MenuScreen.kt | unknown_repo | kotlin | /*
* Copyright 2024 NGApps Dev (https://github.com/ngapp-dev). 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
*
*... |
app/src/main/java/com/jthou/wanandroidkotlin/viewholder/NavigationRightViewHolder.kt | unknown_repo | kotlin | package com.jthou.wanandroidkotlin.viewholder
import com.google.android.flexbox.FlexboxLayoutManager
import com.jthou.wanandroidkotlin.adapter.NavigationRightChildAdapter
import com.jthou.wanandroidkotlin.data.entity.Navigation
import com.jthou.wanandroidkotlin.databinding.ItemNavigationRightBinding
/**
*
*
* @aut... |
crashyreporter/src/main/java/com/crazylegend/crashyreporter/utils/SharedPreferencesUtil.kt | unknown_repo | kotlin | package com.crazylegend.crashyreporter.utils
import android.content.Context
import android.preference.PreferenceManager
/**
* Created by crazy on 7/20/20 to long live and prosper !
*/
internal object SharedPreferencesUtil {
fun collect(context: Context) =
PreferenceManager.getDefaultSharedPreferen... |
gpu_image/src/main/java/com/alien/gpuimage/filter/TransformFilter.kt | unknown_repo | kotlin | package com.alien.gpuimage.filter
import android.opengl.Matrix
import com.alien.gpuimage.DataBuffer
import com.alien.gpuimage.Size
import java.nio.FloatBuffer
/**
* 可用来移动,缩放,矩阵操作
*/
class TransformFilter : Filter(vertexShader = VERTEX_SHADER) {
companion object {
private const val VERTEX_SHADER =
... |
app/src/main/java/com/example/android/challenge/data/ContentRepository.kt | unknown_repo | kotlin |
package com.example.android.challenge.data
import androidx.paging.LivePagedListBuilder
import com.example.android.challenge.api.ContentsService
import com.example.android.challenge.db.ContentsLocalCache
import com.example.android.challenge.model.ContentBoundaryCallback
import com.example.android.challenge.model.Cont... |
library/bottomsheets/src/main/java/com/nasahapps/mdt/bottomsheets/BottomSheetGridAdapter.kt | unknown_repo | kotlin | package com.nasahapps.mdt.bottomsheets
import android.content.DialogInterface
import android.view.LayoutInflater
import android.view.ViewGroup
/**
* Created by hhasan on 10/14/16.
*/
class BottomSheetGridAdapter(items: List<BottomSheetItem>, dialog: DialogInterface,
listener: BottomShe... |
app/src/main/java/xyz/teamgravity/calendarintegration/presentation/viewmodel/EventAddViewModel.kt | unknown_repo | kotlin | package xyz.teamgravity.calendarintegration.presentation.viewmodel
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.flow.Flow
im... |
app/src/main/java/com/naval/todonotesapp/db/NotesDao.kt | unknown_repo | kotlin | package com.naval.todonotesapp.db
import androidx.room.*
import androidx.room.OnConflictStrategy.REPLACE
@Dao
interface NotesDao {
@Query("SELECT * FROM notesData")
fun getAll():List<Notes>
@Insert(onConflict = REPLACE)
fun insertNote(note:Notes)
@Update
fun updateNote(note:Notes)
@Del... |
app/src/main/java/com/github/skytoph/taski/presentation/habit/create/CreateHabitEvent.kt | unknown_repo | kotlin | package com.github.skytoph.taski.presentation.habit.create
import androidx.compose.runtime.MutableState
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.vector.ImageVector
import com.github.skytoph.taski.presentation.core.state.StringResource
interface CreateHabitEvent {
fun handle(st... |
app/src/main/java/com/skyyo/samples/features/stickyHeaders/StickyHeadersScreen.kt | unknown_repo | kotlin | package com.skyyo.samples.features.stickyHeaders
import androidx.compose.animation.*
import androidx.compose.animation.core.*
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.la... |
app/src/main/java/com/javalon/xpensewhiz/presentation/home_screen/components/AccountTag.kt | unknown_repo | kotlin | package com.javalon.xpensewhiz.presentation.home_screen.components
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Button... |
app/src/main/java/com/example/proiect_jurnal/LoginActivity.kt | unknown_repo | kotlin | package com.example.proiect_jurnal
import android.animation.AnimatorSet
import android.animation.ObjectAnimator
import android.content.ContentValues.TAG
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.Button
import and... |
app/src/main/java/com/rubyhuntersky/deltapie/demo/MainActivity.kt | unknown_repo | kotlin | package com.rubyhuntersky.deltapie.demo
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.util.Log
import android.widget.SeekBar
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?... |
HomeApp/app/src/main/java/com/HomeApp/ui/composables/TextInput.kt | unknown_repo | kotlin | package com.HomeApp.ui.composables
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.text.KeyboardActions
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material.Icon
import androidx.compose.material.Text
import androidx.compose.material.TextFiel... |
app/src/main/java/com/example/keykeeper/view/widget/SideBar.kt | unknown_repo | kotlin | package com.example.keykeeper.view.widget
import android.content.Context
import android.graphics.*
import android.util.AttributeSet
import android.util.Log
import android.view.MotionEvent
import android.view.View
import com.example.keykeeper.R
import kotlin.math.max
class SideBar(context: Context, attributeSet: Attr... |
Android/ghvzApp/app/src/main/java/com/app/playhvz/screens/rules_faq/DisplayCollapsibleSectionViewHolder.kt | unknown_repo | kotlin | /*
* Copyright 2020 Google Inc.
*
* 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 w... |
task1/src/main/java/com/hellofresh/task1/common/Application.kt | unknown_repo | kotlin | package com.hellofresh.task1.common
import android.app.Application
import androidx.lifecycle.LifecycleObserver
import dagger.hilt.android.HiltAndroidApp
/**
* This is the application class for the app.
*/
@HiltAndroidApp
class MyTask1App : Application() {} |
HTTPShortcuts/app/src/main/kotlin/ch/rmy/android/http_shortcuts/scripting/actions/types/OpenAppAction.kt | unknown_repo | kotlin | package ch.rmy.android.http_shortcuts.scripting.actions.types
import android.content.ActivityNotFoundException
import android.content.Context
import ch.rmy.android.framework.extensions.startActivity
import ch.rmy.android.http_shortcuts.R
import ch.rmy.android.http_shortcuts.dagger.ApplicationComponent
import ch.rmy.an... |
app/src/main/java/com/weather/report/ui/list/WeatherListFragment.kt | unknown_repo | kotlin | package com.weather.report.ui.list
import android.os.Bundle
import android.view.View
import androidx.appcompat.widget.SearchView
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.lifecycle.lifecycleScope
import androidx.navigation.fragment.findNavController
import com.weathe... |
android/challenge/ui/setting/NicknameInputActivity.kt | unknown_repo | kotlin | package com.joeware.android.gpulumera.challenge.ui.setting
import android.text.InputFilter
import androidx.databinding.DataBindingUtil
import androidx.lifecycle.Observer
import com.blankj.utilcode.util.ToastUtils
import com.joeware.android.gpulumera.R
import com.joeware.android.gpulumera.base.BaseActivity
import com.j... |
di/di_dagger/di_dagger_permissions/src/main/kotlin/siarhei/luskanau/iot/doorbell/dagger/permissions/PermissionsBuilderModule.kt | unknown_repo | kotlin | package siarhei.luskanau.iot.doorbell.dagger.permissions
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentFactory
import dagger.Module
import dagger.Provides
import javax.inject.Provider
import siarhei.luskanau.iot.doorbell.common.AppNavigation
import siarhei.luskanau.iot.doorbell.dagger.comm... |
app/src/main/java/com/ebner/stundenplan/database/table/subject/SubjectRepository.kt | unknown_repo | kotlin | package com.ebner.stundenplan.database.table.subject
import androidx.lifecycle.LiveData
import com.ebner.stundenplan.database.table.mergedEntities.SubjectTeacherRoom
/**
* Created by raphael on 21.05.2020.
* Stundenplan Created in com.ebner.stundenplan.database.table.subject
*/
class SubjectRepository(
pri... |
foryouandme/src/main/java/com/foryouandme/ui/main/feeds/compose/FeedHeader.kt | unknown_repo | kotlin | package com.foryouandme.ui.main.feeds.compose
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.co... |
app/src/main/java/com/thedefiapp/di/DatabaseModule.kt | unknown_repo | kotlin | package com.thedefiapp.di
import android.content.Context
import com.thedefiapp.data.local.db.AppDatabase
import com.thedefiapp.data.local.db.dao.AddressDao
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.hilt.components.Sin... |
session/presentation/src/test/kotlin/com/delbel/bullscows/session/presentation/won/WonViewModelTest.kt | unknown_repo | kotlin | package com.delbel.bullscows.session.presentation.won
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.lifecycle.Observer
import androidx.lifecycle.SavedStateHandle
import com.delbel.bullscows.game.domain.Game
import com.delbel.bullscows.game.domain.GameId
import com.delbel.bullscows.... |
app/src/main/java/com/rogertalk/roger/models/data/AudioStreamType.kt | unknown_repo | kotlin | package com.rogertalk.roger.models.data
import android.media.AudioManager
enum class AudioStreamType(val intValue: Int) {
EARPIECE(AudioManager.STREAM_VOICE_CALL),
LOUDSPEAKER(AudioManager.STREAM_MUSIC)
} |
Android Application Development using Kotlin/TasksTemplate/app/src/main/java/com/example/tasks/service/repository/PriorityRepository.kt | unknown_repo | kotlin | package com.example.tasks.service.repository
import android.content.Context
import com.example.tasks.R
import com.example.tasks.service.listener.APIListener
import com.example.tasks.service.model.PriorityModel
import com.example.tasks.service.repository.local.TaskDatabase
import com.example.tasks.service.repository.re... |
commonutil/src/main/java/com/wrbug/developerhelper/commonutil/Constant.kt | unknown_repo | kotlin | package com.wrbug.developerhelper.commonutil
import android.os.Build
object Constant {
private const val DATA_MIRROR_DIR = "/data_mirror/data_ce/null/0"
private const val DATA_DIR = "/data/data"
fun getDataDir(packageName: String): String {
return "$dataDir/$packageName"
}
val dataDir by... |
Section 4/Navigation/app/src/main/java/com/navigation/packt/shoppackt/ShopFragment.kt | unknown_repo | kotlin | package com.navigation.packt.shoppackt
import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.navigation.Navigation
import kotlinx.android.synthetic.main.fragment_shop.*
import java.util.*
class ShopFra... |
app/src/androidTest/java/helpers/XPathUtil.kt | unknown_repo | kotlin | package com.privateinternetaccess.android.helpers
import androidx.test.uiautomator.UiObject
import androidx.test.uiautomator.UiSelector
import com.privateinternetaccess.android.core.BaseUiAutomatorClass
import java.io.File
import org.dom4j.Document
import org.dom4j.io.SAXReader
object XPathUtil : BaseUiAutomatorClass... |
keylines/src/main/java/uk/co/barbuzz/keylines/services/OverlayPreference.kt | unknown_repo | kotlin | package uk.co.barbuzz.keylines.services
import android.content.Context
import android.content.SharedPreferences
import android.preference.PreferenceManager
import android.util.TypedValue
import android.view.View
import androidx.annotation.ColorRes
import androidx.annotation.StringRes
import uk.co.barbuzz.keylines.R
im... |
app/src/main/java/com/achawki/sequencetrainer/di/DataModule.kt | unknown_repo | kotlin | package com.achawki.sequencetrainer.di
import android.content.Context
import com.achawki.sequencetrainer.data.AppDatabase
import com.achawki.sequencetrainer.data.SequenceDao
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.h... |
agp-7.1.0-alpha01/tools/base/dynamic-layout-inspector/agent/appinspection/src/main/com/android/tools/agent/appinspection/util/ZipUtils.kt | unknown_repo | kotlin | /*
* Copyright (C) 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
zoomimage-view-coil2-core/src/androidTest/kotlin/com/github/panpf/zoomimage/view/coil2/core/test/CoilZoomImageViewTest.kt | unknown_repo | kotlin | package com.github.panpf.zoomimage.view.coil.core.test
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.view.ViewGroup
import androidx.test.platform.app.InstrumentationRegistry
import coil3.load
import coil3.request.ErrorResult
import coil3.request.SuccessResult
import coil3.... |
app/src/main/java/org/openintents/calendar/sync/BlockstackEvents.kt | unknown_repo | kotlin | package org.openintents.calendar.sync
import android.text.TextUtils
import android.util.Log
import org.blockstack.android.sdk.BlockstackSession
import org.blockstack.android.sdk.Result
import org.blockstack.android.sdk.model.PutFileOptions
import org.json.JSONObject
import org.openintents.calendar.sync.SyncAdapter.Com... |
army-knife-timber/src/main/java/com/eaglesakura/armyknife/timber/StackTraceTree.kt | unknown_repo | kotlin | package com.eaglesakura.armyknife.timber
import android.util.Log
import timber.log.Timber
/**
* Logging with StackTrace.
*
* e.g.)
* init(context: Context) {
* Timber.plant(StackTraceTree())
* }
*
* fun Any.console(msg: String) {
* Timber.d(msg)
* }
*/
class StackTraceTree(
/**
* Back tr... |
app/src/main/java/com/tonyyang/common/itemselector/util/ImageUtils.kt | unknown_repo | kotlin | package com.tonyyang.common.itemselector.util
import android.content.ContentResolver
import android.graphics.Bitmap
import android.graphics.Canvas
import android.graphics.PixelFormat
import android.graphics.drawable.Drawable
import android.net.Uri
import com.tonyyang.common.itemselector.CoreApplication
import java.io.... |
feature/home/src/main/java/com/niyaj/feature/home/components/product/ProductSection.kt | unknown_repo | kotlin | package com.niyaj.feature.home.components.product
import androidx.compose.foundation.clickable
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/honey96dev/homemadeproduct/p4manager/ManagerOrderListFragment.kt | unknown_repo | kotlin | package com.honey96dev.homemadeproduct.p4manager
import android.os.Bundle
import android.os.Handler
import android.os.Message
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.EditText
import android.widget.Toast
impo... |
app/src/main/java/moe/mmf/anni_amp/repo/entities/Cache.kt | unknown_repo | kotlin | package moe.mmf.anni_amp.repo.entities
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity
data class Cache(
@PrimaryKey(autoGenerate = true) val id: Int,
@ColumnInfo val catalog: String,
@ColumnInfo(name = "track_id") val trackId: Int,
@ColumnInfo var c... |
uikit/viewmodels/src/main/java/com/sygic/maps/uikit/viewmodels/navigation/infobar/button/OnInfobarButtonClickListener.kt | unknown_repo | kotlin | /*
* Copyright (c) 2019 <NAME>. All rights reserved.
*
* This project 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 "Software"), to deal
* in the Software without restriction, includin... |
app/src/main/java/com/rafaelds/swapi/ui/views/OfflineView.kt | unknown_repo | kotlin | package com.rafaelds.swapi.ui.views
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.widget.LinearLayout
import com.rafaelds.swapi.R
import com.rafaelds.swapi.databinding.ViewOfflineBinding
class OfflineView @JvmOverloads constructor(context: Context, a... |
android/racehorse/src/main/java/org/racehorse/webview/RacehorseDownloadListener.kt | unknown_repo | kotlin | package org.racehorse.webview
import android.webkit.DownloadListener
import android.webkit.WebView
import org.greenrobot.eventbus.EventBus
/**
* Notifies the host application that a file should be downloaded.
*/
class DownloadStartEvent(
/**
* The full URL to the content that should be downloaded.
*/
... |
app/src/androidTest/java/org/example/matchers/CustomMatchers.kt | unknown_repo | kotlin | package org.example.matchers
import android.text.method.PasswordTransformationMethod
import android.view.View
import android.widget.EditText
import androidx.test.espresso.matcher.BoundedMatcher
import com.google.android.material.textfield.TextInputLayout
import org.hamcrest.Description
import org.hamcrest.Matcher
cla... |
app/src/main/kotlin/com/sanmer/geomag/ui/theme/Theme.kt | unknown_repo | kotlin | package dev.sanmer.sac.ui.theme
import android.graphics.Color
import androidx.activity.ComponentActivity
import androidx.activity.SystemBarStyle
import androidx.activity.enableEdgeToEdge
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Disposabl... |
app/src/main/java/kz/abt/admin/ui/fragment/dialog/TournamentDialog.kt | unknown_repo | kotlin | /*
* Copyright 2018 Vlad Weber-Pflaumer
*
* 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 ag... |
module-book-reader/src/main/java/io/legado/app/ui/book/read/ReadBookViewModel.kt | unknown_repo | kotlin | package io.legado.app.ui.book.read
import android.app.Application
import android.content.Intent
import io.legado.app.App
import io.legado.app.R
import io.legado.app.base.BaseViewModel
import io.legado.app.data.entities.Book
import io.legado.app.data.entities.BookChapter
import io.legado.app.data.entities.SearchBook
im... |
app/src/main/java/sk/demo/notes/MainActivity.kt | unknown_repo | kotlin | package sk.demo.notes
import android.os.Bundle
import android.support.design.widget.Snackbar
import android.support.v7.app.AlertDialog
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.LinearLayoutManager
import android.util.Log
import android.view.LayoutInflater
import android.view.Menu... |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/twotone/Heartsearch.kt | unknown_repo | kotlin | package moe.tlaster.icons.vuesax.vuesaxicons.twotone
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx... |
android/CPU/paddle_mobile_android/app/src/main/java/com/baidu/paddle/data/Images.kt | unknown_repo | kotlin | package com.baidu.paddle.data
import android.os.Environment
import java.io.File
import java.io.IOException
val banana: File
get() {
val assetPath = "pml_demo"
val imagePath = (Environment.getExternalStorageDirectory().toString()
+ File.separator + assetPath)
val tempFile = ... |
presentation/src/main/java/com/semicolon/walkhub/viewmodel/measure/MeasureHomeViewModel.kt | unknown_repo | kotlin | package com.semicolon.walkhub.viewmodel.measure
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.semicolon.domain.entity.exercise.ExerciseRecordEntity
import com.semicolon.domain.entity.exercise.Exercisi... |
app/src/main/java/io/zoemeow/subjectnotifier/service/NewsService.kt | unknown_repo | kotlin | package io.zoemeow.subjectnotifier.service
import android.Manifest
import android.app.AlarmManager
import android.app.PendingIntent
import android.app.Service
import android.content.Context
import android.content.Intent
import android.os.Build
import android.os.IBinder
import android.util.Log
import androidx.core.app.... |
app-kotlin/src/main/kotlin/com/github/pwittchen/reactivenetwork/kotlinapp/MainActivity.kt | unknown_repo | kotlin | package com.github.pwittchen.reactivenetwork.kotlinapp
import android.app.Activity
import android.net.wifi.ScanResult
import android.os.Bundle
import android.util.Log
import android.widget.ArrayAdapter
import com.github.pwittchen.reactivenetwork.library.ReactiveNetwork
import kotlinx.android.synthetic.activity_main.ac... |
app/src/main/java/reflect_database/reflect_view_model.kt | unknown_repo | kotlin | //package reflect_database
//
//import androidx.lifecycle.*
//import kotlinx.coroutines.launch
//import reflect_database.my_entry
//
//class reflect_view_model(private val repository: reflect_repository) : ViewModel() {
//
// val entries: LiveData<List<my_entry>> = repository.getEntries().asLiveData()
//
// fun a... |
app/src/main/java/in/galaxyofandroid/searchablespinner/MainActivity.kt | unknown_repo | kotlin | package `in`.galaxyofandroid.searchablespinner
import `in`.galaxyofandroid.spinnerdialog.Either
import `in`.galaxyofandroid.spinnerdialog.ItemManager
import `in`.galaxyofandroid.spinnerdialog.Right
import `in`.galaxyofandroid.spinnerdialog.SpinnerView
import android.app.Application
import android.content.Intent
import... |
app/src/main/java/com/ericg/sudofiemed/view/OnBoardViewPager.kt | unknown_repo | kotlin | package com.ericg.sudofiemed.view
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.fragment.app.Fragment
import com.ericg.sudofiemed.R
import com.ericg.sudofiemed.adapter.ViewPager2Adapter
impo... |
app/src/main/java/com/azhar/absensi/database/AppDatabase.kt | unknown_repo | kotlin | package com.azhar.absensi.database
import androidx.room.Database
import com.azhar.absensi.model.ModelDatabase
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import com.azhar.absensi.database.dao.DatabaseDao
/**
* Created by <NAME> on 19-11-2021
* Youtube Channel : https://bit.ly/2PJMowZ
* Gi... |
toggles-app/src/main/java/com/izettle/wrench/oss/list/ThirdPartyLicenceMetadataLiveData.kt | unknown_repo | kotlin | package com.izettle.wrench.oss.list
import android.content.Context
import androidx.lifecycle.LiveData
import com.izettle.wrench.oss.LicenceMetadata
import com.izettle.wrench.oss.OssLoading
class ThirdPartyLicenceMetadataLiveData(val context: Context) : LiveData<List<LicenceMetadata>>() {
init {
run {
... |
app/src/main/java/com/githubly/wanandroid/utils/AppUtils.kt | unknown_repo | kotlin | package com.githubly.wanandroid.utils
import android.content.Context
/**
* 类名:AppUtils
* 作者:Yun.Lei
* 功能:
* 创建日期:2018-10-24 10:13
* 修改人:
* 修改时间:
* 修改备注:
*/
object AppUtils {
/**
* 获取版本名称
*
* @param context
* @return
*/
fun getVersionName(context: Context): String {
v... |
app/src/main/java/com/github/tomeees/scrollpickerdemo/ScrollPickerDemoAdapter.kt | unknown_repo | kotlin | package com.github.tomeees.scrollpickerdemo
import android.content.Context
import android.graphics.Color
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
import com.github.tomeees.scrollpick... |
app/src/main/java/com/google/engedu/touringmusician/TourMap.kt | unknown_repo | kotlin | /* Copyright 2016 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
app/src/main/java/com/lxy/responsivelayout/addressbook/ContactsScreen.kt | unknown_repo | kotlin | package com.lxy.responsivelayout.addressbook
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compos... |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/UserQuestion.kt | unknown_repo | kotlin | package com.woowla.compose.icon.collections.tabler.tabler.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector... |
ui/src/main/java/org/amnezia/awg/activity/TvMainActivity.kt | unknown_repo | kotlin | /*
* Copyright © 2017-2023 WireGuard LLC. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package org.amnezia.awg.activity
import android.Manifest
import android.content.ActivityNotFoundException
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
imp... |
app/src/main/java/br/com/livroandroid/carros/extensions/Activity.kt | unknown_repo | kotlin | package com.example.cinqsampleandroid.extensions
import android.app.Activity
import android.util.Log
import android.view.View
import android.widget.Toast
import androidx.annotation.IdRes
import androidx.annotation.StringRes
import androidx.appcompat.app.ActionBar
import androidx.appcompat.app.AppCompatActivity
import... |
study/Study03/app/src/main/java/org/techtown/study03/MainActivity.kt | unknown_repo | kotlin | package org.techtown.study03
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentV... |
app/src/main/java/com/example/unibiz/ViewDataActivity.kt | unknown_repo | kotlin | package com.example.unibiz
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import com.example.unibiz.CalendarItems.DynamicFragment
import com.example.unibiz.Utils.Messages
import kotlinx.android.synthetic.main.list_item_client.*
import ... |
cryptocurrencychallenge/src/main/java/com/yoti/android/cryptocurrencychallenge/asset/AssetViewModel.kt | unknown_repo | kotlin | package com.yoti.android.cryptocurrencychallenge.asset
import androidx.lifecycle.asLiveData
import androidx.lifecycle.viewModelScope
import androidx.paging.*
import com.yoti.android.cryptocurrencychallenge.config.base.BaseViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject
@OptIn(E... |
app/src/main/java/project/gesture/sensorsgesture/MainActivity.kt | unknown_repo | kotlin | package project.gesture.sensorsgesture
import android.Manifest
import android.annotation.SuppressLint
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.graphics.drawable.GradientDrawable
import android.location.Geocoder
import android.os.Bundle
import ... |
app/src/main/java/com/uoooo/simple/example/ui/player/ExoPlayerDrmHelper.kt | unknown_repo | kotlin | package com.uoooo.simple.example.ui.player
import com.google.android.exoplayer2.drm.HttpMediaDrmCallback
import com.google.android.exoplayer2.drm.MediaDrmCallback
import com.google.android.exoplayer2.upstream.HttpDataSource
object ExoPlayerDrmHelper {
fun buildMediaDrmCallback(licenseUrl: String, licenseDataSourc... |
app/src/main/java/spam/blocker/ui/main/test.kt | unknown_repo | kotlin | package spam.blocker.ui.main
import android.content.Context
import android.util.Log
import spam.blocker.def.Def
import spam.blocker.util.Contacts
import spam.blocker.util.Util
class test {
companion object {
fun exec(ctx: Context) {
}
}
} |
app/src/main/java/com/myweather/app/ui/activity/main/MainActivity.kt | unknown_repo | kotlin | package com.myweather.app.ui.activity.main
import android.os.Bundle
import com.myweather.app.R
import com.myweather.app.ui.activity.BasicActivity
import com.myweather.app.utils.setupToolbar
import kotlinx.android.synthetic.main.activity_main.*
class MainActivity : BasicActivity() {
//region Activity Methods
... |
transformers/picasso/src/main/java/jp/wasabeef/transformers/picasso/CropSquareTransformation.kt | unknown_repo | kotlin | package jp.wasabeef.transformers.picasso
import android.graphics.Bitmap
import jp.wasabeef.transformers.core.CropCircle
import jp.wasabeef.transformers.core.bitmapConfig
import kotlin.math.min
/**
* Copyright (C) 2020 Wasabeef
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not u... |
src/main/kotlin/ui/composable/elements/apps/AppCard.kt | unknown_repo | kotlin | package ui.composable.elements.apps
import adb.ApplicationType
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
imp... |
library/src/main/java/wooooooak/com/library/DonutGaugeViewBindingAdapters.kt | unknown_repo | kotlin | package wooooooak.com.library
import androidx.annotation.ColorRes
import androidx.databinding.BindingAdapter
object DonutGaugeViewBindingAdapters {
@BindingAdapter("app:dg_bottom_text")
@JvmStatic
fun setBottomText(view: DonutGaugeView, text: String) {
view.bottomText = text
}
@BindingAd... |
feature/notes-list/ui/core/src/main/kotlin/ru/maksonic/beresta/feature/notes_list/ui/core/card/inidcator/IndicationBottomPanel.kt | unknown_repo | kotlin | package ru.maksonic.beresta.feature.notes_list.ui.core.card.inidcator
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import ru.maksonic.beresta.feature.notes_list.ui.core.card.NoteTagsRow
import ru.maksonic.beresta.feature.tags_list.ui.api.NoteTagUi
/**
* @Author maksonic on 31.10.202... |
common/src/main/java/com/luc/common/model/phonespecs/Hardware.kt | unknown_repo | kotlin | package com.luc.common.model.phonespecs
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
data class Hardware(
val processor: Processor? = null,
val battery: Battery? = null,
val memory: Memory? = null
): Parcelable
|
app/src/main/java/com/petnagy/navigatordemo/modules/onboarding/OnboardingActivity.kt | unknown_repo | kotlin | package com.petnagy.navigatordemo.modules.onboarding
import android.os.Bundle
import androidx.databinding.DataBindingUtil
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProvider
import com.petnagy.navigatordemo.R
import com.petnagy.navigatordemo.databinding.ActivityOnboardingBinding
import com.p... |
projects/ComposeConstraintLayout/app/src/main/java/com/example/constraintlayout/motion/dsl/transition/KeyCyclesDsl.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... |
app/src/main/java/com/example/returnpals/State.kt | unknown_repo | kotlin | package com.example.returnpals
import android.location.Address
import java.time.LocalDate
// TODO: develop backend
enum class PricingPlan {
BRONZE {
override fun toString(): String { return "BRONZE" }
},
SILVER {
override fun toString(): String { return "SILVER" }
},
GOLD {
... |
app/src/main/kotlin/br/com/vitorsalgado/example/features/about/AboutActivity.kt | unknown_repo | kotlin | package br.com.vitorsalgado.example.features.about
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.MenuItem
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.Toolbar
import br.com.vitorsalgado.exampl... |
app/src/main/java/com/example/cleanarchitecturenoteapp/ui/viewmodel/NotesViewModel.kt | unknown_repo | kotlin | package com.example.cleanarchitecturenoteapp.ui.viewmodel
import androidx.compose.runtime.State
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.example.cleanarchitecturenoteapp.data.model.Note
import com.example.cleanarchitecturenot... |
app/src/main/java/com/example/coffee/SizeFragment.kt | unknown_repo | kotlin |
package com.example.coffee
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.fragment.app.activityViewModels
import androidx.navigation.fragment.findNavController
import com.example.coffee.databindin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.