file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
lib-droid-qr-gen/src/main/java/com/bhargavms/WrapperDroidQrGen/QRImageGenerator.kt | unknown_repo | kotlin | package com.bhargavms.WrapperDroidQrGen
import android.graphics.Bitmap
import com.mogra.zxing.BarcodeFormat
import com.mogra.zxing.MultiFormatWriter
import com.mogra.zxing.WriterException
import com.mogra.zxing.common.BitMatrix
import android.graphics.Color.BLACK
import android.graphics.Color.WHITE
/**
* Qr code i... |
model/src/main/java/org/stepik/android/model/Progress.kt | unknown_repo | kotlin | package org.stepic.droid.model
import android.os.Parcel
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
data class Progress(
val id: String? = null,
@SerializedName("last_viewed")
val lastViewed: String? = null, //in SECONDS
var score: String? = null,
... |
visionppi/app/src/main/java/org/mifos/visionppi/ui/new_survey/PPIQuestionFragment.kt | unknown_repo | kotlin | package org.mifos.visionppi.ui.new_survey
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.LinearLayoutManager
import kotlinx.android.synthetic.main... |
app/src/main/java/com/tfandkusu/tryphotoview/MainGroupieItem.kt | unknown_repo | kotlin | package com.tfandkusu.tryphotoview
import android.view.View
import coil.load
import com.tfandkusu.tryphotoview.databinding.ListItemMainBinding
import com.xwray.groupie.Item
import com.xwray.groupie.viewbinding.BindableItem
class MainGroupieItem(
private val index: Int,
private val imageUrl: String,
privat... |
feature/confirmation/src/main/java/ru/nesterov/confirmation/ConfirmationFragment.kt | unknown_repo | kotlin | package ru.nesterov.confirmation
import android.os.Bundle
import android.view.View
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import ru.nesterov.confirmation.databinding.FragmentConfirmationBinding
class ConfirmationFragment : Fragment(R.layout.fragment_confirmation) {
private ... |
app/src/main/java/com/andreapivetta/blu/data/jobs/PopulateDatabaseIntentService.kt | unknown_repo | kotlin | package com.andreapivetta.blu.data.jobs
import android.app.IntentService
import android.content.Context
import android.content.Intent
import android.support.v4.content.LocalBroadcastManager
import com.andreapivetta.blu.common.settings.AppSettingsFactory
import com.andreapivetta.blu.data.model.PrivateMessage
import com... |
kotlinui/src/main/java/kotlinx/kotlinui/Views/Button.kt | unknown_repo | kotlin | package kotlinx.kotlinui
import android.view.View as XView
import kotlinx.ptype.PType
data class Button<Label : View> private constructor(
val action: () -> Unit,
val _label: Label
) : View {
constructor(action: () -> Unit, label: ViewBuilder.() -> Label) : this(action, label(ViewBuilder))
//where La... |
app/src/main/java/com/github/ojh102/timary/ui/main/MainFragment.kt | unknown_repo | kotlin | package com.github.ojh102.timary.ui.main
import android.os.Bundle
import android.view.WindowManager
import androidx.fragment.app.viewModels
import androidx.navigation.Navigation
import androidx.navigation.ui.setupWithNavController
import com.github.ojh102.timary.R
import com.github.ojh102.timary.base.BaseFragment
impo... |
app/src/main/java/id/fahrizal/crudfactory/MainViewModel.kt | unknown_repo | kotlin | package id.fahrizal.crudfactory
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import id.fahrizal.crudfactory.employee.model.Employee
/**
* @author <NAME> (<EMAIL>)
* @version MainViewModel, v 0.1 02/01/22 10.52 by <NAME>
*/
class MainViewModel : ViewModel() {
val employeeLiveDa... |
app/src/main/java/com/example/motionlayoutdemos/CollapsingToolbarActivity.kt | unknown_repo | kotlin | package com.example.motionlayoutdemos
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.RecyclerView
import coil.api.load
import com.examp... |
Compose/BasicswithCompose/PracticeComposeBasics/WaterMe/src/main/java/com/example/waterme/worker/WorkerUtils.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 ap... |
shared/src/commonMain/kotlin/MainMenu.kt | unknown_repo | kotlin | package com.epeople.riseofbengal
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.lazy.grid.GridCells
import androidx.compose.foundation.lazy.grid.LazyVerticalGrid
import androidx.compose.foundation.lazy.grid.itemsIndexed
i... |
app/src/main/java/com/sunnyweather/android/ui/weather/WeatherViewModel.kt | unknown_repo | kotlin | package com.sunnyweather.android.ui.weather
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Transformations
import androidx.lifecycle.ViewModel
import com.sunnyweather.android.logic.Repository
import com.sunnyweather.android.logic.model.Location
/*
定义ViewModel
WeatherViewModel的实现. 这里定义了一个refr... |
library/src/main/java/jutt/com/zcalenderview/SimpleMonthView.kt | unknown_repo | kotlin | package jutt.com.zcalenderview
import android.annotation.SuppressLint
import android.content.Context
import kotlin.jvm.JvmOverloads
import androidx.recyclerview.widget.RecyclerView
import jutt.com.zcalenderview.SimpleMonthAdapter
import jutt.com.zcalenderview.DatePickerController
import android.content.res.TypedArray
... |
app/src/main/java/com/gmail/eamosse/imdb/ui/movies/ProductionCompaniesAdapter.kt | unknown_repo | kotlin | package com.gmail.eamosse.imdb.ui.movies
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.gmail.eamosse.idbdata.data.Movie
import com.gmail.eamosse.idbdata.data.ProductionCompany
import com.gmail.eamosse.imdb.databinding.ProductionCompaniesIte... |
index/src/main/java/cz/kudlav/vutindex/index/viewmodel/IndexViewModel.kt | unknown_repo | kotlin | package cz.kudlav.vutindex.index.viewmodel
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import cz.kudlav.vutindex.index.models.IndexFeedModel
import cz.kudlav.vutindex.index.... |
app/src/main/java/com/kunalfarmah/covid_19_info_dashboard/room/CovidDao.kt | unknown_repo | kotlin | package com.kunalfarmah.covid_19_info_dashboard.room
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
@Dao
interface CovidDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
suspend fun insertLatest(covidEntity: CovidEntity)
@Quer... |
androidApp/src/main/java/press/sync/GitHostIntegrationView.kt | unknown_repo | kotlin | package press.sync
import android.content.Context
import android.widget.ProgressBar
import androidx.core.view.isGone
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import androidx.recyclerview.widget.RecyclerView.OnScrollListener
import com.jakewharton.rxbindin... |
feature/movies/src/main/kotlin/com/ihardanilchanka/sampleapp2/presentation/movielist/MovieListScreen.kt | unknown_repo | kotlin | package com.ihardanilchanka.sampleapp2.presentation.movielist
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn... |
app/src/main/java/com/craftworks/music/providers/navidrome/GetNavidromeSongs.kt | unknown_repo | kotlin | package com.craftworks.music.providers.navidrome
import android.graphics.Color
import android.net.Uri
import android.util.Log
import com.craftworks.music.data.Song
import com.craftworks.music.data.navidromeServersList
import com.craftworks.music.data.search3SongList
import com.craftworks.music.data.selectedNavidromeSe... |
wendy/src/main/java/com/levibostian/wendy/listeners/PendingTaskStatusListener.kt | unknown_repo | kotlin | package com.levibostian.wendy.listeners
import android.support.annotation.UiThread
import com.levibostian.wendy.WendyConfig
import com.levibostian.wendy.service.PendingTask
import com.levibostian.wendy.types.ReasonPendingTaskSkipped
/**
* Listen to status updates on a specific [PendingTask] instance you care to list... |
app/src/main/java/mvvm/f4wzy/com/samplelogin/util/CustomeProgressDialog.kt | unknown_repo | kotlin | package mvvm.f4wzy.com.samplelogin.util
import android.R.attr.duration
import android.app.Dialog
import android.content.Context
import android.os.Bundle
import android.view.animation.Animation
import android.view.animation.RotateAnimation
import kotlinx.android.synthetic.main.dialog_progress.*
import mvvm.f4wzy.com.sa... |
castled-notifications/src/main/java/io/castled/android/notifications/push/service/PushRepository.kt | unknown_repo | kotlin | package io.castled.android.notifications.push.service
import android.content.Context
import io.castled.android.notifications.network.CastledRetrofitClient.Companion.create
import io.castled.android.notifications.push.models.NotificationActionContext
import io.castled.android.notifications.push.extensions.toCastledPush... |
app/src/main/java/com/mrb/remember/presentation/main/journal/JournalFragment.kt | unknown_repo | kotlin | package com.mrb.remember.presentation.main.journal
import android.os.Bundle
import android.view.View
import com.mrb.remember.R
import com.mrb.remember.domain.exception.Failure
import com.mrb.remember.domain.extension.toast
import com.mrb.remember.presentation.platform.BaseFragment
class JournalFragment : BaseFragment... |
app/src/main/java/sjj/novel/util/SerializeUtils.kt | unknown_repo | kotlin | package sjj.novel.util
import android.util.Base64
import java.io.ByteArrayInputStream
import java.io.ByteArrayOutputStream
import java.io.ObjectInputStream
import java.io.ObjectOutputStream
fun Any?.serialize(): String {
var stream: ByteArrayOutputStream? = null
var objs: ObjectOutputStream? = null
try {
... |
app/src/main/java/luyao/mamba/MainActivity.kt | unknown_repo | kotlin | package luyao.mamba
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_main.*
import luyao.core.MambaManager
class MainActivity : AppCompatActivity(R.layout.activity_main) {
override fun onCreate(savedInstanceState: Bundle?) {
super.o... |
kotlin/src/main/kotlin/com/siimkinks/sqlitemagic/Tables.kt | unknown_repo | kotlin | @file:Suppress("NOTHING_TO_INLINE", "UNCHECKED_CAST")
package com.siimkinks.sqlitemagic
import androidx.annotation.CheckResult
/** @see Table.as */
@CheckResult
inline infix fun <T, TableType : Table<T>> TableType.AS(alias: String): TableType = this.`as`(alias) as TableType
/** @see Table.on */
@CheckResult
inline ... |
core/data/src/main/kotlin/com/merxury/blocker/core/data/respository/componentdetail/datasource/UserGeneratedComponentDetailDataSource.kt | unknown_repo | kotlin | /*
* Copyright 2023 Blocker
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
app/src/main/java/jp/co/tis/stc/roboticbase/core/fiware_xperiahello_guide/SettingsActivity.kt | unknown_repo | kotlin | package jp.co.tis.stc.roboticbase.core.fiware_xperiahello
import android.os.Bundle
import android.preference.PreferenceFragment
import android.support.v7.app.AppCompatActivity
class SettingsActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceS... |
feature/manage-categories/src/main/java/com/example/manage_categories/ManageCategoriesScreen.kt | unknown_repo | kotlin | package com.example.manage_categories
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundatio... |
app/src/main/java/com/example/studentchat/friends/ui/stateholder/FriendsDiffCallback.kt | unknown_repo | kotlin | package com.example.studentchat.friends.ui.stateholder
import androidx.recyclerview.widget.DiffUtil
import com.example.studentchat.friends.data.Friends
class FriendsDiffCallback(
private val oldList: List<Friends>,
private val newList: List<Friends>
) : DiffUtil.Callback() {
override fun getOldListSize()... |
app/src/main/java/com/an/trailers_compose/ui/list/movie/MovieListViewModel.kt | unknown_repo | kotlin | package com.an.trailers_compose.ui.list.movie
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.paging.ExperimentalPagingApi
import androidx.paging.Pager
import androidx.paging.PagingConfig
import androidx.paging.cachedIn
import androidx.paging.map
import com.an.trailers_comp... |
app/src/main/java/sideproject/tseen/pokemonassignment/viewmodel/PokemonViewModel.kt | unknown_repo | kotlin | package sideproject.tseen.pokemonassignment.viewmodel
import android.app.Application
import android.util.Log
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.Dispatchers
import... |
binding/src/main/java/com/lifecycle/binding/adapter/AdapterType.kt | unknown_repo | kotlin | package com.lifecycle.binding.adapter
import androidx.annotation.IntDef
import com.lifecycle.binding.adapter.AdapterType.add
import com.lifecycle.binding.adapter.AdapterType.click
import com.lifecycle.binding.adapter.AdapterType.close
import com.lifecycle.binding.adapter.AdapterType.end
import com.lifecycle.binding.ad... |
app/src/main/java/com/xiong/xprojectframework/util/ToastUtil.kt | unknown_repo | kotlin | package com.xiong.xprojectframework.util
import android.content.Context
import android.view.Gravity
import android.widget.Toast
/**
* @author xiong
* @since
* @description
**/
object ToastUtil {
fun showShortToast(context: Context, text: String) {
val toast = Toast.makeText(context, text, Toast.LENGT... |
feature-favorite/src/main/java/com/hanbitkang/feature/favorite/FavoriteScreen.kt | unknown_repo | kotlin | package com.hanbitkang.feature.favorite
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.*
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.... |
app/src/main/java/com/example/androiddevchallenge/JetPetApplication.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/erickcapilla/dcyourself/Diagnose.kt | unknown_repo | kotlin | package com.erickcapilla.dcyourself
import android.Manifest
import android.app.Activity
import android.bluetooth.BluetoothAdapter
import android.bluetooth.BluetoothDevice
import android.bluetooth.BluetoothManager
import android.content.BroadcastReceiver
import android.content.ContentValues.TAG
import android.content.C... |
data/models/src/main/java/com/xently/models/Author.kt | unknown_repo | kotlin | package com.xently.models
import android.os.Parcel
import android.os.Parcelable
data class Author(
val firstName: String? = null,
val lastName: String? = null,
val photoUrl: String? = null
) : Parcelable {
val name: String?
get() = "${firstName ?: ""} ${lastName ?: ""}".run {
if (i... |
app/src/main/java/com/ryz/movie/core/di/Injection.kt | unknown_repo | kotlin | package com.ryz.movie.core.di
import android.content.Context
import com.ryz.movie.core.data.source.MovieRepository
import com.ryz.movie.core.data.source.local.LocalDataSource
import com.ryz.movie.core.data.source.local.room.MovieDatabase
import com.ryz.movie.core.data.source.remote.RemoteDataSource
import com.ryz.movi... |
app/src/main/java/com/android/pgo/SelectVideoTypeActivity.kt | unknown_repo | kotlin | package com.android.pgo
import android.Manifest
import android.annotation.SuppressLint
import android.app.Activity
import android.content.ContentValues
import android.content.ContentValues.TAG
import android.content.Intent
import android.content.pm.PackageManager
import android.net.Uri
import android.os.Bundle
import ... |
app/src/main/java/br/ufpb/dcx/apps4society/educapimanager/view/ui/challenge/create/AudioCreateChallengeFragment.kt | unknown_repo | kotlin | package br.ufpb.dcx.apps4society.educapimanager.view.ui.challenge.create
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 br.ufpb.dcx.apps4society.educapimanager.R
import br.ufp... |
android/app/src/main/java/com/thebestdevelopers/exifphotogallery/fragments/search/SearchFragment.kt | unknown_repo | kotlin | package com.thebestdevelopers.exifphotogallery.fragments.search
import android.Manifest
import android.app.DatePickerDialog
import android.content.Context
import android.support.media.ExifInterface
import android.os.Bundle
import android.provider.MediaStore
import android.support.v4.app.Fragment
import android.support... |
sample-app/shared/src/commonMain/kotlin/org/publicvalue/multiplatform/oidc/sample/config/SingleLineInput.kt | unknown_repo | kotlin | package org.publicvalue.multiplatform.oidc.sample.config
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material3.TextField
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
@Composable
fun SingleLineInput(value: String, onValueChange: (String) -> Unit, lab... |
app/src/main/java/com/example/cinemaplus/home/landing/UI.kt | unknown_repo | kotlin | package com.example.cinemaplus.home.landing
import android.content.Context
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.requiredHeight
import androidx.comp... |
function/src/main/java/app/allever/android/sample/function/download/DownloadMainFragment.kt | unknown_repo | kotlin | package app.allever.android.sample.function.download
import android.Manifest
import android.os.Build
import androidx.lifecycle.lifecycleScope
import app.allever.android.lib.common.ListFragment
import app.allever.android.lib.common.adapter.TextClickAdapter
import app.allever.android.lib.common.adapter.bean.TextClickIte... |
samples/gallery/src/main/java/com/bumptech/glide/samples/gallery/HorizontalGalleryFragment.kt | unknown_repo | kotlin | package com.bumptech.glide.samples.gallery
import android.graphics.drawable.Drawable
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.fou... |
android/BGXCommander/app/src/main/java/com/silabs/bgxcommander/dialogs/DialogUtils.kt | unknown_repo | kotlin | package com.silabs.bgxcommander.dialogs
import android.app.Dialog
import android.content.Context
import androidx.appcompat.app.AlertDialog
class DialogUtils {
fun getInvalidGattHandlesDialog(context: Context, deviceName: String): Dialog {
return AlertDialog.Builder(context).apply {
setTitle("I... |
sample/src/main/java/com/anthonycr/tagger/sample/Test.kt | unknown_repo | kotlin | package com.anthonycr.tagger.sample
import android.util.Log
import com.anthonycr.sample.TAG
import com.anthonycr.tagger.CaseStyle
import com.anthonycr.tagger.Tag
/**
* Created by anthonycr on 12/4/17.
*/
@Tag(CaseStyle.ALL_CAPS)
object Test {
fun log() {
Log.d(TAG, "Hello World Test")
}
} |
app/src/main/java/com/mitchwongho/example/apkotlin/MainActivity.kt | unknown_repo | kotlin | package com.mitchwongho.example.apkotlin
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.os.Bundle
import android.support.design.widget.Snackbar
import android.support.v4.view.GravityCompat
import android.support.v7.app.AppCompatActivity
import android.support.v7.graphics.Palette
im... |
src/main/kotlin/io/prometheus/proxy/ProxyHttpRoutes.kt | unknown_repo | kotlin | /*
* Copyright © 2024 <NAME> (<EMAIL>)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... |
ui/src/main/java/io/snabble/sdk/ui/coupon/CouponItem.kt | unknown_repo | kotlin | package io.snabble.sdk.ui.coupon
import android.content.res.Resources
import android.graphics.Color
import android.os.Parcelable
import android.util.DisplayMetrics
import androidx.annotation.ColorInt
import androidx.annotation.Keep
import io.snabble.sdk.coupons.CouponImage
import io.snabble.sdk.Project
import io.snabb... |
Corona-Warn-App/src/main/java/de/rki/coronawarnapp/contactdiary/ui/day/tabs/person/ContactDiaryPersonListViewModel.kt | unknown_repo | kotlin | package de.rki.coronawarnapp.contactdiary.ui.day.tabs.person
import androidx.lifecycle.LiveData
import androidx.lifecycle.asLiveData
import dagger.assisted.Assisted
import dagger.assisted.AssistedFactory
import dagger.assisted.AssistedInject
import de.rki.coronawarnapp.contactdiary.model.ContactDiaryPersonEncounter
im... |
kit/src/main/java/healthstack/kit/datastore/PreferenceDataStore.kt | unknown_repo | kotlin | package healthstack.kit.datastore
import android.content.Context
import androidx.datastore.preferences.core.edit
import androidx.datastore.preferences.core.stringPreferencesKey
import androidx.datastore.preferences.preferencesDataStore
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.map
val Context... |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/ScrewAlt.kt | unknown_repo | kotlin | package me.localx.icons.rounded.bold
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
im... |
apptestdemo/src/main/java/com/julive/apptestdemo/RecorderServiceConnectActivity.kt | unknown_repo | kotlin | package com.julive.apptestdemo
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Environment
import android.util.Log
import com.julive.audio.RecorderConfig
import com.julive.audio.RecorderManager
import com.julive.audio.common.RecorderOutFormat
import kotlinx.android.synthetic.... |
app/src/main/java/com/conectaedu/android/ui/course/CourseViewModel.kt | unknown_repo | kotlin | package com.conectaedu.android.ui.course
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.conectaedu.android.data.model.data
import com.conectaedu.andr... |
app/src/main/java/space/rodionov/selfanalysis/ui/NotesViewModel.kt | unknown_repo | kotlin | package space.rodionov.selfanalysis.ui
import androidx.hilt.Assisted
import androidx.hilt.lifecycle.ViewModelInject
import androidx.lifecycle.*
import com.google.gson.Gson
import kotlinx.coroutines.channels.Channel
//import kotlinx.coroutines.flow.flatMapLatest
//import kotlinx.coroutines.flow.receiveAsFlow
import kot... |
app/src/main/java/com/gamapp/dmplayer/presenter/ui/screen/listof/linear/artist/ArtistList.kt | unknown_repo | kotlin | package com.gamapp.dmplayer.presenter.ui.screen.listof.artist
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import com.gamapp.dmplayer.presenter.ui.screen.listof.linear.BaseList
import com.gamapp.domain.models.ArtistModel
@Composable
fun ArtistList(artists: List<ArtistModel>, modifier... |
app/src/main/java/com/cliffracertech/bootycrate/recyclerview/BootyCrateRecyclerView.kt | unknown_repo | kotlin | /* Copyright 2021 Nicholas Hochstetler
* You may not use this file except in compliance with the Apache License
* Version 2.0, obtainable at http://www.apache.org/licenses/LICENSE-2.0
* or in the file LICENSE in the project's root directory. */
package com.cliffracertech.bootycrate.recyclerview
import android.conte... |
app/src/main/java/hr/olfo/alarmclock/dialogs/DialogRingtone.kt | unknown_repo | kotlin | package hr.olfo.alarmclock.dialogs
import android.app.DialogFragment
import android.content.DialogInterface
import android.net.Uri
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.RadioButton
import hr.olfo.alarmclock.R
import hr.o... |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/bold/DiceFour.kt | unknown_repo | kotlin | package me.localx.icons.rounded.bold
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
im... |
android/src/com/android/tools/idea/diagnostics/jfr/RecordingManager.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... |
sample/counter/shared/src/androidMain/kotlin/com/arkivanov/sample/counter/shared/ui/compose/CounterComposable.kt | unknown_repo | kotlin | package com.arkivanov.sample.counter.shared.ui.compose
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.padding
import androidx.compose.material.Text
import androidx.compose.runtime.Composab... |
dbinspector/src/main/kotlin/com/infinum/dbinspector/ui/content/shared/ContentState.kt | unknown_repo | kotlin | package com.infinum.dbinspector.ui.content.shared
import androidx.paging.PagingData
import com.infinum.dbinspector.domain.shared.models.Cell
import com.infinum.dbinspector.ui.shared.headers.Header
internal sealed class ContentState {
data class Headers(
val headers: List<Header>
) : ContentState()
... |
animations/src/main/java/dev/funkymuse/animations/transition/utils/TransitionUtils.kt | unknown_repo | kotlin | package com.crazylegend.kotlinextensions.transition.utils
import androidx.recyclerview.widget.RecyclerView
import androidx.transition.ChangeBounds
import androidx.transition.Fade
import androidx.transition.Transition
import androidx.transition.TransitionSet
import com.crazylegend.kotlinextensions.effects.onTransitionE... |
statelayout/src/main/java/com/drake/statelayout/StateConfig.kt | unknown_repo | kotlin | /*
* Copyright (C) 2018 Drake, 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 ... |
app/src/main/java/com/awave/wrkout/dashboard/workout/workoutProgress/WorkoutProgressActivity.kt | unknown_repo | kotlin | package com.awave.wrkout.dashboard.workout.workoutProgress
import android.content.Context
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import com.awave.wrkout.R
import com.awave.wrkout.db.Set
import com.awave.wrkout.db.SetExercise
impo... |
biometric/src/main/java/dev/skomlach/biometric/compat/utils/activityView/ActivityViewWatcher.kt | unknown_repo | kotlin | /*
* Copyright (c) 2021 <NAME> aka Salat-Cx65; Original project: https://github.com/Salat-Cx65/AdvancedBiometricPromptCompat
* 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... |
app/src/main/java/rto/exam/rtoexam/SymbolCatagory.kt | unknown_repo | kotlin | package rto.exam.rtoexam
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import androidx.cardview.widget.CardView
class SymbolCatagory : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
... |
app/src/main/java/com/github/luks91/teambucket/main/FragmentsPagerAdapter.kt | unknown_repo | kotlin | /**
* Copyright (c) 2017-present, Team Bucket Contributors.
*
* 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/programmergabut/solatkuy/worker/FireAlarmManagerWorker.kt | unknown_repo | kotlin | package com.programmergabut.solatkuy.worker
import android.content.Context
import android.util.Log
import androidx.work.Worker
import androidx.work.WorkerParameters
import com.google.firebase.crashlytics.FirebaseCrashlytics
import com.programmergabut.solatkuy.data.local.dao.MsConfigurationDao
import com.programmergabu... |
app/src/main/java/de/tum/informatics/www1/artemis/native_app/android/db/AppDatabase.kt | unknown_repo | kotlin | package de.tum.informatics.www1.artemis.native_app.android.db
import androidx.room.Database
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import de.tum.informatics.www1.artemis.native_app.core.datastore.room.RoomTypeConverters
import de.tum.informatics.www1.artemis.native_app.feature.metis.dao.... |
app/src/main/java/com/example/kotlin_coroutines_and_flow/usecases/coroutines/usecase7/rx/TimeoutAndRetryRxActivity.kt | unknown_repo | kotlin | package com.example.kotlin_coroutines_and_flow.usecases.coroutines.usecase7.rx
import android.os.Bundle
import androidx.activity.viewModels
import androidx.lifecycle.Observer
import com.example.kotlin_coroutines_and_flow.base.BaseActivity
import com.example.kotlin_coroutines_and_flow.base.useCase7Description
import co... |
app/src/main/java/minesweeper/hulkdx/com/minesweeper/data/Board.kt | unknown_repo | kotlin | package minesweeper.hulkdx.com.minesweeper.data
import android.content.Context
import android.graphics.Bitmap
import android.util.Log
import minesweeper.hulkdx.com.minesweeper.Game
import minesweeper.hulkdx.com.minesweeper.util.BitmapHolder
import minesweeper.hulkdx.com.minesweeper.util.convertDpToPixel
import mineswe... |
app/src/main/java/be/shiro/meowshot/WebServer.kt | unknown_repo | kotlin | /*
* Copyright (C) 2018 theta4j 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 applicable law or a... |
basick/src/main/java/com/mozhimen/basick/postk/encrypt/helpers/EncryptDESProvider.kt | unknown_repo | kotlin | package com.mozhimen.basick.postk.encrypt.helpers
import android.util.Base64
import androidx.annotation.RequiresApi
import com.mozhimen.basick.elemk.cons.CAlgorithm
import com.mozhimen.basick.elemk.cons.CVersCode
import com.mozhimen.basick.postk.encrypt.commons.IEncrypt
import com.mozhimen.basick.postk.encrypt.mos.MEn... |
app/src/main/java/com/leony/app/ricknmorty/view/SplashActivity.kt | unknown_repo | kotlin | package com.leony.app.ricknmorty.view
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.os.Handler
import android.os.Looper
import androidx.appcompat.app.AppCompatActivity
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
import com.leony.app.rickn... |
app/src/main/java/com/metropolia/eatthefrog/database/Database.kt | unknown_repo | kotlin | package com.metropolia.eatthefrog.database
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
/**
* Singleton class used for creating and accessing the Room DB.
* @property Task: Task table, contains all Task objects.
* @property Subtask: Subtas... |
app/src/main/java/com/auliaisb/weatherforecast/ui/MainFragment.kt | unknown_repo | kotlin | package com.auliaisb.weatherforecast.ui
import android.annotation.SuppressLint
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProviders
import ... |
app/src/main/java/uk/co/alt236/bluetoothconnectionlog/receiver/BluetoothConnectionReceiver.kt | unknown_repo | kotlin | package uk.co.alt236.bluetoothconnectionlog.receiver
import android.Manifest
import android.annotation.SuppressLint
import android.bluetooth.BluetoothDevice
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.pm.PackageManager
import android.util... |
composables/src/main/java/com/google/android/horologist/composables/TimePicker.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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
app/src/main/java/me/fabianfg/filesender/frontend/ui/appsend/AppSendActivity.kt | unknown_repo | kotlin | package me.fabianfg.filesender.frontend.ui.appsend
import android.content.pm.ApplicationInfo
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import kotlinx.android.synthetic.main.activity_app_send.*
import me.fabianfg.filesender.R
import me.fabianfg.filesender.config.update
class AppSendActiv... |
codebase/android/app/src/main/java/com/makeappssimple/abhimanyu/financemanager/android/MyApplication.kt | unknown_repo | kotlin | package com.makeappssimple.abhimanyu.financemanager.android
import android.app.Application
import android.app.NotificationChannel
import android.app.NotificationManager
import android.content.Context
import com.makeappssimple.abhimanyu.financemanager.android.core.notificationkit.NotificationConstants
import dagger.hil... |
app/src/main/java/ceui/lisa/adapters/FeatureAdapter.kt | unknown_repo | kotlin | package ceui.lisa.adapters
import android.content.Context
import android.widget.ImageView
import ceui.lisa.R
import ceui.lisa.databinding.RecyFeatureBinding
import ceui.lisa.feature.FeatureEntity
import ceui.lisa.models.IllustsBean
import ceui.lisa.models.MangaSeriesItem
import ceui.lisa.utils.GlideUtil
import com.bum... |
app/src/main/java/com/epitech/diabetips/storages/CalculationOptionObject.kt | unknown_repo | kotlin | package com.epitech.diabetips.storages
import android.content.Context
import com.epitech.diabetips.R
import com.epitech.diabetips.utils.TimeHandler
import java.io.Serializable
data class CalculationOptionObject (
var start: String = "",
var end: String = "",
var format: String = "",
var count: Boolean... |
app/src/main/java/com/forcetower/uefs/core/storage/repository/ContributorRepository.kt | unknown_repo | kotlin | /*
* Copyright (c) 2019.
* <NAME> <<EMAIL>>
*
* This file is part of the UNES Open Source Project.
*
* UNES is licensed under the MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in th... |
app/src/main/java/me/bakumon/moneykeeper/ui/about/AboutActivity.kt | unknown_repo | kotlin | /*
* Copyright 2018 Bakumon. https://github.com/Bakumon
*
* 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 appli... |
example/src/main/java/com/github/sckm/example/itemnameplate/viewholder/SimpleItemsHeaderViewHolder.kt | unknown_repo | kotlin | package com.github.sckm.example.itemnameplate.viewholder
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.github.sckm.example.itemnameplate.R
class SimpleItemsHeaderViewHolder private constructor(itemView: View) : Recycl... |
app/src/main/java/com/setiawanpaiman/sunnyreader/data/db/Item.kt | unknown_repo | kotlin | package com.setiawanpaiman.sunnyreader.data.db
import androidx.room.*
@Entity
data class Item(
@PrimaryKey(autoGenerate = true) val id: Long,
@ColumnInfo(name = "response") val response: String,
@ColumnInfo(name = "last_update") val lastUpdate: Long = System.currentTimeMillis()
) {
}
@Dao
interface Item... |
Pullup/app/src/main/java/edu/uw/eep523/sensorrtplot/MainActivity3.kt | unknown_repo | kotlin | package edu.uw.eep523.sensorrtplot
import android.content.Context
import android.content.Intent
import android.hardware.Sensor
import android.hardware.SensorEvent
import android.hardware.SensorEventListener
import android.hardware.SensorManager
import android.media.MediaPlayer
import androidx.appcompat.app.AppCompatAc... |
Example/PrebidInternalTestApp/src/main/java/org/prebid/mobile/renderingtestapp/plugplay/bidding/max/MaxBannerFragmentAdaptive.kt | unknown_repo | kotlin | package org.prebid.mobile.renderingtestapp.plugplay.bidding.max
import android.view.ViewGroup
import android.widget.FrameLayout
import com.applovin.mediation.MaxAdFormat
import com.applovin.mediation.adapters.prebid.utils.MaxMediationBannerUtils
import com.applovin.mediation.ads.MaxAdView
import com.applovin.sdk.AppLo... |
app/src/main/java/org/y20k/escapepod/core/Collection.kt | unknown_repo | kotlin | /*
* Collection.kt
* Implements the Collection class
* A Collection object holds a list of Podcasts
*
* This file is part of
* ESCAPEPOD - Free and Open Podcast App
*
* Copyright (c) 2018-19 - Y20K.org
* Licensed under the MIT-License
* http://opensource.org/licenses/MIT
*/
package org.y20k.escapepod.core
... |
feature/solve-problem/src/main/kotlin/team/duckie/app/android/feature/solve/problem/common/LoadingIndicator.kt | unknown_repo | kotlin | /*
* Designed and developed by Duckie Team, 2022
*
* Licensed under the MIT.
* Please see full license: https://github.com/duckie-team/duckie-android/blob/develop/LICENSE
*/
package team.duckie.app.android.feature.solve.problem.common
import androidx.compose.foundation.layout.Box
import androidx.compose.foundati... |
libnavui-maps/src/test/java/com/mapbox/navigation/ui/maps/guidance/junction/api/MapboxRasterToBitmapParserTest.kt | unknown_repo | kotlin | package com.mapbox.navigation.ui.maps.guidance.junction.api
import android.content.Context
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import androidx.test.core.app.ApplicationProvider
import com.mapbox.navigation.ui.base.model.Expected
import io.mockk.every
import io.mockk.mockk
import io.moc... |
app/src/main/java/com/example/gonggubox/ui/items/certOTPCode/CertOTPCodeBtn.kt | unknown_repo | kotlin | package com.example.gonggubox.ui.items.certOTPCode
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.layout.wrapContentHeight
import androidx.compose.material3.Button
import androidx.compose.material3.ButtonDefaults
import androidx.compose.material3.MaterialTheme
import androidx.compos... |
feature/src/main/java/com/thelazybattley/feature/ui/forecast/ForecastWeatherTabScreen.kt | unknown_repo | kotlin | package com.dellosaneil.feature.ui.forecast
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableS... |
app/src/androidTest/java/me/nasrabadiam/tictactoe/GameTests.kt | unknown_repo | kotlin | package me.nasrabadiam.tictactoe
import androidx.compose.ui.test.assertHasClickAction
import androidx.compose.ui.test.assertIsDisplayed
import androidx.compose.ui.test.assertIsNotDisplayed
import androidx.compose.ui.test.hasTestTag
import androidx.compose.ui.test.hasText
import androidx.compose.ui.test.isDisplayed
imp... |
app/src/main/java/com/droidfeed/ui/module/main/MainNavController.kt | unknown_repo | kotlin | package com.droidfeed.ui.module.main
import androidx.fragment.app.Fragment
import com.droidfeed.R
import com.droidfeed.di.MainScope
import com.droidfeed.ui.common.Scrollable
import com.droidfeed.ui.module.about.AboutFragment
import com.droidfeed.ui.module.conferences.ConferencesFragment
import com.droidfeed.ui.module.... |
app/src/main/java/com/sunnyweather/android/MainActivity.kt | unknown_repo | kotlin | package com.sunnyweather.android
import android.icu.text.SimpleDateFormat
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.widget.ImageView
import android.widget.LinearLayout
import android.widget.RelativeLayout
import android.widget.ScrollView
import android.widget.T... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.