file_path stringlengths 6 261 | repository stringclasses 2
values | language stringclasses 1
value | content stringlengths 121 454k |
|---|---|---|---|
snowplow-tracker/src/main/java/com/snowplowanalytics/snowplow/network/OkHttpNetworkConnection.kt | unknown_repo | kotlin | /*
* Copyright (c) 2015-present Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.ap... |
snowplow-tracker/src/main/java/com/snowplowanalytics/snowplow/network/OkHttpNetworkConnection.kt | unknown_repo | kotlin | /*
* Copyright (c) 2015-present Snowplow Analytics Ltd. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.ap... |
app/src/main/java/io/github/nosix/android/compose/example/composable/material3/components/Buttons.kt | unknown_repo | kotlin | package io.github.nosix.android.compose.example.composable.material3.components
import androidx.compose.animation.core.rememberInfiniteTransition
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.padding
im... |
kmock-processor/src/main/kotlin/tech/antibytes/kmock/processor/mock/KMockReceiverGenerator.kt | unknown_repo | kotlin | /*
* Copyright (c) 2024 Matthias Geisler (bitPogo) / All rights reserved.
*
* Use of this source code is governed by Apache v2.0
*/
package tech.antibytes.kmock.processor.mock
import com.google.devtools.ksp.symbol.KSFunctionDeclaration
import com.google.devtools.ksp.symbol.KSPropertyDeclaration
import com.google.... |
app/src/main/java/com/ece452s24g7/mindful/activities/CalendarActivity.kt | unknown_repo | kotlin | package com.ece452s24g7.mindful.activities
import android.content.Intent
import android.os.Bundle
import android.view.View
import androidx.activity.enableEdgeToEdge
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import com.ece... |
elk/src/main/java/com/softklass/elk/uiautomator/Settings.kt | unknown_repo | kotlin | package com.softklass.elk.uiautomator
import android.Manifest
import android.content.Context
import android.content.Intent
import android.os.Build
import android.provider.Settings
import androidx.test.uiautomator.By
import androidx.test.uiautomator.Until
import androidx.test.uiautomator.v18.BuildConfig
import com.soft... |
adapty/src/main/java/com/adapty/internal/data/models/ViewConfigurationDto.kt | unknown_repo | kotlin | package com.adapty.internal.data.models
import androidx.annotation.RestrictTo
import com.google.gson.annotations.SerializedName
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
internal class ViewConfigurationDto(
@SerializedName("paywall_builder_config")
val config: ViewConfigurationConfig?,
@SerializedName("... |
adapty/src/main/java/com/adapty/internal/data/models/ViewConfigurationDto.kt | unknown_repo | kotlin | package com.adapty.internal.data.models
import androidx.annotation.RestrictTo
import com.google.gson.annotations.SerializedName
@RestrictTo(RestrictTo.Scope.LIBRARY_GROUP)
internal class ViewConfigurationDto(
@SerializedName("paywall_builder_config")
val config: ViewConfigurationConfig?,
@SerializedName("... |
old_baser/ktrecipe/src/main/java/work/shion/ktrecipe/pages/websample/views/MainActivity.kt | unknown_repo | kotlin | package work.shion.ktrecipe.pages.websample.views
import android.app.Activity
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import kotlinx.android.synthetic.main.websample_fragment_main.*
import work.shion.baser.android.throwAway
import wo... |
app/src/main/java/cz/dmn/cpska/ui/home/HomeModule.kt | unknown_repo | kotlin | package cz.dmn.cpska.ui.home
import android.support.v7.app.AppCompatActivity
import cz.dmn.cpska.di.BaseActivityModule
import cz.dmn.cpska.ui.clubs.ClubsModule
import cz.dmn.cpska.ui.flights.FlightsModule
import cz.dmn.cpska.ui.leaderboard.LeaderboardModule
import dagger.Binds
import dagger.Module
import dagger.Provid... |
apps/student/src/androidTest/java/com/instructure/student/ui/e2e/ConferencesE2ETest.kt | unknown_repo | kotlin | package com.instructure.student.ui.e2e
import android.util.Log
import com.instructure.canvas.espresso.E2E
import com.instructure.canvas.espresso.FeatureCategory
import com.instructure.canvas.espresso.Priority
import com.instructure.canvas.espresso.TestCategory
import com.instructure.canvas.espresso.TestMetaData
import... |
sdkexample/src/main/java/obelab/com/sdkexample/model/Song.kt | unknown_repo | kotlin | package obelab.com.sdkexample.model
import android.os.Parcel
import android.os.Parcelable
/**
* Created by anriku on 2018/10/31.
*/
class Song() : Parcelable {
// 自定义属性表示本音乐是在线音乐还是本地音乐
var musicType: Int = LOCAL
var id: Long = 0
var data: String? = null
var size: Long = 0
var displayNam... |
app/src/main/java/io/spacecowboyapps/pugs/di/module/ActivityModule.kt | unknown_repo | kotlin | package io.spacecowboyapps.pugs.di.module
import android.content.Context
import android.support.v7.app.AppCompatActivity
import dagger.Module
import dagger.Provides
import io.spacecowboyapps.pugs.di.ActivityContext
@Module
class ActivityModule(private val activity: AppCompatActivity) {
@Provides
@ActivityCon... |
app/src/main/java/com/ealva/toque/db/AlbumDao.kt | unknown_repo | kotlin | /*
* Copyright 2021 <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 wr... |
app/src/main/java/com/implementing/cozyspace/inappscreens/task/screens/AddTaskBottomSheetContent.kt | unknown_repo | kotlin | package com.implementing.cozyspace.inappscreens.task.screens
import android.app.DatePickerDialog
import android.app.TimePickerDialog
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.*
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.RoundedCorn... |
mobile_app/smartkc_mobile_app_src/app/src/main/java/com/example/kt/data/interceptors/HostSelectionInterceptor.kt | unknown_repo | kotlin | package com.example.kt.data.interceptors
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.core.stringPreferencesKey
import com.example.kt.BuildConfig
import com.example.kt.utils.PreferenceKeys
import kotlinx.coroutines.flow.first
impo... |
app/src/main/java/com/example/neoticket/MainActivity.kt | unknown_repo | kotlin | package com.example.neoticket
import android.content.ContentValues
import android.os.Bundle
import android.util.Log
import android.view.View
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.fragment.NavHostFragment
import androidx.navigation.ui.setupWithNav... |
simplecanvaslib/src/main/java/com/phaulson/simplecanvaslib/customView/CanvasView.kt | unknown_repo | kotlin | package com.phaulson.simplecanvaslib.customView
import android.content.Context
import android.graphics.*
import android.util.AttributeSet
import android.view.MotionEvent
import android.view.View
import com.phaulson.simplecanvaslib.CanvasTouchListener
import com.phaulson.simplecanvaslib.data.DrawItem
import com.phaulso... |
composeApp/src/commonMain/kotlin/org/example/rammultiplatform/components/commons/SimpleToolBar.kt | unknown_repo | kotlin | package org.example.rammultiplatform.components.commons
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.founda... |
app/src/main/java/com/tanjiajun/androidgenericframework/utils/FragmentExt.kt | unknown_repo | kotlin | package com.tanjiajun.androidgenericframework.utils
import androidx.fragment.app.Fragment
import com.tanjiajun.androidgenericframework.ui.BaseActivity
/**
* Created by TanJiaJun on 2019-08-07.
*/
inline fun <reified T : BaseActivity<*, *>> Fragment.startActivity() =
startActivity(android.content.Intent(cont... |
chat_ui/src/main/kotlin/io.skygear.plugins.chat.ui/model/ImageMessage.kt | unknown_repo | kotlin | package com.camerash.skygear.chat.ui.model
import android.net.Uri
import com.camerash.skygear.chatkit.commons.models.MessageContentType
import org.json.JSONObject
import io.skygear.plugins.chat.Message as ChatMessage
/**
* Created by carmenlau on 10/15/17.
*/
class ImageMessage : Message,
MessageContentTyp... |
app/src/main/java/com/concept/stickyheader/utils/JsonUtils.kt | unknown_repo | kotlin | package com.concept.stickyheader.utils
import android.content.Context
import com.concept.stickyheader.data.Book
import com.google.gson.GsonBuilder
import com.google.gson.reflect.TypeToken
import java.io.IOException
object JsonUtils {
private const val SOURCE_FILE_NAME = "sample_data.json"
fun getItems(conte... |
bro/src/main/java/me/xx2bab/bro/core/base/IBroInterceptor.kt | unknown_repo | kotlin | package me.xx2bab.bro.core.base
import android.content.Context
import android.content.Intent
import me.xx2bab.bro.common.BroProperties
import me.xx2bab.bro.common.IBroApi
import me.xx2bab.bro.common.IBroModule
interface IBroInterceptor {
fun beforeFindActivity(context: Context,
target: ... |
HTTPShortcuts/app/src/main/kotlin/ch/rmy/android/http_shortcuts/activities/editor/basicsettings/BasicRequestSettingsViewModel.kt | unknown_repo | kotlin | package ch.rmy.android.http_shortcuts.activities.editor.basicsettings
import android.app.Application
import androidx.lifecycle.viewModelScope
import ch.rmy.android.framework.viewmodel.BaseViewModel
import ch.rmy.android.http_shortcuts.activities.editor.basicsettings.usecases.GetAvailableBrowserPackageNamesUseCase
impo... |
sample/shared/src/commonMain/kotlin/com/r0adkll/kimchi/restaurant/theme/Color.kt | unknown_repo | kotlin | // Copyright (C) 2024 r0adkll
// SPDX-License-Identifier: Apache-2.0
package com.r0adkll.kimchi.restaurant.theme
import androidx.compose.ui.graphics.Color
val primaryLight = Color(0xFF904B3F)
val onPrimaryLight = Color(0xFFFFFFFF)
val primaryContainerLight = Color(0xFFFFDAD4)
val onPrimaryContainerLight = Color(0xFF3... |
navigation/fragment/src/androidTest/java/androidx/navigation/fragment/ImmediateNavigationTest.kt | unknown_repo | kotlin | /*
* Copyright 2018 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... |
Scanner/src/main/java/com/vmb/scanner/Scanner.kt | unknown_repo | kotlin | package com.vmb.scanner
import android.Manifest
import android.annotation.SuppressLint
import android.app.Activity
import android.content.Context
import android.content.pm.PackageManager
import android.content.res.AssetFileDescriptor
import android.graphics.ImageFormat
import android.media.MediaPlayer
import android.o... |
app/src/main/java/lt/vilnius/tvarkau/navigation/FragmentTransactionExecutor.kt | unknown_repo | kotlin | package lt.vilnius.tvarkau.navigation
import android.support.v4.app.DialogFragment
import android.support.v4.app.Fragment
import android.support.v4.app.FragmentManager
import lt.vilnius.tvarkau.R
import lt.vilnius.tvarkau.interfaces.OnBackPressed
class FragmentTransactionExecutor(private val fragmentManager: Fragment... |
src/jvmMain/kotlin/Main.kt | unknown_repo | kotlin | import androidx.compose.ui.res.painterResource
import androidx.compose.ui.unit.dp
import androidx.compose.ui.window.Window
import androidx.compose.ui.window.WindowState
import androidx.compose.ui.window.application
import com.google.common.base.Charsets
import com.google.common.io.Resources
import org.apache.logging.lo... |
app/src/main/java/app/devuniverse/chuck/MyApplication.kt | unknown_repo | kotlin | package app.devuniverse.chuck
import android.app.Application
import dagger.hilt.android.HiltAndroidApp
@HiltAndroidApp
class MyApplication : Application() {
val appComponent: AppComponent by lazy {
DaggerAppComponent.builder()
.appModule(AppModule())
.build()
}
override f... |
app/src/main/java/com/a10miaomiao/bilimiao/entity/Dimension.kt | unknown_repo | kotlin | package com.a10miaomiao.bilimiao.entity
import android.os.Parcelable
import kotlinx.android.parcel.Parcelize
@Parcelize
data class Dimension(
val height: Int,
val rotate: Int,
val width: Int
): Parcelable |
app/src/main/java/com/amitranofinzi/vimata/data/repository/WorkbookRepository.kt | unknown_repo | kotlin | package com.amitranofinzi.vimata.data.repository
import android.content.Context
import android.net.ConnectivityManager
import android.net.NetworkCapabilities
import android.os.Build
import android.util.Log
import com.amitranofinzi.vimata.data.dao.CollectionDao
import com.amitranofinzi.vimata.data.dao.ExerciseDao
impor... |
android/repo/src/main/java/com/netnovelreader/repo/db/ReaderDatabase.kt | unknown_repo | kotlin | package com.netnovelreader.repo.db
import androidx.sqlite.db.SupportSQLiteDatabase
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import android.content.Context
import com.netnovelreader.utils.ioThread
@Database(entities = [BookInfoEntity::class, SiteSelectorEntity::class, C... |
composeApp/src/commonMain/kotlin/presentation/theme/Shapes.kt | unknown_repo | kotlin | package presentation.theme
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.Shapes
import androidx.compose.ui.unit.dp
internal val Shapes = Shapes(
small = RoundedCornerShape(4.dp),
medium = RoundedCornerShape(8.dp),
large = RoundedCornerShape(12.dp),
)
val Tx... |
runtime/protocol/http-client-engines/test-suite/common/test/aws/smithy/kotlin/runtime/http/test/UploadTest.kt | unknown_repo | kotlin | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
package aws.smithy.kotlin.runtime.http.test
import aws.smithy.kotlin.runtime.content.ByteStream
import aws.smithy.kotlin.runtime.hashing.sha256
import aws.smithy.kotlin.runtime.http.*
import aws.smithy.... |
teacher_app/app/src/main/java/io/github/kabirnayeem99/dumarketingadmin/presentation/view/faculty/UpsertFacultyFragment.kt | unknown_repo | kotlin | package io.github.kabirnayeem99.dumarketingadmin.presentation.view.faculty
import android.app.Activity.RESULT_OK
import android.content.Intent
import android.graphics.Bitmap
import android.graphics.ImageDecoder
import android.os.Build
import android.os.Bundle
import android.provider.MediaStore
import android.view.View... |
app/src/main/java/edu/skku/cs/final_project/MedicineDetailsActivity.kt | unknown_repo | kotlin | package edu.skku.cs.final_project
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import android.widget.ImageView
import android.widget.TextView
import com.bumptech.glide.Glide
class MedicineDetailsActivity: AppCompatActivity() {
... |
jessie/src/main/java/cn/jessie/etc/AndroidVM.kt | unknown_repo | kotlin | package cn.jessie.etc
import android.annotation.SuppressLint
import android.os.Build
import java.util.*
/**
* @author 7hens
*/
@SuppressLint("PrivateApi")
internal object AndroidVM {
/**
* 是否运行 ART 虚拟机
*/
val isArt: Boolean by lazy {
System.getProperty("java.vm.version", "")?.startsWith("2... |
app/src/main/java/com/montfel/pokfinder/presentation/profile/components/Evolution.kt | unknown_repo | kotlin | package com.montfel.pokfinder.presentation.profile.components
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material.MaterialTheme
import androidx.compose.mat... |
app/src/test/java/com/example/k2024_04_21_livedata_volley/UnitTests.kt | unknown_repo | kotlin | package com.example.k2024_04_21_livedata_volley
import com.example.k2024_04_21_livedata_volley.models.JSON_MetMuseum
import com.example.k2024_04_21_livedata_volley.view_models.UrlViewModel
import org.junit.Test
import org.junit.Assert.*
import org.junit.Before
import org.junit.Rule
import org.junit.runner.RunWith
imp... |
app/src/androidTest/java/com/example/loginsesame/TestAccountView.kt | unknown_repo | kotlin | package com.example.loginsesame
import android.app.Activity
import android.content.Context
import androidx.arch.core.executor.testing.InstantTaskExecutorRule
import androidx.lifecycle.LiveData
import androidx.lifecycle.Observer
import androidx.lifecycle.asLiveData
import androidx.recyclerview.widget.RecyclerView
impo... |
app/src/main/java/com/example/photoeditor/CameraView.kt | unknown_repo | kotlin | package com.example.photoeditor
import android.content.Context
import android.net.Uri
import android.util.Log
import android.view.Surface
import android.view.WindowManager
import androidx.camera.core.CameraSelector
import androidx.camera.core.ImageCapture
import androidx.camera.core.ImageCaptureException
import androi... |
app/src/main/java/com/day/record/ui/day/DayTaskViewModel.kt | unknown_repo | kotlin | package com.day.record.ui.day
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.day.record.MyApp
import com.day.record.data.entity.DayTask
import com.day.record.utils.Utils
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.la... |
app/src/main/java/com/example/androiddevchallenge/viewmodel/WeatherViewModel.kt | unknown_repo | kotlin | /*
* Copyright 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... |
app/src/main/java/sk/devprog/firmy/ui/screen/search/widget/SelectOptionDialog.kt | unknown_repo | kotlin | package sk.devprog.firmy.ui.screen.search.widget
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose... |
app/src/main/java/zmuzik/taibike/App.kt | unknown_repo | kotlin | package zmuzik.taibike
import android.app.Application
import androidx.appcompat.app.AppCompatDelegate
import com.squareup.leakcanary.LeakCanary
import org.koin.android.ext.android.startKoin
import timber.log.Timber
class App : Application() {
override fun onCreate() {
super.onCreate()
AppCompatD... |
app/src/main/kotlin/com/softteco/template/data/profile/ProfileRepositoryImpl.kt | unknown_repo | kotlin | package com.softteco.template.data.profile
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.core.stringPreferencesKey
import com.softteco.template.data.TemplateApi
import com.softteco.template.data.base.error.ErrorEntity
import com.so... |
datasources/src/main/java/com/hopovo/mobile/android/prepexam/datasources/remote/authentication/AccessTokenInterceptor.kt | unknown_repo | kotlin | package com.hopovo.mobile.android.prepexam.datasources.remote.authentication
import android.text.TextUtils
import okhttp3.Interceptor
import okhttp3.Response
class AccessTokenInterceptor(
private val tokenProvider: AccessTokenProvider
) : Interceptor {
override fun intercept(chain: Interceptor.Chain): Respon... |
app/src/main/java/dev/hossain/keepalive/ui/screen/AppAdditionalConfigs.kt | unknown_repo | kotlin | package dev.hossain.keepalive.ui.screen
import android.content.Context
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxW... |
app/src/main/java/sjj/novel/view/module/details/DetailsActivity.kt | unknown_repo | kotlin | package sjj.novel.view.module.details
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import androidx.core.view.GravityCompat
import androidx.databinding.DataBindingUtil
import com.bumptech.glide.Glide
import io.reactivex.android.schedulers.AndroidSchedulers
import kotlinx.android.synthe... |
compose/src/main/java/dev/medzik/android/compose/theme/CombineAlpha.kt | unknown_repo | kotlin | package dev.medzik.android.compose.theme
import androidx.compose.ui.graphics.Color
/**
* Returns a new [Color] with alpha multiplied by given [alpha] value.
*
* @param alpha the alpha value to multiple by.
* @return A new [Color] with alpha multiplied by given [alpha] value.
*/
fun Color.combineAlpha(alpha: Floa... |
app/src/main/java/com/theophiluskibet/koin/playground/presentation/screens/details/ChacterDetailScreenViewModel.kt | unknown_repo | kotlin | /*
* Copyright 2024 <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 w... |
component/src/main/java/com/trian/component/bottomnavigation/BottomNavigationData.kt | unknown_repo | kotlin | package com.trian.component.bottomnavigation
import androidx.compose.ui.graphics.vector.ImageVector
import com.trian.component.Routes
import compose.icons.Octicons
import compose.icons.octicons.*
/**
* Main Page
* Author <NAME>
* Created by <NAME>
* 25/10/2021
*/
sealed class BottomNavigationData (val icon:Image... |
MusicPlayer/app/src/main/java/com/example/musicplayer/PlaylistDetail.kt | unknown_repo | kotlin | package com.example.musicplayer
import android.annotation.SuppressLint
import android.os.Bundle
import android.view.View
import android.widget.Toast
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompa... |
library/src/main/kotlin/com/fleey/customwindow/SystemButtons.kt | unknown_repo | kotlin | package com.fleey.customwindow
import androidx.compose.animation.animateColorAsState
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.hoverable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.fo... |
app/src/main/java/io/github/sauvio/ocr/utils/BitmapUtils.kt | unknown_repo | kotlin | package io.github.sauvio.ocr.utils
import android.content.ContentResolver
import android.content.Context
import android.graphics.Bitmap
import android.graphics.Bitmap.CompressFormat
import android.graphics.BitmapFactory
import android.graphics.Matrix
import android.graphics.Rect
import android.net.Uri
import androidx.... |
ui/lists/src/main/kotlin/com/gnoemes/shimori/lists/tabs/page/pinned/ListPinnedViewState.kt | unknown_repo | kotlin | package com.gnoemes.shimori.lists.tabs.page.pinned
import androidx.compose.runtime.Immutable
import com.gnoemes.shimori.model.EntityWithRate
import com.gnoemes.shimori.model.ShimoriEntity
@Immutable
internal data class ListPinnedViewState(
val list : List<EntityWithRate<out ShimoriEntity>> = emptyList()
) {
... |
animeone/android/app/src/main/kotlin/org/github/henryquan/animeone/WebActivity.kt | unknown_repo | kotlin | package org.github.henryquan.animeone
import android.content.Intent
import android.os.Build
import android.os.Bundle
import android.webkit.CookieManager
import android.webkit.WebView
import android.webkit.WebViewClient
import androidx.appcompat.app.AppCompatActivity
class WebActivity : AppCompatActivity() {
over... |
Sample/app/src/main/java/com/dreamgyf/android/plugin/fastinflate/sample/MainActivity.kt | unknown_repo | kotlin | package com.dreamgyf.android.plugin.fastinflate.sample
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.LayoutInflater
import android.view.View
import android.view.ViewStub
import com.dreamgyf.android.plugin.fastinflate.FastInflate
class MainActivity... |
app/src/main/java/com/example/jetpackcompose/sdui/Components.kt | unknown_repo | kotlin | package com.example.jetpackcompose.sdui
import androidx.compose.foundation.Text
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.shap... |
app/src/main/java/com/ferrariofilippo/saveapp/model/entities/Subscription.kt | unknown_repo | kotlin | package com.ferrariofilippo.saveapp.model.entities
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import androidx.room.TypeConverters
import com.ferrariofilippo.saveapp.data.converters.DateConverter
import com.ferrariofilippo.saveapp.model.enums.RenewalType
import java.time... |
app/src/androidTest/java/org/example/screens/CustomizeFeedScreen.kt | unknown_repo | kotlin | package org.example.screens
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMatchers.*
import io.github.kakaocup.kakao.screen.Screen
import org.hamcrest.core.AllOf.allOf
import org.wikipedia.R
object CustomizeFeedSc... |
app/src/main/java/com/imashnake/animite/features/searchbar/SearchViewModel.kt | unknown_repo | kotlin | package com.imashnake.animite.features.searchbar
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.imashnake.animite.api.anilist.AnilistSearchRepository
import com.imashnake.animite.api.anilist.type.MediaType
import com.imashnake.animite.... |
ui/player/src/main/kotlin/app/surgo/ui/player/PlayerViewModel.kt | unknown_repo | kotlin | @file:Suppress("UNCHECKED_CAST")
package app.surgo.ui.player
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.media3.common.MediaItem
import androidx.media3.common.Timeline.Window
import app.surgo.core.datastore.UserPreferences
import app.surgo.core.domain.interactors.GetSo... |
app/src/main/java/com/commit451/gitlab/activity/ProjectsActivity.kt | unknown_repo | kotlin | package com.commit451.gitlab.activity
import android.content.Context
import android.content.Intent
import android.os.Bundle
import androidx.appcompat.widget.Toolbar
import androidx.core.view.GravityCompat
import com.commit451.gitlab.App
import com.commit451.gitlab.R
import com.commit451.gitlab.adapter.ProjectsPagerAda... |
app/src/main/java/com/getcode/view/main/tip/TipConnectViewModel.kt | unknown_repo | kotlin | package com.getcode.view.main.tip
import android.content.Intent
import androidx.lifecycle.viewModelScope
import com.getcode.R
import com.getcode.network.TipController
import com.getcode.util.IntentUtils
import com.getcode.util.resources.ResourceHelper
import com.getcode.view.BaseViewModel2
import dagger.hilt.android.l... |
kotlintoasts/src/main/java/com/sarveshathawale/kotlintoasts/KotlinToasts.kt | unknown_repo | kotlin | @file:Suppress("NOTHING_TO_INLINE")
package com.sarveshathawale.kotlintoasts
import android.content.Context
import android.widget.Toast
/**
* Display the simple Toast message with the [Toast.LENGTH_LONG] duration.
*
* @param message The actual message to show in toast
*/
inline fun Context.longToast(message: () ... |
common/src/main/java/com/afollestad/nocknock/utilities/ext/AnimationExt.kt | unknown_repo | kotlin | /**
* Designed and developed by Aidan Follestad (@afollestad)
*
* 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 b... |
components-core/src/main/java/com/adyen/checkout/components/core/internal/ActionObserverRepository.kt | unknown_repo | kotlin | /*
* Copyright (c) 2022 <NAME>.
*
* This file is open source and available under the MIT license. See the LICENSE file for more info.
*
* Created by josephj on 3/11/2022.
*/
package com.adyen.checkout.components.core.internal
import androidx.annotation.RestrictTo
import androidx.lifecycle.LifecycleOwner
import ... |
app/src/main/java/dev/seabat/android/hellobottomnavi/ui/pages/qiitadetail/QiitaDetailFragment.kt | unknown_repo | kotlin | package dev.seabat.android.hellobottomnavi.ui.pages.qiitadetail
import android.os.Bundle
import android.view.View
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.navigation.fragment.findNavController
import androidx.navigation.fragment.navArgs
import androidx.navigation.ui... |
currency-formatter/src/main/java/com/jacoballenwood/formatter/main/TextChangeListener.kt | unknown_repo | kotlin | package com.jacoballenwood.formatter.main
import android.text.TextWatcher
interface TextChangeListener : Listeners<TextWatcher>
interface Listeners<T> {
val listeners: List<T>
fun addListener(listener: T)
fun removeListener(listener: T)
fun clear()
}
class ListenersImpl<T> : Listeners<T> {
priv... |
straight/src/commonMain/kotlin/me/localx/icons/straight/filled/PortalEnter.kt | unknown_repo | kotlin | package me.localx.icons.straight.filled
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/yurhel/alex/anotes/ui/Screens.kt | unknown_repo | kotlin | package com.yurhel.alex.anotes.ui
import android.appwidget.AppWidgetManager
import androidx.compose.animation.EnterTransition
import androidx.compose.animation.ExitTransition
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.found... |
CW/lesson_09/app/src/main/java/com/marbax/alertdialogs/MainActivity.kt | unknown_repo | kotlin | package com.marbax.alertdialogs
import android.app.DatePickerDialog
import android.app.TimePickerDialog
import android.content.DialogInterface
import android.icu.util.Calendar
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.*
import androidx.appcom... |
repository/src/main/java/com/telen/easylineup/repository/dao/TeamDao.kt | unknown_repo | kotlin | package com.telen.easylineup.repository.dao
import androidx.lifecycle.LiveData
import androidx.room.*
import com.telen.easylineup.repository.model.RoomTeam
import io.reactivex.Completable
import io.reactivex.Single
@Dao
internal interface TeamDao {
@Query("DELETE FROM teams")
fun deleteAll(): Completable
... |
app/src/main/java/com/nutrition/balanceme/data/repositories/ProfileRepositoryImpl.kt | unknown_repo | kotlin | package com.nutrition.balanceme.data.repositories
import android.net.Uri
import androidx.lifecycle.LiveData
import com.nutrition.balanceme.data.local.RecipesDao
import com.nutrition.balanceme.data.local.UserDao
import com.nutrition.balanceme.data.remote.Cloudinary
import com.nutrition.balanceme.data.remote.RecipesServ... |
android/src/main/kotlin/com/fluttercandies/photo_manager/core/PhotoManagerPlugin.kt | unknown_repo | kotlin | package com.fluttercandies.photo_manager.core
import android.Manifest
import android.app.Activity
import android.content.Context
import android.content.pm.PackageManager
import android.os.Build
import android.os.Environment
import android.os.Handler
import android.os.Looper
import com.bumptech.glide.Glide
import com.f... |
app/src/main/java/com/test/abc/ui/tabs/TabsViewModelFactory.kt | unknown_repo | kotlin | package com.test.abc.ui.tabs
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.test.abc.data.FoodRepository
import javax.inject.Inject
/**
* Factory for ViewModels
*/
class TabsViewModelFactory
@Inject constructor(private val foodRepository: FoodRepository) : ViewModelProvid... |
App/app/src/main/java/ee/ut/gimmefood/SettingsActivity.kt | unknown_repo | kotlin | package ee.ut.gimmefood
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.os.Bundle
import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import androidx.preference.PreferenceFragmentCompat
class SettingsActivity : AppCompatActivity() {
override fun... |
tjekSdk/src/main/java/com/tjek/sdk/api/remote/request/IncitoRequestDataClasses.kt | unknown_repo | kotlin | package com.tjek.sdk.api.remote.request
/*
* Copyright (C) 2022 Tjek
*
* 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 re... |
app/src/main/java/engineer/echo/study/mvvm/vp2/Vp2ViewModel.kt | unknown_repo | kotlin | package engineer.echo.study.mvvm.vp2
import android.app.Application
import android.os.Bundle
import androidx.lifecycle.*
class Vp2ViewModel(bundle: Bundle? = null) : ViewModel(), Vp2Contract.IViewModel {
private val model: Vp2Contract.IModel = Vp2Model()
private val jobTrigger = MutableLiveData<Long>()
... |
LibDialog/src/main/java/com/bihe0832/android/lib/ui/dialog/tools/DialogUtils.kt | unknown_repo | kotlin | /*
* *
* * Created by zixie < code@bihe0832.com > on 2022/5/25 上午10:43
* * Copyright (c) 2022 . All rights reserved.
* * Last modified 2022/5/25 上午10:43
*
*/
package com.bihe0832.android.lib.ui.dialog.tools
import android.content.Context
import android.view.inputmethod.EditorInfo
import com.bihe0832.android.l... |
app/src/main/java/com/example/tingximalaya/adapters/AlbumListAdapter.kt | unknown_repo | kotlin | package com.example.tingximalaya.adapters
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import com.example.tingximalaya.R
import com.example.tingximalaya.fragments... |
library/src/main/kotlin/com/olympians/aeolus/utils/AnnotationTools.kt | unknown_repo | kotlin | package com.olympians.aeolus.utils
import android.text.TextUtils
import com.alibaba.fastjson.JSON
import com.olympians.aeolus.AeolusRequest
import com.olympians.aeolus.annotations.Get
import com.olympians.aeolus.annotations.Post
import com.olympians.aeolus.annotations.Query
import com.olympians.aeolus.config.AeolusCon... |
library/src/main/kotlin/com/olympians/aeolus/utils/AnnotationTools.kt | unknown_repo | kotlin | package com.olympians.aeolus.utils
import android.text.TextUtils
import com.alibaba.fastjson.JSON
import com.olympians.aeolus.AeolusRequest
import com.olympians.aeolus.annotations.Get
import com.olympians.aeolus.annotations.Post
import com.olympians.aeolus.annotations.Query
import com.olympians.aeolus.config.AeolusCon... |
fintechplatform-ui/src/main/java/com/fintechplatform/ui/profile/lightdata/LightDataActivity.kt | unknown_repo | kotlin | package com.fintechplatform.ui.profile.lightdata
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import com.fintechplatform.ui.R
import com.fintechplatform.ui.alert.AlertHelpers
import com.fintechplatform.ui.models.DataAccount
import javax.inject.Inject
/**
* Shows personal informations
*/
... |
AmniXtension/src/main/java/com/amnix/xtension/extras/BenchMarkUtils.kt | unknown_repo | kotlin | /*
* Copyright (c) 2019, AmniX
* 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... |
app/versions/media session/src/main/java/com/musicplayer/aow/delegates/scheduler/JobServices.kt | unknown_repo | kotlin | package com.musicplayer.aow.scheduler
import android.app.job.JobParameters
import android.app.job.JobService
import android.content.Intent
import com.musicplayer.aow.splashscreen.SplashScreen
/**
* Created by Arca on 12/4/2017.
*/
class JobServices : JobService() {
override fun onStartJob(params: JobParameter... |
example/android/app/src/main/kotlin/com/example/example/MainActivity.kt | unknown_repo | kotlin | package com.example.example
import androidx.annotation.NonNull;
import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.engine.FlutterEngine
class MainActivity: FlutterActivity() {
}
|
sample/src/main/java/com/spendesk/grapes/samples/home/fragments/list/ColorsAdapter.kt | unknown_repo | kotlin | package com.spendesk.grapes.samples.home.fragments.list
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.spendesk.grapes.samples.R
import com.spendesk.grapes.samples.components.SectionTitleTextView
import com.spendesk.grapes.samples.components.list.Colo... |
shared/src/commonMain/kotlin/org/jetbrains/kotlinconf/ui/components/Party.kt | unknown_repo | kotlin | package org.jetbrains.kotlinconf.ui.components
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundat... |
android/quest/src/test/java/org/smartregister/fhircore/quest/data/register/RegisterPagingSourceTest.kt | unknown_repo | kotlin | /*
* Copyright 2021-2023 Ona Systems, 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 o... |
birthday/src/main/java/com/ternaryop/photoshelf/birthday/service/BirthdayJob.kt | unknown_repo | kotlin | package com.ternaryop.photoshelf.birthday.service
import android.app.job.JobParameters
import android.content.Context
import androidx.preference.PreferenceManager
import com.ternaryop.photoshelf.birthday.util.lastBirthdayShowTime
import com.ternaryop.photoshelf.birthday.util.notifyBirthday
import com.ternaryop.photosh... |
composeApp/src/commonMain/kotlin/com/calvin/box/movie/ui/screens/reels/ReelsContentView.kt | unknown_repo | kotlin | package com.calvin.box.movie.ui.screens.reels
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import com.calvin.box.movie.media.model.PlayerConfig
import com.calvin.box.movie.media.ui.reel.ReelsPlayerView
import com.calvin.box.movie.m... |
app/src/main/java/com/example/merchant/auth/LoginActivity.kt | unknown_repo | kotlin | package com.example.merchant.auth
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.Button
import android.widget.Toast
import com.example.merchant.R
import com.example.merchant.api.RetrofitClient
import com.example.merch... |
app/src/main/java/de/schwerin/stoppCoronaDE/screens/reporting/reportStatus/ReportingStatusController.kt | unknown_repo | kotlin | package at.roteskreuz.stopcorona.screens.reporting.reportStatus
import android.content.Context
import android.text.SpannableString
import android.text.SpannableStringBuilder
import at.roteskreuz.stopcorona.R
import at.roteskreuz.stopcorona.constants.Constants.Misc.EMPTY_STRING
import at.roteskreuz.stopcorona.model.ent... |
app/src/main/java/com/example/mypraticecomposedictionary/component/SearchTextField.kt | unknown_repo | kotlin | package com.example.mypraticecomposedictionary.component
import androidx.compose.foundation.text.KeyboardActions
import androidx.compose.foundation.text.KeyboardOptions
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Text
import androidx.compose.material3.TextField
import a... |
app/src/main/java/com/admin/ozieats_app/ui/referFriend/ReferFriendViewModel.kt | unknown_repo | kotlin | package com.admin.ozieats_app.ui.referFriend
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.Build
import android.util.Log
import android.view.View
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.admin.ozieats_app.BuildCon... |
app/src/main/java/com/github/x2bng/todo/bean/Task.kt | unknown_repo | kotlin | package com.github.x2bng.todo.bean
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
@Entity(tableName = "task")
data class Task(
@PrimaryKey(autoGenerate = true)
@ColumnInfo(name = "id", typeAffinity = ColumnInfo.INTEGER)
var id: Int = 0,
@ColumnInfo(name = "... |
app/src/main/java/io/github/chronosx88/radium/ChatListActivity.kt | unknown_repo | kotlin | package io.github.chronosx88.radium
import android.os.Bundle
import android.view.MenuItem
import androidx.activity.viewModels
import androidx.appcompat.app.ActionBarDrawerToggle
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.Toolbar
import androidx.core.view.GravityCompat
import andro... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.