Home
last modified time | relevance | path

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

/frameworks/base/tools/aapt2/util/
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
/frameworks/base/core/tests/coretests/src/android/content/integrity/
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()
/frameworks/base/tools/powermodel/src/com/android/powermodel/
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()
DAppPower.java22 import com.google.common.collect.ImmutableMap;
25 private ImmutableMap<Component, ComponentPower> mComponents;
70 result.mComponents = ImmutableMap.copyOf(mComponents); in build()
DAppList.java24 import com.google.common.collect.ImmutableMap;
29 private ImmutableMap<SpecialApp,APP> mSpecialApps;
79 result.mSpecialApps = ImmutableMap.copyOf(specialApps); in build()
DPowerReport.java23 import com.google.common.collect.ImmutableMap;
65 for (final ImmutableMap.Entry<Component,ComponentActivity> entry: in createReport()
DRawBatteryStats.java37 import com.google.common.collect.ImmutableMap;
57 private ImmutableMap<String,ImmutableList<Record>> mRecordsByType;
1072 mRecordsByType = ImmutableMap.copyOf(result); in indexRecords()
/frameworks/layoutlib/bridge/tests/src/android/util/
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()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/chunking/
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()
DBackupFileBuilderTest.java41 import com.google.common.collect.ImmutableMap;
566 private static ImmutableMap<ChunkHash, EncryptedChunk> getNewChunkMap(ChunkHash... hashes) { in getNewChunkMap()
567 ImmutableMap.Builder<ChunkHash, EncryptedChunk> builder = ImmutableMap.builder(); in getNewChunkMap()
/frameworks/layoutlib/create/tests/src/com/android/tools/layoutlib/create/
DTestClassLoader.java22 import com.google.common.collect.ImmutableMap;
33 this(ImmutableMap.of(name, bytes)); in TestClassLoader()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/kv/
DKeyValueListingBuilderTest.java28 import com.google.common.collect.ImmutableMap;
89 ImmutableMap<String, ChunkHash> pairs = in addAll_addsAllPairsInMap()
90 new ImmutableMap.Builder<String, ChunkHash>() in addAll_addsAllPairsInMap()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DKeySyncUtilsTest.java30 import com.google.common.collect.ImmutableMap;
138 ImmutableMap.of(alias, Pair.create(applicationKey, NULL_METADATA))); in decryptApplicationKey_decryptsAnApplicationKey_nullMetadata()
155 ImmutableMap.of(alias, Pair.create(applicationKey, NON_NULL_METADATA))); in decryptApplicationKey_decryptsAnApplicationKey_nonNullMetadata()
170 ImmutableMap.of("casper", in decryptApplicationKey_throwsIfUnableToDecrypt()
193 ImmutableMap.of( in decryptApplicationKey_throwsIfWrongMetadata()
DRecoverableKeyStoreManagerTest.java70 import com.google.common.collect.ImmutableMap;
1272 return KeySyncUtils.encryptKeysWithRecoveryKey(recoveryKey, ImmutableMap.of( in encryptedApplicationKey()
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/tasks/
DKvBackupEncrypterTest.java38 import com.google.common.collect.ImmutableMap;
229 ImmutableMap<String, ChunkHash> keyValueListing = in getNewKeyValueListing_existingBackup_returnsCorrectListing()
246 private ImmutableMap<String, ChunkHash> listingToMap(KeyValueListing listing) { in listingToMap()
249 return ImmutableMap.copyOf( in listingToMap()
DBackupFileDecryptorTaskTest.java47 import com.google.common.collect.ImmutableMap;
572 private static ImmutableMap<String, String> asMap(Collection<KeyValuePair> pairs) { in asMap()
573 ImmutableMap.Builder<String, String> map = ImmutableMap.builder(); in asMap()
DEncryptedBackupTaskTest.java50 import com.google.common.collect.ImmutableMap;
156 ImmutableMap.of(TEST_HASH_1, TEST_CHUNK_1, TEST_HASH_2, TEST_CHUNK_2)); in performNonIncrementalBackup_performsBackup()
179 ImmutableMap.of(TEST_HASH_2, TEST_CHUNK_2)); in performIncrementalBackup_performsBackup()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/
DSessionParamsBuilder.java41 import com.google.common.collect.ImmutableMap;
202 ImmutableMap.of( in build()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DPackageDynamicCodeLoadingTests.java39 import com.google.common.collect.ImmutableMap;
269 Map<String, Set<Integer>> packageToUsersMap = ImmutableMap.of( in testSyncData()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/
DRenderTestBase.java62 import com.google.common.collect.ImmutableMap;
/frameworks/base/tools/aapt2/
DResourceParser.cpp496 static const auto elToItemMap = ImmutableMap<std::string, ItemTypeFormat>::CreatePreSorted({ in ParseResource()
513 static const auto elToBagMap = ImmutableMap<std::string, BagParseFunc>::CreatePreSorted({ in ParseResource()