/frameworks/base/tools/aapt2/util/ |
D | ImmutableMap.h | 28 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/ |
D | InstallerAllowedByManifestFormulaTest.java | 23 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/ |
D | AppActivity.java | 22 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()
|
D | AppPower.java | 22 import com.google.common.collect.ImmutableMap; 25 private ImmutableMap<Component, ComponentPower> mComponents; 70 result.mComponents = ImmutableMap.copyOf(mComponents); in build()
|
D | AppList.java | 24 import com.google.common.collect.ImmutableMap; 29 private ImmutableMap<SpecialApp,APP> mSpecialApps; 79 result.mSpecialApps = ImmutableMap.copyOf(specialApps); in build()
|
D | PowerReport.java | 23 import com.google.common.collect.ImmutableMap; 65 for (final ImmutableMap.Entry<Component,ComponentActivity> entry: in createReport()
|
D | RawBatteryStats.java | 37 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/ |
D | BridgeXmlPullAttributesTest.java | 29 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/ |
D | ProtoStoreTest.java | 33 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()
|
D | BackupFileBuilderTest.java | 41 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/ |
D | TestClassLoader.java | 22 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/ |
D | KeyValueListingBuilderTest.java | 28 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/ |
D | KeySyncUtilsTest.java | 30 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()
|
D | RecoverableKeyStoreManagerTest.java | 70 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/ |
D | KvBackupEncrypterTest.java | 38 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()
|
D | BackupFileDecryptorTaskTest.java | 47 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()
|
D | EncryptedBackupTaskTest.java | 50 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/ |
D | SessionParamsBuilder.java | 41 import com.google.common.collect.ImmutableMap; 202 ImmutableMap.of( in build()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/ |
D | PackageDynamicCodeLoadingTests.java | 39 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/ |
D | RenderTestBase.java | 62 import com.google.common.collect.ImmutableMap;
|
/frameworks/base/tools/aapt2/ |
D | ResourceParser.cpp | 496 static const auto elToItemMap = ImmutableMap<std::string, ItemTypeFormat>::CreatePreSorted({ in ParseResource() 513 static const auto elToBagMap = ImmutableMap<std::string, BagParseFunc>::CreatePreSorted({ in ParseResource()
|