file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/com/bohdanhub/searchapp/ui/feature/search/SearchViewModel.kt | unknown_repo | kotlin | package com.bohdanhub.searchapp.ui.feature.search
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.bohdanhub.searchapp.data.SearchRepository
import com.bohdanhub.searchapp.domain.data.root.SearchRequest
import com.bohdanhub.searchapp.ui.component.card.SearchCardData
import dagger... |
app/src/main/java/bg/o/sim/colourizmus/view/SeekerFragment.kt | unknown_repo | kotlin | package bg.o.sim.colourizmus.view
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.SeekBar
import androidx.fragment.app.Fragment
import androidx.lifecycle.Observer
import bg.o.sim.colourizmus.databinding.FragmentSeekerBinding
impor... |
compose-multiplatform-common/src/jsMain/kotlin/com/huanshankeji/compose/layout/Size.js.kt | unknown_repo | kotlin | package com.huanshankeji.compose.foundation.layout
import androidx.annotation.FloatRange
import androidx.compose.runtime.Stable
import androidx.compose.ui.unit.Dp
import com.huanshankeji.compose.ui.Modifier
import com.huanshankeji.compose.ui.unit.toPercent
import com.huanshankeji.compose.ui.unit.toPx
import com.huansh... |
showkase-processor-testing/src/test/resources/ShowkaseProcessorTest/top_level_textstyle_property_with_showkasetypography_and_showkaseroot_with_no_name/input/testComposables.kt | unknown_repo | kotlin | package com.airbnb.android.showkase_processor_testing
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.FontFamily
import com.airbnb.android.showkase.annotation.ShowkaseTypography
@ShowkaseTypography(group = "group")
val title = TextStyle(
fontFamily = FontFamily.Cursive
) |
app/src/main/java/com/sleewell/sleewell/mvp/menu/profile/view/ProfileContainerFragment.kt | unknown_repo | kotlin | package com.sleewell.sleewell.mvp.menu.profile.view
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.NavHostFragment
import com.sleewell.sleewell.R
class ProfileContainerFragment... |
android/ui/readingbubble/src/main/java/any/ui/readingbubble/Bubble.kt | unknown_repo | kotlin | package any.ui.readingbubble
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.sizeIn
import androidx.compose.foundation.shape.CircleShape
impo... |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/PointerPlus.kt | unknown_repo | kotlin | package com.woowla.compose.icon.collections.tabler.tabler.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector... |
java/java-impl/src/com/intellij/psi/filters/getters/BuilderCompletion.kt | unknown_repo | kotlin | // Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.psi.filters.getters
import com.intellij.codeInsight.completion.InsertionContext
import com.intellij.codeInsight.completion.JavaMethodCallElement
import com.intellij.codeInsight.... |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/LocationArrow.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... |
app/src/main/java/tech/antee/junkiot/di/AppComponent.kt | unknown_repo | kotlin | package tech.antee.junkiot.di
import android.content.Context
import dagger.BindsInstance
import dagger.Component
import tech.antee.junkiot.App
import tech.antee.junkiot.di.qualifiers.ApplicationContext
import javax.inject.Singleton
@Singleton
@Component(modules = [AppModule::class, FeaturesModule::class])
interface A... |
app/src/main/java/in/bgaurav/passkeys/viewmodel/AuthViewModel.kt | unknown_repo | kotlin | package `in`.bgaurav.passkeys.viewmodel
import android.util.Log
import androidx.credentials.exceptions.CreateCredentialCancellationException
import androidx.credentials.exceptions.CreateCredentialCustomException
import androidx.credentials.exceptions.CreateCredentialException
import androidx.credentials.exceptions.Cre... |
app/src/main/kotlin/com/simplemobiletools/contacts/pro/fragments/RecentsFragment.kt | unknown_repo | kotlin | package com.simplemobiletools.contacts.pro.fragments
import android.content.Context
import android.content.Intent
import android.util.AttributeSet
import com.simplemobiletools.commons.extensions.beVisibleIf
import com.simplemobiletools.commons.extensions.hasPermission
import com.simplemobiletools.commons.helpers.PERMI... |
modules/debug_menu/src/main/kotlin/kekmech/ru/debug_menu/presentation/DebugMenuActivity.kt | unknown_repo | kotlin | package kekmech.ru.debug_menu.presentation
import android.os.Bundle
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.Surface
import androidx.compose.ui.Modifier
import androidx.core.view.WindowCompat
import com.bumble.appyx.core.integra... |
app/src/main/java/com/example/apla/runpanyapp/views/github/GitHubMainActivity.kt | unknown_repo | kotlin | package com.example.apla.runpanyapp.views.github
import androidx.lifecycle.ViewModelProviders
import android.content.Context
import androidx.databinding.DataBindingUtil
import android.os.Bundle
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import android.view.... |
app/src/main/java/my/farhan/tasty/data/model/Recipe.kt | unknown_repo | kotlin | package my.farhan.tasty.data.model
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity
data class Recipe(
@PrimaryKey(autoGenerate = true)
val recipeId: Int = 0,
var title: String = "",
var description: String = "",
var recipeType: String = "",
var imageUrl: String = "",
va... |
app/src/main/java/com/example/moontech/ui/main/MainActivity.kt | unknown_repo | kotlin | package com.example.moontech.ui.main
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.material3.Surface
import androidx.compose.ui... |
github-repo-listing/ui-repo-listing/src/main/java/com/bkarakoca/ui_repo_listing/scene/repolist/FRGithubRepoListing.kt | unknown_repo | kotlin | package com.bkarakoca.ui_repo_listing.scene.repolist
import androidx.fragment.app.viewModels
import com.bkarakoca.core.base.BaseFragment
import com.bkarakoca.core.extension.observe
import com.bkarakoca.ui_repo_listing.R
import com.bkarakoca.ui_repo_listing.databinding.FragmentGithubRepoListingBinding
import dagger.hil... |
app/src/main/java/com/stevdzasan/diaryapp/data/database/ImageToDeleteDao.kt | unknown_repo | kotlin | package com.stevdzasan.diaryapp.data.database
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.stevdzasan.diaryapp.data.database.entity.ImageToDelete
@Dao
interface ImageToDeleteDao {
@Query("SELECT * FROM image_to_delete_table ORD... |
app/src/main/java/com/saimazar/sample/presentation/adapter/ChatAdapter.kt | unknown_repo | kotlin | package com.saimazar.sample.presentation.adapter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.bumptech.glide.request.RequestOptions
import com.saimazar.library.StickAvatarInterface
i... |
app/src/main/java/com/syleiman/gingermoney/ui/activities/login/navigation/NavigationHelperImpl.kt | unknown_repo | kotlin | package com.syleiman.gingermoney.ui.activities.login.navigation
import androidx.annotation.IdRes
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import com.syleiman.gingermoney.R
import com.syleiman.gingermoney.ui.activities.login.fragments.fingerprint.view.FingerprintFragment
impor... |
app/src/main/java/com/yan/locationmockgenius/FloatWindow.kt | unknown_repo | kotlin | package com.yan.locationmockgenius
import android.annotation.SuppressLint
import android.app.Service
import android.content.Context
import android.content.Intent
import android.graphics.PixelFormat
import android.os.Build
import android.util.DisplayMetrics
import android.util.Log
import android.view.*
import android.w... |
app/src/main/java/de/technophilia/letmesleep/AlarmNotificationReceiver.kt | unknown_repo | kotlin | package de.technophilia.letmesleep
import android.app.AlarmManager
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.widget.Toast
/**
* Created by alainsarti on 25/03/2017.
*/
... |
library/src/main/kotlin/org/mariotaku/kpreferences/KPreferenceKey.kt | unknown_repo | kotlin | package org.mariotaku.kpreferences
import android.content.SharedPreferences
/**
* Created by mariotaku on 16/8/24.
*/
interface KPreferenceKey<T> {
fun write(editor: SharedPreferences.Editor, value: T): Boolean
fun read(preferences: SharedPreferences): T
fun contains(preferences: SharedPreferences): B... |
foundation/di/anvil-codegen/main/ru/pixnews/foundation/di/anvil/codegen/ContributesActivityCodeGenerator.kt | unknown_repo | kotlin | /*
* Copyright (c) 2023, the Pixnews project authors and contributors. Please see the AUTHORS file for details.
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package ru.pixnews.foundation.di.anvil.codegen
import com.google.auto.service.AutoService
import c... |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/Vault.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... |
bluetooth/src/main/java/com/shon/ble/call/ReadDataCall.kt | unknown_repo | kotlin | package com.shon.ble.call
import android.bluetooth.BluetoothGatt
import com.shon.ble.call.callback.ReadCallback
import java.util.*
class ReadDataCall(
address: String,
gatt: BluetoothGatt,
serviceUUid: UUID,
characteristicUUID: UUID
) : BaseTransCall<ReadCallback>(address,gatt, serviceUUid, characteri... |
android/app/src/main/java/com/algorand/android/utils/BluetoothUtils.kt | unknown_repo | kotlin | /*
* Copyright 2019 Algorand, Inc.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, s... |
app/src/main/java/com/shivamkumarjha/supaflix/ui/videoplayer/VideoPlayer.kt | unknown_repo | kotlin | package com.shivamkumarjha.supaflix.ui.videoplayer
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.layout.fillMaxSize
import androidx.com... |
libVideo/src/main/java/com/effective/android/video/VideoPlayerManager.kt | unknown_repo | kotlin | package com.effective.android.video
import android.app.Application
import android.content.Context
import android.text.TextUtils
import android.util.Log
import androidx.annotation.NonNull
import com.effective.android.video.bean.VideoCache
import com.effective.android.video.bean.VideoStatus
import com.effective.androi... |
compose/animation/animation/integration-tests/animation-demos/src/main/java/androidx/compose/animation/demos/sharedelement/SharedTransitionScopeDemo.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... |
smart/src/main/java/cn/lsmya/smart/ktx/TimeExtension.kt | unknown_repo | kotlin | package cn.lsmya.smart.ktx
import android.os.Build
import androidx.annotation.RequiresApi
import java.text.SimpleDateFormat
import java.util.Calendar
import java.util.Date
fun Long?.toDate(): Date? {
if (this == null) {
return null
}
return Date(this)
}
fun Long?.toDateString(pattern: String = "y... |
app/src/main/java/in/mayanknagwanshi/cointracker/fragments/SearchFragment.kt | unknown_repo | kotlin | package `in`.mayanknagwanshi.cointracker.fragments
import android.opengl.Visibility
import android.os.Bundle
import android.text.TextWatcher
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.widget.doAfterTextChanged
import androidx.fragment.app.Fragment
imp... |
JetpackDemo/src/main/java/cn/suyyy/jetpackdemo/activity/MainActivity.kt | unknown_repo | kotlin | package cn.suyyy.jetpackdemo.activity
import android.content.Context
import android.content.SharedPreferences
import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.edit
import androidx.lifecycle.ViewModelProviders
import androidx.lifecycle.observe... |
app/src/main/java/jp/yamaglo/dic/ui/AboutActivity.kt | unknown_repo | kotlin | package jp.yamaglo.dic.ui
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import androidx.browser.customtabs.CustomTabsIntent
import com.google.firebase.analytics.FirebaseAnalytics
import jp.yamaglo.dic.BuildConf... |
composeApp/src/commonMain/kotlin/me/dmdev/epicpredictor/ui/App.kt | unknown_repo | kotlin | /*
* The MIT License (MIT)
*
* Copyright (c) 2023 <NAME> (<EMAIL>)
*
* 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 ... |
app/src/main/java/com/kickstarter/libs/utils/extensions/IntentExt.kt | unknown_repo | kotlin | package com.kickstarter.libs.utils.extensions
import android.content.Context
import android.content.Intent
import com.kickstarter.ui.activities.ProjectActivity
import com.kickstarter.ui.activities.ProjectPageActivity
fun Intent.getProjectIntent(context: Context, isFfEnabled: Boolean): Intent {
return this.setClas... |
lab6/6_3/src/main/java/com/example/a6_3/MainActivity.kt | unknown_repo | kotlin | package com.example.a6_3
import android.app.Activity
import android.content.Intent
import android.graphics.Bitmap
import android.net.Uri
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.provider.MediaStore
import android.widget.Button
import android.widget.EditText
import android... |
generated/src/main/kotlin/com/laidpack/sourcerer/generated/RelativeLayoutFactory.kt | unknown_repo | kotlin | package com.laidpack.sourcerer.generated
import android.content.Context
import android.os.Build
import android.view.View
import android.widget.RelativeLayout
import com.laidpack.generator.api.ViewGroupElement
import java.lang.Class
import kotlin.String
@ViewGroupElement(
elementType = RelativeLayoutFactory.el... |
core/src/main/java/com/loitp/views/shadowViewHelper/ShadowViewDrawable.kt | unknown_repo | kotlin | package com.loitp.views.shadowViewHelper
import android.graphics.* // ktlint-disable no-wildcard-imports
import android.graphics.drawable.Drawable
/**
* Created by Loitp on 04,August,2022
* Galaxy One company,
* Vietnam
* +840766040293
* <EMAIL>
*/
class ShadowViewDrawable(
private val shadowProperty: Shado... |
app/src/main/java/cn/vove7/bottomsheetdialog/App.kt | unknown_repo | kotlin | package cn.vove7.bottomsheetdialog
import android.app.Application
import com.squareup.leakcanary.LeakCanary
import com.squareup.leakcanary.RefWatcher
class App : Application() {
override fun onCreate() {
super.onCreate()
if (LeakCanary.isInAnalyzerProcess(this)) {
return
}
//... |
app/src/androidTest/java/com/itranslate/recorder/ui/fragments/recordings/RecordingsFragmentTest.kt | unknown_repo | kotlin | package com.itranslate.recorder.ui.fragments.recordings
import androidx.fragment.app.testing.launchFragmentInContainer
import androidx.navigation.NavController
import androidx.navigation.Navigation
import androidx.test.espresso.Espresso.pressBack
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.tes... |
app/src/androidTest/java/com/example/lunchtray/LunchTrayNavigationTest.kt | unknown_repo | kotlin | package com.example.lunchtray
import androidx.activity.ComponentActivity
import androidx.compose.ui.platform.LocalContext
import androidx.compose.ui.test.junit4.createAndroidComposeRule
import androidx.compose.ui.test.onNodeWithContentDescription
import androidx.compose.ui.test.onNodeWithText
import androidx.compose.u... |
lifecycle-rx/src/main/java/ru/touchin/lifecycle/viewmodel/LiveDataDispatcher.kt | unknown_repo | kotlin | package ru.touchin.lifecycle.viewmodel
import androidx.lifecycle.MutableLiveData
import io.reactivex.Completable
import io.reactivex.Flowable
import io.reactivex.Maybe
import io.reactivex.Observable
import io.reactivex.Single
import io.reactivex.disposables.Disposable
import ru.touchin.lifecycle.event.ContentEvent
imp... |
library/src/main/java/com/chad/library/adapter/base/animation/BaseAnimation.kt | unknown_repo | kotlin | package com.chad.library2.adapter.base.animation
import android.animation.Animator
import android.view.View
/**
* https://github.com/CymChad/BaseRecyclerViewAdapterHelper
*/
interface BaseAnimation {
fun animators(view: View): Array<Animator>
} |
ui/ui-core-viewbinding/src/main/java/androidx/compose/ui/viewinterop/AndroidViewBinding.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/stan/androiddemo/project/petal/Model/PinsBoardInfo.kt | unknown_repo | kotlin | package stan.androiddemo.project.petal.Model
import android.os.Parcel
import android.os.Parcelable
/**
* Created by stanhu on 11/8/2017.
*/
class PinsBoardInfo() :Parcelable{
var board_id: Int = 0
var user_id: Int = 0
var title: String? = null
var description: String? = null
var category_id... |
app/src/main/java/ml/dvnlabs/unsikadu/ui/activity/DashboardActivity.kt | unknown_repo | kotlin | /*
* Copyright (c) 2020. dvnlabs.ml , <NAME>
* Email : <EMAIL> / <EMAIL>
* UnSikadu source code for Android (tm) ,
* Internal License Only,NOT FOR REDISTRIBUTE
*/
package ml.dvnlabs.unsikadu.ui.activity
import android.content.Context
import android.content.DialogInterface
import android.content.Intent
import an... |
stub-androidx/src/main/java/androidx/recyclerview/widget/RecyclerView.kt | unknown_repo | kotlin | package androidx.recyclerview.widget
import android.view.View
/**
* @author Dmitry Borodin on 12/3/18.
*/
class RecyclerView {
public class ViewHolder {
@JvmField val itemView: View = View()
}
} |
app/src/main/java/com/kozaxinan/daily/TaskRepository.kt | unknown_repo | kotlin | package com.kozaxinan.daily
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.FlowPreview
import kotlinx.coroutines.flow.MutableStateFlow
@FlowPreview
@ExperimentalCoroutinesApi
internal object TaskRepository {
val tasks: MutableStateFlow<Map<Long, Task>> = MutableStateFlow(emptyMap())
... |
app/src/main/java/com/sazib/pinboard/downloader/ImageUtils.kt | unknown_repo | kotlin | package com.sazib.pinboard.downloader
import android.app.ActivityManager
import android.content.ComponentCallbacks2
import android.content.Context
import android.content.res.Configuration
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.os.AsyncTask
import android.util.LruCache
impor... |
purchases/src/test/java/com/revenuecat/purchases/DispatcherTest.kt | unknown_repo | kotlin | package com.revenuecat.purchases
import android.support.test.runner.AndroidJUnit4
import io.mockk.every
import io.mockk.mockk
import io.mockk.verify
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.annotation.Config
import java.util.concurrent.ExecutorService
import junit.framework.Asser... |
app/src/main/java/com/kuneosu/mintoners/ui/customview/CustomConstraint.kt | unknown_repo | kotlin | package com.kuneosu.mintoners.ui.customview
import android.content.Context
import android.util.AttributeSet
import androidx.constraintlayout.widget.ConstraintLayout
class CustomConstraint @JvmOverloads constructor(
context: Context, attrs: AttributeSet? = null, defStyleAttr: Int = 0
) : ConstraintLayout(context, ... |
src/main/kotlin/io/ashdavies/properties/SharedPreferencesEditorProperty.kt | unknown_repo | kotlin | package io.ashdavies.properties
import android.content.SharedPreferences.Editor
import androidx.core.content.edit
import io.ashdavies.preferences.SharedPreferencesStore
internal abstract class SharedPreferencesEditorProperty<T> :
NamedReadWriteProperty<SharedPreferencesStore, T>() {
final override fun setVal... |
compose/ui-layout/src/commonMain/kotlin/com/bselzer/ktx/compose/ui/layout/merge/ShapeMerger.kt | unknown_repo | kotlin | package com.bselzer.ktx.compose.ui.layout.merge
import androidx.compose.runtime.Stable
import androidx.compose.ui.geometry.Size
import androidx.compose.ui.graphics.RectangleShape
import androidx.compose.ui.graphics.Shape
import androidx.compose.ui.unit.Density
import androidx.compose.ui.unit.LayoutDirection
class Sha... |
presentation/src/main/java/com/fidloo/flux/presentation/ui/home/radar/WeatherRadar.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... |
Material Design/SupportDesignDemo_kt/app/src/main/java/edu/cs4730/supportdesigndemo_kt/FABFragment.kt | unknown_repo | kotlin | package edu.cs4730.supportdesigndemo_kt
import android.view.LayoutInflater
import android.view.ViewGroup
import android.os.Bundle
import android.view.View
import android.widget.Toast
import androidx.fragment.app.Fragment
import edu.cs4730.supportdesigndemo_kt.databinding.FragmentFabBinding
/**
* A simple demo of the... |
scoop/src/main/java/com/lmntrx/android/scoop/miner/util/JsonCache.kt | unknown_repo | kotlin | package com.lmntrx.android.scoop.miner.util
import android.content.Context
import com.google.gson.Gson
val gson = Gson()
fun <T> get(context: Context, key: String, clazz: Class<T>): T? {
return try {
gson.fromJson(getFromBase64(getSharedPref(context).getString(key, "")), clazz)
} catch (e: Exception)... |
app/src/main/java/com/core/presentation/components/DropDownMenu.kt | unknown_repo | kotlin | package com.core.presentation.components
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.layout.wrapContentHeight
import androidx.compose.material.icons.Icons
import androidx.compose.materia... |
photos_ui/src/main/java/com/nowjordanhappy/photos_ui/error/ErrorFragment.kt | unknown_repo | kotlin | package com.nowjordanhappy.photos_ui.error
import android.os.Bundle
import android.util.Log
import android.view.View
import androidx.core.content.ContextCompat
import androidx.fragment.app.activityViewModels
import androidx.leanback.app.ErrorSupportFragment
import androidx.lifecycle.Lifecycle
import androidx.lifecycl... |
tabler/src/commonMain/kotlin/com/woowla/compose/icon/collections/tabler/tabler/outline/H5.kt | unknown_repo | kotlin | package com.woowla.compose.icon.collections.tabler.tabler.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector... |
src/main/java/com/squareup/kotlinpoet/FunSpec.kt | unknown_repo | kotlin | /*
* Copyright (C) 2015 Square, 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... |
android/automator/src/main/java/com/stardust/view/accessibility/OnKeyListener.kt | unknown_repo | kotlin | package com.stardust.view.accessibility
import android.util.Log
import android.view.KeyEvent
import android.view.View
import java.util.concurrent.CopyOnWriteArrayList
/**
* Created by Stardust on 2017/7/18.
*/
interface OnKeyListener {
fun onKeyEvent(keyCode: Int, event: KeyEvent)
class Observer : OnKey... |
src/jvmMain/kotlin/jp/kaleidot725/adbpad/view/screen/setting/SettingScreen.kt | unknown_repo | kotlin | package jp.kaleidot725.adbpad.view.screen.setting
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.comp... |
app/src/main/java/com/qiaofei/gankio/ext.kt | unknown_repo | kotlin | package com.qiaofei.gankio
import android.content.Context
import android.widget.Toast
/**
* Created by wing on 11/23/16.
*/
fun Context.getMainComponent() = App.instance.apiComponent
fun Context.toast(msg:String,length:Int = Toast.LENGTH_SHORT){
Toast.makeText(this, msg, length).show()
} |
plugins/variable-plugin/src/main/kotlin/com/redmadrobot/variable_plugin/ui/VariableViewModel.kt | unknown_repo | kotlin | package com.redmadrobot.variable_plugin.ui
import com.redmadrobot.debug_panel_common.base.PluginViewModel
import com.redmadrobot.variable_plugin.data.VariableRepository
import com.redmadrobot.variable_plugin.plugin.VariableItem
import com.redmadrobot.variable_plugin.plugin.VariableWidget
import com.redmadrobot.variabl... |
app/src/main/java/org/imaginativeworld/whynotcompose/ui/screens/composition/dropdown/DropDownMenuScreen.kt | unknown_repo | kotlin | /*
* Copyright 2021 Md. <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 i... |
app/src/main/java/com/example/newsapp/Ui/Fragments/FavoriteFragment.kt | unknown_repo | kotlin | package com.example.newsapp.Ui.Fragments
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.ViewModelProvider
import androidx.recyclerview.widget.LinearLay... |
lib_appinject/src/main/java/com/yh/appinject/logger/LibLogs.kt | unknown_repo | kotlin | @file:Suppress("unused")
package com.yh.appinject.logger
import android.database.Cursor
import android.util.Log
import androidx.annotation.NonNull
import androidx.annotation.Nullable
import org.json.JSONArray
import org.json.JSONObject
/**
* 日志输出工具
*
* 根据[LogAdapter]区分
*
* Created by CYH on 2020/5/16 21:48
*/
... |
app/src/main/java/com/battlelancer/seriesguide/ui/BaseMessageActivity.kt | unknown_repo | kotlin | package com.battlelancer.seriesguide.ui
import android.content.Context
import android.view.View
import com.battlelancer.seriesguide.R
import com.battlelancer.seriesguide.jobs.FlagJob
import com.battlelancer.seriesguide.ui.BaseMessageActivity.ServiceActiveEvent
import com.battlelancer.seriesguide.ui.BaseMessageActivity... |
picasso-sample/src/main/java/com/example/picasso/provider/PicassoContentProvider.kt | unknown_repo | kotlin | /*
* Copyright (C) 2022 Square, 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 agre... |
app/src/main/java/dev/simonas/quies/gamesets/GameSetsScreen.kt | unknown_repo | kotlin | package dev.simonas.quies.gamesets
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.offset
import androidx.compose.foundatio... |
app/src/main/java/nl/rvbsoftdev/curiosityreporting/global/CuriosityReportingApp.kt | unknown_repo | kotlin | package nl.rvbsoftdev.curiosityreporting.global
import android.app.Application
import android.os.Build
import androidx.work.Constraints
import androidx.work.ExistingPeriodicWorkPolicy
import androidx.work.NetworkType
import androidx.work.PeriodicWorkRequestBuilder
import androidx.work.WorkManager
import com.jakewharto... |
app/src/main/java/com/willowtree/vocable/settings/AddPhraseViewModel.kt | unknown_repo | kotlin | package com.willowtree.vocable.settings
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.willowtree.vocable.PhrasesUseCase
import com.willowtree.vocable.presets.PresetsRepository
import com.willowtree.vo... |
OpenEdXMobile/src/main/java/org/edx/mobile/view/login/LoginActivity.kt | unknown_repo | kotlin | package org.edx.mobile.view.login
import android.content.Intent
import android.os.Bundle
import android.text.method.LinkMovementMethod
import androidx.activity.viewModels
import dagger.hilt.android.AndroidEntryPoint
import org.edx.mobile.BuildConfig
import org.edx.mobile.R
import org.edx.mobile.authentication.LoginAPI... |
azure-communication-ui/calling/src/androidTest/java/com/azure/android/communication/ui/calling/LobbyTest.kt | unknown_repo | kotlin | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.android.communication.ui.calling
import android.content.Context
import androidx.test.platform.app.InstrumentationRegistry
import com.azure.android.communication.BaseUiTest
import com.azure.android.communic... |
app/src/main/java/com/ollieSoft/ballCorral/view/CanvasDrawView.kt | unknown_repo | kotlin | package com.ollieSoft.ballCorral.view
import android.content.Context
import android.graphics.Canvas
import android.util.AttributeSet
import android.view.MotionEvent
import android.view.View
import com.ollieSoft.ballCorral.utility.Rectangle
import com.ollieSoft.ballCorral.utility.Vector
import com.ollieSoft.ballCorral.... |
presentation/src/main/java/me/androidbox/presentation/components/ActionButton.kt | unknown_repo | kotlin | package me.androidbox.presentation.components
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.Button
import androidx.compos... |
messaging/src/main/kotlin/io/github/shaksternano/borgar/messaging/command/CommandParsing.kt | unknown_repo | kotlin | package io.github.shaksternano.borgar.messaging.command
import io.github.shaksternano.borgar.core.collect.parallelForEach
import io.github.shaksternano.borgar.core.data.repository.TemplateRepository
import io.github.shaksternano.borgar.core.exception.ErrorResponseException
import io.github.shaksternano.borgar.core.exc... |
app/src/main/java/com/uxstate/skycast/presentation/settings/components/SettingsContent.kt | unknown_repo | kotlin | package com.uxstate.skycast.presentation.settings.components
import android.content.Intent
import android.net.Uri
import androidx.annotation.StringRes
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.navigationBarsPadding
import androidx.compose.foundation.layout.padding
impor... |
LibDialog/src/main/java/com/mx/dialog/tip/MXTipDialog.kt | unknown_repo | kotlin | package com.mx.dialog.tip
import android.content.Context
import android.graphics.Typeface
import android.text.method.LinkMovementMethod
import android.view.Gravity
import android.view.LayoutInflater
import android.view.View
import android.widget.FrameLayout
import android.widget.ScrollView
import android.widget.TextVi... |
showkase-processor-testing/src/test/resources/ShowkaseProcessorTest/class_with_@ScreenshotTest_generates_screenshot_test_for_all_UI_elements/input/TestShowkaseRoot.kt | unknown_repo | kotlin | package com.airbnb.android.showkase_processor_testing
import com.airbnb.android.showkase.annotation.ShowkaseComposable
import androidx.compose.runtime.Composable
import com.airbnb.android.showkase.annotation.ShowkaseRoot
import com.airbnb.android.showkase.annotation.ShowkaseRootModule
@ShowkaseRoot
class TestShowkase... |
app/src/main/java/com/kiwi/kiwitalk/di/KakaoApiModule.kt | unknown_repo | kotlin | package com.kiwi.kiwitalk.di
import android.util.Log
import com.kiwi.kiwitalk.util.Const.BASE_URL
import com.kiwi.kiwitalk.util.Const.KAKAO_AUTH
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import okhttp3.Interceptor
import okhttp3.OkHttpClie... |
app/src/main/java/com/rapidsos/era/authentication/login/view/LoginFragment.kt | unknown_repo | kotlin | package com.rapidsos.era.authentication.login.view
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.hannesdorfmann.mosby3.mvp.MvpFragment
import com.rapidsos.era.R
import com.rapidsos.era.application.App
import com.rapidsos.era.authentication... |
utils/src/main/java/com/feduss/timerwear/utils/PrefsUtils.kt | unknown_repo | kotlin | package com.feduss.timerwear.utils
import android.content.Context
import android.content.SharedPreferences
import androidx.preference.PreferenceManager
import com.feduss.timerwear.entity.enums.WorkoutType
class PrefsUtils {
companion object {
private fun getSharedPreferences(context: Context ): SharedPre... |
app/src/main/java/com/tommasoberlose/anotherwidget/ui/viewmodels/CustomDateViewModel.kt | unknown_repo | kotlin | package com.tommasoberlose.anotherwidget.ui.viewmodels
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.MutableLiveData
import com.tommasoberlose.anotherwidget.global.Preferences
class CustomDateViewModel(application: Application) : AndroidViewModel(application) {
... |
LocationUpdatesBackgroundKotlin/app/src/main/java/com/google/android/gms/location/sample/locationupdatesbackgroundkotlin/data/MyLocationManager.kt | unknown_repo | kotlin | package com.example.covid_19tracker.data
import android.Manifest
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.util.Log
import androidx.annotation.MainThread
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.example.co... |
app/src/main/java/com/example/citikart/activities/RegistrationActivity.kt | unknown_repo | kotlin | package com.example.citikart.activities
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.Toast
import com.example.citikart.R
import com.example.citikart.databinding.ActivityLoginBinding
import com.example.citikart.datab... |
Compose/app/src/main/java/top/chilfish/compose/components/Learn.kt | unknown_repo | kotlin | package top.chilfish.compose.components
import androidx.compose.foundation.background
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.layo... |
mapme/src/main/java/nz/co/trademe/mapme/annotations/MapAnnotation.kt | unknown_repo | kotlin | package nz.co.trademe.mapme.annotations
import android.content.Context
import nz.co.trademe.mapme.NO_POSITION
import java.io.Serializable
abstract class MapAnnotation : Serializable {
var position = NO_POSITION
var placeholder = false
internal var isDirty = false
abstract fun annotatesObject(nativeO... |
common/src/main/java/com/yodeput/newsapp/common/theme/Type.kt | unknown_repo | kotlin | /*
* Created by <NAME>
* URL: https://github.com/yodeput
* Copyright (c) 2022 . All rights reserved.
* Last modified 2/23/22, 10:25 PM
*
*/
package com.yodeput.newsapp.common.theme
import androidx.compose.material3.Typography
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.text.font.Font
im... |
backpack-compose/src/main/kotlin/net/skyscanner/backpack/compose/switch/BpkSwitch.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/com/kt/tv_test/navigation/ATVFragmentNavigator.kt | unknown_repo | kotlin | package com.kt.tv_test.navigation
import android.content.Context
import android.os.Bundle
import android.util.Log
import androidx.annotation.IdRes
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.navigation.NavDestination
import androidx.navigation.NavOptions
import an... |
app/src/main/java/com/kt/tv_test/navigation/ATVFragmentNavigator.kt | unknown_repo | kotlin | package com.kt.tv_test.navigation
import android.content.Context
import android.os.Bundle
import android.util.Log
import androidx.annotation.IdRes
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.navigation.NavDestination
import androidx.navigation.NavOptions
import an... |
app/src/main/java/com/shevelev/my_footprints_remastered/ui/activity_main/fragment_gallery_page/GalleryPageFragment.kt | unknown_repo | kotlin | package com.shevelev.my_footprints_remastered.ui.activity_main.fragment_gallery_page
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.shevelev.my_footprints_remastered.databinding.FragmentGalleryPageBinding
import com.shevelev.my_footprints_r... |
app/src/main/java/lt/vilnius/tvarkau/extensions/view.kt | unknown_repo | kotlin | package lt.vilnius.tvarkau.extensions
import android.view.View
fun View.gone() {
this.visibility = View.GONE
}
fun View.invisible() {
this.visibility = View.INVISIBLE
}
fun View.visible() {
this.visibility = View.VISIBLE
}
fun View.isVisible() = this.visibility == View.VISIBLE
fun View.isGone() = this.... |
app/src/androidTest/java/com/duckduckgo/app/bookmarks/service/SavedSitesExporterTest.kt | unknown_repo | kotlin | /*
* Copyright (c) 2021 DuckDuckGo
*
* 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 ... |
jmvclibrary/src/main/java/com/swuos/mobile/jmvclibrary/utils/kt/Logger.kt | unknown_repo | kotlin | package com.swuos.mobile.jmvclibrary.utils.kt
import android.util.Log
import com.swuos.mobile.jmvclibrary.app.JApp
/**
* 日志打印
* Created by wangyu on 2017/7/25.
*/
private inline fun doLog(log: () -> Unit) {
if (JApp.isDebug()) log()
}
fun lgE(tag: String, msg: String) = doLog { Log.e(tag, msg) }
fun lgI(tag:... |
app/src/main/java/io/github/caimucheng/leaf/ide/fragment/main/MainHomeFragment.kt | unknown_repo | kotlin | package io.github.caimucheng.leaf.ide.fragment.main
import android.annotation.SuppressLint
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.os.bundleOf
import androidx.fragment.app.Fragment
import androidx.lifecycle.Lifecycle
import... |
app/src/main/java/com/github/vase4kin/teamcityapp/bottomsheet_dialog/menu_items/BaseMenuItemsFactory.kt | unknown_repo | kotlin | /*
* Copyright 2019 <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 wri... |
app/src/main/java/de/bornholdtlee/baseproject/ui/creation/CreateLessonNameFragment.kt | unknown_repo | kotlin | package de.bornholdtlee.baseproject.ui.creation
import android.text.TextUtils
import android.widget.EditText
import butterknife.BindView
import butterknife.OnClick
import de.bornholdtlee.baseproject.R
import de.bornholdtlee.baseproject.model.Lesson
class CreateLessonNameFragment : CreateLessonBaseFragment() {
co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.