Home
last modified time | relevance | path

Searched refs:MutableReference (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/permission/java/com/android/server/permission/access/immutable/
DMutableReference.kt36 class MutableReference<I : Immutable<M>, M : I> class
62 fun toImmutable(): MutableReference<I, M> = MutableReference(immutable, null) in toImmutable()
71 other as MutableReference<*, *> in toImmutable()
DIntReferenceMap.kt27 internal val array: SparseArray<MutableReference<I, M>>
55 array: SparseArray<MutableReference<I, M>> = SparseArray() in isEmpty()
69 fun put(key: Int, value: M): I? = array.putReturnOld(key, MutableReference(value))?.get() in isEmpty()
80 array.setValueAtReturnOld(index, MutableReference(value)).get() in isEmpty()
DIndexedReferenceMap.kt27 internal val map: ArrayMap<K, MutableReference<I, M>>
55 map: ArrayMap<K, MutableReference<I, M>> = ArrayMap() in isEmpty()
69 fun put(key: K, value: M): I? = map.put(key, MutableReference(value))?.get() in isEmpty()
79 fun putAt(index: Int, value: M): I = map.setValueAt(index, MutableReference(value)).get() in isEmpty()
DImmutable.md66 (important for `MutableReference` later).
102 ### The magic: `MutableReference`
104 The magic of the implementation for this convention comes from the `MutableReference` class, and
108 class MutableReference<I : Immutable<M>, M : I>(
122 fun toImmutable(): MutableReference<I, M> = MutableReference(immutable, null)
130 Reference to any mutable data structure should be wrapped by this `MutableReference`, which
133 mutations. These `MutableReference` objects should be kept private within a data structure, with the
136 parent data structure is mutated/copied, a new `MutableReference` object should be obtained with
137 `MutableReference.toImmutable()`, which creates a new reference with the state only being immutable
140 Here is how the usage of `MutableReference` would be like in an actual class:
[all …]
DIntReferenceMapExtensions.kt86 array.put(key, MutableReference(value)) in set()
/frameworks/base/services/permission/java/com/android/server/permission/access/
DAccessState.kt26 private typealias ExternalStateReference = MutableReference<ExternalState, MutableExternalState>
28 private typealias SystemStateReference = MutableReference<SystemState, MutableSystemState>
34 private typealias UserStatesReference = MutableReference<UserStates, MutableUserStates>
88 private typealias UserIdsReference = MutableReference<IntSet, MutableIntSet>
96 MutableReference<AppIdPackageNames, MutableAppIdPackageNames>
262 MutableReference<
267 MutableReference<IndexedMap<String, Permission>, MutableIndexedMap<String, Permission>>
270 MutableReference<IndexedMap<String, Permission>, MutableIndexedMap<String, Permission>>
338 MutableReference<IndexedMap<String, Int>, MutableIndexedMap<String, Int>>
347 MutableReference<AppIdPermissionFlags, MutableAppIdPermissionFlags>
[all …]
/frameworks/base/services/
Dart-wear-profile710 Lcom/android/server/permission/access/immutable/MutableReference;
17094 …le/MutableReference;Lcom/android/server/permission/access/immutable/MutableReference;Lcom/android/…
17095 …le/MutableReference;Lcom/android/server/permission/access/immutable/MutableReference;Lcom/android/…
17097 …__services_permission_pre_jarjar()Lcom/android/server/permission/access/immutable/MutableReference;
17099 …__services_permission_pre_jarjar()Lcom/android/server/permission/access/immutable/MutableReference;
17101 …__services_permission_pre_jarjar()Lcom/android/server/permission/access/immutable/MutableReference;
17103 …ion/access/immutable/MutableReference;Ljava/util/Map;Ljava/util/Map;Lcom/android/server/permission…
17104 …ion/access/immutable/MutableReference;Ljava/util/Map;Ljava/util/Map;Lcom/android/server/permission…
17106 …;->getAppIdPackageNamesReference()Lcom/android/server/permission/access/immutable/MutableReference;
17115 …ernalState;->getUserIdsReference()Lcom/android/server/permission/access/immutable/MutableReference;
[all …]
Dart-profile2165 HSPLcom/android/server/permission/access/immutable/MutableReference;->mutate()Lcom/android/server/p…