| /packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/converter/ |
| D | SearchSpecToProtoConverterTest.java | 47 import com.google.common.collect.ImmutableMap; 99 /*namespaceMap=*/ ImmutableMap.of( in testToSearchSpecProto() 106 /*schemaMap=*/ ImmutableMap.of( in testToSearchSpecProto() 108 ImmutableMap.of( in testToSearchSpecProto() 112 ImmutableMap.of( in testToSearchSpecProto() 161 /*namespaceMap=*/ ImmutableMap.of( in testToSearchSpecProtoWithJoinSpec() 168 /*schemaMap=*/ ImmutableMap.of( in testToSearchSpecProtoWithJoinSpec() 170 ImmutableMap.of( in testToSearchSpecProtoWithJoinSpec() 174 ImmutableMap.of( in testToSearchSpecProtoWithJoinSpec() 237 /*namespaceMap=*/ ImmutableMap.of( in testToSearchSpec_withJoinSpec_childSearchesOtherSchema() [all …]
|
| /packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/classifier/ |
| D | ClassifierManagerTest.java | 38 import com.google.common.collect.ImmutableMap; 97 .thenReturn(ImmutableMap.of(appPackage1, onDeviceTopics)); in testClassify_onDeviceClassifier() 118 .thenReturn(ImmutableMap.of(appPackage1, precomputedTopics)); in testClassify_preComputedClassifier() 139 .thenReturn(ImmutableMap.of(appPackage1, precomputedTopics)); in testClassify_precomputedThenOnDevice_verifyPriorityToPrecomputedClassifier() 141 when(mOnDeviceClassifier.classify(eq(ImmutableSet.of()))).thenReturn(ImmutableMap.of()); in testClassify_precomputedThenOnDevice_verifyPriorityToPrecomputedClassifier() 162 .thenReturn(ImmutableMap.of(appPackage1, onDeviceTopics)); in testClassify_precomputedThenOnDevice_emptyPrecomputedTopics() 166 .thenReturn(ImmutableMap.of(appPackage1, precomputedTopics)); in testClassify_precomputedThenOnDevice_emptyPrecomputedTopics() 186 .thenReturn(ImmutableMap.of(appPackage1, onDeviceTopics)); in testClassify_precomputedThenOnDevice_missingPrecomputedTopics() 188 when(mPrecomputedClassifier.classify(eq(appPackages))).thenReturn(ImmutableMap.of()); in testClassify_precomputedThenOnDevice_missingPrecomputedTopics() 208 .thenReturn(ImmutableMap.of(appPackage1, createTopics())); in testClassify_precomputedThenOnDevice_bothListsAreEmpty() [all …]
|
| D | OnDeviceClassifierTest.java | 44 import com.google.common.collect.ImmutableMap; 171 ImmutableMap<String, List<Topic>> classifications = in testClassify_earlyReturnIfNoModelAvailable() 189 ImmutableMap<String, List<Topic>> classifications = in testClassify_emptyClassifierInput_returnsDefaultClassifications() 241 ImmutableMap<String, List<Topic>> classifications = in testClassify_successfulClassifications() 404 ImmutableMap<String, List<Topic>> classifications = in testClassify_successfulClassifications_overrideNumberOfTopLabels() 445 ImmutableMap<String, List<Topic>> classifications = in testClassify_successfulClassifications_overrideClassifierThreshold() 470 ImmutableMap<String, List<Topic>> firstClassifications = in testClassify_successfulClassificationsForUpdatedClassifierInput() 472 ImmutableMap<String, List<Topic>> secondClassifications = in testClassify_successfulClassificationsForUpdatedClassifierInput() 527 ImmutableMap<String, List<Topic>> classifications = in testGetTopTopics_fetchTopAndRandomTopics() 555 ImmutableMap<String, AppInfo> appInfoMap = in testGetTopTopics_verifyRandomTopics() [all …]
|
| /packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/cache/ |
| D | DBCacheEntry.java | 32 import com.google.common.collect.ImmutableMap; 63 public abstract ImmutableMap<String, List<String>> getResponseHeaders(); in getResponseHeaders() 88 ImmutableMap<String, List<String>> responseHeaders, in create() 102 return new AutoValue_DBCacheEntry.Builder().setResponseHeaders(ImmutableMap.of()); in builder() 117 ImmutableMap<String, List<String>> responseHeaders); in setResponseHeaders() 149 @Nullable ImmutableMap<String, List<String>> responseHeaders) { in serializeResponseHeaders() 176 public static ImmutableMap<String, List<String>> deserializeResponseHeaders( in deserializeResponseHeaders() 178 ImmutableMap.Builder<String, List<String>> responseHeadersBuilder = in deserializeResponseHeaders() 179 ImmutableMap.builder(); in deserializeResponseHeaders()
|
| /packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/common/cache/ |
| D | DBCacheEntryTest.java | 22 import com.google.common.collect.ImmutableMap; 32 private static final ImmutableMap<String, List<String>> RESPONSE_HEADERS = 33 ImmutableMap.of( 43 assertEquals("", DBCacheEntry.Converters.serializeResponseHeaders(ImmutableMap.of())); in testSerializationHeadersMap_Empty_Empty() 60 ImmutableMap mapWithEmptyList = in testSerializationHeadersMap_EmptyListSkipped_Success() 61 ImmutableMap.of( in testSerializationHeadersMap_EmptyListSkipped_Success()
|
| D | FledgeHttpCacheTest.java | 43 import com.google.common.collect.ImmutableMap; 76 private ImmutableMap<String, List<String>> mResponseHeadersMap; 92 ImmutableMap.<String, List<String>>builder() in setup() 144 ImmutableMap.of(HttpHeaders.CACHE_CONTROL, skipCacheProperties); in test_CachePutEntryNoCache_SkipsCache() 154 ImmutableMap.of(HttpHeaders.CACHE_CONTROL, skipCacheProperties); in test_CachePutEntryNoStoreCache_SkipsCache() 215 ImmutableMap.of(HttpHeaders.CACHE_CONTROL, maxCacheAgeProperties); in test_MaxAgeUpperBounded_GlobalMaxAge() 230 ImmutableMap.of(HttpHeaders.CACHE_CONTROL, maxCacheAgeProperties); in test_MaxAgeLowerBounded_RequestMaxAge() 243 ImmutableMap.of(HttpHeaders.CACHE_CONTROL, maxCacheAgeProperties); in test_CacheE2ESetDefaultMaxAge_GarbledMaxAge() 291 ImmutableMap.of(HttpHeaders.CACHE_CONTROL, maxCacheAgeProperties); in test_CacheE2EHonorsMaxAge_Success()
|
| /packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/ |
| D | TrustedBiddingDataFetcherTest.java | 41 import com.google.common.collect.ImmutableMap; 105 new JSONObject(ImmutableMap.of(KEY_1, VALUE_1)) in testDevOptionDisabled_fetchForMultipleUri() 114 new JSONObject(ImmutableMap.of(KEY_2, VALUE_2)) in testDevOptionDisabled_fetchForMultipleUri() 129 new JSONObject(ImmutableMap.of(KEY_1, VALUE_1)).toString(), in testDevOptionDisabled_fetchForMultipleUri() 133 new JSONObject(ImmutableMap.of(KEY_2, VALUE_2)).toString(), in testDevOptionDisabled_fetchForMultipleUri() 155 new JSONObject(ImmutableMap.of(KEY_1, VALUE_1)) in testDevOptionDisabled_fetchFailedOrNoResultFromServer() 173 new JSONObject(ImmutableMap.of(KEY_1, VALUE_1)).toString(), in testDevOptionDisabled_fetchFailedOrNoResultFromServer() 196 new JSONObject(ImmutableMap.of(KEY_1, VALUE_1)) in testDevOptionDisabled_serverReturnedMalformedData() 218 new JSONObject(ImmutableMap.of(KEY_1, VALUE_1)).toString(), in testDevOptionDisabled_serverReturnedMalformedData() 244 new JSONObject(ImmutableMap.of(KEY_2, VALUE_2)) in testDevOptionEnabled_someCAhasDevOverride() [all …]
|
| /packages/apps/Dialer/java/com/android/dialer/phonelookup/composite/ |
| D | CompositePhoneLookup.java | 37 import com.google.common.collect.ImmutableMap; 172 public ListenableFuture<ImmutableMap<DialerPhoneNumber, PhoneLookupInfo>> getMostRecentInfo( in getMostRecentInfo() 173 ImmutableMap<DialerPhoneNumber, PhoneLookupInfo> existingInfoMap) { in getMostRecentInfo() 178 List<ListenableFuture<ImmutableMap<DialerPhoneNumber, ?>>> futures = new ArrayList<>(); in getMostRecentInfo() 182 ListenableFuture<ImmutableMap<DialerPhoneNumber, PhoneLookupInfo>> combinedFuture = in getMostRecentInfo() 187 ImmutableMap.Builder<DialerPhoneNumber, PhoneLookupInfo> combinedMap = in getMostRecentInfo() 188 ImmutableMap.builder(); in getMostRecentInfo() 192 ImmutableMap<DialerPhoneNumber, ?> map = allMaps.get(i); in getMostRecentInfo() 214 private <T> ListenableFuture<ImmutableMap<DialerPhoneNumber, T>> buildSubmapAndGetMostRecentInfo( 215 ImmutableMap<DialerPhoneNumber, PhoneLookupInfo> existingInfoMap, [all …]
|
| /packages/apps/Dialer/java/com/android/dialer/commandline/ |
| D | Arguments.java | 23 import com.google.common.collect.ImmutableMap; 45 new AutoValue_Arguments(ImmutableMap.of(), ImmutableList.of()); 47 public abstract ImmutableMap<String, String> getFlags(); in getFlags() 94 ImmutableMap<String, String> flags = parseFlags(peekingIterator); in parse() 100 private static ImmutableMap<String, String> parseFlags(PeekingIterator<String> iterator) in parseFlags() 102 ImmutableMap.Builder<String, String> flags = ImmutableMap.builder(); in parseFlags()
|
| D | CommandSupplier.java | 21 import com.google.common.collect.ImmutableMap; 25 public abstract class CommandSupplier implements Supplier<ImmutableMap<String, Command>> { 31 public abstract ImmutableMap<String, Command> commands(); in commands() 34 public ImmutableMap<String, Command> get() { in get() 42 abstract ImmutableMap.Builder<String, Command> commandsBuilder(); in commandsBuilder()
|
| /packages/apps/Dialer/java/com/android/dialer/calllog/datasources/phonelookup/ |
| D | PhoneLookupDataSource.java | 46 import com.google.common.collect.ImmutableMap; 163 ListenableFuture<ImmutableMap<DialerPhoneNumber, PhoneLookupInfo>> originalInfoMapFuture = in fill() 172 ListenableFuture<ImmutableMap<DialerPhoneNumber, PhoneLookupInfo>> updatedInfoMapFuture = in fill() 179 Callable<ImmutableMap<Long, PhoneLookupInfo>> computeRowsToUpdate = in fill() 184 ImmutableMap<DialerPhoneNumber, PhoneLookupInfo> originalInfoMap = in fill() 186 ImmutableMap<DialerPhoneNumber, PhoneLookupInfo> updatedInfoMap = in fill() 190 ImmutableMap.Builder<Long, PhoneLookupInfo> in fill() 191 originalPhoneLookupHistoryDataByAnnotatedCallLogId = ImmutableMap.builder(); in fill() 206 ImmutableMap.Builder<Long, PhoneLookupInfo> rowsToUpdate = ImmutableMap.builder(); in fill() 224 ListenableFuture<ImmutableMap<Long, PhoneLookupInfo>> rowsToUpdateFuture = in fill() [all …]
|
| /packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/adselection/ |
| D | BuyersDecisionLogicTest.java | 28 import com.google.common.collect.ImmutableMap; 45 ImmutableMap.of(BUYER_1, DECISION_LOGIC, BUYER_2, DECISION_LOGIC)); in testBuildValidSuccess() 54 ImmutableMap.of(BUYER_1, DECISION_LOGIC, BUYER_2, DECISION_LOGIC)); in testParcelValid_Success() 69 BuyersDecisionLogic obj = new BuyersDecisionLogic(ImmutableMap.of()); in testDescribeContents() 83 ImmutableMap.of(BUYER_1, DECISION_LOGIC, BUYER_2, DECISION_LOGIC)); in testAssertEquals() 86 ImmutableMap.of(BUYER_1, DECISION_LOGIC, BUYER_2, DECISION_LOGIC)); in testAssertEquals()
|
| /packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/httpclient/ |
| D | AdServicesHttpClientResponse.java | 20 import com.google.common.collect.ImmutableMap; 32 public abstract ImmutableMap<String, List<String>> getResponseHeaders(); in getResponseHeaders() 42 String responseBody, ImmutableMap<String, List<String>> responseHeaders) { in create() 49 .setResponseHeaders(ImmutableMap.of()); in builder() 61 ImmutableMap<String, List<String>> responseHeaders); in setResponseHeaders()
|
| D | AdServicesHttpClientRequest.java | 22 import com.google.common.collect.ImmutableMap; 33 public abstract ImmutableMap<String, String> getRequestProperties(); in getRequestProperties() 50 ImmutableMap<String, String> requestProperties, in create() 64 .setRequestProperties(ImmutableMap.of()) in builder() 78 ImmutableMap<String, String> queryParams); in setRequestProperties()
|
| /packages/apps/Dialer/java/com/android/dialer/speeddial/database/ |
| D | SpeedDialEntryDatabaseHelper.java | 30 import com.google.common.collect.ImmutableMap; 153 public ImmutableMap<SpeedDialEntry, Long> insert(ImmutableList<SpeedDialEntry> entries) { in insert() 155 return ImmutableMap.of(); in insert() 161 ImmutableMap<SpeedDialEntry, Long> insertedEntriesToIdsMap = insert(db, entries); in insert() 170 private ImmutableMap<SpeedDialEntry, Long> insert( in insert() 172 ImmutableMap.Builder<SpeedDialEntry, Long> insertedEntriesToIdsMap = ImmutableMap.builder(); in insert() 286 public ImmutableMap<SpeedDialEntry, Long> insertUpdateAndDelete( in insertUpdateAndDelete() 291 return ImmutableMap.of(); in insertUpdateAndDelete() 296 ImmutableMap<SpeedDialEntry, Long> insertedEntriesToIdsMap = insert(db, entriesToInsert); in insertUpdateAndDelete()
|
| /packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/classifier/ |
| D | ModelManager.java | 44 import com.google.common.collect.ImmutableMap; 433 return ImmutableMap.of(); in getAppsTopicMap() 446 public ImmutableMap<String, ImmutableMap<String, String>> retrieveClassifierAssetsMetadata() { in retrieveClassifierAssetsMetadata() 449 ImmutableMap.Builder<String, ImmutableMap<String, String>> classifierAssetsMetadata = in retrieveClassifierAssetsMetadata() 450 new ImmutableMap.Builder<>(); in retrieveClassifierAssetsMetadata() 468 private ImmutableMap<String, ImmutableMap<String, String>> getAssetsMetadataMap( in getAssetsMetadataMap() 470 ImmutableMap.Builder<String, ImmutableMap<String, String>> in getAssetsMetadataMap() 480 ImmutableMap.Builder<String, String> assetMetadata = new ImmutableMap.Builder<>(); in getAssetsMetadataMap() 548 return ImmutableMap.of(); in getAssetsMetadataMap()
|
| D | OnDeviceClassifier.java | 41 import com.google.common.collect.ImmutableMap; 105 public ImmutableMap<String, List<Topic>> classify(@NonNull Set<String> appPackageNames) { in classify() 107 return ImmutableMap.of(); in classify() 113 return ImmutableMap.of(); in classify() 121 ImmutableMap.Builder<String, List<Topic>> packageNameToTopics = ImmutableMap.builder(); in classify() 321 ImmutableMap<String, ImmutableMap<String, String>> classifierAssetsMetadata = in load()
|
| /packages/apps/Dialer/java/com/android/dialer/phonenumberproto/ |
| D | PartitionedNumbers.java | 25 import com.google.common.collect.ImmutableMap; 38 private final ImmutableMap<String, ImmutableSet<DialerPhoneNumber>> 40 private final ImmutableMap<String, ImmutableSet<DialerPhoneNumber>> 119 private static <K, V> ImmutableMap<K, ImmutableSet<V>> makeImmutable( in makeImmutable() 121 ImmutableMap.Builder<K, ImmutableSet<V>> mapBuilder = ImmutableMap.builder(); in makeImmutable()
|
| /packages/apps/Dialer/java/com/android/dialer/callintent/ |
| D | CallIntent.java | 37 import com.google.common.collect.ImmutableMap; 61 abstract ImmutableMap<String, String> stringInCallUiIntentExtras(); in stringInCallUiIntentExtras() 63 abstract ImmutableMap<String, Long> longInCallUiIntentExtras(); in longInCallUiIntentExtras() 65 abstract ImmutableMap<String, String> stringPlaceCallExtras(); in stringPlaceCallExtras() 67 abstract ImmutableMap<String, Long> longPlaceCallExtras(); in longPlaceCallExtras() 107 abstract ImmutableMap.Builder<String, String> stringInCallUiIntentExtrasBuilder(); in stringInCallUiIntentExtrasBuilder() 109 abstract ImmutableMap.Builder<String, Long> longInCallUiIntentExtrasBuilder(); in longInCallUiIntentExtrasBuilder() 121 abstract ImmutableMap.Builder<String, String> stringPlaceCallExtrasBuilder(); in stringPlaceCallExtrasBuilder() 123 abstract ImmutableMap.Builder<String, Long> longPlaceCallExtrasBuilder(); in longPlaceCallExtrasBuilder()
|
| /packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/ |
| D | TopicIdNameUtil.java | 29 import com.google.common.collect.ImmutableMap; 56 public ImmutableMap<Integer, String> retrieveTopicIdToName() { in retrieveTopicIdToName() 58 ImmutableMap.Builder<Integer, String> topicIdToNameMap = new ImmutableMap.Builder(); in retrieveTopicIdToName() 85 return ImmutableMap.<Integer, String>builder().build(); in retrieveTopicIdToName()
|
| /packages/apps/Dialer/java/com/android/dialer/simulator/impl/ |
| D | SimulatorMainPortal.java | 28 import com.google.common.collect.ImmutableMap; 93 ImmutableMap.<String, Runnable>builder() in buildMainPortal() 124 ImmutableMap.of( in buildMainPortal() 139 ImmutableMap.<String, Runnable>builder() in buildSimulatorVoiceCallPortal() 191 ImmutableMap.<String, Runnable>builder() in buildSimulatorVideoCallPortal() 219 ImmutableMap.<String, Runnable>builder() in buildSimulatorRttCallPortal() 230 ImmutableMap.<String, Runnable>builder() in buildSimulatorNotificationsPortal()
|
| /packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/ |
| D | JsVersionHelper.java | 30 import com.google.common.collect.ImmutableMap; 74 ImmutableMap<String, String> requestProperties = in getRequestWithVersionHeader() 75 ImmutableMap.copyOf( in getRequestWithVersionHeader() 90 public static ImmutableMap<String, List<String>> constructVersionHeader( in constructVersionHeader() 93 return ImmutableMap.of( in constructVersionHeader()
|
| /packages/apps/Dialer/java/com/android/dialer/phonelookup/spam/ |
| D | SpamPhoneLookup.java | 33 import com.google.common.collect.ImmutableMap; 88 public ListenableFuture<ImmutableMap<DialerPhoneNumber, SpamInfo>> getMostRecentInfo( in getMostRecentInfo() 89 ImmutableMap<DialerPhoneNumber, SpamInfo> existingInfoMap) { in getMostRecentInfo() 92 ListenableFuture<ImmutableMap<DialerPhoneNumber, SpamStatus>> spamStatusMapFuture = in getMostRecentInfo() 98 ImmutableMap.Builder<DialerPhoneNumber, SpamInfo> mostRecentSpamInfo = in getMostRecentInfo() 99 new ImmutableMap.Builder<>(); in getMostRecentInfo()
|
| /packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/common/ |
| D | DecisionLogicTest.java | 23 import com.google.common.collect.ImmutableMap; 31 private static final ImmutableMap<Integer, Long> VERSION_MAP = 32 ImmutableMap.of(JsVersionHelper.JS_PAYLOAD_TYPE_BUYER_BIDDING_LOGIC_JS, VERSION); 44 DecisionLogic.create(PAYLOAD, ImmutableMap.of()); in testGetVersion()
|
| /packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/entitlement/http/ |
| D | HttpClientTest.java | 41 import com.google.common.collect.ImmutableMap; 98 sFakeURLStreamHandler.stubResponse(ImmutableMap.of()); in setUp() 116 Map<String, FakeResponse> response = ImmutableMap.of(TEST_URL, responseContent); in request_contentTypeXml_returnsXmlBody() 150 Map<String, FakeResponse> response = ImmutableMap.of(TEST_URL, responseContent); in request_httpGetResponseBadRequest_throwsException() 218 Map<String, FakeResponse> response = ImmutableMap.of(TEST_URL, responseContent); in request_postJson_doNotEscapeForwardSlash() 242 Map<String, FakeResponse> response = ImmutableMap.of(TEST_URL, responseContent); in request_postGzipJsonArray() 267 Map<String, FakeResponse> response = ImmutableMap.of(TEST_URL, responseContent); in request_postJsonArray() 296 Map<String, FakeResponse> response = ImmutableMap.of(TEST_URL, responseContent); in request_postGzipJsonArray_response_gunzipJsonArray() 320 Map<String, FakeResponse> response = ImmutableMap.of(TEST_URL, responseContent); in request_getResponseCodeFailed_expectThrowsException() 346 Map<String, FakeResponse> response = ImmutableMap.of(TEST_URL, responseContent); in request_getResponseBodyFailed_expectThrowsException()
|