/packages/apps/Camera2/src/com/android/camera/settings/ |
D | SettingsManager.java | 128 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 …]
|
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/contentpreview/ |
D | PreviewImageLoaderTest.kt | 41 private val scope = TestScope() in <lambda>() constant in com.android.intentresolver.contentpreview.PreviewImageLoaderTest 45 scope.runTest { in <lambda>() 57 StandardTestDispatcher(scope.testScheduler), in <lambda>() 68 scope.runTest { in <lambda>() 80 StandardTestDispatcher(scope.testScheduler), in <lambda>() 90 scope.runTest { in <lambda>() 107 StandardTestDispatcher(scope.testScheduler), in <lambda>() 126 scope.runTest { in <lambda>() 150 StandardTestDispatcher(scope.testScheduler), in <lambda>() 156 scope.runCurrent() in <lambda>() [all …]
|
/packages/modules/Bluetooth/android/pandora/server/src/ |
D | MediaPlayer.kt | 41 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 playUpdated() 66 grpcUnary<Empty>(scope, responseObserver) { in stop() 73 grpcUnary<Empty>(scope, responseObserver) { in pause() 80 grpcUnary<Empty>(scope, responseObserver) { in rewind() 87 grpcUnary<Empty>(scope, responseObserver) { in fastForward() 94 grpcUnary<Empty>(scope, responseObserver) { in forward() 101 grpcUnary<Empty>(scope, responseObserver) { in backward() [all …]
|
D | HfpHandsfree.kt | 47 private val scope: CoroutineScope = CoroutineScope(Dispatchers.Default.limitedParallelism(1)) constant 63 flow = intentFlow(context, intentFilter, scope).shareIn(scope, SharingStarted.Eagerly) in <lambda>() 68 scope.cancel() in close() 75 grpcUnary(scope, responseObserver) { in answerCallAsHandsfree() 88 grpcUnary(scope, responseObserver) { in endCallAsHandsfree() 106 grpcUnary(scope, responseObserver) { in declineCallAsHandsfree() 116 grpcUnary(scope, responseObserver) { in connectToAudioAsHandsfree() 126 grpcUnary(scope, responseObserver) { in disconnectFromAudioAsHandsfree() 138 grpcUnary(scope, responseObserver) { in makeCallAsHandsfree() 151 grpcUnary(scope, responseObserver) { in callTransferAsHandsfree() [all …]
|
D | Hfp.kt | 54 private val scope: CoroutineScope = CoroutineScope(Dispatchers.Default.limitedParallelism(1)) constant in com.android.pandora.Hfp 70 flow = intentFlow(context, intentFilter, scope).shareIn(scope, SharingStarted.Eagerly) 83 scope.cancel() in close() 94 grpcUnary<Empty>(scope, responseObserver) { in enableSlc() 104 grpcUnary<Empty>(scope, responseObserver) { in disableSlc() 117 grpcUnary<Empty>(scope, responseObserver) { in setBatteryLevel() 128 grpcUnary(scope, responseObserver) { in declineCall() 138 grpcUnary(scope, responseObserver) { in setAudioPath() 157 grpcUnary(scope, responseObserver) { in answerCall() 167 grpcUnary(scope, responseObserver) { in swapActiveCall() [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/recents/di/ |
D | RecentsDependencies.kt | 97 val scope = in <lambda>() constant 110 scope.linkTo(getScope(DEFAULT_SCOPE_ID)) in <lambda>() 129 val scope = scopes[currentScopeId] ?: createScope(currentScopeId) in <lambda>() constant 134 instance = getDependency(scope, modelClass) in <lambda>() 139 scope[modelClass.simpleName] = instance!! in <lambda>() 159 private fun <T> getDependency(scope: RecentsDependenciesScope, modelClass: Class<T>): T? { in <lambda>() 160 var instance: T? = scope[modelClass.simpleName] as T? in <lambda>() 163 scope.scopeIdsLinked.firstNotNullOfOrNull { scopeId -> in <lambda>() 171 fun getScope(scope: Any): RecentsDependenciesScope { in <lambda>() 172 val scopeId: RecentsScopeId = scope as? RecentsScopeId ?: scope.hashCode().toString() in <lambda>() [all …]
|
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/preview/ |
D | PreviewViewModelTest.kt | 278 scope = this.backgroundScope, in testToggleInSelectionUpdatesSelection() 292 scope = this.backgroundScope, in testToggleInSelectionUpdatesSelection() 293 provideTestConfigurationFlow(scope = this.backgroundScope), in testToggleInSelectionUpdatesSelection() 298 scope = this.backgroundScope, in testToggleInSelectionUpdatesSelection() 299 configuration = provideTestConfigurationFlow(scope = this.backgroundScope), in testToggleInSelectionUpdatesSelection() 309 provideTestConfigurationFlow(scope = this.backgroundScope), in testToggleInSelectionUpdatesSelection() 351 scope = this.backgroundScope, in testToggleInSelectionCollectionUpdatesSelection() 365 scope = this.backgroundScope, in testToggleInSelectionCollectionUpdatesSelection() 366 provideTestConfigurationFlow(scope = this.backgroundScope), in testToggleInSelectionCollectionUpdatesSelection() 371 scope = this.backgroundScope, in testToggleInSelectionCollectionUpdatesSelection() [all …]
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | LinkAddress.java | 102 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/features/photogrid/ |
D | PhotoGridViewModelTest.kt | 176 scope = this.backgroundScope, in testPhotoGridItemClickedUpdatesSelection() 177 configuration = provideTestConfigurationFlow(scope = this.backgroundScope), in testPhotoGridItemClickedUpdatesSelection() 183 configuration = provideTestConfigurationFlow(scope = this.backgroundScope), in testPhotoGridItemClickedUpdatesSelection() 184 scope = this.backgroundScope, in testPhotoGridItemClickedUpdatesSelection() 190 scope = this.backgroundScope, in testPhotoGridItemClickedUpdatesSelection() 191 provideTestConfigurationFlow(scope = this.backgroundScope), in testPhotoGridItemClickedUpdatesSelection() 198 scope = this.backgroundScope, in testPhotoGridItemClickedUpdatesSelection() 208 scope = this.backgroundScope, in testPhotoGridItemClickedUpdatesSelection() 222 scope = this.backgroundScope, in testPhotoGridItemClickedUpdatesSelection() 273 scope = this.backgroundScope, in testShowsToastWhenSelectionFull() [all …]
|
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/selection/ |
D | SelectionImplTest.kt | 57 scope = backgroundScope, in <lambda>() 60 scope = backgroundScope, in <lambda>() 82 scope = backgroundScope, in testSelectionIsInitialized() 85 scope = backgroundScope, in testSelectionIsInitialized() 115 scope = backgroundScope, in <lambda>() 118 scope = backgroundScope, in <lambda>() 158 scope = backgroundScope, in <lambda>() 161 scope = backgroundScope, in <lambda>() 186 scope = backgroundScope, in <lambda>() 189 scope = backgroundScope, in <lambda>() [all …]
|
D | GrantsAwareSelectionTest.kt | 58 scope = backgroundScope, in <lambda>() 61 scope = backgroundScope, in <lambda>() 83 scope = backgroundScope, in testSelectionIsInitialized() 86 scope = backgroundScope, in testSelectionIsInitialized() 118 scope = backgroundScope, in <lambda>() 121 scope = backgroundScope, in <lambda>() 140 scope = backgroundScope, in <lambda>() 143 scope = backgroundScope, in <lambda>() 168 scope = backgroundScope, in <lambda>() 171 scope = backgroundScope, in <lambda>() [all …]
|
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/banners/ |
D | BannerTest.kt | 131 configuration = provideTestConfigurationFlow(scope = this.backgroundScope), in <lambda>() 132 scope = this.backgroundScope, in <lambda>() 138 scope = this.backgroundScope, in <lambda>() 139 provideTestConfigurationFlow(scope = this.backgroundScope), in <lambda>() 180 configuration = provideTestConfigurationFlow(scope = this.backgroundScope), in <lambda>() 181 scope = this.backgroundScope, in <lambda>() 187 scope = this.backgroundScope, in <lambda>() 188 provideTestConfigurationFlow(scope = this.backgroundScope), in <lambda>() 231 configuration = provideTestConfigurationFlow(scope = this.backgroundScope), in <lambda>() 232 scope = this.backgroundScope, in <lambda>() [all …]
|
D | BannerManagerImplTest.kt | 207 scope = this.backgroundScope, in testEmitsNoBannerWhenNoFeaturesEnabled() 224 scope = this.backgroundScope, in testEmitsNoBannerWhenNoFeaturesEnabled() 238 scope = this.backgroundScope, in testEmitsNoBannerWhenNoFeaturesEnabled() 262 scope = this.backgroundScope, in testEmitsCorrectBannerByPriority() 280 scope = this.backgroundScope, in testEmitsCorrectBannerByPriority() 294 scope = this.backgroundScope, in testEmitsCorrectBannerByPriority() 321 scope = this.backgroundScope, in testEmitsCorrectBannerByPriorityPreviouslyDismissed() 339 scope = this.backgroundScope, in testEmitsCorrectBannerByPriorityPreviouslyDismissed() 353 scope = this.backgroundScope, in testEmitsCorrectBannerByPriorityPreviouslyDismissed() 405 scope = this.backgroundScope, in testEmitsHighestPriorityBanner() [all …]
|
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/search/ |
D | SearchViewModelTest.kt | 66 scope = this.backgroundScope, in testfetchSuggestions_initialState_hasFaceSuggestionAsSeparateList() 107 scope = this.backgroundScope, in testfetchSuggestions_textQueryState_hasFaceSuggestionIntegratedList() 148 scope = this.backgroundScope, in <lambda>() 177 scope = this.backgroundScope, in <lambda>() 213 scope = this.backgroundScope, in <lambda>() 242 scope = this.backgroundScope, in <lambda>() 276 scope = this.backgroundScope, in <lambda>() 316 private fun provideSelectionEvents(scope: CoroutineScope) { in provideSelectionEvents() 319 scope = scope, in provideSelectionEvents() 320 configuration = provideTestConfigurationFlow(scope = scope), in provideSelectionEvents() [all …]
|
/packages/services/Car/cpp/watchdog/server/sysprop/api/ |
D | libwatchdog_properties-latest.txt | 6 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/modules/AdServices/adservices/tests/unittest/service-core/measurement/assets/msmt_e2e_tests/attribution_scope/ |
D | attribution_scope_basic.json | 159 // T1: attribution scope -> "1", destination -> D1 160 // S1 should be selected to match the attribution scope; S2 should be deactivated after 231 // T2: attribution scope -> "2", destination -> D1 232 // S2 matches the attribution scope but was deactivated after losing attribution at T1, 303 // T3: attribution scope -> null, destination -> D1 373 // T4: attribution scope -> "3", destination -> D2 374 // S3 should be selected to match the attribution scope. 436 // T5: attribution scope -> "4", destination -> D2 437 // S4 which matches the attribution scope was deactivated at T4. 499 // T6: attribution scope -> null, destination -> D2
|
D | attribution_scope_smaller_attribution_scope_limit_deactivation.json | 8 // S1: attribution scope limit -> 3 destinations -> [D1], priority -> 102 48 // S2: attribution scope limit -> 4, priority -> 101 88 // S3: attribution scope limit -> 3, priority -> 100 89 // S2 will be NOT be deactivated as it has higher attribution scope limit. 129 // T1: attribution scope -> "1", destination -> D1, source registered -> [S1, S2] 200 // T2: attribution scope -> "2", destination -> D1, sources registered -> [S1, S2, S3] 271 // T3: attribution scope -> "4", destination -> D1, sources registered -> [S1, S2, S3] 272 // Given S1 was deactivated and S3 matches the attribution scope, but was deactivated after
|
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/inject/ |
D | ActivityModule.kt | 149 @Background scope: CoroutineScope, in provideConfigurationManager() 164 /* scope= */ scope, in provideConfigurationManager() 194 @Background scope: CoroutineScope, in provideDataService() 213 scope, in provideDataService() 234 @Background scope: CoroutineScope, in provideEvents() 242 events = Events(scope, configurationManager.configuration, featureManager) in provideEvents() 250 @Background scope: CoroutineScope, in provideFeatureManager() 268 scope = scope, in provideFeatureManager() 320 @Background scope: CoroutineScope, in providePrefetchDataService() 335 scope, in providePrefetchDataService() [all …]
|
D | EmbeddedServiceModule.kt | 220 @Background scope: CoroutineScope, in <lambda>() 235 /* scope= */ scope, in <lambda>() 251 @Background scope: CoroutineScope, in <lambda>() 271 scope, in <lambda>() 304 @Background scope: CoroutineScope, in <lambda>() 312 events = Events(scope, configurationManager.configuration, featureManager) in <lambda>() 320 @SessionScoped @Background scope: CoroutineScope, in <lambda>() 338 scope = scope, in <lambda>() 401 @Background scope: CoroutineScope, in <lambda>() 416 scope, in <lambda>() [all …]
|
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/events/ |
D | EventsTest.kt | 83 scope = backgroundScope, in <lambda>() 84 provideTestConfigurationFlow(scope = backgroundScope), in <lambda>() 112 scope = backgroundScope, in <lambda>() 113 provideTestConfigurationFlow(scope = backgroundScope), in <lambda>() 142 scope = backgroundScope, in <lambda>() 143 provideTestConfigurationFlow(scope = backgroundScope), in <lambda>() 178 scope = backgroundScope, in <lambda>() 179 provideTestConfigurationFlow(scope = backgroundScope), in <lambda>() 221 scope = backgroundScope, in <lambda>() 223 scope = backgroundScope, in <lambda>() [all …]
|
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/inject/ |
D | PhotopickerTestModule.kt | 155 @Background scope: CoroutineScope, in createConfigurationManager() 162 scope, in createConfigurationManager() 193 @Background scope: CoroutineScope, in createUserMonitor() 200 scope, in createUserMonitor() 215 @Background scope: CoroutineScope, in createEvents() 219 return Events(scope = scope, configurationManager.configuration, featureManager) in createEvents() 225 @Background scope: CoroutineScope, in createFeatureManager() 231 scope = scope, in createFeatureManager() 253 @Background scope: CoroutineScope, in createSelection() 259 scope = scope, in createSelection() [all …]
|
/packages/modules/Connectivity/tests/unit/java/android/net/util/ |
D | DnsUtilsTest.java | 115 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/ |
D | WatchdogProperties.sysprop | 22 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/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/data/ |
D | DataServiceImplTest.kt | 117 val scope = TestScope() in setup() constant 132 provideTestConfigurationFlow(scope = scope.backgroundScope), in setup() 133 scope, in setup() 146 scope = this.backgroundScope, in <lambda>() 154 scope = this.backgroundScope, in <lambda>() 180 scope = this.backgroundScope, in <lambda>() 188 scope = this.backgroundScope, in <lambda>() 210 scope = this.backgroundScope, in <lambda>() 293 val scope = TestScope() in <lambda>() constant 296 provideTestConfigurationFlow(scope = scope.backgroundScope), in <lambda>() [all …]
|
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/shortcuts/ |
D | ScopedAppTargetListCallbackTest.kt | 31 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()
|