Home
last modified time | relevance | path

Searched refs:scope (Results 1 – 25 of 251) sorted by relevance

1234567891011

/packages/apps/Camera2/src/com/android/camera/settings/
DSettingsManager.java128 protected SharedPreferences openPreferences(String scope) { in openPreferences() argument
133 String validScope = scope.replaceAll("/", "_"); in openPreferences()
279 private SharedPreferences getPreferencesFromScope(String scope) {
281 if (scope.equals(SCOPE_GLOBAL)) {
288 mCustomPreferences = openPreferences(scope);
367 public String getString(String scope, String key, String defaultValue) {
369 SharedPreferences preferences = getPreferencesFromScope(scope);
385 public String getString(String scope, String key) {
387 return getString(scope, key, getStringDefault(key));
395 public int getInteger(String scope, String key, Integer defaultValue) {
[all …]
DSettingObserver.java59 private SettingObserver(SettingsManager manager, String scope, String key, Class<T> tClass) { in SettingObserver() argument
61 mScope = scope; in SettingObserver()
67 String scope, String key) { in ofInteger() argument
68 return new SettingObserver<>(manager, scope, key, in ofInteger()
73 String scope, String key) { in ofString() argument
74 return new SettingObserver<>(manager, scope, key, in ofString()
79 String scope, String key) { in ofBoolean() argument
80 return new SettingObserver<>(manager, scope, key, in ofBoolean()
/packages/modules/Bluetooth/android/pandora/server/src/
DMediaPlayer.kt41 private val scope: CoroutineScope constant in com.android.pandora.MediaPlayer
45 scope = CoroutineScope(Dispatchers.Default.limitedParallelism(1))
52 grpcUnary<Empty>(scope, responseObserver) { in play()
59 grpcUnary<Empty>(scope, responseObserver) { in stop()
66 grpcUnary<Empty>(scope, responseObserver) { in pause()
73 grpcUnary<Empty>(scope, responseObserver) { in rewind()
80 grpcUnary<Empty>(scope, responseObserver) { in fastForward()
87 grpcUnary<Empty>(scope, responseObserver) { in forward()
94 grpcUnary<Empty>(scope, responseObserver) { in backward()
101 grpcUnary<Empty>(scope, responseObserver) { in setLargeMetadata()
[all …]
DHfpHandsfree.kt45 private val scope: CoroutineScope = CoroutineScope(Dispatchers.Default.limitedParallelism(1)) constant
61 flow = intentFlow(context, intentFilter, scope).shareIn(scope, SharingStarted.Eagerly) in <lambda>()
66 scope.cancel() in close()
73 grpcUnary(scope, responseObserver) { in answerCallAsHandsfree()
86 grpcUnary(scope, responseObserver) { in endCallAsHandsfree()
104 grpcUnary(scope, responseObserver) { in declineCallAsHandsfree()
114 grpcUnary(scope, responseObserver) { in connectToAudioAsHandsfree()
124 grpcUnary(scope, responseObserver) { in disconnectFromAudioAsHandsfree()
136 grpcUnary(scope, responseObserver) { in makeCallAsHandsfree()
149 grpcUnary(scope, responseObserver) { in callTransferAsHandsfree()
[all …]
DHfp.kt52 private val scope: CoroutineScope = CoroutineScope(Dispatchers.Default.limitedParallelism(1)) constant in com.android.pandora.Hfp
68 flow = intentFlow(context, intentFilter, scope).shareIn(scope, SharingStarted.Eagerly)
81 scope.cancel() in close()
92 grpcUnary<Empty>(scope, responseObserver) { in enableSlc()
102 grpcUnary<Empty>(scope, responseObserver) { in disableSlc()
115 grpcUnary<Empty>(scope, responseObserver) { in setBatteryLevel()
126 grpcUnary(scope, responseObserver) { in declineCall()
136 grpcUnary(scope, responseObserver) { in setAudioPath()
155 grpcUnary(scope, responseObserver) { in answerCall()
165 grpcUnary(scope, responseObserver) { in swapActiveCall()
[all …]
DA2dp.kt52 private val scope: CoroutineScope constant in com.android.pandora.A2dp
64 scope = CoroutineScope(Dispatchers.Default.limitedParallelism(1))
69 flow = intentFlow(context, intentFilter, scope).shareIn(scope, SharingStarted.Eagerly)
74 scope.cancel() in close()
81 grpcUnary<OpenSourceResponse>(scope, responseObserver) { in openSource()
119 grpcUnary<WaitSourceResponse>(scope, responseObserver) { in waitSource()
153 grpcUnary<StartResponse>(scope, responseObserver) { in start()
183 grpcUnary<SuspendResponse>(scope, responseObserver) { in suspend()
211 grpcUnary(scope, responseObserver) { in isSuspended()
226 grpcUnary<CloseResponse>(scope, responseObserver) { in close()
[all …]
/packages/modules/Connectivity/framework/src/android/net/
DLinkAddress.java102 private int scope; field in LinkAddress
187 private void init(InetAddress address, int prefixLength, int flags, int scope, in init() argument
224 this.scope = scope; in init()
242 int flags, int scope) { in LinkAddress() argument
243 init(address, prefixLength, flags, scope, LIFETIME_UNKNOWN, LIFETIME_UNKNOWN); in LinkAddress()
273 int flags, int scope, long deprecationTime, long expirationTime) { in LinkAddress() argument
274 init(address, prefixLength, flags, scope, deprecationTime, expirationTime); in LinkAddress()
288 this.scope = scopeForUnicastAddress(address); in LinkAddress()
311 this.scope = scopeForUnicastAddress(this.address); in LinkAddress()
323 public LinkAddress(@NonNull String address, int flags, int scope) { in LinkAddress() argument
[all …]
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/selection/
DGrantsAwareSelectionTest.kt58 scope = backgroundScope, in <lambda>()
61 scope = backgroundScope, in <lambda>()
78 scope = backgroundScope, in testSelectionIsInitialized()
81 scope = backgroundScope, in testSelectionIsInitialized()
105 scope = backgroundScope, in <lambda>()
108 scope = backgroundScope, in <lambda>()
129 scope = backgroundScope, in <lambda>()
132 scope = backgroundScope, in <lambda>()
149 scope = backgroundScope, in <lambda>()
152 scope = backgroundScope, in <lambda>()
[all …]
DSelectionImplTest.kt54 scope = backgroundScope, in <lambda>()
57 scope = backgroundScope, in <lambda>()
74 scope = backgroundScope, in testSelectionIsInitialized()
77 scope = backgroundScope, in testSelectionIsInitialized()
101 scope = backgroundScope, in <lambda>()
104 scope = backgroundScope, in <lambda>()
125 scope = backgroundScope, in <lambda>()
128 scope = backgroundScope, in <lambda>()
145 scope = backgroundScope, in <lambda>()
148 scope = backgroundScope, in <lambda>()
[all …]
/packages/services/Car/cpp/watchdog/server/sysprop/api/
Dlibwatchdog_properties-latest.txt6 scope: Internal
12 scope: Internal
18 scope: Internal
24 scope: Internal
30 scope: Internal
36 scope: Internal
42 scope: Internal
48 scope: Internal
54 scope: Internal
60 scope: Internal
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/inject/
DPhotopickerTestModule.kt110 @Background scope: CoroutineScope, in createConfigurationManager()
116 scope, in createConfigurationManager()
141 @Background scope: CoroutineScope, in createUserMonitor()
148 scope, in createUserMonitor()
163 @Background scope: CoroutineScope, in createEvents()
167 return Events(scope = scope, configurationManager.configuration, featureManager) in createEvents()
173 @Background scope: CoroutineScope, in createFeatureManager()
178 scope, in createFeatureManager()
185 @Background scope: CoroutineScope, in createSelection()
191 scope = scope, in createSelection()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/assets/msmt_e2e_tests/attribution_scope/
Dattribution_scope_basic.json157 // T1: attribution scope -> "1", destination -> D1
158 // S1 should be selected to match the attribution scope; S2 should be deactivated after
229 // T2: attribution scope -> "2", destination -> D1
230 // S2 matches the attribution scope but was deactivated after losing attribution at T1,
301 // T3: attribution scope -> null, destination -> D1
371 // T4: attribution scope -> "3", destination -> D2
372 // S3 should be selected to match the attribution scope.
434 // T5: attribution scope -> "4", destination -> D2
435 // S4 which matches the attribution scope was deactivated at T4.
497 // T6: attribution scope -> null, destination -> D2
Dattribution_scope_older_scopes_removed.json48 // S1 attribution scopes are deleted as attribution scope "1" and "2" are not selected.
126 // T1: attribution scope -> "1", destination -> D1
197 // T2: attribution scope -> "3", destination -> D1
198 // This should match to S2 with the right scope. S3 is not selected due to scope mismatch.
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/events/
DEventsTest.kt74 scope = backgroundScope, in <lambda>()
75 provideTestConfigurationFlow(scope = backgroundScope), in <lambda>()
103 scope = backgroundScope, in <lambda>()
104 provideTestConfigurationFlow(scope = backgroundScope), in <lambda>()
133 scope = backgroundScope, in <lambda>()
134 provideTestConfigurationFlow(scope = backgroundScope), in <lambda>()
169 scope = backgroundScope, in <lambda>()
170 provideTestConfigurationFlow(scope = backgroundScope), in <lambda>()
212 scope = backgroundScope, in <lambda>()
214 scope = backgroundScope, in <lambda>()
[all …]
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/inject/
DActivityModule.kt107 @ActivityRetainedScoped @Background scope: CoroutineScope, in provideConfigurationManager()
121 /* scope= */ scope, in provideConfigurationManager()
138 @ActivityRetainedScoped @Background scope: CoroutineScope, in provideDataService()
153 scope, in provideDataService()
171 @Background scope: CoroutineScope, in provideEvents()
179 return Events(scope, configurationManager.configuration, featureManager) in provideEvents()
186 @ActivityRetainedScoped @Background scope: CoroutineScope, in provideFeatureManager()
202 scope, in provideFeatureManager()
248 @ActivityRetainedScoped @Background scope: CoroutineScope, in provideSelection()
260 scope = scope, in provideSelection()
[all …]
DEmbeddedServiceModule.kt153 @Background scope: CoroutineScope, in <lambda>()
167 /* scope= */ scope, in <lambda>()
181 @Background scope: CoroutineScope, in <lambda>()
197 scope, in <lambda>()
214 @Background scope: CoroutineScope, in <lambda>()
222 return Events(scope, configurationManager.configuration, featureManager) in <lambda>()
228 @Background scope: CoroutineScope, in <lambda>()
244 scope, in <lambda>()
294 @Background scope: CoroutineScope, in <lambda>()
306 scope = scope, in <lambda>()
[all …]
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/photogrid/
DPhotoGridViewModelTest.kt83 scope = this.backgroundScope, in testPhotoGridItemClickedUpdatesSelection()
84 configuration = provideTestConfigurationFlow(scope = this.backgroundScope) in testPhotoGridItemClickedUpdatesSelection()
89 configuration = provideTestConfigurationFlow(scope = this.backgroundScope), in testPhotoGridItemClickedUpdatesSelection()
90 scope = this.backgroundScope, in testPhotoGridItemClickedUpdatesSelection()
95 scope = this.backgroundScope, in testPhotoGridItemClickedUpdatesSelection()
96 provideTestConfigurationFlow(scope = this.backgroundScope), in testPhotoGridItemClickedUpdatesSelection()
139 scope = this.backgroundScope, in testShowsToastWhenSelectionFull()
142 scope = this.backgroundScope, in testShowsToastWhenSelectionFull()
154 configuration = provideTestConfigurationFlow(scope = this.backgroundScope), in testShowsToastWhenSelectionFull()
155 scope = this.backgroundScope, in testShowsToastWhenSelectionFull()
[all …]
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/albumgrid/
DAlbumGridViewModelTest.kt83 scope = this.backgroundScope, in testAlbumGridItemClickedUpdatesSelection()
84 configuration = provideTestConfigurationFlow(scope = this.backgroundScope) in testAlbumGridItemClickedUpdatesSelection()
89 configuration = provideTestConfigurationFlow(scope = this.backgroundScope), in testAlbumGridItemClickedUpdatesSelection()
90 scope = this.backgroundScope, in testAlbumGridItemClickedUpdatesSelection()
97 scope = this.backgroundScope, in testAlbumGridItemClickedUpdatesSelection()
98 provideTestConfigurationFlow(scope = this.backgroundScope), in testAlbumGridItemClickedUpdatesSelection()
141 scope = this.backgroundScope, in testAlbumGridShowsToastWhenSelectionFull()
144 scope = this.backgroundScope, in testAlbumGridShowsToastWhenSelectionFull()
156 configuration = provideTestConfigurationFlow(scope = this.backgroundScope), in testAlbumGridShowsToastWhenSelectionFull()
157 scope = this.backgroundScope, in testAlbumGridShowsToastWhenSelectionFull()
[all …]
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/shortcuts/
DScopedAppTargetListCallbackTest.kt31 val scope = TestScope(UnconfinedTestDispatcher()) in test_consumerInvocations_onlyInvokedWhileScopeIsActive() constant
33 val testSubject = ScopedAppTargetListCallback(scope) { counter++ }.toConsumer() in test_consumerInvocations_onlyInvokedWhileScopeIsActive()
39 scope.cancel() in test_consumerInvocations_onlyInvokedWhileScopeIsActive()
47 val scope = TestScope(UnconfinedTestDispatcher()) in test_appPredictorCallbackInvocations_onlyInvokedWhileScopeIsActive() constant
49 val testSubject = ScopedAppTargetListCallback(scope) { counter++ }.toAppPredictorCallback() in test_appPredictorCallbackInvocations_onlyInvokedWhileScopeIsActive()
55 scope.cancel() in test_appPredictorCallbackInvocations_onlyInvokedWhileScopeIsActive()
63 val scope = TestScope(UnconfinedTestDispatcher()).apply { cancel() } in test_createdWithClosedScope_noCallbackInvocations() constant
65 val testSubject = ScopedAppTargetListCallback(scope) { counter++ }.toConsumer() in test_createdWithClosedScope_noCallbackInvocations()
/packages/modules/Connectivity/tests/unit/java/android/net/util/
DDnsUtilsTest.java115 assertEquals(test.scope, IPV6_ADDR_SCOPE_GLOBAL); in testV4SortableAddress()
126 assertEquals(test.scope, IPV6_ADDR_SCOPE_LINKLOCAL); in testV4SortableAddress()
136 assertEquals(test.scope, IPV6_ADDR_SCOPE_GLOBAL); in testV6SortableAddress()
145 assertEquals(test.scope, IPV6_ADDR_SCOPE_GLOBAL); in testV6SortableAddress()
155 assertEquals(test.scope, IPV6_ADDR_SCOPE_GLOBAL); in testV6SortableAddress()
168 assertEquals(test.scope, IPV6_ADDR_SCOPE_LINKLOCAL); in testV6SortableAddress()
174 assertEquals(test.scope, IPV6_ADDR_SCOPE_LINKLOCAL); in testV6SortableAddress()
180 assertEquals(test.scope, IPV6_ADDR_SCOPE_LINKLOCAL); in testV6SortableAddress()
186 assertEquals(test.scope, IPV6_ADDR_SCOPE_GLOBAL); in testV6SortableAddress()
192 assertEquals(test.scope, IPV6_ADDR_SCOPE_GLOBAL); in testV6SortableAddress()
[all …]
/packages/services/Car/cpp/watchdog/server/sysprop/
DWatchdogProperties.sysprop22 scope: Internal
31 scope: Internal
40 scope: Internal
49 scope: Internal
58 scope: Internal
67 scope: Internal
76 scope: Internal
85 scope: Internal
94 scope: Internal
103 scope: Internal
[all …]
/packages/apps/Settings/src/com/android/settings/biometrics2/ui/viewmodel/
DFingerprintEnrollIntroViewModel.kt75 fun updateEnrollableStatus(scope: CoroutineScope) { in <lambda>()
76 scope.launch { in <lambda>()
86 fun setHasScrolledToBottom(value: Boolean, scope: CoroutineScope) { in <lambda>()
87 scope.launch { in <lambda>()
103 fun onNextButtonClick(scope: CoroutineScope) { in <lambda>()
104 scope.launch { in <lambda>()
118 fun onSkipOrCancelButtonClick(scope: CoroutineScope) { in <lambda>()
119 scope.launch { in <lambda>()
/packages/modules/Bluetooth/sysprop/
Dhfp.sysprop7 scope: Internal
15 scope: Internal
23 scope: Internal
31 scope: Internal
39 scope: Internal
48 scope: Internal
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/contentpreview/
DImagePreviewImageLoaderTest.kt72 private val scope = TestScope(dispatcher) constant
83 scope.runTest { in prePopulate_cachesImagesUpToTheCacheSize()
95 scope.runTest { in invoke_returnCachedImageWhenCalledTwice()
104 scope.runTest { in invoke_whenInstructed_doesNotCache()
113 scope.runTest { in invoke_overlappedRequests_Deduplicate()
133 scope.runTest { in invoke_oldRecordsEvictedFromTheCache()
145 scope.runTest { in invoke_doNotCacheNulls()
155 scope.runTest { in invoke_onClosedImageLoaderScope_throwsCancellationException()
170 scope.runTest { in invoke_imageLoaderScopeClosedMidflight_throwsCancellationException()
190 scope.runTest { in invoke_multipleCallsWithDifferentCacheInstructions_cachingPrevails()
[all …]
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/preview/
DPreviewViewModelTest.kt223 scope = this.backgroundScope, in testToggleInSelectionUpdatesSelection()
224 configuration = provideTestConfigurationFlow(scope = this.backgroundScope), in testToggleInSelectionUpdatesSelection()
233 provideTestConfigurationFlow(scope = this.backgroundScope), in testToggleInSelectionUpdatesSelection()
272 scope = this.backgroundScope, in testSnapshotSelection()
273 configuration = provideTestConfigurationFlow(scope = this.backgroundScope), in testSnapshotSelection()
283 provideTestConfigurationFlow(scope = this.backgroundScope), in testSnapshotSelection()
316 scope = this.backgroundScope, in testRemotePreviewControllerCreation()
317 configuration = provideTestConfigurationFlow(scope = this.backgroundScope), in testRemotePreviewControllerCreation()
326 provideTestConfigurationFlow(scope = this.backgroundScope), in testRemotePreviewControllerCreation()
370 scope = this.backgroundScope, in testRemotePreviewControllersAreCached()
[all …]

1234567891011