file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
features/recipe_dashboard/src/main/java/com/carlosquezada/recipe_dashboard/presentation/activity/MainActivity.kt | unknown_repo | kotlin | package com.carlosquezada.recipe_dashboard.presentation.activity
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import android.widget.SearchView
import androidx.annotation.NonNull
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.forEach
import androidx.core.view... |
feature-settings-impl/src/main/java/io/novafoundation/nova/feature_settings_impl/presentation/networkManagement/chain/headerAdapter/ChainNetworkManagementHeaderAdapter.kt | unknown_repo | kotlin | package io.novafoundation.nova.feature_settings_impl.presentation.networkManagement.chain.headerAdapter
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import coil.ImageLoader
import io.novafoundation.nova.common.list.SingleItemAdapter
import io.novafoundation.no... |
app/src/main/java/com/huanchengfly/tieba/post/adapters/SearchPostAdapter.kt | unknown_repo | kotlin | package com.huanchengfly.tieba.post.adapters
import android.content.Context
import android.graphics.Color
import android.widget.TextView
import androidx.annotation.ColorInt
import androidx.core.text.HtmlCompat
import com.huanchengfly.tieba.post.R
import com.huanchengfly.tieba.post.adapters.base.BaseSingleTypeAdapter
i... |
shared/src/commonMain/kotlin/uiComponents/Samplepermission.kt | unknown_repo | kotlin | package uiComponents
import androidx.compose.foundation.Image
import androidx.compose.material3.Button
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
impor... |
user/src/main/java/org/the_chance/honeymart/ui/feature/notifications/NotificationsUiState.kt | unknown_repo | kotlin | package org.the_chance.honeymart.ui.feature.notifications
import android.annotation.SuppressLint
import org.the_chance.honeymart.domain.model.Notification
import org.the_chance.honeymart.domain.util.ErrorHandler
import java.text.SimpleDateFormat
import java.util.Date
data class NotificationsUiState(
val isLoading... |
app/src/main/java/com/akexorcist/recyclerviewwithitemtouchhelper/CustomItemTouchHelperCallback.kt | unknown_repo | kotlin | package com.akexorcist.recyclerviewwithitemtouchhelper
import android.support.v7.widget.RecyclerView
import android.support.v7.widget.helper.ItemTouchHelper
/**
* Created by Akexorcist on 26/12/2017 AD.
*/
class CustomItemTouchHelperCallback(private var listener: CustomItemTouchHelperListener) : ItemTouchHelper.Ca... |
app/src/main/java/com/aliahmed/weatherapp/ui/Navigation.kt | unknown_repo | kotlin | package com.aliahmed.weatherapp.ui
import androidx.compose.runtime.Composable
import androidx.navigation.NavHostController
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import com.aliahmed.core_ui.NavigationItem
import com.aliahmed.current_weather.view.CurrentWeatherScreen
im... |
android/app/src/main/java/com/kaelesty/audionautica/data/repos/tools/FileUploaderTool.kt | unknown_repo | kotlin | package com.kaelesty.audionautica.data.repos.tools
import android.app.Application
import android.content.ContentResolver
import android.net.Uri
import android.provider.OpenableColumns
import android.util.Log
import okhttp3.MediaType.Companion.parse
import okhttp3.MediaType.Companion.toMediaTypeOrNull
import okhttp3.Mu... |
app/src/main/java/com/faigenbloom/testtask/ui/common/animations/AnimatedTab.kt | unknown_repo | kotlin | package com.faigenbloom.testtask.ui.common.animations
import androidx.compose.animation.AnimatedContent
import androidx.compose.animation.AnimatedContentScope
import androidx.compose.animation.AnimatedContentTransitionScope
import androidx.compose.animation.core.EaseIn
import androidx.compose.animation.core.EaseOut
im... |
cascade-compose/src/main/java/me/saket/cascade/internal/ScreenRelativeBounds.kt | unknown_repo | kotlin | package me.saket.cascade.internal
import android.view.View
import androidx.compose.runtime.Immutable
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.geometry.Rect
import androidx.compose.ui.geometry.Size
import androidx.compose.ui.layout.LayoutCoordinates
import androidx.compose.ui.layout.findRoo... |
app/src/main/java/com/amagen/supercheap/exceptions/MyExceptions.kt | unknown_repo | kotlin | package com.amagen.supercheap.exceptions
import android.app.Activity
import android.content.Context
import android.widget.Toast
import androidx.compose.ui.res.stringResource
import androidx.lifecycle.LifecycleCoroutineScope
import com.amagen.supercheap.MainActivityApplication
import com.amagen.supercheap.MainActivityV... |
miniapp/src/test/java/com/rakuten/tech/mobile/miniapp/js/securestoragedispatcher/MessageBridgeSecurestorageDispatcherSpec.kt | unknown_repo | kotlin | package com.rakuten.tech.mobile.miniapp.js.securestoragedispatcher
import androidx.test.core.app.ActivityScenario
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.google.gson.Gson
import com.rakuten.tech.mobile.miniapp.*
import com.rakuten.tech.mobile.miniapp.js.*
import com.rakuten.tech.mobile.miniapp.... |
miniapp/src/test/java/com/rakuten/tech/mobile/miniapp/js/securestoragedispatcher/MessageBridgeSecurestorageDispatcherSpec.kt | unknown_repo | kotlin | package com.rakuten.tech.mobile.miniapp.js.securestoragedispatcher
import androidx.test.core.app.ActivityScenario
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.google.gson.Gson
import com.rakuten.tech.mobile.miniapp.*
import com.rakuten.tech.mobile.miniapp.js.*
import com.rakuten.tech.mobile.miniapp.... |
app/src/main/java/com/example/simpletodo/MainActivity.kt | unknown_repo | kotlin | package com.example.simpletodo
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import android.widget.EditText
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import org.apache.commons.io.FileUtils
import java... |
simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Cinema4d.kt | unknown_repo | kotlin | package compose.icons.simpleicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Butt
import androidx.compose.ui.graphics.StrokeJoin.Miter
import androidx.compose.ui.graphics... |
app/src/main/kotlin/com/madness/collision/Democratic.kt | unknown_repo | kotlin | /*
* Copyright 2021 Clifford Liu
*
* 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/eu/ginlo_apps/ginlo/UseCases/InviteFriendUseCase.kt | unknown_repo | kotlin | // Copyright (c) 2020-2024 ginlo.net GmbH
package eu.ginlo_apps.ginlo.UseCases
import android.app.Activity
import android.content.ClipData
import android.content.Intent
import android.graphics.Bitmap
import android.net.Uri
import android.os.Build
import androidx.core.content.FileProvider
import eu.ginlo_apps.ginlo.Bu... |
Android/Podium/app/src/main/java/xyz/thisisjames/boulevard/android/podium/room/PreferenceDao.kt | unknown_repo | kotlin | package xyz.thisisjames.boulevard.android.podium.room
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import androidx.room.Update
@Dao
interface PreferenceDao {
@Query("SELECT * FROM preference_table order ... |
app/src/main/kotlin/net/yuzumone/bergamio/model/HdoInfo.kt | unknown_repo | kotlin | package net.yuzumone.bergamio.model
import android.annotation.SuppressLint
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
@SuppressLint("ParcelCreator")
@Parcelize
data class HdoInfo(
val hdoServiceCode: String,
val number: String,
val iccid: String,
val regulatio... |
app/src/main/java/cucer/darian/f1races/F1RacesActivity.kt | unknown_repo | kotlin | package cucer.darian.f1races
import android.os.Bundle
import com.android.volley.Request
import androidx.appcompat.app.AppCompatActivity
import com.android.volley.Response
import com.android.volley.toolbox.StringRequest
//public static final BASE_URL = ""
const val BASE_URL = "https://ergast.com/api/f1"
class F1Races... |
app/src/main/java/io/petros/posts/kotlin/model/Comment.kt | unknown_repo | kotlin | package io.petros.posts.kotlin.model
import android.arch.persistence.room.*
@Entity(tableName = "comment",
foreignKeys = arrayOf(
ForeignKey(entity = Post::class,
parentColumns = arrayOf("id"),
childColumns = arrayOf("post_id"),
... |
app/src/main/java/net/voussoir/trkpt/helpers/MapOverlayHelper.kt | unknown_repo | kotlin | /*
* MapHelper.kt
* Implements the MapOverlayHelper class
* A MapOverlayHelper offers helper methods for creating osmdroid map overlays
*
* This file is part of
* TRACKBOOK - Movement Recorder for Android
*
* Copyright (c) 2016-22 - Y20K.org
* Licensed under the MIT-License
* http://opensource.org/licenses/MI... |
app/src/main/java/com/jarvislin/drugstores/page/map/MarkerCacheManager.kt | unknown_repo | kotlin | package com.jarvislin.drugstores.page.map
import androidx.collection.LruCache
import com.google.android.gms.maps.model.Marker
import com.jarvislin.domain.entity.DrugstoreInfo
class MarkerCacheManager {
companion object {
const val MAX_MARKER_AMOUNT = 150
private const val SIZE = 1
}
priv... |
app/src/main/java/eina/unizar/xiangqi_frontendmovil/OtherProfile.kt | unknown_repo | kotlin | package eina.unizar.xiangqi_frontendmovil
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.MenuItem
import android.widget.ImageView
import android.widget.ProgressBar
import android.widget.TextView
import com.github.mikephil.charting.charts.BarChart
import com.github.mikephil... |
Hermes/Logger/src/main/java/com/spartancookie/hermeslogger/share/ShareHelperCommon.kt | unknown_repo | kotlin | package com.spartancookie.hermeslogger.share
import android.app.Activity
import android.content.Context
import android.content.Intent
import com.spartancookie.hermeslogger.core.HermesHandler
import com.spartancookie.hermeslogger.core.LogType
import com.spartancookie.hermeslogger.models.LogDataHolder
import com.spartan... |
app/src/main/java/com/example/bitfit/AddActivity.kt | unknown_repo | kotlin | package com.example.bitfit
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.Button
import android.widget.EditText
import androidx.lifecycle.lifecycleScope
import androidx.recyclerview.widget.RecyclerView
import kotlinx.coroutines.Dispatchers.IO
impo... |
android/app/src/main/java/app/log/weicheng/ui/LoginScreen.kt | unknown_repo | kotlin | package app.log.weicheng.ui
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.... |
kakao open sdk/sample-common/src/main/java/com/kakao/sdk/sample/common/internal/PickerItem.kt | unknown_repo | kotlin | /*
Copyright 2019 Kakao Corp.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, s... |
app/src/main/java/com/aykuttasil/sweetloc/data/local/entity/Room.kt | unknown_repo | kotlin | /* Author - <NAME>(@aykuttasil) */
package com.aykuttasil.sweetloc.data.local.entity
/*
import androidx.room.Entity
import androidx.room.Ignore
import androidx.room.PrimaryKey
@Entity(tableName = "UserTracker")
data class Room(
@PrimaryKey(autoGenerate = true) var userTrackerId: Long? = null,
var nam... |
changelog/src/main/java/com/savvasdalkitsis/gameframe/feature/changelog/view/ChangeLogDialogFragment.kt | unknown_repo | kotlin | /**
* Copyright 2017 <NAME>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,... |
app/src/main/java/com/learnopengles/android/lesson5/LessonFiveGLSurfaceView.kt | unknown_repo | kotlin | package com.learnopengles.android.lesson5
import android.annotation.SuppressLint
import android.content.Context
import android.opengl.GLSurfaceView
import android.view.MotionEvent
class LessonFiveGLSurfaceView(context: Context) : GLSurfaceView(context) {
private var mRenderer: LessonFiveRenderer? = null
@Sup... |
WindowManager/app/src/main/java/com/example/windowmanagersample/SplitLayout.kt | unknown_repo | kotlin | /*
* Copyright 2020 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/okbreathe/quasar/ui/settings/SettingsActivity.kt | unknown_repo | kotlin | package com.okbreathe.quasar.ui.settings
import android.content.Context
import android.content.res.Configuration
import android.media.RingtoneManager
import android.net.Uri
import android.os.Bundle
import android.preference.ListPreference
import android.preference.Preference
import android.preference.PreferenceActivit... |
DDRTools/DDRTools/src/main/java/com/mx/ddrtools/components/dialogs/DDRLoader.kt | unknown_repo | kotlin | /**
Copyright 2021 DDRTools
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distribut... |
app/src/main/java/com/suihan74/satena/models/NoticesKey.kt | unknown_repo | kotlin | package com.suihan74.satena.models
import android.content.Context
import com.suihan74.hatenaLib.Notice
import com.suihan74.utilities.SafeSharedPreferences
import com.suihan74.utilities.SharedPreferencesKey
import com.suihan74.utilities.typeInfo
import java.lang.reflect.Type
import java.time.LocalDateTime
data class N... |
app/src/main/java/com/suihan74/satena/models/NoticesKey.kt | unknown_repo | kotlin | package com.suihan74.satena.models
import android.content.Context
import com.suihan74.hatenaLib.Notice
import com.suihan74.utilities.SafeSharedPreferences
import com.suihan74.utilities.SharedPreferencesKey
import com.suihan74.utilities.typeInfo
import java.lang.reflect.Type
import java.time.LocalDateTime
data class N... |
shared/src/commonMain/kotlin/com/aglushkov/wordteacher/shared/general/extensions/StateFlow.kt | unknown_repo | kotlin | package com.aglushkov.wordteacher.shared.general.extensions
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.collect
suspend fun <T> Flow<T>.forward(stateFlow: MutableStateFlow<T>) {
collect {
stateFlow.value = it
}
} |
source-gallery/src/main/java/com/google/android/apps/muzei/gallery/GalleryArtDocumentsProvider.kt | unknown_repo | kotlin | /*
* Copyright 2020 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
app/src/main/java/com/rolandvitezhu/todocloud/ui/activity/main/viewmodel/viewmodelfactory/ListsViewModelFactory.kt | unknown_repo | kotlin | package com.rolandvitezhu.todocloud.ui.activity.main.viewmodel.viewmodelfactory
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.rolandvitezhu.todocloud.ui.activity.main.viewmodel.CategoriesViewModel
import com.rolandvitezhu.todocloud.ui.activity.main.viewmodel.ListsViewModel
... |
app/src/main/java/jp/juggler/subwaytooter/ActColumnCustomize.kt | unknown_repo | kotlin | package jp.juggler.subwaytooter
import android.content.Intent
import android.content.res.ColorStateList
import android.graphics.Bitmap
import android.net.Uri
import android.os.Bundle
import androidx.annotation.ColorInt
import androidx.core.view.ViewCompat
import androidx.appcompat.app.AppCompatActivity
import android.... |
app/src/main/java/com/pm/catlover/ImageViewer.kt | unknown_repo | kotlin | package com.pm.catlover
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import com.bumptech.glide.Glide
import kotlinx.android.synthetic.main.image_include.*
class ImageViewer : AppCompatActivity() {
var flickrPost: FlickrPost? = null
var FLICKR_DATA:String = "flickrData"
override... |
app/src/main/java/live/hms/app2/ui/meeting/HlsPlayer.kt | unknown_repo | kotlin | package live.hms.app2.ui.meeting
import android.content.Context
import com.google.android.exoplayer2.ExoPlayer
import com.google.android.exoplayer2.MediaItem
import com.google.android.exoplayer2.Player
import com.google.android.exoplayer2.source.hls.HlsMediaSource
import com.google.android.exoplayer2.upstream.DataSour... |
app/src/main/java/com/xflip/arglassesdemo/base/BaseViewModel.kt | unknown_repo | kotlin | package com.xflip.arglassesdemo.base
import android.app.Application
import androidx.lifecycle.AndroidViewModel
open class BaseViewModel(context: Application) : AndroidViewModel(context) {
} |
app/src/main/java/com/fatlytics/app/ui/base/BaseViewActivity.kt | unknown_repo | kotlin | package com.fatlytics.app.ui.base
import android.os.Bundle
import androidx.annotation.LayoutRes
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
abstract class BaseViewActivity<M : BaseViewModel, B : ViewDataBinding> :
BaseActivity<M>() {
@get:LayoutRes
protected ab... |
app/src/main/java/com/fatlytics/app/ui/base/BaseViewActivity.kt | unknown_repo | kotlin | package com.fatlytics.app.ui.base
import android.os.Bundle
import androidx.annotation.LayoutRes
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
abstract class BaseViewActivity<M : BaseViewModel, B : ViewDataBinding> :
BaseActivity<M>() {
@get:LayoutRes
protected ab... |
app-extensions/app-configuration/src/main/java/com/kaleyra/app_configuration/ui/ViewFinderView.kt | unknown_repo | kotlin | /*
* Copyright 2022 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 appli... |
app/src/main/java/com/chisw/iotdemo/ui/main/MainActivity.kt | unknown_repo | kotlin | /*
* Copyright (C) 2018 CHI Software 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... |
pman_android/app/src/main/java/com/sz/pman/EntityView.kt | unknown_repo | kotlin | package com.sz.pman
import android.net.Uri
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layo... |
app/src/main/kotlin/com/github/hiking93/m3demo/shared/FragmentExtensions.kt | unknown_repo | kotlin | package com.github.hiking93.m3demo.shared
import android.os.Bundle
import androidx.fragment.app.Fragment
fun Fragment.putArguments(args: Bundle) {
arguments = (arguments ?: Bundle()).apply {
putAll(args)
}
} |
app/src/main/java/dev/sertan/android/paper/ui/main/MainViewModel.kt | unknown_repo | kotlin | package dev.sertan.android.paper.ui.main
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import dev.sertan.android.paper.data.model.Note
import dev.sertan.android.paper.data.repo.NoteRepo
import dev.sertan.android.paper.data.repo.UserRepo
... |
app/src/main/java/com/example/evgeniy/facebot_client_android/extensions.kt | unknown_repo | kotlin | package com.example.evgeniy.facebot_client_android
import android.app.Activity
import android.app.Fragment
/**
* @author evgeniy
* @since 07.04.18.
*/
/**
* Расширение для перехода на новый фрагмент
*
* Принимает:
* [fragment] - новый фрагмент
* [placeHolder] - ID framelayout'а в который будет загружен фрагме... |
app/src/main/java/cn/wthee/pcrtool/database/AppTweetDatabase.kt | unknown_repo | kotlin | package cn.wthee.pcrtool.database
import android.annotation.SuppressLint
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import cn.wthee.pcrtool.MyApplication
import cn.wthee.pcrtool.data.db.dao.TweetDao
import cn.wthee.pcrtool.data.db.entity.TweetData
import cn.wthee.pcrtool.... |
features/rates/src/main/kotlin/com/dmdiaz/currency/features/rates/RateAdapter.kt | unknown_repo | kotlin | /*
* MIT License
*
* Copyright (c) 2024 <NAME>
*
* 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, m... |
app/src/main/java/com/example/newscast/ui/ViewModelFactory.kt | unknown_repo | kotlin | package com.example.newscast.ui
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.example.newscast.ui.browse.BrowseViewModel
import com.example.newscast.ui.favourite.FavouritesViewModel
import com.example.newscast.ui.newspaper.NewsPaperViewModel
import com.example.newscast.ui.s... |
Readable/src/main/java/com/iammert/library/readablebottombar/BottomBarItemConfig.kt | unknown_repo | kotlin | package com.iammert.library.readablebottombar
import android.graphics.drawable.Drawable
data class BottomBarItemConfig(
val text: String,
val drawable: Drawable,
val index: Int
) |
test-utils/src/main/java/com/criteo/publisher/MraidUtil.kt | unknown_repo | kotlin | /*
* Copyright 2020 Criteo
*
* 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 ... |
app/src/main/java/com/fridaytech/dex/presentation/orders/orderbook/OrderBookFragment.kt | unknown_repo | kotlin | package com.fridaytech.dex.presentation.orders.orderbook
import android.os.Bundle
import android.view.View
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProviders
import androidx.recyclerview.widget.LinearLayoutManager
import com.fridaytech.dex.R
import com.fridaytech.dex.core.ui.CoreFragment
i... |
katabase/app/src/main/java/it/kenble/katabase/base/BaseActivity.kt | unknown_repo | kotlin | package it.kenble.katabase.base
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
open class BaseActivity: AppCompatActivity() {
internal fun showToast(message: String) {
Toast.makeText(this, message, Toast.LENGTH_SHORT).show()
}
} |
app/src/main/java/me/ranko/autodark/ui/DarkWallpaperFragment.kt | unknown_repo | kotlin | package me.ranko.autodark.ui
import android.animation.Animator
import android.animation.AnimatorListenerAdapter
import android.annotation.SuppressLint
import android.content.Context
import android.graphics.Rect
import android.graphics.drawable.Drawable
import android.os.Bundle
import android.view.*
import android.widg... |
app/src/main/java/com/precopia/david/lists/view/authentication/AuthView.kt | unknown_repo | kotlin | package com.precopia.david.lists.view.authentication
import android.app.Activity
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.View
import android.widget.Toast
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import androidx.navigation... |
crashreporter/src/main/java/com/avneesh/crashreporter/utils/CrashUtil.kt | unknown_repo | kotlin | package com.avneesh.crashreporter.utils
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Context.NOTIFICATION_SERVICE
import android.os.Build
import android.text.TextUtils
import android.util.Log
import ... |
compose/ui/ui-graphics/src/androidAndroidTest/kotlin/androidx/compose/ui/graphics/OutlineTest.kt | unknown_repo | kotlin | /*
* Copyright 2020 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/dinhlam/sharebox/modelview/sharelist/ShareListTextModelView.kt | unknown_repo | kotlin | package com.dinhlam.sharebox.modelview.sharelist
import android.view.View
import com.dinhlam.sharebox.R
import com.dinhlam.sharebox.base.BaseListAdapter
import com.dinhlam.sharebox.base.BaseSpanSizeLookup
import com.dinhlam.sharebox.databinding.ModelViewShareListTextBinding
import com.dinhlam.sharebox.extensions.forma... |
app/src/main/java/com/ucsm/tylersai/amsteacher/ui/fragments/AddTeacherFragmentDean.kt | unknown_repo | kotlin | package com.ucsm.tylersai.amsteacher
import android.app.ProgressDialog
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import android.widget.ListView
import android.widge... |
magellan-library/src/test/java/com/wealthfront/magellan/navigation/LinearNavigatorTest.kt | unknown_repo | kotlin | package com.wealthfront.magellan.navigation
import android.app.Activity
import android.view.Menu
import androidx.appcompat.app.AppCompatActivity
import com.google.common.truth.Truth.assertThat
import com.wealthfront.magellan.Direction.FORWARD
import com.wealthfront.magellan.ScreenContainer
import com.wealthfront.magel... |
enro-core/src/main/java/dev/enro/core/NavigationHandle.kt | unknown_repo | kotlin | package dev.enro.core
import android.os.Bundle
import android.os.Looper
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.lifecycleScope
import dev.enro.core.container.NavigationContainer
import dev.enro.core.controller.EnroDependencyScope
import dev.enro.core.contr... |
app/src/main/java/com/spaceapp/data/datasource/remote/location/hms/LocationDataSource.kt | unknown_repo | kotlin | package com.spaceapp.data.datasource.remote.location.hms
import android.Manifest
import android.app.Application
import android.content.Context
import android.content.pm.PackageManager
import android.location.Location
import android.location.LocationManager
import androidx.core.content.ContextCompat
import com.huawei.h... |
app/src/main/java/com/antonicastejon/cryptodata/CryptoApplication.kt | unknown_repo | kotlin | package com.antonicastejon.cryptodata
import android.app.Activity
import android.app.Application
import com.antonicastejon.cryptodata.di.DaggerApplicationComponent
import dagger.android.AndroidInjector
import dagger.android.DispatchingAndroidInjector
import dagger.android.HasActivityInjector
import javax.inject.Inject... |
app/src/main/java/com/sebastijanzindl/galore/ui/theme/Color.kt | unknown_repo | kotlin | package com.sebastijanzindl.galore.ui.theme
import androidx.compose.ui.graphics.Color
val primaryLight = Color(0xFF8A5022)
val onPrimaryLight = Color(0xFFFFFFFF)
val primaryContainerLight = Color(0xFFFFDCC5)
val onPrimaryContainerLight = Color(0xFF301400)
val secondaryLight = Color(0xFF755845)
val onSecondaryLight = C... |
app/src/main/java/com/humxa/pipdemo/presentation/view/HomeActivity.kt | unknown_repo | kotlin | package com.humxa.pipdemo.presentation.view
import android.content.Intent
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.MaterialTheme
import androidx.compose.materia... |
sample/src/main/java/com/madrapps/sample/linegraph/LineGraph5.kt | unknown_repo | kotlin | package com.madrapps.sample.linegraph
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import com.m... |
exchange-symmetric-key-view/src/main/java/com/safechat/conversation/symmetrickey/ExchangeSymmetricKeyActivity.kt | unknown_repo | kotlin | package com.safechat.conversation.symmetrickey
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.support.design.widget.CoordinatorLayout
import android.support.design.widget.Snackbar
import android.support.v7.app.AppCompatActivity
import android.view.View
class Excha... |
sample/src/main/java/com/fraggjkee/smsconfirmationview/sample/MainActivity.kt | unknown_repo | kotlin | package com.fraggjkee.smsconfirmationview.sample
import android.os.Bundle
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import com.hsmnzaydn.smsconfirmationview.SmsConfirmationView
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
... |
flick_player/src/main/java/com/flipkart/flick/core/db/repository/AdsRepository.kt | unknown_repo | kotlin | /*
* Copyright (C) 2021 Flipkart Internet Pvt Ltd
*
* 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 applicabl... |
autoscrollcircularpagerview/src/main/java/com/mindinventory/CenterItemFinder.kt | unknown_repo | kotlin | package com.mindinventory
import android.content.Context
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import kotlin.math.abs
class CenterItemFinder(
private val context: Context,
private val layoutManager: LinearLayoutManager,
private val callbac... |
feature/about/src/main/java/cn/jcn/jailedbird/feature/about/exposeimpl/AboutExposeImpl.kt | unknown_repo | kotlin | package cn.jcn.jailedbird.feature.about.exposeimpl
import androidx.appcompat.app.AppCompatActivity
import cn.jcn.jailedbird.feature.about.AboutActivity
import cn.jcn.jailedbird.feature.about.expose.AboutEntity
import cn.jcn.jailedbird.feature.about.expose.AboutExpose
import javax.inject.Inject
class AboutExposeImpl @... |
QuizApplication/app/src/main/java/com/app/quiz/QuizResultAdapter.kt | unknown_repo | kotlin | package com.app.quiz
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.app.quiz.entity.QuizResult
class QuizResultAdapter(private val quizResults: ArrayList<QuizResult>) :
RecyclerVi... |
core/ui/src/main/java/com/peonlee/core/ui/viewholder/product/ProductViewHolder.kt | unknown_repo | kotlin | package com.peonlee.core.ui.viewholder.product
import androidx.constraintlayout.widget.ConstraintLayout.LayoutParams
import androidx.core.view.isVisible
import coil.load
import com.peonlee.common.ext.toFormattedMoney
import com.peonlee.core.ui.Navigator
import com.peonlee.core.ui.R
import com.peonlee.core.ui.databindi... |
app-android/src/main/java/org/mtransit/android/ui/pref/PreferencesViewModel.kt | unknown_repo | kotlin | package org.mtransit.android.ui.pref
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
import org.mtransit.android.commons.MTLog
import org.mtransit.android.ui.view.common.getLiveDataDistinct
import javax.inject.Inject
@HiltViewModel
clas... |
EasyRoom/app/src/main/java/pt/ipca/easyroom/screen/HomeTenantActivity.kt | unknown_repo | kotlin | package pt.ipca.easyroom.screen
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.ImageView
import android.widget.Toast
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.firestore.FirebaseFirestore
import pt.ipca.easyroom.... |
app/src/main/java/org/tty/dailyset/ui/theme/Color.kt | unknown_repo | kotlin | package org.tty.dailyset.ui.theme
import androidx.compose.ui.graphics.Color
val Purple200 = Color(0xFFBB86FC)
val Purple500 = Color(0xFF6200EE)
val Purple700 = Color(0xFF3700B3)
val Teal50 = Color(0xFFE0F2F1)
val Teal200 = Color(0xFF03DAC5)
val Teal300 = Color(0xFF95B8B4)
val Teal700 = Color(0xFF018786)
val Teal900 =... |
backpack-compose/src/main/kotlin/net/skyscanner/backpack/compose/bottomnav/BpkBottomNav.kt | unknown_repo | kotlin | /*
* Backpack for Android - Skyscanner's Design System
*
* Copyright 2018 Skyscanner Ltd
*
* 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-... |
app/src/main/java/space/pal/sig/view/iss/IssActivity.kt | unknown_repo | kotlin | package space.pal.sig.view.iss
import android.Manifest
import android.content.pm.PackageManager
import android.location.Location
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import androidx.appcompat.app.AlertDialog
import androidx.core.app.ActivityCompat
import androidx.core.content.... |
kit/src/main/java/healthstack/kit/task/activity/model/SustainedPhonationMeasureModel.kt | unknown_repo | kotlin | package healthstack.kit.task.activity.model
import android.content.Context
import androidx.compose.animation.core.CubicBezierEasing
import androidx.compose.animation.core.tween
import androidx.compose.ui.unit.Dp
import healthstack.kit.R
import healthstack.kit.sensor.AudioRecorder
import healthstack.kit.task.base.StepM... |
App/app/src/main/java/com/example/calculator/data/db/history/HistoryItemEntity.kt | unknown_repo | kotlin | package com.example.calculator.data.db.history
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "history_item_entity")
class HistoryItemEntity(
@PrimaryKey(autoGenerate = true)
val id: Long,
val expression: String,
val result: String
) {
} |
app/src/main/java/com/jonalmeida/sessionshare/utils/SafeIntent.kt | unknown_repo | kotlin | package com.jonalmeida.sessionshare.utils
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.os.Parcelable
import com.jonalmeida.sessionshare.ext.Log
import java.util.ArrayList
/**
* External applications can pass values into Intents that can cause us to crash: in defense,
... |
app/src/main/java/com/github/muhwyndhamhp/qompute/viewmodel/BuildingViewModel.kt | unknown_repo | kotlin | package com.github.muhwyndhamhp.qompute.viewmodel
import android.text.Editable
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.github.muhwyndhamhp.qompute.data.AppRepository
import com.github.muhwyndhamhp.qompute.data.model.Build
import com.github.muhwyndhamhp.qompute.data.mode... |
ca_video_player/app/src/main/java/software/egger/jetpackvideoplayer/viewmodels/VideoPlayerViewModel.kt | unknown_repo | kotlin | package software.egger.jetpackvideoplayer.viewmodels
import android.arch.lifecycle.MutableLiveData
import android.arch.lifecycle.ViewModel
import software.egger.jetpackvideoplayer.data.Video
import software.egger.jetpackvideoplayer.data.VideoRepository
class VideoPlayerViewModel(private val repository: VideoRepositor... |
paging/paging-common/src/test/kotlin/androidx/paging/SimpleTransformLatestTest.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... |
app/src/main/java/com/abedelazizshe/lightcompressor/MainActivity.kt | unknown_repo | kotlin | package com.abedelazizshe.lightcompressor
import android.Manifest
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Bundle
import android.os.Environment
import android.os.Handler
import android.text.format.DateUti... |
library/src/main/java/com/jaychang/sac/calladapter/MockResponseAdapterFactory.kt | unknown_repo | kotlin | package com.jaychang.sac.calladapter
import android.content.Context
import com.google.gson.reflect.TypeToken
import com.jaychang.sac.JsonParser
import com.jaychang.sac.SimpleApiResult
import com.jaychang.sac.util.Utils
import com.jaychang.sac.annotation.MockResponse
import com.jaychang.sac.annotation.Status.*
import c... |
hilt/hilt-compiler/src/test/kotlin/androidx/hilt/work/WorkerInjectStepTest.kt | unknown_repo | kotlin | /*
* Copyright 2020 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/ctrlaccess/moviebuff/adapters/MoviesCurrentAdapter.kt | unknown_repo | kotlin | package com.ctrlaccess.moviebuff.adapters
import android.util.Log
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.AsyncListDiffer
import androidx.recyclerview.widget.DiffUtil
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.RequestManager
i... |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/RoboticArm.kt | unknown_repo | kotlin | package me.localx.icons.rounded.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter... |
common/src/commonMain/kotlin/com/artemchep/keyguard/ui/toolbar/util/ToolbarColors.kt | unknown_repo | kotlin | package com.artemchep.keyguard.ui.toolbar.util
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.isUnspecified
import com.artemchep.keyguard.ui.surface.LocalBackgroundManager
import com.artemchep.keyguard.ui.surface.LocalSurfaceColor
object Toolba... |
app/src/main/java/com/geovnn/meteoapuane/presentation/nowcasting/NowcastingState.kt | unknown_repo | kotlin | package com.geovnn.meteoapuane.presentation.nowcasting
import android.graphics.Bitmap
import com.geovnn.meteoapuane.domain.models.NowcastingPage
import com.geovnn.meteoapuane.domain.models.WebcamPage
data class NowcastingState(
val nowcastingPage: NowcastingPage = NowcastingPage(),
val isLoading: Boolean = tr... |
decompose/src/androidMain/kotlin/com/arkivanov/decompose/mainthread/CheckMainThread.kt | unknown_repo | kotlin | package com.arkivanov.decompose.mainthread
import android.os.Looper
import com.arkivanov.decompose.errorhandler.onDecomposeError
private val mainThreadId: Long? by lazy {
try {
Looper.getMainLooper().thread.id
} catch (e: Exception) {
null
}
}
internal actual fun checkMainThread() {
i... |
app/src/main/kotlin/co/netguru/baby/monitor/client/feature/communication/pairing/ServiceDiscoveryFragment.kt | unknown_repo | kotlin | package co.netguru.baby.monitor.client.feature.communication.pairing
import android.content.Context
import android.net.nsd.NsdServiceInfo
import android.net.wifi.WifiManager
import android.os.Bundle
import android.view.View
import androidx.core.os.bundleOf
import androidx.core.view.isVisible
import androidx.lifecycle.... |
app/src/main/kotlin/co/netguru/baby/monitor/client/feature/communication/pairing/ServiceDiscoveryFragment.kt | unknown_repo | kotlin | package co.netguru.baby.monitor.client.feature.communication.pairing
import android.content.Context
import android.net.nsd.NsdServiceInfo
import android.net.wifi.WifiManager
import android.os.Bundle
import android.view.View
import androidx.core.os.bundleOf
import androidx.core.view.isVisible
import androidx.lifecycle.... |
view/src/main/kotlin/com/zedalpha/shadowgadgets/view/viewgroup/ShadowsViewGroup.kt | unknown_repo | kotlin | package com.zedalpha.shadowgadgets.view.viewgroup
import androidx.annotation.ColorInt
import com.zedalpha.shadowgadgets.view.ShadowPlane
/**
* Interface common to all current custom ViewGroups.
*
* The groups are divided into two broad categories: Recycling and Regular.
*
* Recycling groups:
* + ShadowsRecycl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.