Home
last modified time | relevance | path

Searched refs:keySet (Results 1 – 25 of 619) sorted by relevance

12345678910>>...25

/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothLeBroadcastAssistantCallback.java105 for (BluetoothLeBroadcastAssistant.Callback cb : mCallbackMap.keySet()) { in onSearchStarted()
120 for (BluetoothLeBroadcastAssistant.Callback cb : mCallbackMap.keySet()) { in onSearchStartFailed()
135 for (BluetoothLeBroadcastAssistant.Callback cb : mCallbackMap.keySet()) { in onSearchStopped()
150 for (BluetoothLeBroadcastAssistant.Callback cb : mCallbackMap.keySet()) { in onSearchStopFailed()
165 for (BluetoothLeBroadcastAssistant.Callback cb : mCallbackMap.keySet()) { in onSourceFound()
180 for (BluetoothLeBroadcastAssistant.Callback cb : mCallbackMap.keySet()) { in onSourceAdded()
196 for (BluetoothLeBroadcastAssistant.Callback cb : mCallbackMap.keySet()) { in onSourceAddFailed()
211 for (BluetoothLeBroadcastAssistant.Callback cb : mCallbackMap.keySet()) { in onSourceModified()
226 for (BluetoothLeBroadcastAssistant.Callback cb : mCallbackMap.keySet()) { in onSourceModifyFailed()
241 for (BluetoothLeBroadcastAssistant.Callback cb : mCallbackMap.keySet()) { in onSourceRemoved()
[all …]
/packages/modules/OnDevicePersonalization/tests/systemserviceimpltests/src/com/android/server/ondevicepersonalization/
DBooleanFileDataStoreTest.java52 assertTrue(mDataStore.keySet().isEmpty()); in testInitializeEmptyBooleanFileDatastore()
99 Set<String> keys = mDataStore.keySet(); in testPutGetUpdate()
109 assertEquals(TEST_KEY_COUNT, mDataStore.keySet().size()); in testClearAll()
112 assertTrue(mDataStore.keySet().isEmpty()); in testClearAll()
120 assertEquals(TEST_KEY_COUNT, mDataStore.keySet().size()); in testReinitializeFromDisk()
124 assertTrue(mDataStore.keySet().isEmpty()); in testReinitializeFromDisk()
128 assertEquals(TEST_KEY_COUNT, mDataStore.keySet().size()); in testReinitializeFromDisk()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ui/
DExerciseRouteRequestTest.kt99 assertThat(extras.keySet()).containsExactly(EXTRA_EXERCISE_ROUTE, EXTRA_SESSION_ID) in requestRoute_showsDialog_clickAllowThis_returnsRoute_permissionRemainsRevoked()
122 assertThat(extras.keySet()).containsExactly(EXTRA_EXERCISE_ROUTE, EXTRA_SESSION_ID) in requestRoute_showsDialog_clickAllowAll_returnsRoute_grantsPermission()
145 assertThat(extras.keySet()).containsExactly(EXTRA_SESSION_ID) in requestRoute_showsDialog_clickDeny_returnsNull_permissionRemainsRevoked()
161 assertThat(extras.keySet()).containsExactly(EXTRA_EXERCISE_ROUTE, EXTRA_SESSION_ID) in requestRoute_ownSession_writeRouteGranted_readRoutesDenied_returnsRoute()
186 assertThat(extras.keySet()).containsExactly(EXTRA_EXERCISE_ROUTE, EXTRA_SESSION_ID) in requestRoute_ownSession_writeRouteDenied_readRoutesDenied_notUserFixed_showsDialog()
211 assertThat(extras.keySet()).containsExactly(EXTRA_SESSION_ID) in requestRoute_ownSession_writeRouteDenied_readRoutesDenied_userFixed_returnsNull()
232 assertThat(extras.keySet()).containsExactly(EXTRA_EXERCISE_ROUTE, EXTRA_SESSION_ID) in requestRoute_ownSession_writeRouteDenied_readRoutesGranted_returnsRoute()
251 assertThat(extras.keySet()).containsExactly(EXTRA_EXERCISE_ROUTE, EXTRA_SESSION_ID) in requestRoute_readRoutesGranted_doesNotShowDialog_returnsRoute()
269 assertThat(extras.keySet()).containsExactly(EXTRA_SESSION_ID) in requestRoute_sessionWithoutRoute_returnsNull()
283 assertThat(extras.keySet()).containsExactly(EXTRA_SESSION_ID) in requestRoute_nonExistingSession_returnsNull()
[all …]
/packages/services/Car/libs/car-test-lib/src/android/car/test/util/
DAndroidHelper.java44 Set<String> keySet = bundle.keySet(); in toString() local
46 if (keySet.isEmpty()) { in toString()
49 string.append(keySet.size()).append(" keys: "); in toString()
50 Iterator<String> iterator = keySet.iterator(); in toString()
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/host/src/android/healthconnect/cts/database/
DDatabaseTestUtils.java212 for (String tableName : mTableListPreviousVersion.keySet()) { in checkExistingTableDeletion()
229 for (String tableName : mTableListPreviousVersion.keySet()) { in checkPrimaryKeyModification()
270 for (String tableName : mTableListPreviousVersion.keySet()) { in checkColumnModification()
279 for (String columnName : columnInfoPreviousVersion.keySet()) { in checkColumnModification()
294 for (String columnName : columnInfoCurrentVersion.keySet()) { in checkColumnModification()
347 for (String tableName : mTableListPreviousVersion.keySet()) { in checkForeignKeyModification()
356 for (String foreignKeyName : foreignKeyListPreviousVersion.keySet()) { in checkForeignKeyModification()
376 for (String foreignKeyName : foreignKeyListCurrentVersion.keySet()) { in checkForeignKeyModification()
420 for (String tableName : mTableListPreviousVersion.keySet()) { in checkIndexModification()
429 for (String indexName : indexInfoPreviousVersion.keySet()) { in checkIndexModification()
[all …]
/packages/modules/AdServices/sdksandbox/tests/unittest/src/android/app/sdksandbox/
DSharedPreferencesSyncManagerUnitTest.java150 assertThat(update.getData().keySet()).doesNotContain(Set.of(KEY_TO_UPDATE)); in test_removeKeys_updateSentForRemoval()
165 assertThat(capturedData.keySet()).containsExactlyElementsIn(TEST_DATA.keySet()); in test_bulkSync_syncSpecifiedKeys()
166 for (String key : TEST_DATA.keySet()) { in test_bulkSync_syncSpecifiedKeys()
179 assertThat(update.getData().keySet()).isEmpty(); in test_bulkSync_syncMissingKeys()
194 assertThat(capturedData.keySet()).containsExactlyElementsIn(TEST_DATA.keySet()); in test_bulkSync_ignoreUnspecifiedKeys()
224 assertThat(capturedData.keySet()).hasSize(6); in test_bulkSync_supportsAllTypesOfValues()
238 assertThat(capturedData.keySet()).containsExactly(KEY_TO_UPDATE); in test_updateListener_syncsFurtherUpdates()
284 assertThat(data.keySet()).hasSize(1); in test_updateListener_supportsAllTypesOfValues()
285 final String key = data.keySet().toArray()[0].toString(); in test_updateListener_supportsAllTypesOfValues()
318 assertThat(update.getData().keySet()).doesNotContain(KEY_TO_UPDATE); in test_updateListener_removeKey()
[all …]
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/contentpreview/payloadtoggle/domain/interactor/
DSelectablePreviewsInteractorTest.kt69 val keySet = underTest.previews.stateIn(backgroundScope) in <lambda>() constant
71 assertThat(keySet.value).isNotNull() in <lambda>()
72 assertThat(keySet.value!!.previewModels) in <lambda>()
86 assertThat(keySet.value!!.startIdx).isEqualTo(0) in <lambda>()
87 assertThat(keySet.value!!.loadMoreLeft).isNull() in <lambda>()
88 assertThat(keySet.value!!.loadMoreRight).isNull() in <lambda>()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/internal/util/
DBinderKeyValueContainerTest.java72 Set<String> keySet = mContainer.keySet(); in testBasicFunctions() local
73 assertThat(keySet.size()).isEqualTo(2); in testBasicFunctions()
74 assertThat(keySet.contains(mKey1)).isTrue(); in testBasicFunctions()
75 assertThat(keySet.contains(mKey2)).isTrue(); in testBasicFunctions()
/packages/modules/Wifi/framework/java/android/net/wifi/util/
DPersistableBundleUtils.java39 for (String key : bundle.keySet()) { in getHashCode()
94 if (!left.keySet().equals(right.keySet())) { in isEqual()
98 for (String key : left.keySet()) { in isEqual()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DEmojiAltPhysicalKeyDetector.java52 public EmojiHotKeys(final String name, HotKeySet keySet) { in EmojiHotKeys() argument
54 mKeySet = keySet; in EmojiHotKeys()
187 final HotKeySet keySet = new HotKeySet(); in parseHotKeys() local
200 keySet.add(key); in parseHotKeys()
205 return keySet; in parseHotKeys()
/packages/modules/Uwb/framework/java/android/uwb/util/
DPersistableBundleUtils.java512 TreeSet<String> treeSet = new TreeSet<>(bundle.keySet()); in getHashCode()
539 if (!left.keySet().equals(right.keySet())) { in isEqual()
543 for (String key : left.keySet()) { in isEqual()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/migration/
DMeasurementDbMigratorV2Test.java166 for (String column : asyncRegistrationV1.keySet()) { in verifyAsyncRegistrationAllFieldsV1()
192 for (String column : sourceV1.keySet()) { in verifySourceAllFieldsV1()
218 for (String column : triggerV1.keySet()) { in verifyTriggerAllFieldsV1()
244 for (String column : attributionV1.keySet()) { in verifyAttributionAllFieldsV1()
270 for (String column : eventReportV1.keySet()) { in verifyEventReportAllFieldsV1()
314 for (String column : aggregateReportV1.keySet()) { in verifyAggregateReportAllFieldsV1()
356 for (String column : aggregateEncryptionKeyV1.keySet()) { in verifyAggregateEncryptionKeyAllFieldsV1()
/packages/modules/AdServices/adservices/libraries/health/runners/concurrent-longevity/adservices/src/android/adservices/test/longevity/concurrent/
DSuiteUtils.java41 for (String key : bundle.keySet()) { in bundleToMap()
46 key, bundle.keySet())); in bundleToMap()
68 for (String key : bundle.keySet()) { in bundleToString()
/packages/modules/Connectivity/tests/common/java/android/net/nsd/
DNsdServiceInfoTest.java169 assertTrue(attributedInfo.getAttributes().keySet().contains("adorable")); in testParcel()
174 assertFalse(attributedInfo.getAttributes().keySet().contains("sticky")); in testParcel()
203 assertEquals(originalMap.keySet(), resultMap.keySet()); in checkParcelable()
204 for (String key : originalMap.keySet()) { in checkParcelable()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/publisher/
DCarTelemetrydPublisherTest.java244 assertThat(result.keySet()).containsAtLeastElementsIn(SESSION_ANNOTATION_KEYS); in testPushesPublishedData_whenOnCarDataReceived()
281 assertThat(telemetryDataList.get(0).keySet()).containsAtLeastElementsIn( in testPushesPublishedData_multipleSubscribers()
292 assertThat(telemetryDataList.get(1).keySet()).containsAtLeastElementsIn( in testPushesPublishedData_multipleSubscribers()
303 assertThat(telemetryDataList.get(2).keySet()).containsAtLeastElementsIn( in testPushesPublishedData_multipleSubscribers()
317 assertThat(telemetryDataList.get(0).keySet()).containsAtLeastElementsIn( in testPushesPublishedData_multipleSubscribers()
328 assertThat(telemetryDataList.get(1).keySet()).containsAtLeastElementsIn( in testPushesPublishedData_multipleSubscribers()
339 assertThat(telemetryDataList.get(2).keySet()).containsAtLeastElementsIn( in testPushesPublishedData_multipleSubscribers()
376 assertThat(result.keySet()).containsAtLeastElementsIn(SESSION_ANNOTATION_KEYS); in testPushesPublishedData_detectsLargeData()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/
DCarTelemetryServiceTest.java359 assertThat(parseReports.get(0).keySet()) in testGetFinishedReport_whenMultiple_shouldReceiveCorrectStatusCode()
360 .containsAtLeastElementsIn(expectedReport.keySet().toArray()); in testGetFinishedReport_whenMultiple_shouldReceiveCorrectStatusCode()
361 assertThat(parseReports.get(1).keySet()) in testGetFinishedReport_whenMultiple_shouldReceiveCorrectStatusCode()
362 .containsAtLeastElementsIn(expectedReport.keySet().toArray()); in testGetFinishedReport_whenMultiple_shouldReceiveCorrectStatusCode()
421 assertThat(parseReports.get(0).keySet()) in testGetAllFinishedReports_shouldSendEverything()
422 .containsAtLeastElementsIn(expectedReport.keySet().toArray()); in testGetAllFinishedReports_shouldSendEverything()
423 assertThat(parseReports.get(1).keySet()) in testGetAllFinishedReports_shouldSendEverything()
424 .containsAtLeastElementsIn(expectedReport.keySet().toArray()); in testGetAllFinishedReports_shouldSendEverything()
514 assertThat(report.keySet()).containsAtLeastElementsIn(bundle.keySet().toArray()); in testOnMetricsReport_savesReportAndConfigStillActive()
/packages/modules/AdServices/adservices/tests/test-util/java/com/android/adservices/experimental/
DDeviceConfigFlagsManager.java148 Set<String> keySet = properties.getKeyset(); in toString() local
153 .append(keySet.size()); in toString()
154 if (!keySet.isEmpty()) { in toString()
156 keySet.forEach( in toString()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DBuyerInputGeneratorTest.java197 Assert.assertEquals(buyers, buyerAndBuyerInputs.keySet()); in testBuyerInputGenerator_returnsBuyerInputs_onlyCAsWithRenderIdReturned_success()
201 for (AdTechIdentifier buyer : buyerAndBuyerInputs.keySet()) { in testBuyerInputGenerator_returnsBuyerInputs_onlyCAsWithRenderIdReturned_success()
265 Assert.assertEquals(buyers, buyerAndBuyerInputs.keySet()); in testBuyerInputGenerator_returnsBuyerInputs_onlyCAsWithRenderIdReturned_successPayloadMetricsEnabled()
269 for (AdTechIdentifier buyer : buyerAndBuyerInputs.keySet()) { in testBuyerInputGenerator_returnsBuyerInputs_onlyCAsWithRenderIdReturned_successPayloadMetricsEnabled()
423 Assert.assertEquals(buyers, buyerAndBuyerInputs.keySet()); in testBuyerInputGenerator_returnsBuyerInputsWithoutRenderIdForSpecifiedCA()
425 for (AdTechIdentifier buyer : buyerAndBuyerInputs.keySet()) { in testBuyerInputGenerator_returnsBuyerInputsWithoutRenderIdForSpecifiedCA()
503 Assert.assertEquals(buyers, buyerAndBuyerInputs.keySet()); in testBuyerInputGenerator_returnsBuyerInputsWithoutRenderIdForSpecifiedCAPayloadMetricsEnabled()
505 for (AdTechIdentifier buyer : buyerAndBuyerInputs.keySet()) { in testBuyerInputGenerator_returnsBuyerInputsWithoutRenderIdForSpecifiedCAPayloadMetricsEnabled()
591 Assert.assertEquals(buyers, buyerAndBuyerInputs.keySet()); in testBuyerInputGenerator_returnsBuyerInputsWithRenderIdIfFlagFalse()
593 for (AdTechIdentifier buyer : buyerAndBuyerInputs.keySet()) { in testBuyerInputGenerator_returnsBuyerInputsWithRenderIdIfFlagFalse()
[all …]
/packages/apps/Settings/src/com/android/settings/network/telephony/
DSignalStrengthListener.java58 for (int subId : mTelephonyCallbacks.keySet()) { in resume()
65 for (int subId : mTelephonyCallbacks.keySet()) { in pause()
73 Set<Integer> currentIds = new ArraySet<>(mTelephonyCallbacks.keySet()); in updateSubscriptionIds()
DTelephonyDisplayInfoListener.java71 for (int subId : mListeners.keySet()) { in resume()
78 for (int subId : mListeners.keySet()) { in pause()
86 Set<Integer> currentIds = new ArraySet<>(mListeners.keySet()); in updateSubscriptionIds()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/
DExtraSettingsLoaderTest.java97 for (Preference p : preferenceToBundleMap.keySet()) { in testLoadPreference_stringResources_shouldLoadResources()
131 for (Preference p : preferenceToBundleMap.keySet()) { in testLoadPreference_metadataBundleIsValue()
171 for (Preference p : preferenceToBundleMap.keySet()) { in testLoadPreference_integerResources_shouldLoadResources()
200 for (Preference p : preferenceToBundleMap.keySet()) { in testLoadPreference_noDefaultSummary()
230 for (Preference p : preferenceToBundleMap.keySet()) { in testLoadPreference_noCategory_shouldSetToDeviceCategory()
282 for (Preference p : preferenceToBundleMap.keySet()) { in testLoadPreference_shouldLoadDefaultIcon()
349 for (Preference p : preferenceToBundleMap.keySet()) { in testLoadPreference_systemApp_returnsPreferences()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DWifiTetherApBandPreferenceController.java139 mHotspotBandMap.keySet().removeIf(key -> key > BAND_2GHZ); in updatePreferenceEntries()
143 mHotspotBandMap.keySet().removeIf(key -> key == BAND_2GHZ_5GHZ); in updatePreferenceEntries()
149 mHotspotBandMap.keySet().removeIf(key -> key < BAND_2GHZ_5GHZ); in updatePreferenceEntries()
154 mHotspotBandMap.keySet().stream().map(Object::toString).toArray( in updatePreferenceEntries()
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/
DSchemaCache.java77 return Collections.unmodifiableSet(mSchemaMap.keySet()); in getAllPrefixes()
89 cachedPrefixedSchemaTypes.addAll(value.keySet()); in getAllPrefixedSchemaTypes()
173 for (String prefix : mSchemaMap.keySet()) { in rebuildSchemaParentToChildrenMap()
226 return removedSchemas.keySet(); in removePrefix()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mapclient/
DMapClientService.java119 Log.d(TAG, "connect(device= " + device + "): devices=" + mMapInstanceMap.keySet()); in connect()
167 Log.d(TAG, "connect(device= " + device + "): end devices=" + mMapInstanceMap.keySet()); in connect()
184 Log.d(TAG, "disconnect(device= " + device + "): devices=" + mMapInstanceMap.keySet()); in disconnect()
196 Log.d(TAG, "disconnect(device= " + device + "): end devices=" + mMapInstanceMap.keySet()); in disconnect()
358 Log.d(TAG, "cleanup(device= " + device + "): devices=" + mMapInstanceMap.keySet()); in cleanupDevice()
370 Log.d(TAG, "cleanup(device= " + device + "): end devices=" + mMapInstanceMap.keySet()); in cleanupDevice()
375 Log.d(TAG, "removeUncleanAccounts(): devices=" + mMapInstanceMap.keySet()); in removeUncleanAccounts()
384 Log.d(TAG, "removeUncleanAccounts(): end devices=" + mMapInstanceMap.keySet()); in removeUncleanAccounts()
/packages/modules/Connectivity/tests/unit/java/android/net/
DIpSecAlgorithmTest.java198 ALGO_TO_REQUIRED_FIRST_SDK.keySet(), in getMandatoryAlgos()
205 ALGO_TO_REQUIRED_FIRST_SDK.keySet(), in getOptionalAlgos()
212 assertTrue(ALGO_TO_REQUIRED_FIRST_SDK.keySet().containsAll( in testGetSupportedAlgorithms()
228 final Set<String> expectedAlgos = ALGO_TO_REQUIRED_FIRST_SDK.keySet(); in testLoadAlgos()

12345678910>>...25