file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app-old/src/main/java/com/heyanle/easybangumi/ui/common/easy_player/component/ErrorComponent.kt | unknown_repo | kotlin | package com.heyanle.easybangumi.ui.common.easy_player.component
import android.content.Context
import android.util.AttributeSet
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.widget.FrameLayout
import android.widget.RelativeLayout
import com.heyanle.easybangumi.datab... |
solar/src/main/java/com/chiksmedina/solar/lineduotone/designtools/MirrorLeft.kt | unknown_repo | kotlin | package com.chiksmedina.solar.linear.designtools
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.StrokeCap.Compani... |
app/src/main/java/org/redbyte/animatron/power/animatron/PlainAnimatorListener.kt | unknown_repo | kotlin | package org.redbyte.animatron.power.animatron
import android.animation.Animator
open class PlainAnimatorListener : Animator.AnimatorListener {
override fun onAnimationRepeat(p0: Animator?) { }
override fun onAnimationEnd(p0: Animator?) { }
override fun onAnimationCancel(p0: Animator?) { }
override... |
compose/src/main/kotlin/com/yourssu/handy/compose/icons/line/Mail.kt | unknown_repo | kotlin | package com.yourssu.handy.compose.icons.line
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.vector.ImageVector
import com.yourssu.handy.compose.icons.HandyIcons
import com.yourssu.handy.compose.icons.handyIcon
import com.yourssu.handy.compose.icons.handyPath
private var _mail: Im... |
stretchez/src/main/java/me/shangdelu/stretchez/BottomSheetActionListViewModel.kt | unknown_repo | kotlin | package me.shangdelu.stretchez
import androidx.lifecycle.ViewModel
import me.shangdelu.stretchez.database.StretchExercise
class BottomSheetActionListViewModel : ViewModel() {
private val bottomSheetActionRepository = StretchPlanRepository.get()
val bottomSheetActionLiveData = bottomSheetActionRepository.getTe... |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/filled/EmojiAngry.kt | unknown_repo | kotlin |
package com.konyaco.fluent.icons.filled
import androidx.compose.ui.graphics.vector.ImageVector
import com.konyaco.fluent.icons.Icons
import com.konyaco.fluent.icons.fluentIcon
import com.konyaco.fluent.icons.fluentPath
public val Icons.Filled.EmojiAngry: ImageVector
get() {
if (_emojiAngry != null) {
... |
codebase/android/app/src/main/java/com/makeappssimple/abhimanyu/stackoverflowanswers/android/pulltorefresh/icons/HeartIcon.kt | unknown_repo | kotlin | package com.makeappssimple.abhimanyu.stackoverflowanswers.android.pulltorefresh.icons
import androidx.compose.ui.graphics.Path
fun generateHeartIcon(
sizeFactor: Float,
): Path {
val path = Path().apply {
moveTo(
x = sizeFactor * 12.5f,
y = sizeFactor * 19.491f,
)
... |
app/src/main/java/com/kotlinswipecard/lib/utils/RecyclerViewUtils.kt | unknown_repo | kotlin | package com.kotlinswipecard.lib.utils
import androidx.recyclerview.widget.ItemTouchHelper
import androidx.recyclerview.widget.RecyclerView
import com.kotlinswipecard.lib.config.SwiperConfig
import com.kotlinswipecard.lib.listeners.SwipeStackListener
import com.kotlinswipecard.lib.view.SwipeHelper
import com.kotlinswip... |
app2/src/main/java/com/aos/app2/ui/home/tab/PlaceholderFragment2.kt | unknown_repo | kotlin | package com.aos.app2.ui.home.tab
import android.os.Bundle
import com.aos.app2.BR
import com.aos.app2.R
import com.aos.app2.base.App2Fragment
import com.aos.app2.databinding.PlceholderFragmentMain2Binding
import org.koin.androidx.viewmodel.ext.android.viewModel
/**
* A placeholder fragment containing a simple view.
... |
app/src/main/java/com/coupleblog/fragment/days/CB_DaysDetailFragment.kt | unknown_repo | kotlin | package com.coupleblog.fragment.days
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.os.bundleOf
import androidx.navigation.fragment.findNavController
import com.coupleblog.R
import com.coupleblog.adapter.CB... |
stream-video-android-ui-compose/src/main/kotlin/io/getstream/video/android/compose/pip/PictureInPicture.kt | unknown_repo | kotlin | /*
* Copyright (c) 2014-2024 Stream.io Inc. All rights reserved.
*
* Licensed under the Stream License;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://github.com/GetStream/stream-video-android/blob/main/LICENSE
*
* Unless required by ... |
feature-settings/src/main/java/com/dragote/feature/settings/ui/SettingsScreen.kt | unknown_repo | kotlin | package com.dragote.feature.settings.ui
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.fillMaxSize
import androidx.compose.fou... |
ui/common/src/main/kotlin/com/louisfn/somovie/ui/common/extension/Size.kt | unknown_repo | kotlin | package com.louisfn.somovie.ui.common.extension
import androidx.compose.runtime.Composable
import androidx.compose.ui.geometry.Size
import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.unit.DpSize
import androidx.compose.ui.unit.IntSize
@Composable
fun IntSize.toDpSize() = with(LocalDensity.cur... |
app/src/main/java/com/wingsofts/gankclient/ui/fragment/BaseBindingFragment.kt | unknown_repo | kotlin | package com.wingsofts.gankclient.ui.fragment
import android.databinding.ViewDataBinding
import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
/**
* Created by wing on 16-11-24.
*/
abstract class BaseBingingFragment<B... |
css-gg/src/commonMain/kotlin/compose/icons/cssggicons/Overflow.kt | unknown_repo | kotlin | package compose.icons.cssggicons
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.compose.ui.graphics... |
app/src/main/java/com/example/marvel/ui/list/ListViewModel.kt | unknown_repo | kotlin | package com.example.marvel.ui.list
import androidx.lifecycle.ViewModel
import com.example.marvel.repository.model.ApiError
import com.example.marvel.repository.model.ListResponse
import com.example.marvel.repository.service.MarvelRepository
import com.example.marvel.repository.service.MarvelService
import com.example.... |
DroidMedia/app/src/main/kotlin/com/me/harris/FileUtils.kt | unknown_repo | kotlin | package com.me.harris
import android.content.ContentUris
import android.content.Context
import android.database.Cursor
import android.net.Uri
import android.os.Environment
import android.provider.DocumentsContract
import android.provider.MediaStore
import android.util.Log
import java.io.File
import java.io.FileOutputS... |
designer/src/com/android/tools/idea/common/surface/sceneview/LabelPanel.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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
app/src/main/java/ru/ltst/u2020mvp/ui/UiModule.kt | unknown_repo | kotlin | package ru.ltst.u2020mvp.ui
import android.app.Activity
import dagger.Module
import dagger.Provides
import ru.ltst.u2020mvp.ApplicationScope
import ru.ltst.u2020mvp.base.mvp.ActivityHierarchyServer
import ru.ltst.u2020mvp.base.navigation.activity.ActivityScreenSwitcher
import ru.ltst.u2020mvp.base.mvp.annotation.Acti... |
app/src/main/java/com/mohsenoid/abcs/colors/ColorsScreen.kt | unknown_repo | kotlin | package com.mohsenoid.abcs.colors
import androidx.compose.foundation.background
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.Spa... |
libraries/router/src/main/java/com/router/RouteManager.kt | unknown_repo | kotlin | package com.router
import LogData
import android.content.Context
import android.content.Intent
import android.net.Uri
import androidx.appcompat.app.AppCompatActivity
import com.logger.ServerLogger
import com.logger.data.Priority
class RouteManager private constructor() : AppRouter {
companion object {
fu... |
module-wan/src/main/java/com/example/fragment/module/wan/model/QAModel.kt | unknown_repo | kotlin | package com.example.fragment.module.wan.model
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.viewModelScope
import com.example.fragment.library.base.http.HttpRequest
import com.example.fragment.library.base.http.get
import com.example.fragment.library.base.model.BaseViewModel
import com.example.fr... |
HTTPShortcuts/app/src/main/kotlin/ch/rmy/android/http_shortcuts/activities/remote_edit/RemoteEditDialogs.kt | unknown_repo | kotlin | package ch.rmy.android.http_shortcuts.activities.remote_edit
import androidx.compose.material3.Text
import androidx.compose.material3.TextButton
import androidx.compose.runtime.Composable
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.input.KeyboardType
import ch.rmy.android.http_shortcu... |
app/src/main/java/com/santhi/nicevibe/fcm/TokenManger.kt | unknown_repo | kotlin | package com.santhi.nicevibe.fcm
import android.content.Context
import android.content.SharedPreferences
import com.google.firebase.messaging.FirebaseMessaging
class TokenManager(private val context: Context) {
companion object {
private const val PREFS_NAME = "FCMTokenPrefs"
private const val FCM... |
app/src/main/java/pl/redny/sekura/service/ForegroundService.kt | unknown_repo | kotlin | package pl.redny.sekura.service
import android.R
import android.annotation.SuppressLint
import android.app.*
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.content.SharedPreferences
import android.content.pm.PackageManager
import android.location.Locatio... |
app/src/main/java/com/hsb/mygalleryapp/data/Models/FavModel.kt | unknown_repo | kotlin | package com.hsb.mygalleryapp.data.Models
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "fav_tbl")
data class FavModel(
var uri: String?=null
) {
@PrimaryKey(autoGenerate = true)
var id: Int = 0
} |
app/src/main/java/com/example/chatdemo/viewmodel/FriendViewModel.kt | unknown_repo | kotlin | package com.example.chatdemo.viewmodel
import android.content.Context
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.Transformations
import androidx.lifecycle.ViewModel
import com.example.chatdemo.logic.repository.Repository
import com.example.nettyserver.data.entity.UserInfo
class FriendViewMode... |
kotfirebase/src/main/java/com/source/kotfirebase/abs/storage/StorageServices.kt | unknown_repo | kotlin | package com.source.kotfirebase.abs.storage
import android.graphics.Bitmap
import androidx.lifecycle.LiveData
import com.source.kotfirebase.data.StorageDownloadResult
import com.source.kotfirebase.data.StorageResult
import java.io.File
interface StorageServices {
fun uploadBitmap(fileName: String, storagePath: Str... |
app/src/main/java/org/wikipedia/edit/insertmedia/InsertMediaImageTypeDialog.kt | unknown_repo | kotlin | package org.wikipedia.edit.insertmedia
import android.graphics.Typeface
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import org.wikipedia.activity.FragmentUtil
import org.wikipedia.datab... |
MyJetPackApplication/businesses/business-database/business-database-room/src/main/java/com/example/myjetpackapplication/business/database/room/data/DatabaseRoomEntity.kt | unknown_repo | kotlin | package com.example.myjetpackapplication.business.database.room.data
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey
import java.io.Serializable
/**
* Created by liutiantian on 2019-05-08 19:35 星期三
*/
@Entity(tableName = "room_entity", indices =... |
app/src/main/java/com/deymer/ibank/features/transaction/details/DetailsScreen.kt | unknown_repo | kotlin | package com.deymer.ibank.features.transaction.details
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import and... |
app/src/main/java/eu/kanade/presentation/more/settings/database/components/ClearDatabaseDialogs.kt | unknown_repo | kotlin | package eu.kanade.presentation.more.settings.database.components
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
impor... |
shared/src/commonMain/kotlin/App.kt | unknown_repo | kotlin | import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.aspectRatio
import androidx.com... |
room/room-migration/src/commonMain/kotlin/androidx/room/migration/bundle/SchemaBundle.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... |
android/SmartIRHub/app/src/main/java/com/ms8/smartirhub/android/splash_login/SplashActivity4.kt | unknown_repo | kotlin | package com.ms8.smartirhub.android.splash_login
import android.animation.ObjectAnimator
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Handler
import android.util.Log
import andr... |
src/commonMain/kotlin/epicarchitect/breakbadhabits/screens/app/App.kt | unknown_repo | kotlin | package epicarchitect.breakbadhabits.screens.app
import androidx.compose.runtime.Composable
import cafe.adriel.voyager.navigator.Navigator
import epicarchitect.breakbadhabits.Environment
import epicarchitect.breakbadhabits.screens.appDashboard.AppDashboardScreen
import epicarchitect.breakbadhabits.uikit.FlowStateConta... |
library/src/main/kotlin/org/dbtools/android/domain/DBToolsTiledDataSource.kt | unknown_repo | kotlin | @file:Suppress("unused")
package org.dbtools.android.domain
import android.arch.paging.TiledDataSource
@Deprecated("Use DBToolsPositionalDataSource instead", ReplaceWith("DBToolsPositionalDataSource<T>", "org.dbtools.android.domain.DBToolsPositionalDataSource"))
abstract class DBToolsTiledDataSource<T>() : TiledData... |
app/src/androidTest/kotlin/ir/fallahpoor/eks/libraries/ui/ToolbarTest.kt | unknown_repo | kotlin | package ir.fallahpoor.eks.libraries.ui
import android.content.Context
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.test.core.app.ApplicationProvider
import ir.fallahpoor.eks.R
import ir.fallahpoor.eks.data.SortOrder
import ir.fallahpoor.eks.libraries.ui.robots.ToolbarRobot
import org.junit.... |
app/src/main/java/com/elementary/tasks/core/utils/params/Prefs.kt | unknown_repo | kotlin | package com.elementary.tasks.core.utils.params
import android.content.Context
import android.text.format.DateFormat
import androidx.appcompat.app.AppCompatDelegate
import com.elementary.tasks.core.data.platform.ReminderCreatorConfig
import com.elementary.tasks.core.utils.Constants
import com.elementary.tasks.core.util... |
app/src/main/java/com/coolweather/coolweatherjetpack/ui/MainActivity.kt | unknown_repo | kotlin | package com.coolweather.coolweatherjetpack.ui
import androidx.lifecycle.ViewModelProviders
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.coolweather.coolweatherjetpack.R
import com.coolweather.coolweatherjetpack.util.InjectorUtil
import com.coolweather.coolweatherjetpack.ui.weathe... |
feature/resourcecreate/src/main/java/com/muammarahlnn/learnyscape/feature/resourcecreate/ResourceCreateViewModel.kt | unknown_repo | kotlin | package com.muammarahlnn.learnyscape.feature.resourcecreate
import android.util.Log
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.muammarahlnn.learnyscape.core.common.contract.ContractProvider
import com.muammarahlnn.learnyscape.core.... |
example/app/src/main/java/net/gotev/baselibrarydemo/MainActivity.kt | unknown_repo | kotlin | package net.gotev.baselibrarydemo
import android.os.Bundle
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import net.gotev.baselibrary.ExampleClass
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceS... |
app/src/main/java/com/sharehands/sharehands_frontend/repository/SharedPreferencesManager.kt | unknown_repo | kotlin | package com.sharehands.sharehands_frontend.repository
import android.content.Context
import android.content.SharedPreferences
import com.google.gson.Gson
import com.sharehands.sharehands_frontend.model.schedule.CheckListItem
class SharedPreferencesManager private constructor(context: Context) {
private val share... |
app/src/main/java/com/sharehands/sharehands_frontend/repository/SharedPreferencesManager.kt | unknown_repo | kotlin | package com.sharehands.sharehands_frontend.repository
import android.content.Context
import android.content.SharedPreferences
import com.google.gson.Gson
import com.sharehands.sharehands_frontend.model.schedule.CheckListItem
class SharedPreferencesManager private constructor(context: Context) {
private val share... |
app/src/main/java/com/duanstar/locationfaker/utils/GeocoderExt.kt | unknown_repo | kotlin | package com.duanstar.locationfaker.utils
import android.location.Address
import android.location.Geocoder
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import timber.log.Timber
import java.io.IOException
suspend fun Geocoder.awaitAddress(latitude: Double, longitude: Double): Address? {
... |
packages/canvas/src-native/canvas-android/canvas/src/main/java/org/nativescript/canvas/NSCImageAsset.kt | unknown_repo | kotlin | package org.nativescript.canvas
import android.content.res.Resources
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.graphics.Canvas
import android.os.Handler
import android.os.Looper
import androidx.annotation.Nullable
import dalvik.annotation.optimization.FastNative
import org.nat... |
sample/src/main/kotlin/smartrecycleradapter/viewholder/NestedRecyclerViewHolder.kt | unknown_repo | kotlin | package smartrecycleradapter.viewholder
/*
* Created by <NAME> on 2019-06-25.
* Copyright (c) All rights reserved.
*/
import android.view.View.GONE
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import kotlinx.android.synthetic.main.nested_recycler_view.view.more
import kotlinx.andr... |
app/src/main/java/com/app/whakaara/ui/onboarding/WidgetOnboarding.kt | unknown_repo | kotlin | package com.app.whakaara.ui.onboarding
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.found... |
app/src/main/java/org/stepik/android/view/step/ui/delegate/StepNavigationDelegate.kt | unknown_repo | kotlin | package org.stepik.android.view.step.ui.delegate
import android.view.Gravity
import android.view.View
import android.view.ViewGroup
import androidx.core.view.isVisible
import kotlinx.android.synthetic.main.view_step_navigation.view.*
import org.stepic.droid.R
import org.stepik.android.domain.step.model.StepNavigationD... |
android/src/main/kotlin/com/ahmed/applist_detector_flutter/library/SettingsProps.kt | unknown_repo | kotlin | package com.ahmed.applist_detector_flutter.library
import android.content.Context
import android.os.Debug
import android.provider.Settings
import android.util.Log
import java.io.BufferedReader
import java.io.IOException
import java.io.InputStreamReader
private val TAG = SettingsProps::class.java.simpleName
class Se... |
app/src/main/java/com/mean/traclock/utils/RestoreWorker.kt | unknown_repo | kotlin | package com.mean.traclock.utils
import android.content.Context
import android.net.Uri
import androidx.core.app.NotificationCompat
import androidx.core.app.NotificationManagerCompat
import androidx.work.Worker
import androidx.work.WorkerParameters
import com.mean.traclock.App
import com.mean.traclock.R
import com.mean.... |
apollo-compiler/src/main/kotlin/com/apollographql/android/compiler/ir/InlineFragment.kt | unknown_repo | kotlin | package com.apollographql.android.compiler.ir
import com.apollographql.android.compiler.Annotations
import com.apollographql.android.compiler.SchemaTypeSpecBuilder
import com.squareup.javapoet.*
import javax.lang.model.element.Modifier
data class InlineFragment(
val typeCondition: String,
val fields: List<Fie... |
app/rss_reader/src/main/java/com/bowoon/rss_reader/vh/ArticleVH.kt | unknown_repo | kotlin | package com.bowoon.rss_reader.vh
import android.content.Intent
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import androidx.recyclerview.widget.RecyclerView
import com.bowoon.commonutils.Log
import com.bowoon.imageloader.ImageLoader
import com.bowoon.imageloader.ImageOptions
import com.... |
features/word-game/src/main/java/dev/zotov/features/word_game/word_game/WordGameFragment.kt | unknown_repo | kotlin | package dev.zotov.features.word_game.word_game
import android.annotation.SuppressLint
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
impo... |
app/src/main/java/br/com/aline/easydictionary/MeaningAdapter.kt | unknown_repo | kotlin | package br.com.aline.easydictionary
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import br.com.aline.easydictionary.databinding.MeaningRecyclerRowBinding
class MeaningAdapter(private var meaningList: List<Meaning>) :
Rec... |
sample-github-rx/src/main/java/com/example/sample_github_rx/ui/main/MainViewModelFactory.kt | unknown_repo | kotlin | package com.example.sample_github_rx.ui.main
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.example.sample_github_rx.room.SearchHistoryDao
class MainViewModelFactory(val searchHistoryDao: SearchHistoryDao): ViewModelProvider.Factory {
override fun <T : ViewModel?> creat... |
rxhttp-compiler/src/main/java/com/rxhttp/compiler/Utils.kt | unknown_repo | kotlin | package com.rxhttp.compiler
import com.squareup.kotlinpoet.*
import com.squareup.kotlinpoet.ParameterizedTypeName.Companion.parameterizedBy
import javax.lang.model.element.ExecutableElement
import javax.lang.model.type.TypeVariable
//将Java的基本类型/常用类型转换为kotlin中对应的类型
fun TypeName.toKClassTypeName(): TypeName =
if (t... |
app/src/main/java/ru/nbsp/pushka/presentation/subscription/params/control/text/TextControl.kt | unknown_repo | kotlin | package ru.nbsp.pushka.presentation.subscription.params.control.text
import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.widget.EditText
import android.widget.LinearLayout
import android.widget.TextView
import com.jakewharton.rxbinding.widget.textChanges
im... |
app/src/main/java/com/android/sanskrit/mine/fragment/BusinessCardFragment.kt | unknown_repo | kotlin | package com.android.sanskrit.mine.fragment
import android.graphics.Bitmap
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.android.img.Img
import com.android.img.listener.IBitmapListener
import com.android.resource.MyFragment
import com.andro... |
app/src/main/java/dev/razil/folio/ui/comments/PostModel.kt | unknown_repo | kotlin | /*
* MIT License
*
* Copyright (c) 2019 Razil
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, me... |
android/versioned-abis/expoview-abi44_0_0/src/main/java/abi44_0_0/expo/modules/constants/ConstantsModule.kt | unknown_repo | kotlin | // Copyright 2015-present 650 Industries. All rights reserved.
package abi44_0_0.expo.modules.constants
import android.content.Context
import abi44_0_0.expo.modules.core.ExportedModule
import abi44_0_0.expo.modules.core.ModuleRegistry
import abi44_0_0.expo.modules.core.ModuleRegistryDelegate
import abi44_0_0.expo.mod... |
app/src/main/kotlin/org/andstatus/todoagenda/widget/LastEntryVisualizer.kt | unknown_repo | kotlin | package org.andstatus.todoagenda.widget
import android.content.Context
import android.content.Intent
import android.util.Log
import android.widget.RemoteViews
import org.andstatus.todoagenda.MainActivity
import org.andstatus.todoagenda.R
import org.andstatus.todoagenda.RemoteViewsFactory
import org.andstatus.todoagend... |
libnavigation-core/src/main/java/com/mapbox/navigation/core/trip/session/TripSessionStateObserver.kt | unknown_repo | kotlin | package com.mapbox.navigation.core.trip.session
import androidx.annotation.UiThread
/**
* Interface to provide opportunity to fetch [TripSession] state updates
*/
@UiThread
fun interface TripSessionStateObserver {
/**
* Called whenever [TripSession] state has changed like `Start/Stop session`
*/
f... |
app/src/main/java/com/annapol04/munchkin/util/NonNullObserver.kt | unknown_repo | kotlin | package com.annapol04.munchkin.util
import android.arch.lifecycle.Observer
abstract class NonNullObserver<T> : Observer<T> {
protected abstract fun onValueChanged(t: T)
override fun onChanged(value: T?) {
value?.let {
onValueChanged(it)
}
}
} |
app/src/main/java/com/klim/koinsample/ui/home/PostViewHolder.kt | unknown_repo | kotlin | package com.klim.koinsample.ui.home
import androidx.recyclerview.widget.RecyclerView
import com.klim.koinsample.databinding.ItemPostBinding
class PostViewHolder(val binding: ItemPostBinding) : RecyclerView.ViewHolder(binding.root) {
} |
app/src/test/java/com/example/reply/roborazzi/SettingScreenTest.kt | unknown_repo | kotlin | package com.example.reply.roborazzi
import androidx.compose.ui.Modifier
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.compose.ui.test.onRoot
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.example.reply.data.dummySettingUIState
import com.example.reply.ui.routes.setting.Setti... |
app/src/test/java/com/example/reply/roborazzi/SettingScreenTest.kt | unknown_repo | kotlin | package com.example.reply.roborazzi
import androidx.compose.ui.Modifier
import androidx.compose.ui.test.junit4.createComposeRule
import androidx.compose.ui.test.onRoot
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.example.reply.data.dummySettingUIState
import com.example.reply.ui.routes.setting.Setti... |
app/src/main/java/io/github/amanshuraikwar/howmuch/ui/stats/StatsFragment.kt | unknown_repo | kotlin | package io.github.amanshuraikwar.howmuch.ui.stats
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.view.*
import android.view.View.GONE
import android.view.View.VISIBLE
import android.widget.Toast
import and... |
app/src/main/java/io/zoemeow/dutschedule/ui/component/account/LogoutDialog.kt | unknown_repo | kotlin | package io.zoemeow.dutschedule.ui.component.account
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Text
import androidx.compose.material3.TextButton
import androidx.compose.runti... |
module_user/src/main/java/app/melon/user/permission/WriteExternal.kt | unknown_repo | kotlin | package app.melon.composer.permission
import android.Manifest
import android.Manifest.permission.WRITE_EXTERNAL_STORAGE
import android.os.Build
import app.melon.composer.R
import app.melon.permission.PermissionRequest
/**
* Check if the app can writes on the shared storage
*
* On Android 10 (API 29), we can add m... |
vector/src/main/java/vmodev/clearkeep/viewmodels/interfaces/AbstractRestoreBackupKeyActivityViewModel.kt | unknown_repo | kotlin | package vmodev.clearkeep.viewmodels.interfaces
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import vmodev.clearkeep.viewmodelobjects.Resource
abstract class AbstractRestoreBackupKeyActivityViewModel : ViewModel() {
abstract fun getAuthDataAsMegolmBackupAuthDataResult(): LiveData<Resource... |
med-app-android/app/src/main/java/dts/app/med_app_android/Retrofit/RoleManager.kt | unknown_repo | kotlin | package dts.app.med_app_android.Retrofit
import android.content.Context
import dts.app.med_app_android.Constants
import dts.app.med_app_android.Constants.USER_ROLE
class RoleManager(context: Context) {
private var prefs = context.getSharedPreferences(Constants.USER_ROLE_FILE, Context.MODE_PRIVATE)
fun saveR... |
theme-m3/schedules/schedules-screens/src/main/kotlin/org/gdglille/devfest/android/theme/m3/schedules/screens/ScheduleGridPager.kt | unknown_repo | kotlin | package org.gdglille.devfest.android.theme.m3.schedules.screens
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.pager.HorizontalPager
import androidx.compose.foundation.pager.PagerState
import androidx.compose.foundat... |
HTTPShortcuts/app/src/main/kotlin/ch/rmy/android/http_shortcuts/activities/certpinning/CertPinningContent.kt | unknown_repo | kotlin | package ch.rmy.android.http_shortcuts.activities.certpinning
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMax... |
domain/src/main/java/com/udacity/asteroid/radar/domain/model/AsteroidModel.kt | unknown_repo | kotlin | package com.udacity.asteroidradar.data.api
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
data class AsteroidResponse(
val id: Long, val codename: String, val closeApproachDate: String,
val absoluteMagnitude: Double, val estimatedDiameter: Double,
val relativeVelocity: Double,... |
features/feature-flicker-data/src/main/java/com/mctech/showcase/feature/flicker_data/photo/local/entity/RoomFlickerPhotoEntity.kt | unknown_repo | kotlin | package com.mctech.showcase.feature.flicker_data.photo.local.entity
import androidx.room.Entity
import androidx.room.Index
import androidx.room.PrimaryKey
@Entity(
tableName = "flicker_photo",
indices = [
Index(
value = ["tag", "page"],
name = "index_photos_per_tag_and_page"
... |
app/src/main/java/com/prime/media/widget/Tiramisu.kt | unknown_repo | kotlin | /*
* Copyright 2024 Zakir Sheikh
*
* Created by Zakir Sheikh on 28-08-2024.
*
* 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
*
* Un... |
app/src/main/java/com/lexo/lexogallery/ImageAdapter.kt | unknown_repo | kotlin | package com.lexo.lexogallery
import android.content.Context
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.lexo.lexogallery.databinding.ImageRecycleBinding
class ImageAdapter(private val context: Context, pri... |
collaboration-suite-glass-ui/src/main/java/com/kaleyra/collaboration_suite_glass_ui/call/fragments/StartFragment.kt | unknown_repo | kotlin | /*
* Copyright 2023 Kaleyra @ https://www.kaleyra.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
app/src/main/java/com/aidlab/example/ChartView.kt | unknown_repo | kotlin | package com.aidlab.example
import android.content.Context
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
import android.graphics.Path
import androidx.annotation.Keep
import android.util.AttributeSet
import android.util.DisplayMetrics
import android.view.View
class ChartView... |
compose-material/src/test/java/com/google/android/horologist/compose/material/ChipIconWithProgressTest.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/com/implizstudio/android/app/pitzz/ui/search/movie/SearchMovieViewModel.kt | unknown_repo | kotlin | package com.implizstudio.android.app.pitzz.ui.search.movie
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.implizstudio.android.app.pitzz.data.model.BaseEntity
import com.implizstudio.android.app.pitzz.data.model.constant.Constant
import com.i... |
app/src/main/java/org/y20k/transistor/MainActivity.kt | unknown_repo | kotlin | package org.y20k.escapepod
import android.content.Context
import android.content.SharedPreferences
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.findNavController
import androidx.navigation.ui.AppBarConfiguration
import androidx.navigation.ui.navigateUp
import and... |
glance/glance/src/androidMain/kotlin/androidx/glance/layout/Spacer.kt | unknown_repo | kotlin | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
compose-preferences-material3/src/main/java/de/schnettler/datastore/compose/material3/PreferenceItem.kt | unknown_repo | kotlin | package de.schnettler.datastore.compose.material3
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.runtime.Composable
import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.datastore.preferences.core.Preferences
impor... |
app/system/src/main/java/com/jmat/system/ui/screen/SystemIntentScreen.kt | unknown_repo | kotlin | package com.jmat.system.ui.screen
import android.content.Intent
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.text.selection.SelectionContainer
import androidx.compose.material... |
app/src/main/java/com/example/jeff/noteskotlin/adapter/NoteListAdapter.kt | unknown_repo | kotlin | package com.example.jeff.noteskotlin.adapter
import android.graphics.Paint
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.example.jeff.noteskotlin.R
import com.example.jeff.noteskotlin.... |
next/kmp/browser/src/commonMain/kotlin/org/dweb_browser/browser/download/ui/DecompressView.kt | unknown_repo | kotlin | package org.dweb_browser.browser.download.ui
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.fillMaxSize
import androidx.compose.foundatio... |
app/src/main/java/vdsMain/wallet/ChainParams.kt | unknown_repo | kotlin | package vdsMain.wallet
import android.util.LongSparseArray
import bitcoin.UInt256
import net.bither.bitherj.utils.Utils
import vdsMain.BLOCK_CHAIN_TYPE
import vdsMain.BaseChainParam
import vdsMain.NETWORK_TYPE
import vdsMain.Params
import vdsMain.block.BitcoinBlockHeader
import vdsMain.block.BlockInfo
import vdsMain.t... |
ui/src/test/kotlin/io/rippledown/appbar/KBControlTest.kt | unknown_repo | kotlin | package io.rippledown.appbar
import androidx.compose.ui.test.*
import androidx.compose.ui.test.junit4.ComposeContentTestRule
import androidx.compose.ui.test.junit4.createComposeRule
import io.kotest.matchers.shouldBe
import io.rippledown.constants.kb.KB_CONTROL_ID
import io.rippledown.constants.main.CREATE_KB_ITEM_ID
... |
EZRecipes/app/src/main/java/com/abhiek/ezrecipes/ui/navbar/DrawerItem.kt | unknown_repo | kotlin | package com.abhiek.ezrecipes.ui.navbar
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Home
import androidx.compose.material.icons.filled.MenuBook
import androidx.compose.ui.graphics.vector.ImageVector
// Routes and their associated titles and icons in the navigation graph
s... |
sample/android/src/main/java/co/yml/ychat/android/ui/theme/Icons.kt | unknown_repo | kotlin | package co.yml.ychat.android.ui.theme
import androidx.compose.material.IconButton as MaterialIconButton
import androidx.annotation.DrawableRes
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.ma... |
app/src/main/java/donank/amoveowallet/Data/Model/TransactionModel.kt | unknown_repo | kotlin | package donank.amoveowallet.Data.Model
import android.arch.persistence.room.ColumnInfo
import android.arch.persistence.room.Entity
import android.arch.persistence.room.PrimaryKey
@Entity(tableName = "transaction")
data class TransactionModel(
@ColumnInfo(name = "from_address")
var fromAddress: String,... |
app/src/main/java/pl/podwikagrzegorz/mrbudget/ui/history/HistoryViewModel.kt | unknown_repo | kotlin | package pl.podwikagrzegorz.mrbudget.ui.history
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.launch
import pl.podwikagrzegorz.mrbudget... |
koin-projects/koin-android-viewmodel/src/main/java/org/koin/android/viewmodel/koin/KoinExt.kt | unknown_repo | kotlin | /*
* Copyright 2017-2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... |
app/src/main/java/com/group7/jhealth/fragments/RecordEntryFragment.kt | unknown_repo | kotlin | package com.group7.jhealth.fragments
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.GridLayoutManager
import com.group7.jhealth.KEY_BUNDLE_WEIGHT_... |
rangerskin/src/main/java/com/rangerleo/skin/skin/ApplicationActivityLifecycle.kt | unknown_repo | kotlin | /*
* Copyright 2024, Original Author Name RangerLeo(刘勇杰).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
*
* U... |
sample/src/main/java/soup/metronome/sample/theme/Theme.kt | unknown_repo | kotlin | /*
* Copyright 2021 SOUP
*
* 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 wri... |
app/src/main/kotlin/com/maltaisn/notes/ui/sort/SortViewModel.kt | unknown_repo | kotlin | /*
* Copyright 2021 Nicolas Maltais
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... |
app/src/main/java/br/com/renancsdev/sky/extension/Activity.kt | unknown_repo | kotlin | package br.com.renancsdev.sky.extension
import android.app.Activity
fun Activity.pegarStringDoIntent(tagDoIntent: String): String {
return this.intent.getStringExtra(tagDoIntent).toString()
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.