file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
server/src/main/java/ru/tanexc/server/presentation/screen/logs/LogsViewModel.kt | unknown_repo | kotlin | package ru.tanexc.server.presentation.screen.logs
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.Dispatchers
import kotlinx.corout... |
enrolment/src/main/kotlin/za/co/itschools/dev/enrolment/provider/FeatureProvider.kt | unknown_repo | kotlin | package za.co.itschools.dev.enrolment.provider
import android.content.Context
import android.content.Intent
import za.co.itschools.dev.enrolment.component.content.EnrolmentContent
import za.co.itschools.dev.enrolment.component.screen.EnrolmentScreen
import za.co.itschools.dev.navigation.EnrolmentRouter
class FeatureP... |
adapter_extension/src/main/kotlin/com/wuhenzhizao/adapter/extension/stickyHeader/Interceptors.kt | unknown_repo | kotlin | package com.wuhenzhizao.adapter.extension.stickyHeader
import android.view.View
import com.wuhenzhizao.adapter.interfaces.Interceptor
/**
* Created by liufei on 2017/12/3.
*/
interface HeaderViewHolderCreateInterceptor<in VH> : Interceptor<VH> {
/**
* @param holder
*/
fun onCreateHeaderViewHolder(... |
TechConnetive/app/src/main/java/techconnective/herokuapp/com/configuracoes/SettingsDonateFragment.kt | unknown_repo | kotlin | package techconnective.herokuapp.com.configuracoes
import android.annotation.SuppressLint
import android.content.Intent
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.view.animation.AlphaAnimation
i... |
app/src/main/java/com/chydee/lacasadepapel/ui/game/GameFragment.kt | unknown_repo | kotlin | package com.chydee.lacasadepapel.ui.game
import android.animation.Animator
import android.content.Context
import android.os.Bundle
import android.os.VibrationEffect
import android.os.Vibrator
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androi... |
sms/src/main/java/com/beeper/sms/extensions/ContentResolverExtensions.kt | unknown_repo | kotlin | package com.beeper.sms.extensions
import android.content.ContentResolver
import android.content.ContentValues.TAG
import android.database.Cursor
import android.database.sqlite.SQLiteException
import android.net.Uri
import androidx.core.database.getStringOrNull
import com.beeper.sms.BuildConfig
import com.beeper.sms.Lo... |
app/src/main/kotlin/com/mitch/my_unibo/ui/exams/components/TakenExamsButton.kt | unknown_repo | kotlin | package com.mitch.my_unibo.ui.exams.components
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.com... |
app/src/main/kotlin/com/mitch/my_unibo/ui/exams/components/TakenExamsButton.kt | unknown_repo | kotlin | package com.mitch.my_unibo.ui.exams.components
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.com... |
app/src/main/java/com/app/skyss_companion/repository/BookmarkedStopGroupRepository.kt | unknown_repo | kotlin | package com.app.skyss_companion.repository
import androidx.annotation.WorkerThread
import com.app.skyss_companion.dao.BookmarkedStopGroupDao
import com.app.skyss_companion.dao.StopGroupDao
import com.app.skyss_companion.model.BookmarkedStopGroup
import com.app.skyss_companion.model.StopGroup
import kotlinx.coroutines.... |
app/src/main/java/com/ready/lolchamps/ui/main/MainViewModel.kt | unknown_repo | kotlin | package com.ready.lolchamps.ui.main
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.ready.lolchamps.model.Champion
import com.ready.lolchamps.repository.MainRepository
import com.ready.lolchamps.ui.base.UiState
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.co... |
app/src/main/java/com/ved/glide/PickerGlideImageLoader.kt | unknown_repo | kotlin | package com.ved.glide
import android.app.Activity
import android.util.Log
import android.widget.ImageView
import com.bumptech.glide.Glide
import com.pic.picker.loader.ImageLoader
/**
* Glide封装使用 图片选择库使用
*/
class PickerGlideImageLoader : ImageLoader {
fun displayImage(path: Any?, imageView: ImageView?) {
... |
presentation/src/main/java/org/lotka/xenonx/presentation/extension/ContextExt.kt | unknown_repo | kotlin | package org.lotka.xenonx.presentation.extension
import android.content.ContentUris
import android.content.Context
import android.net.Uri
import android.os.Environment
import android.provider.DocumentsContract
import android.provider.MediaStore
import android.util.Log
import org.lotka.xenonx.domain.util.util.FileUtil
i... |
app/src/main/java/com/example/woof/ui/components/Images.kt | unknown_repo | kotlin | package com.example.woof.ui.components
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.dimensionResource
import android... |
app/src/main/java/com/hoc/comicapp/ui/home/NewestAdapter.kt | unknown_repo | kotlin | package com.hoc.comicapp.ui.home
import android.view.ViewGroup
import androidx.recyclerview.widget.ListAdapter
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.load.resource.drawable.DrawableTransitionOptions
import com.hoc.comicapp.GlideRequests
import com.hoc.comicapp.R
import com.hoc.comic... |
app/src/main/java/com/revature/findlawyer/data/room_database/UserTable.kt | unknown_repo | kotlin | package com.revature.findlawyer.data.room_database
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.revature.findlawyer.data.room_database.Appointment
@Entity(tableName = "user")
data class UserTable (
@PrimaryKey(autoGenerate = false)
var username:String... |
app/src/main/java/com/example/sunkai/heritage/logic/CollectionHandler.kt | unknown_repo | kotlin | package com.example.sunkai.heritage.logic
import androidx.lifecycle.LiveData
import com.example.sunkai.heritage.database.dao.CollectionDao
import com.example.sunkai.heritage.database.entities.Collection
import com.example.sunkai.heritage.tools.EHeritageApplication
import kotlinx.coroutines.GlobalScope
import kotlinx.c... |
app/src/main/kotlin/com/thekhaeng/materialstyletemplate/widgets/PreCachingLayoutManager.kt | unknown_repo | kotlin | package com.thekhaeng.materialstyletemplate.widgets
import android.content.Context
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
/**
* Created by「 <NAME> 」on 12 May 2018 :)
*/
class PreCachingLayoutManager : LinearLayoutManager {
companion object {
... |
common/src/main/java/com/future/common/CommonViewModel.kt | unknown_repo | kotlin | package com.future.common
import android.os.Bundle
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
class CommonViewModel : ViewModel() {
companion object {
const val FRAG_IMAGE_DETAIL = "FRAG_IMAGE_DETAIL"
const val FRAG_MOVIE_DETAIL = "FRAG_MOVIE_DETAIL"
c... |
app/src/main/java/com/deliveryhero/godroid/tech/exam/core/ViewModelFactory.kt | unknown_repo | kotlin | package com.deliveryhero.godroid.tech.exam.core
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import javax.inject.Inject
import javax.inject.Provider
class ViewModelFactory @Inject constructor(
private val creators: Map<Class<out ViewModel>, @JvmSuppressWildcards Provider<ViewMod... |
wear/compose/compose-foundation/src/main/java/androidx/wear/compose/foundation/Expandable.kt | unknown_repo | kotlin | /*
* Copyright 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
app/app/src/main/java/com/seljabali/practiceproblems/ui/stocks/StocksFragment.kt | unknown_repo | kotlin | package com.seljabali.practiceproblems.ui.stocks
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.seljabali.practiceproblems.BaseFragment
import com.seljabali.practiceproblems.R
import kotlinx.android.synthetic.main.fragment_stocks.*
class S... |
app/src/main/java/com/example/githubuserapp/model/SearchUsersResponse.kt | unknown_repo | kotlin | package com.example.githubuserapp.model
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
@Parcelize
data class SearchUsersResponse(
val totalCount: Int? = null,
val incompleteResults: Boolean? = null,
val items: ArrayList<UserItem>
) : Parcelable |
app/src/main/java/com/marcouberti/video/playground/ui/gllights/shape/TwoSphere.kt | unknown_repo | kotlin | package com.marcouberti.video.playground.ui.gllights.shape
import android.opengl.GLES32
import com.marcouberti.video.playground.checkGlError
import com.marcouberti.video.playground.ui.gllights.loadShader
import java.nio.ByteBuffer
import java.nio.ByteOrder
import java.nio.FloatBuffer
import java.nio.IntBuffer
import j... |
app/src/main/java/com/muzzley/app/profiles/RecipeInteractor.kt | unknown_repo | kotlin | package com.muzzley.app.profiles
import android.content.Context
import android.net.ConnectivityManager
import com.muzzley.R
import com.muzzley.app.recipes.RecipeView
import com.muzzley.model.discovery.*
import com.muzzley.services.NetworkInfoService
import com.muzzley.services.UPnPService
import com.muzzley.services.U... |
data/src/main/java/com/gemidroid/data/datasource/localdb/converters/WeatherTypeConverter.kt | unknown_repo | kotlin | package com.gemidroid.data.datasource.localdb.converters
import androidx.room.TypeConverter
import com.gemidroid.data.datasource.localdb.entities.WeatherEntity
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
class WeatherTypeConverter {
@TypeConverter
fun fromEntity(value: WeatherEntity?)... |
app/src/main/java/com/example/cupcake/widget/BoxButtonWidget.kt | unknown_repo | kotlin | package com.example.cupcake.widget
import android.content.Context
import android.content.res.Resources
import android.util.AttributeSet
import android.view.View
import android.widget.CheckBox
import android.widget.LinearLayout
import android.widget.RadioButton
import androidx.annotation.NonNull
import androidx.annotat... |
app/src/androidTest/java/com/wei/amazingtalker/ui/NavigationUiRobot.kt | unknown_repo | kotlin |
import androidx.annotation.StringRes
import androidx.compose.foundation.layout.BoxWithConstraints
import androidx.compose.material3.windowsizeclass.ExperimentalMaterial3WindowSizeClassApi
import androidx.compose.material3.windowsizeclass.WindowSizeClass
import androidx.compose.ui.test.assertIsDisplayed
import androidx... |
app/src/androidTest/java/com/wei/amazingtalker/ui/NavigationUiRobot.kt | unknown_repo | kotlin |
import androidx.annotation.StringRes
import androidx.compose.foundation.layout.BoxWithConstraints
import androidx.compose.material3.windowsizeclass.ExperimentalMaterial3WindowSizeClassApi
import androidx.compose.material3.windowsizeclass.WindowSizeClass
import androidx.compose.ui.test.assertIsDisplayed
import androidx... |
libraries/compose/src/main/java/de/schnettler/scrobbler/compose/widget/Spacer.kt | unknown_repo | kotlin | package de.schnettler.scrobbler.compose.widget
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.width
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.Dp
import androidx.compose.foundation.layout.Spacer as ComposeSp... |
app/src/main/java/inc/grayherring/com/thedavidmedinashowapp/ui/pooptracking/detail/PoopDetailFragment.kt | unknown_repo | kotlin | package inc.grayherring.com.thedavidmedinashowapp.ui.pooptracking.detail
import android.os.Bundle
import android.view.LayoutInflater
import android.view.Menu
import android.view.MenuInflater
import android.view.MenuItem
import android.view.View
import android.view.ViewGroup
import android.view.animation.AnticipateOver... |
health/connect/connect-client/src/test/java/androidx/health/connect/client/request/AggregateGroupByPeriodRequestTest.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... |
lib/src/main/java/com/vander/scaffold/ui/widget/InfiniteScrollDecoration.kt | unknown_repo | kotlin | package com.vander.scaffold.ui.widget
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.Rect
import android.graphics.drawable.Animatable
import android.graphics.drawable.Drawable
import android.support.v4.content.C... |
download/src/main/java/cn/a10miaomiao/download/DownloadBinder.kt | unknown_repo | kotlin | package cn.a10miaomiao.download
import android.os.Binder
class DownloadBinder(
var downloadService: DownloadService
) : Binder() |
app/src/main/java/me/lx/rv/loadmore/LoadMoreTestAdapter.kt | unknown_repo | kotlin | package me.lx.rv.loadmore
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
/**
* author: luoXiong
* e-mail: 382060748@qq.com
* date: 2019/12/31 21:14
* version: 1.0
* desc:
*/
class LoadMoreTestAdapter(var innerAdapter:RecyclerView.Adapter<RecyclerView.ViewHolder>): RecyclerVi... |
core/src/main/kotlin/org/mock/duck/smartlog/core/SmartLog.kt | unknown_repo | kotlin | package org.mock.duck.smartlog.core
import android.os.StrictMode
import android.util.Log
class SmartLog {
var config: Config? = null
fun configure(message: String, logMode: LogMode, printer: Printer, isStrictMode: Boolean) {
config = Config(message, logMode, printer, isStrictMode)
if (config... |
android/src/main/kotlin/com/mastercard/compass/cp3/lib/flutter_wrapper/route/UserRegistrationAPIRoute.kt | unknown_repo | kotlin | package com.mastercard.compass.cp3.lib.flutter_wrapper.route
import android.app.Activity
import android.content.Intent
import android.util.Log
import androidx.compose.material3.ButtonDefaults
import com.mastercard.compass.base.ResponseStatus
import com.mastercard.compass.cp3.lib.flutter_wrapper.AdditionalInfo
import c... |
AnimationComposeLibrary/src/main/java/com/joyner/animationcomposelibrary/color/AlphaAnimation.kt | unknown_repo | kotlin | package com.joyner.animationcomposelibrary.color
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import com.joyner.animationcomposelibrary.core.DefaultValuesAnimation
import com.joyner.animationcomposelibrary.core.getAnimati... |
app/src/main/java/com/tolib/weather/ui/WeatherAppPreferences.kt | unknown_repo | kotlin | package com.tolib.weather.ui
import android.content.Context
import com.google.gson.Gson
import com.tolib.weather.DEFAULT_CITY
import com.tolib.weather.DEFAULT_UNIT
import com.tolib.weather.data.model.ForecastResponse
import com.tolib.weather.data.model.WeatherResponse
class WeatherAppPreferences(private val context: ... |
solar/src/main/java/com/chiksmedina/solar/outline/homefurniture/Condicioner.kt | unknown_repo | kotlin | package com.chiksmedina.solar.outline.homefurniture
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCa... |
app/src/main/java/com/example/flixster_app/MoviesFragment.kt | unknown_repo | kotlin | package com.example.flixster_app
import android.app.AlertDialog
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.core.widget.ContentLoadingProgressBar
import androidx.fragment.app.Fragm... |
app/src/main/java/com/example/digiit/navigationlogin/HomeLogin.kt | unknown_repo | kotlin | package com.example.digiit.navigationlogin
import android.widget.Toast
import androidx.compose.foundation.*
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.*
import androidx.compose.runtime.Composable
import androidx.compose.runti... |
app/src/main/java/com/wireguard/android/util/AuthenticationResult.kt | unknown_repo | kotlin | /*
* Copyright © 2017-2019 WireGuard LLC.
* Copyright © 2018-2019 <NAME> <<EMAIL>>. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package com.wireguard.android.util
import androidx.biometric.BiometricPrompt
internal sealed class AuthenticationResult {
internal data class Success(val cryptoObje... |
app/src/main/java/es/kix2902/santoral/ui/main/MainPresenter.kt | unknown_repo | kotlin | package es.kix2902.santoral.ui.main
import android.text.format.DateUtils
import es.kix2902.santoral.data.DataRepository
import java.util.*
class MainPresenter(private val view: MainActivity) {
private val repository = DataRepository.getInstance(view)
private var calendar = Calendar.getInstance()
fun l... |
app/src/main/java/com/example/todoapp/ui/util/components/AppDivider.kt | unknown_repo | kotlin | package com.example.todoapp.ui.util.components
import androidx.compose.material.Divider
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import com.example.todoapp.ui.util.theme.ExtendedTheme
@Composable
fun AppDivider(modifier: Modifier = Modifier) {
... |
presentation/src/main/kotlin/io/petros/prices/presentation/di/dagger/AppModule.kt | unknown_repo | kotlin | package io.petros.prices.presentation.di.dagger
import android.content.Context
import dagger.Module
import dagger.Provides
import io.petros.prices.data.di.dagger.NetworkModule
import io.petros.prices.data.di.dagger.RepositoriesModule
import io.petros.prices.data.di.dagger.SchedulersModule
import io.petros.prices.prese... |
app/src/main/java/com/liangguo/cameraxcomposedemo/logic/ViewState.kt | unknown_repo | kotlin | package com.liangguo.cameraxcomposedemo.logic
import androidx.camera.core.ImageCapture.FLASH_MODE_OFF
import androidx.camera.core.ZoomState
import androidx.compose.runtime.mutableStateListOf
import androidx.lifecycle.MutableLiveData
import kotlinx.coroutines.flow.MutableStateFlow
/**
* @author ldh
*
* Compose界面的数... |
app/composeapp/src/main/java/com/xanthenite/isining/composeapp/utils/NetworkUtils.kt | unknown_repo | kotlin | package com.xanthenite.isining.composeapp.utils
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.platform.LocalContext
import com.xanthenite.isining.core.connectivity.ConnectionState
import com.xanthenite.isining.utils.connectivityManager
import com.xanthen... |
lib-gson/src/main/java/net/codefeet/lemmyandroidclient/gen/types/ModRemoveCommentView.kt | unknown_repo | kotlin | package net.codefeet.lemmyandroidclient.gen.types
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.parcelize.Parcelize
@Parcelize
public data class ModRemoveCommentView(
@SerializedName("mod_remove_comment")
public val modRemoveComment: ModRemoveComment,
public val m... |
safearea/src/commonMain/kotlin/moe/tlaster/safearea/SafeArea.kt | unknown_repo | kotlin | package moe.tlaster.safearea
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.WindowInsets... |
extensions/colormath-ext-jetpack-compose/src/androidUnitTest/kotlin/com/github/ajalt/colormath/extensions/android/colorint/ComposeColorExtensionsTest.kt | unknown_repo | kotlin | package com.github.ajalt.colormath.extensions.android.colorint
import androidx.compose.ui.graphics.Color
import org.junit.Assert.*
import org.junit.runner.RunWith
import org.robolectric.RobolectricTestRunner
import org.robolectric.annotation.Config
import com.github.ajalt.colormath.extensions.android.composecolor.toCo... |
app/src/main/java/com/museum/barbershop/Adapter/ReviewAdapter.kt | unknown_repo | kotlin | package com.museum.barbershop.Adapter
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.museum.barbershop.Modul.ReviewData
import com.museum.barbershop.R
cl... |
lattekit-core/src/main/java/io/lattekit/view/LatteImageView.kt | unknown_repo | kotlin | package io.lattekit.view
import android.content.Context
import android.graphics.*
import android.graphics.drawable.Drawable
import android.view.View
import android.widget.ImageView
import com.bumptech.glide.Glide
import com.bumptech.glide.load.Key
/**
* Created by maan on 2/15/16.
*/
class LatteImageView : NativeVi... |
app/src/main/java/id/ihwan/jetpackpro/data/source/local/FavoriteDatabase.kt | unknown_repo | kotlin | package id.ihwan.jetpackpro.data.source.local
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import id.ihwan.jetpackpro.data.source.remote.network.response.ResultsData
@Database(entities = [ResultsData::class], version = 1)
abstract class Favor... |
src/main/kotlin/dev/psiae/mltoolbox/composeui/main/MainScreen.kt | unknown_repo | kotlin | package dev.psiae.mltoolbox.composeui.main
import androidx.compose.animation.animateColorAsState
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animation.core.spring
import androidx.compose.animation.core.tween
import androidx.compose.foundation.*
import androidx.compose.foundation.... |
features/home/home-impl/src/commonMain/kotlin/io/spherelabs/homeimpl/ui/HomeScreen.kt | unknown_repo | kotlin | package io.spherelabs.homeimpl.ui
import androidx.compose.animation.animateColorAsState
import androidx.compose.animation.animateContentSize
import androidx.compose.animation.core.animateDp
import androidx.compose.animation.core.spring
import androidx.compose.animation.core.updateTransition
import androidx.compose.fou... |
KCleanArchitectureApp/appdagger/src/main/java/com/woowrale/kcleanarchitecture/ui/details/DetailsViewModel.kt | unknown_repo | kotlin | package com.woowrale.kcleanarchitecture.ui.details
import androidx.lifecycle.ViewModel
import javax.inject.Inject
class DetailsViewModel @Inject constructor() : ViewModel() |
plugin/core/src/test/resources/path.kt | unknown_repo | kotlin | package io.github.irgaly.compose.vector.test.image
import androidx.compose.foundation.Image
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vect... |
presentation/src/main/java/com/sms/presentation/main/ui/teacher_registration/bottomsheet/PositionSelectorBottomSheet.kt | unknown_repo | kotlin | package com.sms.presentation.main.ui.teacher_registration.bottomsheet
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.material.ModalBottomSheetState
import androidx.compose.runtime.Composable
import androidx.compose.runtime.rememberCor... |
toggles-app/src/main/java/se/eelde/toggles/TogglesUriMatcher.kt | unknown_repo | kotlin | package se.eelde.toggles
import android.content.UriMatcher
import com.izettle.wrench.core.WrenchProviderContract
class TogglesUriMatcher private constructor() {
companion object {
internal const val CURRENT_CONFIGURATION_ID = 1
internal const val CURRENT_CONFIGURATION_KEY = 2
internal cons... |
app/src/main/java/com/maji/mvvm/demo/utils/FileUtils.kt | unknown_repo | kotlin | package com.maji.mvvm.demo.utils
import android.os.Environment
import com.maji.mvvm.demo.MJApp
import java.io.File
/**
*
* <p>
* Created by android_ls on 2020/12/25 17:44.
*
* @author android_ls
* @version 1.0
*/
object FileUtils {
/**
* 应用程序相关文件存放的根目录
*/
private const val ROOT_DIR_NAME = "M... |
app/src/main/kotlin/by/kirich1409/grsuschedule/app/SpiceRecyclerViewFragment.kt | unknown_repo | kotlin | package by.kirich1409.grsuschedule.app
import android.os.Bundle
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
/**
* Created by kirillrozov on 9/25/15.
*/
public open class SpiceRecyclerViewFragment : SpiceFragment() {
val... |
compose/src/main/java/cl/emilym/form/compose/FormConfig.kt | unknown_repo | kotlin | package cl.emilym.form.compose
import androidx.annotation.DrawableRes
import androidx.annotation.PluralsRes
import androidx.compose.foundation.layout.RowScope
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtim... |
feature/folder-detail/android/src/main/java/br/alexandregpereira/hunter/folder/detail/FolderDetailViewState.kt | unknown_repo | kotlin | /*
* Copyright 2022 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writi... |
mvrx/src/main/kotlin/com/airbnb/mvrx/MvRxExtensions.kt | unknown_repo | kotlin | package com.airbnb.mvrx
import androidx.annotation.RestrictTo
import androidx.annotation.RestrictTo.Scope.LIBRARY
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.lifecycle.ViewModelProviders
import kotlin.properties.ReadOnlyProperty
import kotlin.reflect.KClass
impor... |
compose/ui/ui/src/uikitMain/kotlin/androidx/compose/ui/platform/Accessibility.uikit.kt | unknown_repo | kotlin | /*
* Copyright 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
app/src/androidTest/java/com/example/dungeontest/composables/AddRemoveEdgeDialogTest.kt | unknown_repo | kotlin | package com.example.dungeontest.composables
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.mutableStateOf
import androidx.compose.ui.test.assertCountEquals
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.assertIsEnabled
import androidx.compose.ui.test.ass... |
app/src/main/java/bg/dabulgaria/tibroish/presentation/ui/violation/list/ViolationsListPresenter.kt | unknown_repo | kotlin | package bg.dabulgaria.tibroish.presentation.ui.violation.list
import android.os.Bundle
import bg.dabulgaria.tibroish.domain.organisation.ITiBroishRemoteRepository
import bg.dabulgaria.tibroish.domain.providers.ILogger
import bg.dabulgaria.tibroish.domain.violation.IViolationRepository
import bg.dabulgaria.tibroish.dom... |
app/src/main/java/bg/dabulgaria/tibroish/presentation/ui/violation/list/ViolationsListPresenter.kt | unknown_repo | kotlin | package bg.dabulgaria.tibroish.presentation.ui.violation.list
import android.os.Bundle
import bg.dabulgaria.tibroish.domain.organisation.ITiBroishRemoteRepository
import bg.dabulgaria.tibroish.domain.providers.ILogger
import bg.dabulgaria.tibroish.domain.violation.IViolationRepository
import bg.dabulgaria.tibroish.dom... |
src/src/main/java/com/online/course/ui/widget/UserRegistrationDialog.kt | unknown_repo | kotlin | package com.online.course.ui.widget
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 com.google.gson.Gson
import com.online.course.R
import com.online.course.databinding.DialogUserRegis... |
app/src/main/java/com/example/football/presentation/view/composable/StandingsCombinedScreen.kt | unknown_repo | kotlin | package com.example.football.presentation.view.composable
import androidx.compose.animation.AnimatedContent
import androidx.compose.foundation.layout.Arrangement.spacedBy
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
imp... |
morse/src/main/java/com/mridx/morse/element/SearchBar.kt | unknown_repo | kotlin | package com.mridx.morse.element
import android.content.Context
import android.util.AttributeSet
import android.view.KeyEvent
import android.view.LayoutInflater
import androidx.appcompat.widget.LinearLayoutCompat
import com.mridx.morse.databinding.SearchBarBinding
class SearchBar : LinearLayoutCompat {
private v... |
app/src/main/java/com/roverdream/kothub/ui/detail/DetailViewModel.kt | unknown_repo | kotlin | package com.roverdream.kothub.ui.detail
import com.roverdream.kothub.data.remote.model.Repo
import com.roverdream.kothub.ui.base.AbstractViewModel
import javax.inject.Inject
class DetailViewModel @Inject constructor(val repo: Repo) : AbstractViewModel() {
fun getName() = repo.fullName
fun getDescription() =... |
instrumented/integration/src/androidTest/kotlin/com/datadog/android/sdk/integration/log/EndToEndLogTest.kt | unknown_repo | kotlin | /*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2016-Present Datadog, Inc.
*/
package com.datadog.android.sdk.integration.log
import android.os.Bu... |
instrumented/integration/src/androidTest/kotlin/com/datadog/android/sdk/integration/log/EndToEndLogTest.kt | unknown_repo | kotlin | /*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2016-Present Datadog, Inc.
*/
package com.datadog.android.sdk.integration.log
import android.os.Bu... |
play-services-maps-core-mapbox/src/main/kotlin/org/microg/gms/maps/mapbox/model/Polyline.kt | unknown_repo | kotlin | /*
* Copyright (C) 2019 microG Project Team
*
* 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 o... |
ui/src/main/java/com/theoplayer/android/ui/LanguageMenuButton.kt | unknown_repo | kotlin | package com.theoplayer.android.ui
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.material3.Icon
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.unit.dp
/**
* A button that opens t... |
app/src/main/java/com/example/swiftpay/ui/screens/sign_up/SignUpScreen.kt | unknown_repo | kotlin | package com.example.swiftpay.ui.screens.sign_up
import android.content.res.Configuration.UI_MODE_NIGHT_YES
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import a... |
app/src/main/java/com/example/anywherefitness/ui/RegisterActivity.kt | unknown_repo | kotlin | package com.example.anywherefitness.ui
import android.app.Activity
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Toast
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProviders
import com.example.anywherefitness.R
impo... |
core/src/main/kotlin/com/redmadrobot/debug/core/plugin/Plugin.kt | unknown_repo | kotlin | package com.redmadrobot.debug.core.plugin
import androidx.compose.runtime.Composable
import com.redmadrobot.debug.core.DebugEvent
import com.redmadrobot.debug.core.DebugPanelInstance
import com.redmadrobot.debug.core.internal.CommonContainer
import com.redmadrobot.debug.core.internal.PluginDependencyContainer
public ... |
app/src/main/java/io/github/aloussase/calculator/repository/CalculatorRepository.kt | unknown_repo | kotlin | package io.github.aloussase.calculator.repository
import android.util.Log
import io.github.aloussase.calculator.api.MathApi
import io.github.aloussase.calculator.api.MathApiRequestBody
import io.github.aloussase.calculator.data.HistoryItem
import io.github.aloussase.calculator.database.HistoryDatabase
class Calculato... |
app/src/main/java/ph/mart/shopmart/ui/signup/SignupFragment.kt | unknown_repo | kotlin | package ph.mart.shopmart.ui.signup
import android.os.Bundle
import android.view.View
import androidx.core.view.isVisible
import androidx.core.widget.addTextChangedListener
import androidx.fragment.app.activityViewModels
import androidx.fragment.app.viewModels
import androidx.lifecycle.Observer
import ph.mart.shopmart.... |
kadamy_delivery_user_android/app/src/main/java/com/kadamy/customer/activity/ImageSliderActivity.kt | unknown_repo | kotlin | package com.kadamy.customer.activity
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import androidx.viewpager.widget.PagerAdapter
import androidx.viewpager.widget.ViewPager
import com.kadamy.customer.R
import com.... |
app/src/main/java/eu/zimbelstern/tournant/data/Ingredient.kt | unknown_repo | kotlin | package eu.zimbelstern.tournant.data
import android.os.Parcelable
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.ForeignKey
import androidx.room.PrimaryKey
import com.squareup.moshi.JsonClass
import eu.zimbelstern.tournant.getNumberOfDigits
import eu.zimbelstern.tournant.roundToNDigit... |
codebase/android/feature/accounts/src/main/java/com/makeappssimple/abhimanyu/financemanager/android/feature/accounts/add_account/screen/AddAccountScreen.kt | unknown_repo | kotlin | package com.makeappssimple.abhimanyu.financemanager.android.feature.accounts.add_account.screen
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.isImeVisible
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose... |
app/src/main/java/com/nonetxmxy/mmzqfxy/view/NotifyFragment.kt | unknown_repo | kotlin | package com.nonetxmxy.mmzqfxy.view
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.fragment.app.viewModels
import com.nonetxmxy.mmzqfxy.base.BaseFragment
import com.nonetxmxy.mmzqfxy.databinding.FragmentNotifyBinding
import com.nonetxmxy.mmzqfxy.viewmodel.NotifyViewModel
import dagger.... |
androidApp/src/main/java/com/gplay/app/feature/home/HomeViewModel.kt | unknown_repo | kotlin | package com.gplay.app.feature.home
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.PagingData
import androidx.paging.cachedIn
import com.gplay.compose.uikit.util.paging.OffsetPagingSource
import com.gpl... |
app/src/main/java/com/tuk/lightninggathering/NaviActivity.kt | unknown_repo | kotlin | import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import com.tuk.lightninggathering.*
import com.tuk.lightninggathering.databinding.ActivityNaviBinding
private const val TAG_LIKE = "like_fragment"
private const va... |
app/src/main/java/com/twobbble/view/activity/BaseActivity.kt | unknown_repo | kotlin | package com.twobbble.view.activity
import android.content.Context
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.util.DisplayMetrics
import com.twobbble.presenter.BasePresenter
import com.twobbble.tools.QuickSimpleIO
import com.twobbble.view.dialog.DialogManager
import uk.co.ch... |
app/src/main/java/cloud/veezee/android/utils/TrackMenu.kt | unknown_repo | kotlin | package cloud.veezee.android.utils
import android.app.AlertDialog
import android.content.Context
import android.content.Intent
import android.graphics.Bitmap
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.graphics.drawable.Drawable
import android.os.Handler
import android.o... |
app/src/main/java/com/coder/ffmpegtest/base/BaseDialog.kt | unknown_repo | kotlin | package com.coder.ffmpegtest.base
import android.app.Activity
import android.content.Context
import android.content.DialogInterface
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.view.*
import android.view.inputmethod.InputMethodManager
import androidx.annotation.IdRes
import an... |
easywaylocation/src/main/java/com/example/easywaylocation/draw_path/PolylineBean.kt | unknown_repo | kotlin | package com.example.easywaylocation.draw_path
import com.google.android.gms.maps.model.Polyline
data class PolylineBean(val foreground:Polyline?,val backPolyline: Polyline?) |
app/src/main/java/com/wenjian/wanandroid/ui/home/HomeFragment.kt | unknown_repo | kotlin | package com.wenjian.wanandroid.ui.home
import android.os.Bundle
import android.view.View
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter
import com.wenjian.wanandroid.R
import com.wenjian.wanandroid.base.BaseFragment
import kotlinx.an... |
app/src/main/java/com/challenge/itunes/data/repository/ItunesRepository.kt | unknown_repo | kotlin | package com.challenge.itunes.data.repository
import androidx.lifecycle.LiveData
import com.challenge.itunes.data.model.RecoMoviesResponse
import com.challenge.itunes.data.model.RecoMoviesResponseResult
import com.challenge.itunes.data.model.TrendMoviesResponse
import com.challenge.itunes.data.model.TrendMoviesResponse... |
app/src/main/java/com/challenge/itunes/data/repository/ItunesRepository.kt | unknown_repo | kotlin | package com.challenge.itunes.data.repository
import androidx.lifecycle.LiveData
import com.challenge.itunes.data.model.RecoMoviesResponse
import com.challenge.itunes.data.model.RecoMoviesResponseResult
import com.challenge.itunes.data.model.TrendMoviesResponse
import com.challenge.itunes.data.model.TrendMoviesResponse... |
app/src/main/java/com/example/inventory/ui/item/RecadoEntryScreen.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... |
materialswitch/src/commonMain/kotlin/com/t895/materialswitch/MaterialSwitch.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... |
app/src/main/java/com/guastafeste/covid_19/AsyncNotification.kt | unknown_repo | kotlin | package com.guastafeste.covid_19
import android.content.Context
import android.os.AsyncTask
import android.util.Log
import com.google.gson.Gson
import java.io.BufferedReader
import java.io.IOException
import java.io.InputStreamReader
import java.net.MalformedURLException
import java.net.URL
/**
* Gestione asincrona... |
app/src/main/java/com/example/jetpackcompose/core/MainActivity.kt | unknown_repo | kotlin | package com.example.jetpackcompose.core
import android.content.Intent
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import com.example.jetpackcompose.R
import com.example.jetpackcompose.animation.Animation1Activity
import com.example.jetpackcompose.animation.Animatio... |
Alkitab/src/main/java/yuku/alkitab/songs/SongInfo.kt | unknown_repo | kotlin | package yuku.alkitab.songs
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
/**
* A concise record of a song without "opening" its contents.
*/
@Parcelize
class SongInfo(
@JvmField
val bookName: String,
@JvmField
val code: String,
@JvmField
val title: String,
@JvmField
... |
app/src/main/java/com/example/payandgo/InRouteActivity.kt | unknown_repo | kotlin | package com.example.payandgo
import android.Manifest
import android.annotation.SuppressLint
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.