file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
app/src/main/java/com/costular/atomtasks/ui/AtomTasksApp.kt | unknown_repo | kotlin | package com.costular.atomtasks.ui
import android.app.Application
import android.app.NotificationChannel
import android.app.NotificationManager
import android.content.Context
import android.os.Build
import androidx.hilt.work.HiltWorkerFactory
import androidx.work.Configuration
import com.costular.atomtasks.BuildConfig
... |
features/src/main/java/com/ahmet/features/dialogs/adduser/AddUserDialogViewModel.kt | unknown_repo | kotlin | package com.ahmet.features.dialogs.adduser
import android.util.Log
import androidx.lifecycle.MutableLiveData
import com.ahmet.core.base.BaseViewModel
import com.ahmet.features.utils.helpers.EmailController
import com.ahmet.data.usecase.user.GetCurrentUserEmail
import com.ahmet.data.usecase.friend.SendFriendRequest
imp... |
app/src/main/java/me/tandeneck/tanutils/model/place/County.kt | unknown_repo | kotlin | package me.tandeneck.tanutils.model.place
import androidx.room.Entity
import androidx.room.PrimaryKey
import com.google.gson.annotations.SerializedName
@Entity
class County(
@SerializedName("name") val countyName: String,
@SerializedName("weather_id") val weatherId: String
) {
@PrimaryKey
@Transient
... |
common-ui-compose/src/main/java/app/tivi/common/compose/ui/SwipeDismissSnackbar.kt | unknown_repo | kotlin | /*
* Copyright 2021 Google LLC
*
* 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/application/ui/bottomsheet/BottomSheetScreen.kt | unknown_repo | kotlin | package com.example.application.ui.bottomsheet
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Arrangement
import androidx.co... |
app/src/main/java/vn/loitp/up/a/cv/layout/transformation/TransformationActivity.kt | unknown_repo | kotlin | package vn.loitp.up.a.cv.layout.transformation
import android.os.Bundle
import androidx.viewpager.widget.ViewPager
import com.loitp.annotation.IsFullScreen
import com.loitp.annotation.LogTag
import com.loitp.core.base.BaseActivityFont
import com.loitp.core.common.NOT_FOUND
import com.skydoves.transformationlayout.onTr... |
simple_form/src/main/java/com/pradeep/form/simple_form/form_items/MultiLineTextFormItem.kt | unknown_repo | kotlin | package com.pradeep.form.simple_form.form_items
import android.text.InputFilter
import androidx.core.widget.doAfterTextChanged
import com.pradeep.form.simple_form.adapter.SimpleFormAdapter
import com.pradeep.form.simple_form.databinding.ItemMultiLineTextBinding
import com.pradeep.form.simple_form.model.Form
class Mul... |
preference/preference/src/androidTest/java/androidx/preference/tests/PreferenceViewHolderStateTest.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/example/sudoku/view/Solver.kt | unknown_repo | kotlin | package com.example.sudoku.view
import android.content.Intent
import android.graphics.Color
import android.os.Bundle
import android.view.View
import android.widget.Button
import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.ContextCompat
import androidx.lifecycle.Observer
import androidx.lifecy... |
demo/src/desktopMain/kotlin/org/pushingpixels/aurora/demo/svg/tango/computer.kt | unknown_repo | kotlin | package org.pushingpixels.aurora.demo.svg.tango
import androidx.compose.ui.geometry.*
import androidx.compose.ui.graphics.*
import androidx.compose.ui.graphics.drawscope.DrawScope
import androidx.compose.ui.graphics.drawscope.Fill
import androidx.compose.ui.graphics.drawscope.Stroke
import androidx.compose.ui.graphics... |
compiler/light-classes/src/org/jetbrains/kotlin/asJava/classes/KtLightClassForFacadeImpl.kt | unknown_repo | kotlin | /*
* Copyright 2010-2016 JetBrains s.r.o.
*
* 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... |
collaboration-suite-phone-ui/src/main/java/com/kaleyra/collaboration_suite_phone_ui/whiteboard/layout/KaleyraWhiteboardLoadingError.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 appl... |
bugsnag-android-core/src/main/java/com/bugsnag/android/DefaultDelivery.kt | unknown_repo | kotlin | package com.bugsnag.android
import android.net.TrafficStats
import java.io.ByteArrayOutputStream
import java.io.IOException
import java.io.PrintWriter
import java.net.HttpURLConnection
import java.net.HttpURLConnection.HTTP_BAD_REQUEST
import java.net.HttpURLConnection.HTTP_CLIENT_TIMEOUT
import java.net.HttpURLConnec... |
privacysandbox/ui/ui-client/src/main/java/androidx/privacysandbox/ui/client/view/SandboxedSdkView.kt | unknown_repo | kotlin | /*
* Copyright 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
sketch-core/src/main/kotlin/com/github/panpf/sketch/request/internal/RequestExecutor.kt | unknown_repo | kotlin | /*
* Copyright (C) 2022 panpf <panpfpanpf@outlook.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 applica... |
app/src/test/java/com/jbr/asharplibrary/searchartist/ui/SearchArtistViewModelTest.kt | unknown_repo | kotlin | package com.jbr.asharplibrary.searchartist.ui
import android.app.Application
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.lifecycle.MutableLiveData
import com.jbr.asharplibrary.random.RandomArtistGenerator
import com.jbr.asharplibrary.random.RandomPreviousArtistSearchGenerator
imp... |
app/src/main/java/com/example/tokumemo/utility/FirstDialogFragment.kt | unknown_repo | kotlin | import android.app.AlertDialog
import android.app.Dialog
import android.content.DialogInterface
import android.os.Bundle
import androidx.fragment.app.DialogFragment
import com.example.tokumemo.R
class FirstDialogFragment: DialogFragment() {
// ダイアログ外タップ無効
@Deprecated("Deprecated in Java")
override fun onA... |
app/src/main/java/br/com/codeone/minhasreceitas/application/MinhasReceitasApplication.kt | unknown_repo | kotlin | package br.com.codeone.minhasreceitas.application
import android.app.Application
import android.util.Log
class MinhasReceitasApplication : Application() {
// Chamado quando o Android criar o processo do aplicativo
override fun onCreate() {
super.onCreate()
// Salva a instância para termos acesso com... |
composeApp/src/wasmJsMain/kotlin/App.kt | unknown_repo | kotlin | import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.layout.*
import androidx.compose.material.Button
import androidx.compose.material.MaterialTheme
import androidx.compose.material.Text
import androidx.compose.runtime.*
import androidx.compose.ui.Alignment
import androidx.compose.ui.... |
app/src/main/java/com/perol/asdpl/pixivez/dialog/SearchSectionDialog.kt | unknown_repo | kotlin | /*
* MIT License
*
* Copyright (c) 2019 Perol_Notsfsssf
*
* 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, ... |
litho-it/src/test/com/facebook/litho/LithoViewVisibilityProcessingTest.kt | unknown_repo | kotlin | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* 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 appl... |
library/src/main/java/com/camerash/filterdrawer/ParentItem.kt | unknown_repo | kotlin | package com.camerash.filterdrawer
import android.support.annotation.ColorRes
import android.support.v4.content.ContextCompat
import android.support.v7.widget.DividerItemDecoration
import android.support.v7.widget.LinearLayoutManager
import android.support.v7.widget.RecyclerView
import android.view.View
import android.... |
app/src/main/java/id/davidpratama/a160419103_ubayaculinary/model/RestaurantDao.kt | unknown_repo | kotlin | package id.davidpratama.a160419103_ubayaculinary.model
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
@Dao
interface RestaurantDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
suspend fun insertAllRestaurant(vararg restaurant: Rest... |
sampleAppKotlin/src/main/java/com/virtusize/sampleappkotlin/WebViewFragment.kt | unknown_repo | kotlin | package com.virtusize.sampleappkotlin
import android.os.Bundle
import android.os.Message
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.webkit.WebChromeClient
import android.webkit.WebResourceRequest
import android.webkit.WebView
import ... |
RangeBar/src/main/java/com/dannyjung/rangebar/base/BaseTrack.kt | unknown_repo | kotlin | package com.dannyjung.rangebar.base
import android.graphics.Canvas
import android.graphics.RectF
abstract class BaseTrack {
abstract val height: Int
val rectF: RectF = RectF()
abstract fun onDraw(canvas: Canvas)
}
|
feature/settings-impl/src/main/kotlin/org/michaelbel/movies/settings/ui/SettingsLanguageBox.kt | unknown_repo | kotlin | package org.michaelbel.movies.settings.ui
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.... |
app/src/main/java/com/sarlomps/evemento/event/comment/CommentAdapter.kt | unknown_repo | kotlin | package com.hellfish.evemento.event.comment
import android.content.Context
import android.graphics.Paint
import android.support.v4.graphics.drawable.DrawableCompat
import android.support.v7.widget.*
import android.view.View
import android.widget.TextView
import com.hellfish.evemento.R
import com.hellfish.evemento.Recy... |
app/src/main/java/org/ergoplatform/android/wallet/SaveWalletFragmentDialog.kt | unknown_repo | kotlin | package org.ergoplatform.android.wallet
import android.app.KeyguardManager
import android.content.Context
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.biometric.BiometricManager
import androidx.biometric.BiometricPrompt
import androi... |
app/src/main/java/com/kieronquinn/app/discoverkiller/utils/extensions/Extensions+TabLayout.kt | unknown_repo | kotlin | package com.kieronquinn.app.discoverkiller.utils.extensions
import com.google.android.material.tabs.TabLayout
import kotlinx.coroutines.channels.awaitClose
import kotlinx.coroutines.flow.callbackFlow
fun TabLayout.selectTab(position: Int){
selectTab(getTabAt(position))
}
fun TabLayout.onSelected(includeReselecti... |
app-scaffold/src/main/kotlin/catchup/app/ui/activity/ImageViewerScreen.kt | unknown_repo | kotlin | package catchup.app.ui.activity
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.animateContentSize
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animation.core.tween
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fa... |
core/src/main/java/tmidev/core/data/repository/CharactersRepository.kt | unknown_repo | kotlin | package tmidev.core.data.repository
import androidx.paging.PagingSource
import tmidev.core.domain.model.Character
import tmidev.core.domain.model.Comic
import tmidev.core.domain.model.Event
interface CharactersRepository {
fun getCharacters(query: String): PagingSource<Int, Character>
suspend fun getComics(c... |
vector/src/main/java/im/vector/riotx/core/extensions/EditText.kt | unknown_repo | kotlin | /*
* Copyright 2019 New Vector 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 applicable law or agreed to i... |
app/src/main/java/com/orange/ods/app/ui/components/appbars/top/TopAppBarCustomizationState.kt | unknown_repo | kotlin | /*
* Software Name: Orange Design System
* SPDX-FileCopyrightText: Copyright (c) Orange SA
* SPDX-License-Identifier: MIT
*
* This software is distributed under the MIT licence,
* the text of which is available at https://opensource.org/license/MIT/
* or see the "LICENSE" file for more details.
*
* Software de... |
privacysandbox/ui/ui-client/src/main/java/androidx/privacysandbox/ui/client/view/SandboxedSdkView.kt | unknown_repo | kotlin | /*
* Copyright 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
privacysandbox/ui/ui-client/src/main/java/androidx/privacysandbox/ui/client/view/SandboxedSdkView.kt | unknown_repo | kotlin | /*
* Copyright 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
vico/core/src/main/java/com/patrykandpatrick/vico/core/component/text/VerticalPositionExtensions.kt | unknown_repo | kotlin | /*
* Copyright 2022 by <NAME> and <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 ... |
mobile/src/main/java/co/uk/kenkwok/tulipmania/network/NetworkServiceImpl.kt | unknown_repo | kotlin | package co.uk.kenkwok.tulipmania.network
import android.support.annotation.Nullable
import co.uk.kenkwok.tulipmania.models.AnxTicker
import co.uk.kenkwok.tulipmania.models.BitfinexTicker
import co.uk.kenkwok.tulipmania.models.BitstampTicker
import io.reactivex.Observable
import io.reactivex.android.schedulers.AndroidS... |
libraries/designsystem/src/main/kotlin/io/element/android/libraries/designsystem/theme/components/IconButton.kt | unknown_repo | kotlin | /*
* Copyright (c) 2023 New Vector 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 applicable law or agr... |
android/src/main/java/org/fossasia/badgemagic/database/ClipArtService.kt | unknown_repo | kotlin | package org.fossasia.badgemagic.database
import android.graphics.drawable.Drawable
import android.util.SparseArray
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import org.fossasia.badgemagic.R
import org.fossasia.badgemagic.util.Resource
import org.fossasia.badgemagic.util.StorageUtils
... |
compose/compiler/compiler-hosted/integration-tests/src/jvmTest/kotlin/androidx/compose/compiler/plugins/kotlin/TargetAnnotationsTransformTests.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... |
sensing/src/main/java/com/google/android/sensing/db/impl/dao/CaptureInfoDao.kt | unknown_repo | kotlin | /*
* Copyright 2023-2024 Google LLC
*
* 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... |
project/app/src/main/java/com/marcosvbras/robomarket/flows/robotdetail/viewmodel/RobotDetailViewModel.kt | unknown_repo | kotlin | package com.marcosvbras.robomarket.flows.robotdetail.viewmodel
import android.app.Activity.RESULT_OK
import android.databinding.ObservableField
import android.os.Bundle
import com.marcosvbras.robomarket.app.EDIT_ROBOT_REQUEST_CODE
import com.marcosvbras.robomarket.app.ROBOT_TAG
import com.marcosvbras.robomarket.busine... |
shared/src/main/java/de/shecken/grillshow/shared/theme/Color.kt | unknown_repo | kotlin | package de.shecken.grillshow.shared
import androidx.compose.ui.graphics.Color
val md_theme_dark_primary = Color(0xFFFFB4A8)
val md_theme_dark_onPrimary = Color(0xFF690100)
val md_theme_dark_primaryContainer = Color(0xFF930100)
val md_theme_dark_onPrimaryContainer = Color(0xFFFFDAD4)
val md_theme_dark_secondary = Colo... |
connection/src/main/java/com/thoughtworks/cconn/ConnectionFactory.kt | unknown_repo | kotlin | /*
** Copyright 2020, 思特沃克软件技术(北京)有限公司
**
*/
package com.thoughtworks.cconn
import android.content.Context
import com.thoughtworks.cconn.bus.Bus
import com.thoughtworks.cconn.bus.CrossConnectionBus
import com.thoughtworks.cconn.comm.bluetooth.client.BluetoothClient
import com.thoughtworks.cconn.comm.tcp.client.Tcp... |
connection/src/main/java/com/thoughtworks/cconn/ConnectionFactory.kt | unknown_repo | kotlin | /*
** Copyright 2020, 思特沃克软件技术(北京)有限公司
**
*/
package com.thoughtworks.cconn
import android.content.Context
import com.thoughtworks.cconn.bus.Bus
import com.thoughtworks.cconn.bus.CrossConnectionBus
import com.thoughtworks.cconn.comm.bluetooth.client.BluetoothClient
import com.thoughtworks.cconn.comm.tcp.client.Tcp... |
app/src/main/java/com/danefinlay/ttsutil/Notifications.kt | unknown_repo | kotlin | /*
* TTS Util
*
* Authors: <NAME> <<EMAIL>>
*
* Copyright (C) 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
*
* U... |
AOS/RunWithMe/app/src/main/java/com/ssafy/runwithme/utils/XAccessTokenInterceptor.kt | unknown_repo | kotlin | package com.ssafy.runwithme.utils
import android.content.SharedPreferences
import kotlinx.coroutines.runBlocking
import okhttp3.Interceptor
import okhttp3.Response
import javax.inject.Inject
class XAccessTokenInterceptor @Inject constructor(
private val sharedPref: SharedPreferences
): Interceptor {
override... |
app/src/main/java/org/wikipedia/bridge/CommunicationBridge.kt | unknown_repo | kotlin | package org.wikipedia.bridge
import android.annotation.SuppressLint
import android.os.Handler
import android.os.Looper
import android.os.Message
import android.webkit.*
import com.google.gson.JsonObject
import org.wikipedia.bridge.JavaScriptActionHandler.setUp
import org.wikipedia.dataclient.RestService
import org.wik... |
composeApp/src/commonMain/kotlin/io/github/snd_r/komelia/ui/common/cards/BookItemCard.kt | unknown_repo | kotlin | package io.github.snd_r.komelia.ui.common.cards
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.background
import androidx.compose.foundation.combinedClickable
import androidx.compose.foundation.hoverable
import androidx.compose.... |
core/src/main/java/com/lionparcel/commonandroid/form/utils/BulkAttachFileAdapter.kt | unknown_repo | kotlin | package com.lionparcel.commonandroid.form.utils
import android.app.Activity
import android.net.Uri
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.lionparcel.commonandroid.R
import kotlinx.android.extensions.LayoutCon... |
NLiteAVDemo-Android-Java/call-ui/src/main/java/com/netease/yunxin/nertc/ui/group/GroupMemberPageAdapter.kt | unknown_repo | kotlin | /*
* Copyright (c) 2022 NetEase, Inc. All rights reserved.
* Use of this source code is governed by a MIT license that can be
* found in the LICENSE file.
*/
package com.netease.yunxin.nertc.ui.group
import android.content.Context
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import a... |
compose/foundation/foundation/src/androidAndroidTest/kotlin/androidx/compose/foundation/shape/AbsoluteRoundedCornerShapeTest.kt | unknown_repo | kotlin | /*
* Copyright 2019 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... |
project/app/src/main/java/com/example/nattklar/view/BottomNavigationBar.kt | unknown_repo | kotlin | package com.example.nattklar.view
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.AnimatedVisibilityScope
import androidx.compose.animation.core.tween
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.animation.slideInVerti... |
app/src/main/java/com/hermanowicz/wirelesswhisper/navigation/features/deviceDetails/ui/DeviceDetailsScreen.kt | unknown_repo | kotlin | package com.hermanowicz.wirelesswhisper.navigation.features.deviceDetails.ui
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.la... |
app/src/main/java/com/roque/rueda/gbm/coding/challenge/ipc/IpcFragment.kt | unknown_repo | kotlin | package com.roque.rueda.gbm.coding.challenge.ipc
import android.os.Build
import android.os.Bundle
import android.util.DisplayMetrics
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.view.isVisible
import androidx.core.view.marginBottom
import androidx.fragm... |
app/src/main/java/com/kickstarter/ui/activities/compose/login/CreatePasswordScreen.kt | unknown_repo | kotlin | package com.kickstarter.ui.activities.compose
import android.content.res.Configuration
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.S... |
app/src/main/java/com/nedaluof/radiox/domain/usecase/radiostations/RadioStationsRemoteMediator.kt | unknown_repo | kotlin | package com.nedaluof.radiox.domain.usecase.radiostations
import androidx.paging.ExperimentalPagingApi
import androidx.paging.LoadType
import androidx.paging.PagingState
import androidx.paging.RemoteMediator
import com.nedaluof.radiox.data.datasource.local.db.entities.RadioStationEntity
import com.nedaluof.radiox.data.... |
app/src/main/java/eu/kanade/tachiyomi/widget/preference/LibrarySyncPreference.kt | unknown_repo | kotlin | package eu.kanade.tachiyomi.widget.preference
import android.content.Context
import android.support.v7.preference.Preference
import android.support.v7.preference.PreferenceViewHolder
import android.util.AttributeSet
import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.data.librarysync.LibrarySyncManager
import kotl... |
app/src/main/java/xyz/sentrionic/harmony/persistence/StoryQueryUtils.kt | unknown_repo | kotlin | package xyz.sentrionic.harmony.persistence
import androidx.lifecycle.LiveData
import xyz.sentrionic.harmony.models.StoryPost
import xyz.sentrionic.harmony.persistence.StoryQueryUtils.Companion.ORDER_BY_ASC_DATE_UPDATED
import xyz.sentrionic.harmony.persistence.StoryQueryUtils.Companion.ORDER_BY_ASC_USERNAME
import xyz... |
mobile/src/main/java/com/siliconlabs/bledemo/Bluetooth/BLE/TimeoutGattCallback.kt | unknown_repo | kotlin | package com.siliconlabs.bledemo.bluetooth.ble
import android.bluetooth.BluetoothGatt
import android.bluetooth.BluetoothGattCallback
abstract class TimeoutGattCallback : BluetoothGattCallback() {
open fun onTimeout() {}
open fun onMaxRetriesExceeded(gatt: BluetoothGatt) {}
} |
app/src/main/java/org/sil/storyproducer/viewmodel/SlideViewModelBuilder.kt | unknown_repo | kotlin | package org.sil.storyproducer.viewmodel
import android.text.Layout
import org.sil.storyproducer.model.PhaseType
import org.sil.storyproducer.model.Slide
import org.sil.storyproducer.model.SlideType
import org.sil.storyproducer.model.Workspace
import org.sil.storyproducer.tools.media.graphics.TextOverlay
import java.te... |
compose/compiler/compiler-hosted/integration-tests/src/test/java/androidx/compose/compiler/plugins/kotlin/ComposerParamTransformTests.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/jin/businfo_gumi/widget/Toasty.kt | unknown_repo | kotlin | package com.jin.businfo_gumi.widget
import android.widget.Toast
import androidx.annotation.StringRes
import com.jin.businfo_gumi.MainApplication.Companion.appContext
import com.jin.businfo_gumi.R
import com.muddzdev.styleabletoast.StyleableToast
@Suppress("UNUSED")
object Toasty {
private var toast: StyleableToas... |
library/src/main/java/com/kenargo/compound_widgets/WidgetTitleAndEditText.kt | unknown_repo | kotlin | package com.kenargo.compound_widgets
import android.content.Context
import android.text.Editable
import android.text.TextUtils
import android.text.TextWatcher
import android.util.AttributeSet
import android.view.LayoutInflater
import android.view.View
import android.view.inputmethod.InputMethodManager
import android.w... |
app/src/main/java/com/olabode/wilson/pytutor/ui/onboarding/OnBoardingAdapter.kt | unknown_repo | kotlin | package com.olabode.wilson.pytutor.ui.onboarding
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.olabode.wilson.pytutor.databinding.SlideItemContainerBinding
import com.olabode.wilson.pytutor.models.IntroSlideItem
import com.olabode.wilson.py... |
camera/camera-camera2-pipe-integration/src/main/java/androidx/camera/camera2/pipe/integration/adapter/CoroutineAdapters.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/example/mywiki/ui/webView/WebViewActivity.kt | unknown_repo | kotlin | package com.example.mywiki.ui.webView
import android.annotation.SuppressLint
import android.os.Bundle
import android.view.View
import android.webkit.WebView
import android.webkit.WebViewClient
import androidx.lifecycle.Observer
import com.example.mywiki.databinding.ActivityWebviewBinding
import com.example.mywiki.di.c... |
library/src/main/java/io/github/deweyreed/scrollhmspicker/ScrollHmsPicker.kt | unknown_repo | kotlin | package io.github.deweyreed.scrollhmspicker
import android.content.Context
import android.graphics.Typeface
import android.os.Parcel
import android.os.Parcelable
import android.util.AttributeSet
import android.view.LayoutInflater
import android.view.View
import android.widget.LinearLayout
import android.widget.TextVie... |
sync/sync-settings-impl/src/test/java/com/duckduckgo/sync/settings/impl/SettingsSyncDataPersisterTest.kt | unknown_repo | kotlin |
package com.duckduckgo.sync.settings.impl
import androidx.arch.core.executor.testing.*
import androidx.room.*
import androidx.test.ext.junit.runners.*
import androidx.test.platform.app.*
import com.duckduckgo.app.*
import com.duckduckgo.common.test.CoroutineTestRule
import com.duckduckgo.common.test.FileUtilities
im... |
mobile/src/main/java/ch/epfl/sdp/mobile/state/StatefulPuzzleGameScreen.kt | unknown_repo | kotlin | @file:OptIn(ExperimentalPermissionsApi::class)
package ch.epfl.sdp.mobile.state
import android.Manifest.permission.RECORD_AUDIO
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.material.SnackbarHostState
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import ch.epf... |
app/src/main/java/com/everdeng/android/app/wanandroid/widget/MyWebView.kt | unknown_repo | kotlin | package com.everdeng.android.app.wanandroid.widget
import android.content.Context
import android.util.AttributeSet
import android.view.KeyEvent
import android.webkit.WebView
class MyWebView: WebView {
constructor( context: Context): super(context)
constructor(context: Context, attributeSet: AttributeSet): sup... |
app/src/main/java/com/moka/framework/base/BaseFragment.kt | unknown_repo | kotlin | package com.moka.framework.base
import android.app.AlertDialog
import android.os.Bundle
import android.support.v4.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.moka.framework.extenstion.hideSoftKey
import com.moka.framework.util.MLog
import com.moka.m... |
line-awesome/src/commonMain/kotlin/compose/icons/lineawesomeicons/TrophySolid.kt | unknown_repo | kotlin | package compose.icons.lineawesomeicons
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
... |
QuickBaseLib/src/main/java/cn/chawloo/base/ext/ExtensionFun.kt | unknown_repo | kotlin | package cn.chawloo.base.ext
import android.content.ClipData
import android.content.ClipboardManager
import android.content.Context
import android.os.Bundle
import android.os.Parcelable
import com.hjq.toast.Toaster
import java.io.Serializable
/**
* 扩展函数,放一些不知道怎么分类的扩展函数 知道后可以迁移
* @author Create by 鲁超 on 2022/6/7 000... |
app/src/main/java/com/app/moodtrack_android/util/NotificationQuestionnaireUtil.kt | unknown_repo | kotlin | package com.app.moodtrack_android.util
import android.util.Log
import com.app.moodtrack_android.model.notificationquestionnaire.NQCondition
import com.app.moodtrack_android.model.notificationquestionnaire.NQEdge
import com.app.moodtrack_android.model.notificationquestionnaire.NQNode
import com.app.moodtrack_android.mo... |
coil-base/src/main/java/coil/memory/StrongMemoryCache.kt | unknown_repo | kotlin | package coil.memory
import android.content.ComponentCallbacks2
import android.content.ComponentCallbacks2.TRIM_MEMORY_BACKGROUND
import android.content.ComponentCallbacks2.TRIM_MEMORY_RUNNING_LOW
import android.content.ComponentCallbacks2.TRIM_MEMORY_UI_HIDDEN
import android.graphics.Bitmap
import android.util.Log
imp... |
kotlinpoet/src/main/java/com/squareup/kotlinpoet/TypeName.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... |
app/src/main/java/com/github/skytoph/taski/presentation/habit/list/component/HabitDaily.kt | unknown_repo | kotlin | @file:OptIn(ExperimentalMaterial3Api::class)
package com.github.skytoph.taski.presentation.habit.list.component
import androidx.compose.animation.Animatable
import androidx.compose.animation.core.tween
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.background
import an... |
app/src/main/kotlin/ir/erfansn/nsmavpn/data/source/local/VpnServersLocalDataSource.kt | unknown_repo | kotlin | /*
* Copyright 2024 Erfan Sn
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... |
app/src/main/java/ilkadam/ilksohbet/presentation/bottomnavigation/components/CustomNavItem.kt | unknown_repo | kotlin | package ilkadam.ilksohbet.presentation.bottomnavigation.components
import androidx.compose.material3.IconButton
import androidx.compose.runtime.Composable
@Composable
fun CustomNavItem(
onClick: () -> Unit,
iconSelected: @Composable () -> Unit
) {
IconButton(onClick = {
onClick()
},
co... |
app/src/main/java/space/pal/sig/service/SpaceNotificationManager.kt | unknown_repo | kotlin | package space.pal.sig.service
import android.app.NotificationChannel
import android.app.NotificationManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.graphics.Bitmap
import android.os.Build
import androidx.core.app.NotificationCompat
import space.pal.s... |
compose/ui/ui-inspection/src/androidTest/java/androidx/compose/ui/inspection/inspector/LayoutInspectorTreeTest.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... |
packages/expo-image-picker/android/src/main/java/expo/modules/imagepicker/exporters/CompressionImageExporter.kt | unknown_repo | kotlin | package expo.modules.imagepicker.exporters
import android.graphics.Bitmap
import android.net.Uri
import androidx.annotation.FloatRange
import expo.modules.imagepicker.exporters.ImageExporter.Listener
import expo.modules.interfaces.imageloader.ImageLoaderInterface
import org.apache.commons.io.FilenameUtils
import java.... |
jcplayer/src/main/java/com/example/jean/jcplayer/service/JcPlayerService.kt | unknown_repo | kotlin | package com.example.jean.jcplayer.service
import android.app.Service
import android.content.Intent
import android.content.res.AssetFileDescriptor
import android.media.MediaPlayer
import android.net.Uri
import android.os.Binder
import android.os.IBinder
import com.example.jean.jcplayer.general.JcStatus
import com.examp... |
app/src/main/java/com/eyepetizer/android/ui/common/ui/vassonic/SonicJavaScriptInterface.kt | unknown_repo | kotlin | /*
* Copyright (C) 2017 THL A29 Limited, a Tencent company. 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
*
... |
app/src/main/java/tech/muso/demo/architecture/ui/stocks/StockDataBindingAdapters.kt | unknown_repo | kotlin | package tech.muso.demo.architecture.ui.stocks
import android.widget.ImageView
import androidx.databinding.BindingAdapter
import com.bumptech.glide.Glide
import com.bumptech.glide.load.resource.drawable.DrawableTransitionOptions
import tech.muso.demo.common.entity.Profile
/**
* Create a custom DataBinding adapter so ... |
libBase/src/main/java/com/effective/android/base/tips/keeplive/KeepLiveService.kt | unknown_repo | kotlin | package com.effective.android.base.tips.keeplive
import android.app.Notification
import android.app.Service
import android.content.Intent
import android.os.Build
import android.os.IBinder
import android.util.Log
/**
* 方案二
* 8.0以下尝试用前台服务降低优先级,但是7.0以下notification才不会提示,7.0会在通知栏显示isRunning
* 模范tinker实现
* Created by y... |
app/src/main/java/de/seemoo/at_tracking_detection/notifications/ScheduledNotificationReceiver.kt | unknown_repo | kotlin | package de.seemoo.at_tracking_detection.notifications
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import de.seemoo.at_tracking_detection.ATTrackingDetectionApplication
import de.seemoo.at_tracking_detection.util.SharedPrefs
import timber.log.Timber
class Sched... |
rounded/src/commonMain/kotlin/me/localx/icons/rounded/outline/PhotoVideo.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/com/kmmania/runninguserpreferences/user_prefs/UserPrefsDao.kt | unknown_repo | kotlin | package com.kmmania.runninguserpreferences.user_prefs
import androidx.room.*
import kotlinx.coroutines.flow.Flow
@Dao
interface UserPrefsDao {
@Insert(onConflict = OnConflictStrategy.REPLACE)
suspend fun insert(userPrefs: UserPrefs)
@Query("DELETE FROM user_prefs_table")
suspend fun deleteAll()
... |
SourceEditor/app/src/main/java/com/microsoft/device/display/wm_samples/sourceeditor/CodeFragment.kt | unknown_repo | kotlin | /*
*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License.
*
*/
package com.microsoft.device.display.wm_samples.sourceeditor
import android.content.Context
import android.os.Bundle
import android.text.Editable
import android.text.TextWatcher
import android.view.LayoutInf... |
app/src/main/java/com/example/twitturin/tweet/presentation/postTweet/ui/PublicPostPolicyFragment.kt | unknown_repo | kotlin | package com.example.twitturin.tweet.presentation.postTweet.ui
import android.annotation.SuppressLint
import android.content.Context
import android.content.SharedPreferences
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.Vie... |
app/src/main/java/com/amazon/ivs/optimizations/ui/home/HomeFragment.kt | unknown_repo | kotlin | package com.amazon.ivs.optimizations.ui.home
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.amazon.ivs.optimizations.App
import com.amazon.ivs.optimizations.R
import com.amazon.ivs.optimizations.cache.P... |
app/src/main/java/ca/sudbury/hghasemi/notifyplus/ApkListAdapter.kt | unknown_repo | kotlin | package ca.sudbury.hghasemi.notifyplus
import android.annotation.SuppressLint
import android.content.pm.ApplicationInfo
import android.content.pm.PackageManager
import android.graphics.Color
import android.graphics.drawable.Drawable
import android.os.Handler
import android.text.Spannable
import android.text.SpannableS... |
letsrebug/app/src/main/java/com/gitclonepeace/letsrebug/mfragment/SettingFragment.kt | unknown_repo | kotlin | package com.gitclonepeace.letsrebug.mfragment
import android.app.Activity
import android.app.AlertDialog
import android.app.ProgressDialog
import android.content.DialogInterface
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.os.storage.StorageManager
import androidx.fragme... |
demo/src/main/java/de/check24/compose/demo/features/tablayout/AndroidUITabItemActivity.kt | unknown_repo | kotlin | package de.check24.compose.demo.features.tablayout
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import de.check24.compose.demo.R
import de.check24.compose.demo.databinding.TabItemBinding
class AndroidUITabItemActivity : AppCompatActivity(){
private lateinit var binding : TabItemBindin... |
sources/base/ui/src/main/kotlin/com/egoriku/ladyhappy/ui/dialog/BaseDialogFragment.kt | unknown_repo | kotlin | package com.egoriku.ladyhappy.ui.dialog
import android.app.Dialog
import android.content.DialogInterface
import android.os.Bundle
import android.view.KeyEvent
import androidx.appcompat.app.AppCompatDialogFragment
import com.egoriku.ladyhappy.ui.R
import com.google.android.material.dialog.MaterialAlertDialogBuilder
ab... |
Pokedex/app/src/main/java/com/example/pokedex/view/MainActivity.kt | unknown_repo | kotlin | package com.example.pokedex.view
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.Recycler... |
tripart/src/main/java/com/jn/kiku/ttp/pay/wxpay/WxPayInfoVO.kt | unknown_repo | kotlin | package com.jn.kiku.ttp.pay.wxpay
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
/**
* Author:Stevie.Chen Time:2020/09/08 15:25
* Class Comment:微信支付信息实体(自己服务器返回)
*/
@Parcelize
data class WxPayInfoVO(
var appid: String?= null,// String 公众账号ID
var partnerid: String?= null,// String 商户号
v... |
app/src/main/java/com/karl/demo/demo/app/RoomModule.kt | unknown_repo | kotlin | package com.karl.demo.demo.app
import android.content.Context
import androidx.room.Room
import androidx.room.RoomDatabase
import com.karl.demo.demo.model.AppDatabase
import com.karl.demo.demo.model.DivisionDAO
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.qualifier... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.