/frameworks/base/packages/SystemUI/src/com/android/systemui/util/ |
D | ReferenceExt.kt | 18 fun <T> weakReference(obj: T? = null): ReadWriteProperty<Any?, T?> { in weakReference() 19 return object : ReadWriteProperty<Any?, T?> { in weakReference() 21 override fun getValue(thisRef: Any?, property: KProperty<*>): T? { in weakReference() 25 override fun setValue(thisRef: Any?, property: KProperty<*>, value: T?) { in weakReference() 40 fun <T> softReference(obj: T? = null): ReadWriteProperty<Any?, T?> { in softReference() 41 return object : ReadWriteProperty<Any?, T?> { in softReference() 43 override fun getValue(thisRef: Any?, property: KProperty<*>): T? { in softReference() 47 override fun setValue(thisRef: Any?, property: KProperty<*>, value: T?) { in softReference() 62 fun <T> nullableAtomicReference(obj: T? = null): ReadWriteProperty<Any?, T?> { in nullableAtomicReference() 63 return object : ReadWriteProperty<Any?, T?> { in nullableAtomicReference() [all …]
|
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/scene/session/ui/composable/ |
D | Session.kt | 69 @Composable fun <T> rememberSession(key: String?, vararg inputs: Any?, init: () -> T): T in <lambda>() 88 fun <T> Session.rememberSession(vararg inputs: Any?, key: String? = null, init: () -> T): T = in Session() 132 fun <T : Any> rememberSaveableSession( in Session() 133 vararg inputs: Any?, in Session() 134 saver: Saver<T, out Any>, in Session() 151 vararg inputs: Any?, in rememberSaveableSession() 160 override fun <T> rememberSession(key: String?, vararg inputs: Any?, init: () -> T): T { in rememberSession() 193 override fun <T : Any> rememberSaveableSession( in <lambda>() 194 vararg inputs: Any?, in <lambda>() 195 saver: Saver<T, out Any>, in <lambda>() [all …]
|
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/parsing/parcelling/ |
D | ParcelableComponentTest.kt | 76 protected abstract val defaultImpl: Any in <lambda>() 81 protected abstract val baseParams: Collection<KFunction1<*, Any?>> in <lambda>() 111 private fun <ObjectType, ReturnType, SetType : Any?, CompareType : Any?> buildParams( in <lambda>() 115 return getSetByValue<ObjectType, ReturnType, SetType, Any?>( in <lambda>() 125 ): KFunction2<ObjectType, ReturnType, Any?>? { in <lambda>() 143 return setFunction as KFunction2<ObjectType, ReturnType, Any?> in <lambda>() 149 ): KFunction2<ObjectType, SetType, Any?>? { in <lambda>() 173 return setFunction as KFunction2<ObjectType, SetType, Any?> in <lambda>() 181 protected fun <ObjectType, ReturnType, SetType : Any?, CompareType : Any?> getter( in <lambda>() 201 findAddFunction<ObjectType, Any?, ReturnType>(getFunction) ?: return null, in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/ |
D | Key.kt | 27 sealed class Key(val debugName: String, val identity: Any) { 28 override fun equals(other: Any?): Boolean { in equals() 46 identity: Any = Object(), 64 identity: Any = Object(), 87 fun withIdentity(predicate: (Any) -> Boolean): ElementMatcher { in withIdentity() 98 class ValueKey(debugName: String, identity: Any = Object()) : Key(debugName, identity) { 108 class TransitionKey(debugName: String, identity: Any = Object()) : Key(debugName, identity) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/ |
D | PipelineDumper.kt | 29 fun println(a: Any?) = ipw.println(a) in println() 31 fun dump(label: String, value: Any?) { in println() 36 private fun dump(value: Any?) = when (value) { in dump() 47 private fun dumpCollection(values: Collection<Any?>) { in dumpCollection() 53 private val Any.bareClassName: String get() { constant 59 private val Any.barePipelineName: String? get() = when (this) { constant 66 private val Any.fullPipelineName: String get() = constant
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/util/ |
D | KtProtoLog.kt | 33 fun d(group: IProtoLogGroup, messageString: String, vararg args: Any) { in d() 40 fun v(group: IProtoLogGroup, messageString: String, vararg args: Any) { in v() 47 fun i(group: IProtoLogGroup, messageString: String, vararg args: Any) { in i() 54 fun w(group: IProtoLogGroup, messageString: String, vararg args: Any) { in w() 61 fun e(group: IProtoLogGroup, messageString: String, vararg args: Any) { in e() 68 fun wtf(group: IProtoLogGroup, messageString: String, vararg args: Any) { in wtf()
|
/frameworks/libs/systemui/toruslib/torus-utils/src/main/java/com/google/android/torus/utils/content/ |
D | ResourcesManager.kt | 29 private val resources: ConcurrentMap<String, WeakReference<Any>> = ConcurrentHashMap(0) 45 fun addResource(key: String, resource: Any): Boolean { in addResource() 68 resources[key] = WeakReference<Any>(resource) in getOrAddResource() 78 fun getResource(key: String): Any? { in getResource() 92 fun removeResource(key: String): WeakReference<Any>? = resources.remove(key)
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/listbuilder/ |
D | SemiStableSort.kt | 23 val preallocatedWorkspace by lazy { ArrayList<Any>() } in <lambda>() 24 val preallocatedAdditions by lazy { ArrayList<Any>() } in <lambda>() 25 val preallocatedMapToIndex by lazy { HashMap<Any, Int>() } in <lambda>() 26 val preallocatedMapToIndexComparator: Comparator<Any> by lazy { in <lambda>() 36 fun <T : Any> sort( in <lambda>() 60 fun <T : Any> sortTo( in <lambda>() 86 fun <T : Any> stabilizeTo( in <lambda>() 114 private inline fun <T : Any, R> withWorkspace(block: (ArrayList<T>) -> R): R { in <lambda>() 121 private inline fun <T : Any> withAdditions(block: (ArrayList<T>) -> Unit) { in <lambda>() 127 private inline fun <T : Any> withIndexOfComparator( in <lambda>()
|
/frameworks/base/services/tests/servicestests/utils-mockito/com/android/server/testutils/ |
D | MockitoUtils.kt | 27 val ANSWER_THROWS = Answer<Any?> { in <lambda>() 49 private fun Any?.attemptToString(id: Any? = null): String { in <lambda>() method 67 fun <Type : Any?> whenever(mock: Type) = Mockito.`when`(mock) in whenever() 76 val swappingAnswer = object : Answer<Any?> { 79 override fun answer(invocation: InvocationOnMock?): Any? { in answer() 95 inline fun <reified T : Any> nullable() = ArgumentMatchers.nullable(T::class.java)
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/commandline/ |
D | Parameters.kt | 71 Param, ReadOnlyProperty<Any?, T> { in parseArgsFromIter() 100 class SingleArgParam<out T : Any>( 116 override fun getValue(thisRef: Any?, property: KProperty<*>): T = in getValue() 132 class SingleArgParamOptional<out T : Any>( 147 override fun getValue(thisRef: Any?, property: KProperty<*>): T? = in getValue() 173 ) : ReadOnlyProperty<Any?, List<TParsed>>, Param { 176 override fun getValue(thisRef: Any?, property: KProperty<*>): List<TParsed> = inner in getValue()
|
D | SubCommand.kt | 55 ) : SubCommand, ReadOnlyProperty<Any?, ParseableCommand?> { in parseSubCommandArgs() 69 override fun getValue(thisRef: Any?, property: KProperty<*>): T? = in parseSubCommandArgs() 87 ) : SubCommand, ReadOnlyProperty<Any?, ParseableCommand> { 101 override fun getValue(thisRef: Any?, property: KProperty<*>): ParseableCommand = cmd in getValue()
|
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/ |
D | type_operators.h | 97 template <typename A, typename B, typename... Any> 98 struct IsConvertible<std::vector<A, Any...>, ArrayWrapper<B>> 100 template <typename A, typename B, typename... Any> 101 struct IsConvertible<ArrayWrapper<A>, std::vector<B, Any...>> 103 template <typename A, typename B, typename... Any, std::size_t Size> 104 struct IsConvertible<std::vector<A, Any...>, std::array<B, Size>> 106 template <typename A, typename B, typename... Any, std::size_t Size> 107 struct IsConvertible<std::array<A, Size>, std::vector<B, Any...>> 151 template <typename A, typename B, typename... Any> 152 struct IsConvertible<std::basic_string<A, Any...>, StringWrapper<B>> [all …]
|
/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/settingsprovider/ |
D | SettingsGlobalBoolean.kt | 29 ReadWriteProperty<Any?, Boolean> = SettingsGlobalBooleanDelegate(this, name, defaultValue) in Context() 40 ) : ReadWriteProperty<Any?, Boolean> { 44 override fun getValue(thisRef: Any?, property: KProperty<*>): Boolean = in getValue() 47 override fun setValue(thisRef: Any?, property: KProperty<*>, value: Boolean) { in getValue()
|
D | SettingsSecureBoolean.kt | 30 ReadWriteProperty<Any?, Boolean> = SettingsSecureBooleanDelegate(this, name, defaultValue) in Context() 41 ) : ReadWriteProperty<Any?, Boolean> { 45 override fun getValue(thisRef: Any?, property: KProperty<*>): Boolean = in getValue() 48 override fun setValue(thisRef: Any?, property: KProperty<*>, value: Boolean) { in getValue()
|
/frameworks/base/libs/dream/lowlight/tests/src/com/android/dream/lowlight/utils/ |
D | KotlinMockitoHelpers.kt | 53 inline fun <reified T : Any> argumentCaptor(): ArgumentCaptor<T> = in eq() 63 inline fun <reified T : Any> mock(apply: T.() -> Unit = {}): T = Mockito.mock(T::class.java) in eq() 94 inline fun <reified T : Any> kotlinArgumentCaptor(): KotlinArgumentCaptor<T> = in kotlinArgumentCaptor() 110 inline fun <reified T : Any> withArgCaptor(block: KotlinArgumentCaptor<T>.() -> Unit): T = in kotlinArgumentCaptor() 124 inline fun <reified T : Any> captureMany(block: KotlinArgumentCaptor<T>.() -> Unit): List<T> = in captureMany()
|
/frameworks/base/packages/SettingsLib/DataStore/tests/src/com/android/settingslib/datastore/ |
D | KeyedObserverTest.kt | 34 private val observer1 = mock<KeyedObserver<Any?>>() in <lambda>() 35 private val observer2 = mock<KeyedObserver<Any?>>() in <lambda>() 36 private val keyedObserver1 = mock<KeyedObserver<Any>>() in <lambda>() 37 private val keyedObserver2 = mock<KeyedObserver<Any>>() in <lambda>() 44 private val keyedObservable = KeyedDataObservable<Any>() in <lambda>() 77 var observer: KeyedObserver<Any?>? = KeyedObserver { _, _ -> counter.incrementAndGet() } in <lambda>() 95 var keyObserver: KeyedObserver<Any>? = KeyedObserver { _, _ -> counter.incrementAndGet() } in <lambda>() 173 val observer: KeyedObserver<Any?> = KeyedObserver { _, _ -> in <lambda>() 186 val keyObserver: KeyedObserver<Any?> = KeyedObserver { _, _ -> in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/concurrency/ |
D | MockExecutorHandler.kt | 52 val token = Any() in <lambda>() 72 val token = Any() in <lambda>() 100 private class Cancellation(val token: Any, canceller: Runnable) : Runnable by canceller 102 private class RuntimeExceptionAnswer : Answer<Any> { 103 override fun answer(invocation: InvocationOnMock): Any { in answer()
|
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/ |
D | DomainVerificationCoreApiTest.kt | 37 private val IS_EQUAL_TO: (value: Any, other: Any) -> Unit = { value, other -> in <lambda>() 149 fun assert(first: Any, second: Any) = assertion(first as T, second as T) in <lambda>() 160 private fun <T, V : Any> assertAll( in <lambda>() 167 val values = mutableListOf<Any>(fieldValue(first), fieldValue(second)) in <lambda>() 196 assertAll(initial, newInitial, unparceled) { value: Any, other: Any -> in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/flags/ |
D | RefactorFlagUtils.kt | 58 inline fun isUnexpectedlyInLegacyMode(isEnabled: Boolean, flagName: Any): Boolean { in isUnexpectedlyInLegacyMode() 78 inline fun assertInLegacyMode(isEnabled: Boolean, flagName: Any) = in assertInLegacyMode() 94 inline fun assertInNewMode(isEnabled: Boolean, flagName: Any) = in assertInNewMode()
|
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/notifications/ui/composable/ |
D | NotificationsShadeSessionModule.kt | 36 override fun <T : Any> rememberSaveableSession( in provideShadeSessionStorage() 37 vararg inputs: Any?, in provideShadeSessionStorage() 38 saver: Saver<T, out Any>, in provideShadeSessionStorage()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/util/mockito/ |
D | KotlinMockitoHelpers.kt | 120 inline fun <reified T : Any> argumentCaptor(): ArgumentCaptor<T> = in eq() 147 inline fun <reified T : Any> mock(settings: MockSettings? = null, apply: T.() -> Unit = {}): T = in eq() 207 inline fun <reified T : Any> kotlinArgumentCaptor(): KotlinArgumentCaptor<T> = in kotlinArgumentCaptor() 223 inline fun <reified T : Any> withArgCaptor(block: KotlinArgumentCaptor<T>.() -> Unit): T = in kotlinArgumentCaptor() 240 inline fun <reified T : Any> captureMany(block: KotlinArgumentCaptor<T>.() -> Unit): List<T> = in captureMany()
|
/frameworks/base/packages/SystemUI/tests/utils/kosmos/src/com/android/systemui/kosmos/ |
D | Kosmos.kt | 57 fun set(name: String, value: Any?) in get() 81 val map: MutableMap<String, Any?> = mutableMapOf() in Kosmos() 93 override fun set(name: String, value: Any?) { in Kosmos()
|
/frameworks/base/tools/hoststubgen/hoststubgen/src/com/android/hoststubgen/ |
D | HostStubGenLogger.kt | 132 private fun println(level: LogLevel, format: String, vararg args: Any?) { in println() 144 fun e(format: String, vararg args: Any?) { in e() 154 fun w(format: String, vararg args: Any?) { in w() 164 fun i(format: String, vararg args: Any?) { in i() 174 fun v(format: String, vararg args: Any?) { in v() 184 fun d(format: String, vararg args: Any?) { in d()
|
/frameworks/base/libs/WindowManager/Shell/shared/src/com/android/wm/shell/shared/animation/ |
D | PhysicsAnimatorTestUtils.kt | 56 private val allAnimatedObjects = HashSet<Any>() in <lambda>() 114 fun <T : Any> blockUntilAnimationsEnd( in <lambda>() 157 fun <T : Any> blockUntilAnimationsEnd( in <lambda>() 177 fun <T : Any> blockUntilFirstAnimationFrameWhereTrue( in <lambda>() 244 fun <T : Any> verifyAnimationUpdateFrames( in <lambda>() 308 fun <T : Any> verifyAnimationUpdateFrames( in <lambda>() 341 fun <T : Any> getAnimationUpdateFrames(animator: PhysicsAnimator<T>): in <lambda>() 350 fun <T : Any> clearAnimationUpdateFrames(animator: PhysicsAnimator<T>) { in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/base/viewmodel/ |
D | QSTileViewModelImplTest.kt | 65 private val tileDataInteractor = FakeQSTileDataInteractor<Any>() 66 private val tileUserActionInteractor = FakeQSTileUserActionInteractor<Any>() 73 private lateinit var underTest: QSTileViewModelImpl<Any> 85 object : QSTileDataToStateMapper<Any> { in setup() 86 override fun map(config: QSTileConfig, data: Any): QSTileState = in setup()
|