/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/hal2/ |
D | ProgramInfoCacheTest.java | 144 List<ProgramList.Chunk> chunks = in testPurgeUpdateChunks() local 146 assertEquals(2, chunks.size()); in testPurgeUpdateChunks() 147 verifyChunkListFlags(chunks, true, true); in testPurgeUpdateChunks() 148 verifyChunkListModified(chunks, 3, mAmFmInfo, mRdsInfo, mDabEnsembleInfo, in testPurgeUpdateChunks() 150 verifyChunkListRemoved(chunks, 0); in testPurgeUpdateChunks() 181 List<ProgramList.Chunk> chunks = cache.filterAndUpdateFromInternal(halCache, false, 5, 1); in testDeltaUpdateChunksModificationsIncluded() local 183 assertEquals(2, chunks.size()); in testDeltaUpdateChunksModificationsIncluded() 184 verifyChunkListFlags(chunks, false, true); in testDeltaUpdateChunksModificationsIncluded() 185 verifyChunkListModified(chunks, 5, updatedRdsInfo, newSxmInfo); in testDeltaUpdateChunksModificationsIncluded() 186 verifyChunkListRemoved(chunks, 1, mDabEnsembleIdentifier, mVendorCustomIdentifier); in testDeltaUpdateChunksModificationsIncluded() [all …]
|
/frameworks/base/tools/codegen/src/com/android/codegen/ |
D | FileInfo.kt | 107 val ast = chunk.owner.chunks in <lambda>() 131 is CodeChunk.DataClass -> chunk.chunks.forEach { print(it) } in <lambda>() 208 val chunks: List<CodeChunk>, in <lambda>() constant in com.android.codegen.DataClass 219 val chunks = mutableListOf<CodeChunk>(initial) in <lambda>() constant 223 chunks += DataClass.parse(nestedDataClass) in <lambda>() 224 chunks += Code(lines = classBounds.fileInfo.sourceLines.subList( in <lambda>() 236 chunks += generatedCode in <lambda>() 237 chunks += ClosingBrace in <lambda>() 241 chunks.last = (chunks.last as Code) in <lambda>() 252 chunks += generatedCode in <lambda>() [all …]
|
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/chunking/ |
D | ProtoStoreTest.java | 199 assertThat(mProtoStore.loadProto(TEST_PACKAGE_1).get().chunks.length).isEqualTo(1); in deleteProto_noListingExists_doesNothing() 236 ImmutableMap<ChunkHash, Integer> chunks) { in createChunkListing() argument 242 for (Entry<ChunkHash, Integer> entry : chunks.entrySet()) { in createChunkListing() 248 listing.chunks = chunkProtos.toArray(new ChunksMetadataProto.Chunk[0]); in createChunkListing() 254 assertThat(result.chunks.length).isEqualTo(expected.chunks.length); in assertListingsEqual() 255 for (int i = 0; i < result.chunks.length; i++) { in assertListingsEqual() 257 .that(result.chunks[i].length) in assertListingsEqual() 258 .isEqualTo(expected.chunks[i].length); in assertListingsEqual() 260 .that(result.chunks[i].hash) in assertListingsEqual() 261 .isEqualTo(expected.chunks[i].hash); in assertListingsEqual()
|
D | BackupFileBuilderTest.java | 522 private void setUpOldBackupWithChunks(List<EncryptedChunk> chunks) throws Exception { in setUpOldBackupWithChunks() argument 532 for (EncryptedChunk chunk : chunks) { in setUpOldBackupWithChunks() 543 chunkListing.chunks = knownChunks.toArray(new ChunksMetadataProto.Chunk[0]); in setUpOldBackupWithChunks() 555 assertThat(result.chunks.length).isEqualTo(expected.chunks.length); in assertListingsEqual() 556 for (int i = 0; i < result.chunks.length; i++) { in assertListingsEqual() 558 .that(result.chunks[i].length) in assertListingsEqual() 559 .isEqualTo(expected.chunks[i].length); in assertListingsEqual() 561 .that(result.chunks[i].hash) in assertListingsEqual() 562 .isEqualTo(expected.chunks[i].hash); in assertListingsEqual() 602 chunkListing.chunks = new ChunksMetadataProto.Chunk[3]; in expectedChunkListing() [all …]
|
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/testing/ |
D | CryptoTestUtils.java | 72 ChunksMetadataProto.Chunk... chunks) { in newChunkListing() argument 74 newChunkListingWithoutDocId(fingerprintSalt, cipherType, orderingType, chunks); in newChunkListing() 83 ChunksMetadataProto.Chunk... chunks) { in newChunkListingWithoutDocId() argument 91 chunkListing.chunks = chunks; in newChunkListingWithoutDocId() 128 if (original.chunks == null) { in clone() 131 clonedChunks = new ChunksMetadataProto.Chunk[original.chunks.length]; in clone() 132 for (int i = 0; i < original.chunks.length; i++) { in clone() 133 clonedChunks[i] = clone(original.chunks[i]); in clone()
|
/frameworks/base/packages/BackupEncryption/proto/ |
D | backup_chunks_metadata.proto | 24 // Cipher type with which the chunks are encrypted. For now we only support AES/GCM/NoPadding, but 60 // List of the chunks in the blob, along with the length of each chunk. From this is it possible to 61 // extract individual chunks. (i.e., start position is equal to the sum of the lengths of all 62 // preceding chunks.) 65 // ChunkOrdering for how the device restores the chunks in the correct order. 68 repeated Chunk chunks = 1; field 70 // Cipher algorithm with which the chunks are encrypted. 93 // Ordered start positions of chunks. i.e., the file is the chunk starting at this position, 95 // lengths of the chunks by sorting this list then looking at the start position of the next 96 // chunk after the chunk you care about. This is guaranteed to work as all chunks are [all …]
|
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/chunk/ |
D | ChunkListingMapTest.java | 96 chunkListing.chunks = new ChunksMetadataProto.Chunk[3]; in createFromFixture() 97 chunkListing.chunks[0] = newChunk(CHUNK_A_HASH.getHash(), CHUNK_A_LENGTH); in createFromFixture() 98 chunkListing.chunks[1] = newChunk(CHUNK_B_HASH.getHash(), CHUNK_B_LENGTH); in createFromFixture() 99 chunkListing.chunks[2] = newChunk(CHUNK_C_HASH.getHash(), CHUNK_C_LENGTH); in createFromFixture()
|
/frameworks/base/core/java/android/util/jar/ |
D | StrictJarManifestReader.java | 58 …es(Map<String, Attributes> entries, Map<String, StrictJarManifest.Chunk> chunks) throws IOExceptio… in readEntries() argument 75 if (chunks != null) { in readEntries() 76 if (chunks.get(entryNameValue) != null) { in readEntries() 85 chunks.put(entryNameValue, new StrictJarManifest.Chunk(mark, pos)); in readEntries()
|
D | StrictJarManifest.java | 66 private HashMap<String, Chunk> chunks; field in StrictJarManifest 113 chunks = new HashMap<String, Chunk>(); in StrictJarManifest() 202 im.readEntries(entries, chunks); in read() 239 return chunks.get(name); in getChunk() 243 chunks = null; in removeChunks()
|
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/tasks/ |
D | BackupStreamEncrypterTest.java | 94 List<EncryptedChunk> chunks = result.getNewChunks(); in testBackup_producesNoChunksSmallerThanMinSize() local 97 for (EncryptedChunk chunk : chunks.subList(0, chunks.size() - 2)) { in testBackup_producesNoChunksSmallerThanMinSize() 106 List<EncryptedChunk> chunks = result.getNewChunks(); in testBackup_producesNoChunksLargerThanMaxSize() local 108 for (EncryptedChunk chunk : chunks) { in testBackup_producesNoChunksLargerThanMaxSize() 235 List<EncryptedChunk> chunks) { in chunksIndexedByKey() argument 237 for (EncryptedChunk chunk : chunks) { in chunksIndexedByKey()
|
D | BackupFileDecryptorTaskTest.java | 438 ArrayList<EncryptedChunk> chunks = new ArrayList<>(result.getNewChunks()); in createEncryptedFileUsingExplicitStarts() local 439 Collections.shuffle(chunks); in createEncryptedFileUsingExplicitStarts() 446 for (EncryptedChunk chunk : chunks) { in createEncryptedFileUsingExplicitStarts() 453 int[] starts = new int[chunks.size()]; in createEncryptedFileUsingExplicitStarts() 456 for (int i = 0; i < chunks.size(); i++) { in createEncryptedFileUsingExplicitStarts() 491 List<EncryptedChunk> chunks = new ArrayList<>(result.getNewChunks()); in createEncryptedFileUsingInlineLengths() local 492 System.out.println("we have chunk count " + chunks.size()); in createEncryptedFileUsingInlineLengths() 493 Collections.shuffle(chunks); in createEncryptedFileUsingInlineLengths() 497 for (EncryptedChunk chunk : chunks) { in createEncryptedFileUsingInlineLengths()
|
D | EncryptedKvBackupTaskTest.java | 309 Map<ChunkHash, Integer> chunks) { in createChunkListing() argument 310 ChunksMetadataProto.Chunk[] listingChunks = new ChunksMetadataProto.Chunk[chunks.size()]; in createChunkListing() 312 for (Entry<ChunkHash, Integer> entry : chunks.entrySet()) { in createChunkListing() 341 ChunksMetadataProto.Chunk[] actualChunks = actual.chunks; in assertChunkListingsEqual() 342 ChunksMetadataProto.Chunk[] expectedChunks = expected.chunks; in assertChunkListingsEqual()
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/tasks/ |
D | EncryptedBackupTask.java | 180 for (ChunksMetadataProto.Chunk chunk : chunkListing.chunks) { in getChunkHashes() 187 private static Map<ChunkHash, EncryptedChunk> buildChunkMap(List<EncryptedChunk> chunks) { in buildChunkMap() argument 189 for (EncryptedChunk chunk : chunks) { in buildChunkMap()
|
/frameworks/base/services/core/java/com/android/server/broadcastradio/hal2/ |
D | TunerSession.java | 233 private void dispatchClientUpdateChunks(@Nullable List<ProgramList.Chunk> chunks) { in dispatchClientUpdateChunks() argument 234 if (chunks == null) { in dispatchClientUpdateChunks() 237 for (ProgramList.Chunk chunk : chunks) { in dispatchClientUpdateChunks()
|
D | ProgramInfoCache.java | 267 List<ProgramList.Chunk> chunks = new ArrayList<ProgramList.Chunk>(numChunks); in buildChunks() local 281 chunks.add(new ProgramList.Chunk(purge && i == 0, complete && (i == numChunks - 1), in buildChunks() 284 return chunks; in buildChunks()
|
/frameworks/base/core/java/android/nfc/ |
D | NdefRecord.java | 796 ArrayList<byte[]> chunks = new ArrayList<byte[]>(); in parse() local 850 chunks.clear(); in parse() 855 chunks.add(payload); in parse() 860 for (byte[] p : chunks) { in parse() 866 for (byte[] p : chunks) { in parse()
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/chunk/ |
D | ChunkListingMap.java | 43 for (ChunksMetadataProto.Chunk chunk : chunkListingProto.chunks) { in fromProto()
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/chunking/ |
D | BackupFileBuilder.java | 155 mNewChunkListing.chunks = mKnownChunks.toArray(new ChunksMetadataProto.Chunk[0]); in getNewChunkListing()
|
/frameworks/base/core/proto/android/server/ |
D | jobscheduler.proto | 340 // Length of time used to split an app's top time into chunks. 342 // How much EJ quota to give back to an app based on the number of top app time chunks
|