Home
last modified time | relevance | path

Searched refs:ImmutableMap (Results 1 – 25 of 86) sorted by relevance

1234

/aosp12/frameworks/base/tools/aapt2/util/
H A DImmutableMap.h28 class ImmutableMap {
35 ImmutableMap(ImmutableMap&&) noexcept = default;
36 ImmutableMap& operator=(ImmutableMap&&) noexcept = default;
38 static ImmutableMap<TKey, TValue> CreatePreSorted( in CreatePreSorted()
40 return ImmutableMap( in CreatePreSorted()
44 static ImmutableMap<TKey, TValue> CreateAndSort( in CreateAndSort()
48 return ImmutableMap(std::move(data)); in CreateAndSort()
72 DISALLOW_COPY_AND_ASSIGN(ImmutableMap);
74 explicit ImmutableMap(std::vector<std::pair<TKey, TValue>> data) in ImmutableMap() function
/aosp12/frameworks/base/core/tests/coretests/src/android/content/integrity/
H A DInstallerAllowedByManifestFormulaTest.java23 import com.google.common.collect.ImmutableMap;
43 .setAllowedInstallersAndCert(ImmutableMap.of( in testFormulaMatches_installerAndCertBothInManifest()
56 .setAllowedInstallersAndCert(ImmutableMap.of( in testFormulaMatches_installerAndCertDoesNotMatchInManifest()
69 .setAllowedInstallersAndCert(ImmutableMap.of( in testFormulaMatches_installerNotInManifest()
82 .setAllowedInstallersAndCert(ImmutableMap.of( in testFormulaMatches_certificateDoesNotMatchManifest()
95 .setAllowedInstallersAndCert(ImmutableMap.of()).build(); in testFormulaMatches_emptyManifest()
105 .setAllowedInstallersAndCert(ImmutableMap.of( in testFormulaMatches_certificateNotSpecifiedInManifest()
/aosp12/packages/apps/Dialer/java/com/android/dialer/commandline/
H A DCommandSupplier.java21 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()
H A DArguments.java23 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()
/aosp12/packages/apps/Dialer/java/com/android/dialer/phonelookup/composite/
H A DCompositePhoneLookup.java37 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()
215 ImmutableMap<DialerPhoneNumber, PhoneLookupInfo> existingInfoMap,
223 ListenableFuture<ImmutableMap<DialerPhoneNumber, T>> mostRecentInfoFuture =
[all …]
/aosp12/packages/apps/Dialer/java/com/android/dialer/phonenumberproto/
H A DPartitionedNumbers.java25 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()
/aosp12/packages/apps/Dialer/java/com/android/dialer/speeddial/database/
H A DSpeedDialEntryDatabaseHelper.java30 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()
H A DSpeedDialEntryDao.java20 import com.google.common.collect.ImmutableMap;
39 ImmutableMap<SpeedDialEntry, Long> insert(ImmutableList<SpeedDialEntry> entries); in insert()
70 ImmutableMap<SpeedDialEntry, Long> insertUpdateAndDelete( in insertUpdateAndDelete()
/aosp12/packages/apps/Dialer/java/com/android/dialer/calllog/datasources/phonelookup/
H A DPhoneLookupDataSource.java46 import com.google.common.collect.ImmutableMap;
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()
206 ImmutableMap.Builder<Long, PhoneLookupInfo> rowsToUpdate = ImmutableMap.builder(); in fill()
224 ListenableFuture<ImmutableMap<Long, PhoneLookupInfo>> rowsToUpdateFuture = in fill()
395 return ImmutableMap.of(); in collectIdAndNumberFromAnnotatedCallLogAndPendingInserts()
476 return ImmutableMap.copyOf( in queryPhoneLookupHistoryForNumbers()
491 ImmutableMap<Long, PhoneLookupInfo> existingInfo, CallLogMutations mutations) {
[all …]
/aosp12/frameworks/base/tools/powermodel/src/com/android/powermodel/
H A DAppActivity.java22 import com.google.common.collect.ImmutableMap;
27 private ImmutableMap<Component, ComponentActivity> mComponents;
49 public ImmutableMap<Component,ComponentActivity> getComponentActivities() { in getComponentActivities()
72 result.mComponents = ImmutableMap.copyOf(mComponents); in build()
H A DAppPower.java22 import com.google.common.collect.ImmutableMap;
25 private ImmutableMap<Component, ComponentPower> mComponents;
70 result.mComponents = ImmutableMap.copyOf(mComponents); in build()
/aosp12/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/chunking/
H A DProtoStoreTest.java33 import com.google.common.collect.ImmutableMap;
78 createChunkListing(ImmutableMap.of(TEST_HASH_1, TEST_LENGTH_1)); in differentStoreTypes_operateSimultaneouslyWithoutInterfering()
126 ImmutableMap.of(TEST_HASH_1, TEST_LENGTH_1, TEST_HASH_2, TEST_LENGTH_2)); in loadChunkListing_listingExists_returnsExistingListing()
154 ImmutableMap.of(TEST_HASH_1, TEST_LENGTH_1, TEST_HASH_2, TEST_LENGTH_2)); in saveProto_persistsToNewInstance()
194 createChunkListing(ImmutableMap.of(TEST_HASH_1, TEST_LENGTH_1)); in deleteProto_noListingExists_doesNothing()
205 createChunkListing(ImmutableMap.of(TEST_HASH_1, TEST_LENGTH_1)); in deleteProto_listingExists_deletesListing()
216 createChunkListing(ImmutableMap.of(TEST_HASH_1, TEST_LENGTH_1)); in deleteAllProtos_deletesAllProtos()
218 createChunkListing(ImmutableMap.of(TEST_HASH_2, TEST_LENGTH_2)); in deleteAllProtos_deletesAllProtos()
236 ImmutableMap<ChunkHash, Integer> chunks) { in createChunkListing()
/aosp12/packages/apps/Dialer/java/com/android/dialer/callintent/
H A DCallIntent.java37 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()
/aosp12/packages/apps/Dialer/java/com/android/dialer/simulator/impl/
H A DSimulatorMainPortal.java28 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()
H A DSimulatorPortalEntryGroup.java20 import com.google.common.collect.ImmutableMap;
27 abstract ImmutableMap<String, Runnable> methods(); in methods()
29 abstract ImmutableMap<String, SimulatorPortalEntryGroup> subPortals(); in subPortals()
/aosp12/frameworks/layoutlib/bridge/tests/src/android/util/
H A DBridgeXmlPullAttributesTest.java29 import com.google.common.collect.ImmutableMap;
66 return ImmutableMap.of( in testGetAttributeIntValueForEnums()
69 return ImmutableMap.of(); in testGetAttributeIntValueForEnums()
73 return ImmutableMap.of( in testGetAttributeIntValueForEnums()
78 return ImmutableMap.of(); in testGetAttributeIntValueForEnums()
/aosp12/packages/apps/Dialer/java/com/android/dialer/phonelookup/spam/
H A DSpamPhoneLookup.java33 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()
/aosp12/packages/apps/Dialer/java/com/android/dialer/phonelookup/cp2/
H A DMissingPermissionsOperations.java30 import com.google.common.collect.ImmutableMap;
119 ListenableFuture<ImmutableMap<DialerPhoneNumber, Cp2Info>> getMostRecentInfoForMissingPermissions( in getMostRecentInfoForMissingPermissions()
120 ImmutableMap<DialerPhoneNumber, Cp2Info> existingInfoMap) { in getMostRecentInfoForMissingPermissions()
123 ImmutableMap.Builder<DialerPhoneNumber, Cp2Info> clearedInfos = ImmutableMap.builder(); in getMostRecentInfoForMissingPermissions()
/aosp12/packages/apps/Dialer/java/com/android/dialer/phonelookup/blockednumber/
H A DSystemBlockedNumberPhoneLookup.java39 import com.google.common.collect.ImmutableMap;
83 public ListenableFuture<ImmutableMap<DialerPhoneNumber, SystemBlockedNumberInfo>>
84 getMostRecentInfo(ImmutableMap<DialerPhoneNumber, SystemBlockedNumberInfo> existingInfoMap) { in getMostRecentInfo()
93 private ImmutableMap<DialerPhoneNumber, SystemBlockedNumberInfo> queryNumbers( in queryNumbers()
135 ImmutableMap.Builder<DialerPhoneNumber, SystemBlockedNumberInfo> result = in queryNumbers()
136 ImmutableMap.builder(); in queryNumbers()
/aosp12/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/protocol/cpim/
H A DSimpleCpimMessage.java23 import com.google.common.collect.ImmutableMap;
45 public abstract ImmutableMap<String, String> namespaces(); in namespaces()
47 public abstract ImmutableMap<String, String> headers(); in headers()
117 public abstract ImmutableMap.Builder<String, String> namespacesBuilder(); in namespacesBuilder()
119 public abstract ImmutableMap.Builder<String, String> headersBuilder(); in headersBuilder()
/aosp12/packages/apps/Dialer/java/com/android/dialer/precall/impl/
H A DDuoAction.java30 import com.google.common.collect.ImmutableMap;
65 ListenableFuture<ImmutableMap<String, ReachabilityData>> reachabilities = in runWithUi()
73 new FutureCallback<ImmutableMap<String, ReachabilityData>>() { in runWithUi()
75 public void onSuccess(ImmutableMap<String, ReachabilityData> result) { in runWithUi()
/aosp12/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/projection/
H A DProjectionFragment.java32 import com.google.common.collect.ImmutableMap;
47 private static final ImmutableMap<Integer, String> STATE_TO_STRING = ImmutableMap.of(
53 private static final ImmutableMap<Integer, String> TRANSPORT_TO_STRING = ImmutableMap.of(
/aosp12/packages/apps/Dialer/java/com/android/dialer/spam/stub/
H A DSpamStub.java28 import com.google.common.collect.ImmutableMap;
46 public ListenableFuture<ImmutableMap<DialerPhoneNumber, SpamStatus>> batchCheckSpamStatus( in batchCheckSpamStatus()
50 ImmutableMap.Builder<DialerPhoneNumber, SpamStatus> resultBuilder = in batchCheckSpamStatus()
51 new ImmutableMap.Builder<>(); in batchCheckSpamStatus()
/aosp12/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/
H A DTelecomPageTab.java35 import com.google.common.collect.ImmutableMap;
130 private static final ImmutableMap<String, Integer> TAB_LABELS =
131 ImmutableMap.<String, Integer>builder()
138 private static final ImmutableMap<String, Integer> TAB_ICONS =
139 ImmutableMap.<String, Integer>builder()
/aosp12/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/
H A DUpdaterState.java21 import com.google.common.collect.ImmutableMap;
53 private static final ImmutableMap<Integer, ImmutableSet<Integer>> TRANSITIONS =
54 ImmutableMap.<Integer, ImmutableSet<Integer>>builder()

1234