Home
last modified time | relevance | path

Searched refs:Map (Results 1 – 25 of 2357) sorted by relevance

12345678910>>...95

/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/aggregation/
DAggregateCryptoConverterTest.java44 import co.nstant.in.cbor.model.Map;
293 final Map payload = (Map) dataItems.get(0); in testEncodeWithCbor_successfully()
302 isFound((Map) i, "bucket", "1") in testEncodeWithCbor_successfully()
303 && isFound((Map) i, "value", "2"))); in testEncodeWithCbor_successfully()
309 isFound((Map) i, "bucket", "3") in testEncodeWithCbor_successfully()
310 && isFound((Map) i, "value", "4"))); in testEncodeWithCbor_successfully()
333 final Map payload = (Map) dataItems.get(0); in testEncodeWithCbor_differentSizesShouldMatchUpperBound()
339 getBytesLength((Map) payloadArray.getDataItems().get(0), "bucket")); in testEncodeWithCbor_differentSizesShouldMatchUpperBound()
341 getBytesLength((Map) payloadArray.getDataItems().get(0), "bucket"), in testEncodeWithCbor_differentSizesShouldMatchUpperBound()
342 getBytesLength((Map) payloadArray.getDataItems().get(1), "bucket")); in testEncodeWithCbor_differentSizesShouldMatchUpperBound()
[all …]
DAggregatePayloadGeneratorTest.java53 import java.util.Map;
80 Map<String, List<String>> sourceFilterMap = new HashMap<>(); in testGenerateAttributionReport_twoContributions_filterSetMatches()
95 Map<String, List<String>> triggerDataFilter1 = new HashMap<>(); in testGenerateAttributionReport_twoContributions_filterSetMatches()
103 Map<String, List<String>> triggerDataFilter2 = new HashMap<>(); in testGenerateAttributionReport_twoContributions_filterSetMatches()
111 Map<String, List<String>> triggerDataNotFilter1 = new HashMap<>(); in testGenerateAttributionReport_twoContributions_filterSetMatches()
117 Map<String, List<String>> triggerDataNotFilter2 = new HashMap<>(); in testGenerateAttributionReport_twoContributions_filterSetMatches()
137 Map<String, Integer> values = new HashMap<>(); in testGenerateAttributionReport_twoContributions_filterSetMatches()
182 Map<String, List<String>> sourceFilterMap = new HashMap<>(); in testGenerateAttributionReport_filterSetMatches_withPayloadPadding()
198 Map<String, List<String>> triggerDataFilter1 = new HashMap<>(); in testGenerateAttributionReport_filterSetMatches_withPayloadPadding()
204 Map<String, List<String>> triggerDataFilter2 = new HashMap<>(); in testGenerateAttributionReport_filterSetMatches_withPayloadPadding()
[all …]
/packages/services/Car/service/src/com/android/car/hal/fakevhal/
DFakeVhalConfigParser.java56 import java.util.Map;
136 private static final Map<String, Integer> CONSTANTS_BY_NAME = Map.ofEntries(
137 Map.entry("DOOR_1_RIGHT", DOOR_1_RIGHT),
138 Map.entry("DOOR_1_LEFT", DOOR_1_LEFT),
139 Map.entry("DOOR_2_RIGHT", DOOR_2_RIGHT),
140 Map.entry("DOOR_2_LEFT", DOOR_2_LEFT),
141 Map.entry("DOOR_REAR", DOOR_REAR),
142 Map.entry("HVAC_ALL", HVAC_ALL),
143 Map.entry("HVAC_LEFT", HVAC_LEFT),
144 Map.entry("HVAC_RIGHT", HVAC_RIGHT),
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DAnimationDynamicColorsHelperTest.java35 import java.util.Map;
43 private static final Map<String, Integer> LIGHT_LAYERS_TO_DARK_COLORS =
46 private static final Map<String, Integer> DARK_LAYERS_TO_LIGHT_COLORS =
49 private static final Map<String, Integer> LIGHT_LAYERS_TO_DARK_COLORS_ASYMMETRIC =
57 Map<String, Integer> layerToColor = new HashMap<>(); in setupAnimationDynamicColors_lightMode_containsLightColors()
67 Map<String, Integer> layerToColor = new HashMap<>(); in setupAnimationDynamicColors_darkMode_setsSymmetricDarkColors()
78 Map<String, Integer> layerToColor = new HashMap<>(); in setupAnimationDynamicColors_darkMode_setsAsymmetricColors()
88 Map<String, Integer> layerToColor = in setupAnimationDynamicColors_lightMode_doesNotSetAsymmetricColors()
94 private Map<String, Integer> getUpdatedLayersForMode(int nightMode) { in getUpdatedLayersForMode()
95 Map<String, Integer> layerToColor = new HashMap<>(); in getUpdatedLayersForMode()
[all …]
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/utils/
DMockWebServerDispatcherFactory.java28 import java.util.Map;
47 public static final Map<Integer, Integer> scoringJsPercentileToExecutionTimeMs =
48 Map.of(50, 40, 90, 70);
49 public static final Map<Integer, Integer> biddingJsPercentileToExecutionTimeMs =
50 Map.of(50, 40, 90, 70);
52 public static final Map<String, Map<Integer, Integer>> DECISION_LOGIC_DELAY_MS =
54 public static final Map<String, Map<Integer, Integer>> BIDDING_LOGIC_DELAY_MS =
56 public static final Map<String, Map<Integer, Integer>> SCORING_SIGNALS_DELAY_MS =
58 public static final Map<String, Map<Integer, Integer>> BIDDING_SIGNALS_DELAY_MS =
63 public static final Map<String, Integer> NETWORK_TO_BANDWIDTH =
[all …]
/packages/services/Iwlan/src/com/google/android/iwlan/
DIwlanError.java27 import java.util.Map;
71 private static final Map<Integer, String> sErrorTypeStrings =
72 Map.ofEntries(
73 Map.entry(NO_ERROR, "IWLAN_NO_ERROR"),
74 Map.entry(IKE_PROTOCOL_EXCEPTION, "IWLAN_IKE_PROTOCOL_EXCEPTION"),
75 Map.entry(IKE_INTERNAL_IO_EXCEPTION, "IWLAN_IKE_INTERNAL_IO_EXCEPTION"),
76 Map.entry(IKE_GENERIC_EXCEPTION, "IWLAN_IKE_GENERIC_EXCEPTION"),
77 Map.entry(
80 Map.entry(TUNNEL_TRANSFORM_FAILED, "IWLAN_TUNNEL_TRANSFORM_FAILED"),
81 Map.entry(SIM_NOT_READY_EXCEPTION, "IWLAN_SIM_NOT_READY_EXCEPTION"),
[all …]
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DDataProcessor.java68 import java.util.Map;
86 private static final Map<String, BatteryHistEntry> EMPTY_BATTERY_MAP = new ArrayMap<>();
123 Map<Integer, Map<Integer, BatteryDiffData>> batteryCallbackData); in onBatteryCallbackDataLoaded()
133 public static Map<Integer, Map<Integer, BatteryDiffData>> getBatteryUsageData( in getBatteryUsageData()
136 @Nullable final Map<Long, Map<String, BatteryHistEntry>> batteryHistoryMap) { in getBatteryUsageData()
142 final Map<Long, Map<String, BatteryHistEntry>> processedBatteryHistoryMap = in getBatteryUsageData()
148 final Map<String, BatteryHistEntry> currentBatteryHistoryMap = in getBatteryUsageData()
151 for (Map.Entry<Long, Map<String, BatteryHistEntry>> mapEntry : in getBatteryUsageData()
186 public static Map<Long, UsageEvents> getAppUsageEvents( in getAppUsageEvents()
193 final Map<Long, UsageEvents> resultMap = new ArrayMap(); in getAppUsageEvents()
[all …]
DDataProcessManager.java38 import java.util.Map;
78 @VisibleForTesting static Map<Long, Map<String, BatteryHistEntry>> sFakeBatteryHistoryMap;
92 private final Map<Long, Map<String, BatteryHistEntry>> mBatteryHistoryMap;
111 private Map<Integer, Map<Integer, Map<Long, Map<String, List<AppUsagePeriod>>>>>
120 void onBatteryDiffDataMapLoaded(Map<Long, BatteryDiffData> batteryDiffDataMap); in onBatteryDiffDataMapLoaded()
133 @NonNull final Map<Long, Map<String, BatteryHistEntry>> batteryHistoryMap) { in DataProcessManager()
202 Map<Integer, Map<Integer, Map<Long, Map<String, List<AppUsagePeriod>>>>>
233 new AsyncTask<Void, Void, Map<String, BatteryHistEntry>>() { in loadCurrentBatteryHistoryMap()
235 protected Map<String, BatteryHistEntry> doInBackground(Void... voids) { in loadCurrentBatteryHistoryMap()
238 final Map<String, BatteryHistEntry> currentBatteryHistoryMap = in loadCurrentBatteryHistoryMap()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DImsiPrivacyProtectionExemptionStoreData.java32 import java.util.Map;
51 Map<Integer, Boolean> toSerialize(); in toSerialize()
57 void fromDeserialized(Map<Integer, Boolean> imsiProtectionExemptionMap); in fromDeserialized()
77 Map<String, Boolean> dataToSerialize = integerMapToStringMap(mDataSource.toSerialize()); in serializeData()
92 private Map<Integer, Boolean> parseCarrierImsiProtectionExemptionMap(XmlPullParser in, in parseCarrierImsiProtectionExemptionMap()
97 Map<String, Boolean> protectionExemptionMap = new HashMap<>(); in parseCarrierImsiProtectionExemptionMap()
106 if (value instanceof Map) { in parseCarrierImsiProtectionExemptionMap()
107 protectionExemptionMap = (Map<String, Boolean>) value; in parseCarrierImsiProtectionExemptionMap()
119 private Map<String, Boolean> integerMapToStringMap(Map<Integer, Boolean> input) { in integerMapToStringMap()
120 Map<String, Boolean> output = new HashMap<>(); in integerMapToStringMap()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/
DAppUpdateManagerTest.java64 import java.util.Map;
132 Map<String, List<Topic>> appClassificationTopicsMap1 = new HashMap<>(); in testReconcileUninstalledApps()
161 Map<Topic, Set<String>> callerCanLearnMap = new HashMap<>(); in testReconcileUninstalledApps()
173 Map<Pair<String, String>, Topic> returnedAppSdkTopics = new HashMap<>(); in testReconcileUninstalledApps()
180 Map<Pair<String, String>, Topic> expectedReturnedTopics = new HashMap<>(); in testReconcileUninstalledApps()
218 Map<Pair<String, String>, Topic> expectedReturnedTopicsAfterWiping = new HashMap<>(); in testReconcileUninstalledApps()
265 epoch1, Map.of(app1, List.of(topic1, topic2), app2, List.of(topic1, topic3))); in testReconcileUninstalledApps_handleTopicsWithoutContributor()
267 epoch2, Map.of(app1, List.of(topic1, topic3), app2, List.of(topic1, topic3))); in testReconcileUninstalledApps_handleTopicsWithoutContributor()
276 mTopicsDao.persistTopicContributors(epoch1, Map.of(topic1.getTopic(), Set.of(app1, app2))); in testReconcileUninstalledApps_handleTopicsWithoutContributor()
277 mTopicsDao.persistTopicContributors(epoch1, Map.of(topic2.getTopic(), Set.of(app1))); in testReconcileUninstalledApps_handleTopicsWithoutContributor()
[all …]
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DPermissionControllerTest.java70 import java.util.Map;
120 private @NonNull Map<String, List<String>> revokePermissions( in revokePermissions()
121 @NonNull Map<String, List<String>> request, boolean doDryRun, int reason, in revokePermissions()
123 AtomicReference<Map<String, List<String>>> result = new AtomicReference<>(); in revokePermissions()
128 public void onRevokeRuntimePermissions(@NonNull Map<String, List<String>> r) { in revokePermissions()
145 private @NonNull Map<String, List<String>> revokePermissions( in revokePermissions()
146 @NonNull Map<String, List<String>> request, boolean doDryRun, boolean adoptShell) in revokePermissions()
149 Map<String, List<String>> revokeRet = in revokePermissions()
157 private @NonNull Map<String, List<String>> revokePermissions( in revokePermissions()
158 @NonNull Map<String, List<String>> request, boolean doDryRun) throws Exception { in revokePermissions()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/
DMeasurementDbSchemaTrail.java41 import java.util.Map;
2668 private static final Map<String, String> CREATE_STATEMENT_BY_TABLE_V6 =
2680 private static final Map<String, String> CREATE_INDEXES_V6 =
2770 private static final Map<String, String> CREATE_INDEXES_V6_V7 =
2793 private static final Map<String, String> CREATE_INDEXES_V8_V9 =
2843 private static final Map<String, String> CREATE_INDEXES_V28_V29 =
2865 private static final Map<String, String> CREATE_INDEXES_V33_V34 =
2907 private static final Map<String, String> CREATE_INDEXES_V36_V37 =
2932 private static Map<String, String> getCreateStatementByTableV7() { in getCreateStatementByTableV7()
2936 private static Map<String, String> getCreateStatementByTableV8() { in getCreateStatementByTableV8()
[all …]
/packages/modules/Bluetooth/android/leaudio/app/src/main/java/com/android/bluetooth/leaudio/
DLeAudioDeviceStateWrapper.java29 import java.util.Map;
73 public MutableLiveData<Map<Integer, String>> inputDescriptionsMutable =
75 public MutableLiveData<Map<Integer, Integer>> inputStateGainMutable =
77 public MutableLiveData<Map<Integer, Integer>> inputStateGainModeMutable =
79 public MutableLiveData<Map<Integer, Integer>> inputStateGainUnitMutable =
81 public MutableLiveData<Map<Integer, Integer>> inputStateGainMinMutable =
83 public MutableLiveData<Map<Integer, Integer>> inputStateGainMaxMutable =
85 public MutableLiveData<Map<Integer, Boolean>> inputStateMuteMutable =
87 public MutableLiveData<Map<Integer, Integer>> inputStatusMutable =
89 public MutableLiveData<Map<Integer, Integer>> inputTypeMutable =
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_scan/
DPeriodicScanManager.java36 import java.util.Map;
46 Map<IBinder, SyncInfo> mSyncs = new ConcurrentHashMap<>();
47 Map<IBinder, SyncTransferInfo> mSyncTransfers = Collections.synchronizedMap(new HashMap<>());
105 Map.Entry<IBinder, SyncTransferInfo> findSyncTransfer(String address) { in findSyncTransfer()
106 Map.Entry<IBinder, SyncTransferInfo> entry = null; in findSyncTransfer()
107 for (Map.Entry<IBinder, SyncTransferInfo> e : mSyncTransfers.entrySet()) { in findSyncTransfer()
134 Map.Entry<IBinder, SyncInfo> findSync(int syncHandle) { in findSync()
135 Map.Entry<IBinder, SyncInfo> entry = null; in findSync()
136 for (Map.Entry<IBinder, SyncInfo> e : mSyncs.entrySet()) { in findSync()
145 Map.Entry<IBinder, SyncInfo> findMatchingSync(int advSid, String address) { in findMatchingSync()
[all …]
/packages/modules/AppSearch/service/java/com/android/server/appsearch/external/localstorage/
DSchemaCache.java29 import java.util.Map;
45 private final Map<String, Map<String, SchemaTypeConfigProto>> mSchemaMap = new ArrayMap<>();
52 private final Map<String, Map<String, List<String>>> mSchemaParentToChildrenMap =
57 public SchemaCache(@NonNull Map<String, Map<String, SchemaTypeConfigProto>> schemaMap) { in SchemaCache()
64 public Map<String, SchemaTypeConfigProto> getSchemaMapForPrefix(@NonNull String prefix) { in getSchemaMapForPrefix()
67 Map<String, SchemaTypeConfigProto> schemaMap = mSchemaMap.get(prefix); in getSchemaMapForPrefix()
88 for (Map<String, SchemaTypeConfigProto> value : mSchemaMap.values()) { in getAllPrefixedSchemaTypes()
103 Map<String, List<String>> parentToChildrenMap = mSchemaParentToChildrenMap.get(prefix); in getSchemaTypesWithDescendants()
139 Map<String, SchemaTypeConfigProto> prefixedSchemaMap = mSchemaMap.get(prefix); in rebuildSchemaParentToChildrenMapForPrefix()
145 Map<String, List<String>> parentToChildrenMap = new ArrayMap<>(); in rebuildSchemaParentToChildrenMapForPrefix()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/migration/
DMeasurementDbMigratorV14Test.java43 import java.util.Map;
77 Map<String, List<ContentValues>> fakeSourcesAndTriggers = in performMigration_v13ToV14WithData_maintainsDataIntegrity()
80 Map<String, List<ContentValues>> fakeReports = createFakeDataV13(); in performMigration_v13ToV14WithData_maintainsDataIntegrity()
119 Map<String, List<ContentValues>> fakeData = in performMigration_enrollmentIdNotFound_removesSource()
120 Map.of(MeasurementTables.SourceContract.TABLE, sourceRows); in performMigration_enrollmentIdNotFound_removesSource()
170 Map<String, List<ContentValues>> fakeData = in performMigration_whenReportingUrlNotFoundOrEmpty_removesSource()
171 Map.of(MeasurementTables.SourceContract.TABLE, sourceRows); in performMigration_whenReportingUrlNotFoundOrEmpty_removesSource()
209 Map<String, List<ContentValues>> fakeData = in performMigration_whenEnrollmentIdNotFound_removesTrigger()
210 Map.of(MeasurementTables.TriggerContract.TABLE, triggerRows); in performMigration_whenEnrollmentIdNotFound_removesTrigger()
261 Map<String, List<ContentValues>> fakeData = in performMigration_whenReportingUrlNotFoundOrEmpty_removesTrigger()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/topics/
DTopicsDaoTest.java57 import java.util.Map;
103 Map<String, List<Topic>> appClassificationTopicsMap1 = new HashMap<>(); in testPersistAndGetAppClassificationTopics()
104 Map<String, List<Topic>> appClassificationTopicsMap2 = new HashMap<>(); in testPersistAndGetAppClassificationTopics()
121 Map<String, List<Topic>> expectedTopicsMap1 = new HashMap<>(); in testPersistAndGetAppClassificationTopics()
122 Map<String, List<Topic>> expectedTopicsMap2 = new HashMap<>(); in testPersistAndGetAppClassificationTopics()
127 Map<String, List<Topic>> topicsMapFromDb1 = in testPersistAndGetAppClassificationTopics()
129 Map<String, List<Topic>> topicsMapFromDb2 = in testPersistAndGetAppClassificationTopics()
248 Map<String, List<String>> expectedAppSdksUsageMap = new HashMap<>(); in testRecordUsageHistory()
254 Map<String, List<String>> appSdksUsageMapFromDb = in testRecordUsageHistory()
279 Map<String, List<String>> appSdksUsageMapFromDb = in testRecordUsageHistory_notFoundEpochId()
[all …]
/packages/modules/AppSearch/framework/java/external/android/app/appsearch/
DSetSchemaRequest.java37 import java.util.Map;
172 private final Map<String, Set<PackageIdentifier>> mSchemasVisibleToPackages;
173 private final Map<String, Set<Set<Integer>>> mSchemasVisibleToPermissions;
174 private final Map<String, PackageIdentifier> mPubliclyVisibleSchemas;
175 private final Map<String, Set<SchemaVisibilityConfig>> mSchemasVisibleToConfigs;
176 private final Map<String, Migrator> mMigrators;
183 @NonNull Map<String, Set<PackageIdentifier>> schemasVisibleToPackages, in SetSchemaRequest()
184 @NonNull Map<String, Set<Set<Integer>>> schemasVisibleToPermissions, in SetSchemaRequest()
185 @NonNull Map<String, PackageIdentifier> publiclyVisibleSchemas, in SetSchemaRequest()
186 @NonNull Map<String, Set<SchemaVisibilityConfig>> schemasVisibleToConfigs, in SetSchemaRequest()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DCompressedBuyerInputCreatorNoOptimizationsTest.java45 import java.util.Map;
76 Map<String, AdTechIdentifier> nameAndBuyersMap = in generateCompressedBuyerInputFromDBCAsAndEncodedSignalsReturnsCompressedInputs()
77 Map.of( in generateCompressedBuyerInputFromDBCAsAndEncodedSignalsReturnsCompressedInputs()
83 Pair<List<DBCustomAudience>, Map<String, DBCustomAudience>> resultPair = in generateCompressedBuyerInputFromDBCAsAndEncodedSignalsReturnsCompressedInputs()
87 Map<String, DBCustomAudience> namesToCustomAudience = resultPair.second; in generateCompressedBuyerInputFromDBCAsAndEncodedSignalsReturnsCompressedInputs()
89 Map<AdTechIdentifier, DBEncodedPayload> encodedPayloadMap = in generateCompressedBuyerInputFromDBCAsAndEncodedSignalsReturnsCompressedInputs()
92 Map<AdTechIdentifier, AuctionServerDataCompressor.CompressedData> compressedDataMap = in generateCompressedBuyerInputFromDBCAsAndEncodedSignalsReturnsCompressedInputs()
127 Map<AdTechIdentifier, DBEncodedPayload> encodedPayloadMap = in generateCompressedBuyerInputFromDBCAsAndEncodedSignalsReturnsCompressedInputs_OnlyPAS()
130 Map<AdTechIdentifier, AuctionServerDataCompressor.CompressedData> compressedDataMap = in generateCompressedBuyerInputFromDBCAsAndEncodedSignalsReturnsCompressedInputs_OnlyPAS()
156 Map<String, AdTechIdentifier> nameAndBuyersMap = in generateCompressedBuyerInputFromDBCAsAndEncodedSignalsReturnsCompressedInputs_OnlyPA()
[all …]
DDataVersionFetcherTest.java44 import java.util.Map;
50 public static final Map<Uri, TrustedBiddingResponse> VALID_TRUSTED_BIDDING_RESPONSE_MAP =
62 public static final Map<String, List<String>> VALID_HEADERS_SELLER =
83 Map<Uri, TrustedBiddingResponse> trustedBiddingResponseMapMultipleValues = in testGetBuyerDataVersionHeaderSuccessTakesFirstOfMultipleValues()
102 Map<String, List<String>> headersMultipleValues = in testGetSellerDataVersionHeaderTakesFirstOfMultipleValues()
126 Map<Uri, TrustedBiddingResponse> trustedBiddingResponseMapWithoutValidKey = in testGetBuyerDataVersionHeaderThrowsExceptionWhenMapDoesNotHaveUriKey()
145 Map<String, List<String>> headersWithWrongKey = in testGetSellerDataVersionHeaderThrowsExceptionWhenHeadersDoNotHaveDataVersionKey()
153 Map<Uri, TrustedBiddingResponse> trustedBiddingResponseMapWithoutValidKey = in testGetBuyerDataVersionHeaderThrowsExceptionWhenHeadersDoNotHaveDataVersionKey()
171 Map<Uri, TrustedBiddingResponse> trustedBiddingResponseMapWithoutValidValue = in testGetBuyerDataVersionHeaderThrowsExceptionWhenHeadersDoNotHaveListValue()
192 Map<Uri, TrustedBiddingResponse> trustedBiddingResponseMapWithoutValidValue = in testGetBuyerDataVersionHeaderThrowsExceptionWhenHeadersDoNotHaveIntegerValue()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/util/
DFilterTest.java40 import java.util.Map;
53 Map<String, List<String>> sourceFilterMap = new HashMap<>(); in testIsFilterMatch_filterSet_nonEmptyValues_returnTrue()
61 Map<String, List<String>> triggerFilterMap1 = new HashMap<>(); in testIsFilterMatch_filterSet_nonEmptyValues_returnTrue()
69 Map<String, List<String>> triggerFilterMap2 = new HashMap<>(); in testIsFilterMatch_filterSet_nonEmptyValues_returnTrue()
85 Map<String, List<String>> sourceFilterMap = new HashMap<>(); in testIsFilterMatch_nonEmptyValues_returnsTrue()
93 Map<String, List<String>> triggerFilterMap = new HashMap<>(); in testIsFilterMatch_nonEmptyValues_returnsTrue()
168 Map<String, List<String>> sourceFilterMap = new HashMap<>(); in testIsFilterMatch_filterSet_nonEmptyValues_returnFalse()
176 Map<String, List<String>> triggerFilterMap1 = new HashMap<>(); in testIsFilterMatch_filterSet_nonEmptyValues_returnFalse()
185 Map<String, List<String>> triggerFilterMap2 = new HashMap<>(); in testIsFilterMatch_filterSet_nonEmptyValues_returnFalse()
202 Map<String, List<String>> sourceFilterMap = new HashMap<>(); in testIsFilterMatch_nonEmptyValues_returnFalse()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DDataProcessorTest.java67 import java.util.Map;
125 final Map<Long, UsageEvents> resultMap = in getAppUsageEvents_returnExpectedResult()
141 final Map<Long, UsageEvents> resultMap = in getAppUsageEvents_lockedUser_returnNull()
158 final Map<Long, UsageEvents> resultMap = in getAppUsageEvents_nullUsageEvents_returnNull()
209 final Map<Long, Integer> batteryLevelMap1 = in generateAppUsagePeriodMap_returnExpectedResult()
210 Map.of(timestamps1.get(0), 100, timestamps1.get(1), 100, timestamps1.get(2), 100); in generateAppUsagePeriodMap_returnExpectedResult()
218 final Map<Long, Integer> batteryLevelMap2 = in generateAppUsagePeriodMap_returnExpectedResult()
219 Map.of(timestamps2.get(0), 100, timestamps2.get(1), 100); in generateAppUsagePeriodMap_returnExpectedResult()
332 final Map<Integer, Map<Integer, Map<Long, Map<String, List<AppUsagePeriod>>>>> periodMap = in generateAppUsagePeriodMap_returnExpectedResult()
339 Map<Long, Map<String, List<AppUsagePeriod>>> hourlyMap = periodMap.get(0).get(0); in generateAppUsagePeriodMap_returnExpectedResult()
[all …]
/packages/modules/Permission/SafetyLabel/java/com/android/permission/safetylabel/
DDataLabel.java28 import java.util.Map;
36 private final Map<String, DataCategory> mDataCollected;
37 private final Map<String, DataCategory> mDataShared;
40 @NonNull Map<String, DataCategory> dataCollected, in DataLabel()
41 @NonNull Map<String, DataCategory> dataShared) { in DataLabel()
59 Map<String, DataCategory> dataCollectedCategoryMap = in getDataLabel()
61 Map<String, DataCategory> dataSharedCategoryMap = in getDataLabel()
71 public Map<String, DataCategory> getDataCollected() { in getDataCollected()
80 public Map<String, DataCategory> getDataShared() { in getDataShared()
/packages/services/Car/tests/DiagnosticTools/src/com/google/android/car/diagnostictools/utils/
DJsonMetadataReader.java33 import java.util.Map;
59 static Map<String, DTCMetadata> readDTCsFromJson(InputStream in) in readDTCsFromJson()
62 Map<String, DTCMetadata> metadata = new HashMap<>(); in readDTCsFromJson()
81 static Map<String, String> readECUsFromJson(InputStream in) throws IOException, JSONException { in readECUsFromJson()
83 Map<String, String> metadata = new HashMap<>(); in readECUsFromJson()
104 static Map<Integer, SensorMetadata> readFloatSensorIndexFromJson(InputStream in) in readFloatSensorIndexFromJson()
118 static Map<Integer, SensorMetadata> readIntegerSensorIndexFromJson(InputStream in) in readIntegerSensorIndexFromJson()
134 private static Map<Integer, SensorMetadata> readSensorIndexFromJson( in readSensorIndexFromJson()
136 Map<String, SensorMetadata> metadata = JsonMetadataReader.readSensorsFromJson(in); in readSensorIndexFromJson()
137 Map<Integer, SensorMetadata> metadataMap = new HashMap<>(); in readSensorIndexFromJson()
[all …]
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/
DEpochManager.java53 import java.util.Map;
192 Map<String, List<String>> appSdksUsageMap = in processEpoch()
199 Map<String, List<Topic>> appClassificationTopicsMap = in processEpoch()
208 Map<Topic, Set<String>> callersCanLearnThisEpochMap = in processEpoch()
220 Map<Topic, Set<String>> callersCanLearnMap = in processEpoch()
251 Map<Integer, Set<String>> topTopicsToContributorsMap = in processEpoch()
259 Map<Pair<String, String>, Topic> returnedAppSdkTopics = in processEpoch()
275 Map<Pair<String, String>, EncryptedTopic> encryptedTopicMapTopics = in processEpoch()
355 @NonNull Map<Topic, Set<String>> callersCanLearnMap, in isTopicLearnableByCaller()
403 static Map<Topic, Set<String>> computeCallersCanLearnMap( in computeCallersCanLearnMap()
[all …]

12345678910>>...95