/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | ProcFileReaderTest.java | 31 final ProcFileReader reader = buildReader(""); in testEmpty() local 33 assertFalse(reader.hasMoreData()); in testEmpty() 35 reader.finishLine(); in testEmpty() 40 assertFalse(reader.hasMoreData()); in testEmpty() 44 final ProcFileReader reader = buildReader("a\nb\nc\n"); in testSingleString() local 46 assertEquals("a", reader.nextString()); in testSingleString() 47 reader.finishLine(); in testSingleString() 48 assertTrue(reader.hasMoreData()); in testSingleString() 50 assertEquals("b", reader.nextString()); in testSingleString() 51 reader.finishLine(); in testSingleString() [all …]
|
D | FileRotatorTest.java | 79 final RecordingReader reader = new RecordingReader(); in testEmpty() local 83 rotate1.combineActive(reader, writer("foo"), currentTime); in testEmpty() 84 reader.assertRead(); in testEmpty() 95 final RecordingReader reader = new RecordingReader(); in testCombine() local 99 rotate.combineActive(reader, writer("foo"), currentTime); in testCombine() 100 reader.assertRead(); in testCombine() 106 reader.reset(); in testCombine() 107 rotate.combineActive(reader, writer("bar"), currentTime); in testCombine() 108 reader.assertRead("foo"); in testCombine() 116 final RecordingReader reader = new RecordingReader(); in testRotate() local [all …]
|
/frameworks/av/media/libstagefright/ |
D | HevcUtils.cpp | 156 NALBitReader reader(data, size); in parseVps() local 158 reader.skipBits(4); in parseVps() 160 reader.skipBits(1); in parseVps() 162 reader.skipBits(1); in parseVps() 164 reader.skipBits(6); in parseVps() 166 reader.skipBits(1); in parseVps() 168 reader.skipBits(16); in parseVps() 170 if (reader.atLeastNumBitsLeft(96)) { in parseVps() 171 mParams.add(kGeneralProfileSpace, reader.getBits(2)); in parseVps() 172 mParams.add(kGeneralTierFlag, reader.getBits(1)); in parseVps() [all …]
|
/frameworks/base/libs/androidfw/tests/ |
D | BackupData_test.cpp | 85 BackupDataReader* reader = new BackupDataReader(fd); in TEST_F() local 86 EXPECT_EQ(NO_ERROR, reader->Status()) in TEST_F() 91 reader->ReadNextHeader(&done, &type); in TEST_F() 97 EXPECT_EQ(NO_ERROR, reader->ReadEntityHeader(&key, &dataSize)) in TEST_F() 105 EXPECT_EQ((int) dataSize, reader->ReadEntityData(dataBytes, dataSize)) in TEST_F() 113 delete reader; in TEST_F() 126 BackupDataReader* reader = new BackupDataReader(fd); in TEST_F() local 134 reader->ReadNextHeader(&done, &type); in TEST_F() 135 reader->ReadEntityHeader(&key, &dataSize); in TEST_F() 137 reader->ReadEntityData(dataBytes, dataSize); in TEST_F() [all …]
|
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
D | JsonParser.java | 41 public static JSONObject parse(JsonReader reader) throws IOException, JSONException { in parse() argument 45 reader.beginObject(); in parse() 46 while (reader.hasNext()) { in parse() 47 String fieldName = reader.nextName(); in parse() 51 reader.skipValue(); in parse() 55 JsonToken token = reader.peek(); in parse() 57 output.put(fieldName, new JSONArray(parseArray(reader))); in parse() 59 output.put(fieldName, reader.nextString()); in parse() 62 output.put(fieldName, parse(reader)); in parse() 67 reader.skipValue(); in parse() [all …]
|
D | StatementParser.java | 46 JsonReader reader = new JsonReader(new StringReader(statementList)); in parseStatementList() local 47 reader.setLenient(false); in parseStatementList() 49 reader.beginArray(); in parseStatementList() 50 while (reader.hasNext()) { in parseStatementList() 53 result = parseStatement(reader, source); in parseStatementList() 61 reader.endArray(); in parseStatementList() 71 JsonReader reader = new JsonReader(new StringReader(statementString)); in parseStatement() local 72 reader.setLenient(false); in parseStatement() 73 return parseStatement(reader, source); in parseStatement() 80 static ParsedStatement parseStatement(JsonReader reader, AbstractAsset source) in parseStatement() argument [all …]
|
D | AbstractAsset.java | 71 JsonReader reader = new JsonReader(new StringReader(assetJson)); in create() local 72 reader.setLenient(false); in create() 74 return AssetFactory.create(JsonParser.parse(reader)); in create()
|
/frameworks/av/include/ndk/ |
D | NdkImageReader.h | 91 /*out*/AImageReader** reader); 103 void AImageReader_delete(AImageReader* reader); 117 media_status_t AImageReader_getWindow(AImageReader* reader, /*out*/ANativeWindow** window); 133 media_status_t AImageReader_getWidth(const AImageReader* reader, /*out*/int32_t* width); 149 media_status_t AImageReader_getHeight(const AImageReader* reader, /*out*/int32_t* height); 162 media_status_t AImageReader_getFormat(const AImageReader* reader, /*out*/int32_t* format); 175 media_status_t AImageReader_getMaxImages(const AImageReader* reader, /*out*/int32_t* maxImages); 211 media_status_t AImageReader_acquireNextImage(AImageReader* reader, /*out*/AImage** image); 255 media_status_t AImageReader_acquireLatestImage(AImageReader* reader, /*out*/AImage** image); 265 typedef void (*AImageReader_ImageCallback)(void* context, AImageReader* reader); [all …]
|
/frameworks/base/core/java/com/android/internal/net/ |
D | NetworkStatsFactory.java | 104 ProcFileReader reader = null; in readNetworkStatsSummaryDev() local 106 reader = new ProcFileReader(new FileInputStream(mStatsXtIfaceAll)); in readNetworkStatsSummaryDev() 108 while (reader.hasMoreData()) { in readNetworkStatsSummaryDev() 109 entry.iface = reader.nextString(); in readNetworkStatsSummaryDev() 114 final boolean active = reader.nextInt() != 0; in readNetworkStatsSummaryDev() 117 entry.rxBytes = reader.nextLong(); in readNetworkStatsSummaryDev() 118 entry.rxPackets = reader.nextLong(); in readNetworkStatsSummaryDev() 119 entry.txBytes = reader.nextLong(); in readNetworkStatsSummaryDev() 120 entry.txPackets = reader.nextLong(); in readNetworkStatsSummaryDev() 124 entry.rxBytes += reader.nextLong(); in readNetworkStatsSummaryDev() [all …]
|
/frameworks/av/media/ndk/ |
D | NdkImageReader.cpp | 94 sp<AImageReader> reader = mReader.promote(); in onFrameAvailable() local 95 if (reader == nullptr) { in onFrameAvailable() 103 sp<AMessage> msg = new AMessage(AImageReader::kWhatImageAvailable, reader->mHandler); in onFrameAvailable() 124 sp<AImageReader> reader = mReader.promote(); in onBufferFreed() local 125 if (reader == nullptr) { in onBufferFreed() 139 sp<AMessage> msg = new AMessage(AImageReader::kWhatBufferRemoved, reader->mHandler); in onBufferFreed() 579 /*out*/AImageReader** reader) { in AImageReader_new() argument 582 width, height, format, AHARDWAREBUFFER_USAGE_CPU_READ_OFTEN, maxImages, reader); in AImageReader_new() 588 int32_t maxImages, /*out*/ AImageReader** reader) { in AImageReader_newWithUsage() argument 615 if (reader == nullptr) { in AImageReader_newWithUsage() [all …]
|
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/ |
D | serialization.h | 1087 inline ErrorType ReadRawDataFromNextSection(void* dest, MessageReader* reader, 1097 reader->ConsumeReadBufferSectionData(AdvancePointer(start, remaining_size)); 1098 std::tie(start, end) = reader->GetNextReadBufferSection(); 1129 inline ErrorType DeserializeRaw(T* value, MessageReader* reader, 1131 return ReadRawData(value, reader, start, end, sizeof(T)); 1138 ErrorType DeserializeValue(RealType* real_value, MessageReader* reader, 1142 DeserializeRaw(&serialized_value, reader, start, end)) { 1151 MessageReader* reader, const void*& start, 1153 return DeserializeRaw(encoding, reader, start, end); 1157 inline ErrorType DeserializeObject(bool* value, MessageReader* reader, [all …]
|
D | argument_encoder.h | 110 explicit ArgumentDecoder(MessageReader* reader) : reader_{reader} {} in ArgumentDecoder() argument 131 explicit ArgumentDecoder(MessageReader* reader) : reader_{reader} {} in ArgumentDecoder() argument 153 Return (*)(Args...), MessageReader* reader) { in MakeArgumentDecoder() argument 154 return ArgumentDecoder<Return(Args...)>(reader); in MakeArgumentDecoder() 161 Return (Class::*)(Args...), MessageReader* reader) { in MakeArgumentDecoder() argument 162 return ArgumentDecoder<Return(Args...)>(reader); in MakeArgumentDecoder() 169 Return (Class::*)(Args...) const, MessageReader* reader) { in MakeArgumentDecoder() argument 170 return ArgumentDecoder<Return(Args...)>(reader); in MakeArgumentDecoder() 176 inline ArgumentDecoder<Signature> MakeArgumentDecoder(MessageReader* reader) { in MakeArgumentDecoder() argument 177 return ArgumentDecoder<Signature>(reader); in MakeArgumentDecoder()
|
/frameworks/support/emoji/core/src/android/support/text/emoji/ |
D | MetadataListReader.java | 90 final OpenTypeReader reader = new ByteBufferReader(newBuffer); in read() local 91 final OffsetInfo offsetInfo = findOffsetInfo(reader); in read() 118 private static OffsetInfo findOffsetInfo(OpenTypeReader reader) throws IOException { in findOffsetInfo() argument 120 reader.skip(OpenTypeReader.UINT32_BYTE_COUNT); in findOffsetInfo() 122 final int tableCount = reader.readUnsignedShort(); in findOffsetInfo() 128 reader.skip(OpenTypeReader.UINT16_BYTE_COUNT * 3); in findOffsetInfo() 132 final int tag = reader.readTag(); in findOffsetInfo() 134 reader.skip(OpenTypeReader.UINT32_BYTE_COUNT); in findOffsetInfo() 135 final long offset = reader.readUnsignedInt(); in findOffsetInfo() 137 reader.skip(OpenTypeReader.UINT32_BYTE_COUNT); in findOffsetInfo() [all …]
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | FrameType.java | 322 static FrameType tryMerge(FrameType writer, FrameType reader) { in tryMerge() argument 324 return reader; in tryMerge() 325 } else if (reader.mElementId == ELEMENT_DONTCARE) { in tryMerge() 327 } else if (writer.mElementId == ELEMENT_OBJECT && reader.mElementId == ELEMENT_OBJECT) { in tryMerge() 328 return tryMergeObjectTypes(writer, reader); in tryMerge() 329 } else if (writer.mDimensions > 0 && writer.mElementId == reader.mElementId) { in tryMerge() 330 return tryMergeBuffers(writer, reader); in tryMerge() 336 static FrameType tryMergeObjectTypes(FrameType writer, FrameType reader) { in tryMergeObjectTypes() argument 337 int dimensions = Math.max(writer.mDimensions, reader.mDimensions); in tryMergeObjectTypes() 338 Class<?> mergedClass = mergeClasses(writer.mClass, reader.mClass); in tryMergeObjectTypes() [all …]
|
D | GraphReader.java | 456 XMLReader reader = getReaderForCommandStack(commandStack); in parseString() local 457 reader.parse(new InputSource(new StringReader(graphString))); in parseString() 466 XMLReader reader = getReaderForCommandStack(commandStack); in parseInput() local 467 reader.parse(new InputSource(inputStream)); in parseInput() 476 XMLReader reader = parser.getXMLReader(); in getReaderForCommandStack() local 478 reader.setContentHandler(graphHandler); in getReaderForCommandStack() 479 return reader; in getReaderForCommandStack() 558 XmlGraphReader reader = new XmlGraphReader(); in getBuilderForXmlString() local 560 reader.parseString(source, commands); in getBuilderForXmlString() 569 XmlGraphReader reader = new XmlGraphReader(); in getBuilderForXmlResource() local [all …]
|
/frameworks/base/core/java/android/util/ |
D | Xml.java | 55 XMLReader reader = new ExpatReader(); in parse() local 56 reader.setContentHandler(contentHandler); in parse() 57 reader.parse(new InputSource(new StringReader(xml))); in parse() 69 XMLReader reader = new ExpatReader(); in parse() local 70 reader.setContentHandler(contentHandler); in parse() 71 reader.parse(new InputSource(in)); in parse() 80 XMLReader reader = new ExpatReader(); in parse() local 81 reader.setContentHandler(contentHandler); in parse() 84 reader.parse(source); in parse()
|
/frameworks/base/core/jni/ |
D | android_backup_BackupDataInput.cpp | 56 BackupDataReader* reader = (BackupDataReader*)r; in readNextHeader_native() local 60 err = reader->ReadNextHeader(&done, &type); in readNextHeader_native() 74 err = reader->ReadEntityHeader(&key, &dataSize); in readNextHeader_native() 97 BackupDataReader* reader = (BackupDataReader*)r; in readEntityData_native() local 109 err = reader->ReadEntityData(dataBytes+offset, size); in readEntityData_native() 120 BackupDataReader* reader = (BackupDataReader*)r; in skipEntityData_native() local 122 err = reader->SkipEntityData(); in skipEntityData_native()
|
/frameworks/compile/mclinker/unittests/ |
D | ELFBinaryReaderTest.cpp | 46 ELFBinaryReader* reader = new ELFBinaryReader(builder, config); in TEST_F() local 52 ASSERT_TRUE(reader->isMyFormat(input, doContinue)); in TEST_F() 55 ASSERT_FALSE(reader->isMyFormat(input, doContinue)); in TEST_F() 57 delete reader; in TEST_F()
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ |
D | WifiConnectionTest.java | 91 BufferedReader reader = null; in loadConfigurations() local 93 reader = new BufferedReader(new FileReader(new File(WIFI_CONFIG_FILE))); in loadConfigurations() 96 while ((line = reader.readLine()) != null) { in loadConfigurations() 103 if (reader != null) { in loadConfigurations() 105 reader.close(); in loadConfigurations()
|
/frameworks/base/libs/androidfw/ |
D | ZipUtils.cpp | 54 /*static*/ template<typename T> bool inflateToBuffer(T& reader, void* buf, in inflateToBuffer() argument 110 const unsigned long nextSize = reader.read(&nextBuffer, getSize); in inflateToBuffer() 219 FileReader reader(fp); in inflateToBuffer() local 220 return ::inflateToBuffer<FileReader>(reader, buf, in inflateToBuffer() 227 FdReader reader(fd); in inflateToBuffer() local 228 return ::inflateToBuffer<FdReader>(reader, buf, in inflateToBuffer() 235 BufferReader reader(in, compressedLen); in inflateToBuffer() local 236 return ::inflateToBuffer<BufferReader>(reader, buf, in inflateToBuffer()
|
/frameworks/base/tools/layoutlib/create/tests/com/android/tools/layoutlib/create/ |
D | PromoteClassClassAdapterTest.java | 121 ClassReader reader = new ClassReader(PrivateClass.class.getName()); in testInnerClassPromotion() local 131 reader.accept(adapter, 0); in testInnerClassPromotion() 141 reader = new ClassReader(ClassWithPrivateInnerClass.class.getName()); in testInnerClassPromotion() 142 reader.accept(adapter, 0); in testInnerClassPromotion() 155 ClassReader reader = new ClassReader(PackageProtectedClass.class.getName()); in testProtectedClassPromotion() local 164 reader.accept(adapter, 0); in testProtectedClassPromotion()
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/io/ |
D | TextGraphReader.java | 49 public void execute(TextGraphReader reader) throws GraphIOException; in execute() argument 60 public void execute(TextGraphReader reader) throws GraphIOException { in execute() argument 62 reader.mFactory.addPackage(mPackageName); in execute() 77 public void execute(TextGraphReader reader) { in execute() argument 78 reader.mFactory.addFilterLibrary(mLibraryName); in execute() 91 public void execute(TextGraphReader reader) throws GraphIOException { in execute() argument 95 filter = reader.mFactory.createFilterByClassName(mClassName, mFilterName); in execute() 101 reader.mCurrentFilter = filter; in execute() 113 public void execute(TextGraphReader reader) throws GraphIOException { in execute() argument 114 Filter filter = reader.mCurrentFilter; in execute() [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | KernelUidCpuFreqTimeReader.java | 66 try (BufferedReader reader = new BufferedReader(new FileReader(UID_TIMES_PROC_FILE))) { in readDelta() argument 67 readDelta(reader, callback); in readDelta() 80 public void readDelta(BufferedReader reader, @Nullable Callback callback) throws IOException { in readDelta() argument 81 String line = reader.readLine(); in readDelta() 86 while ((line = reader.readLine()) != null) { in readDelta()
|
D | KernelMemoryBandwidthStats.java | 41 try (BufferedReader reader = new BufferedReader(new FileReader(mSysfsFile))) { in updateStats() argument 42 parseStats(reader); in updateStats() 56 public void parseStats(BufferedReader reader) throws IOException { in parseStats() argument 60 while ((line = reader.readLine()) != null) { in parseStats()
|
/frameworks/base/cmds/backup/ |
D | backup.cpp | 63 BackupDataReader reader(fd); in perform_list() local 67 while (reader.ReadNextHeader(&done, &type) == 0) { in perform_list() 76 err = reader.ReadEntityHeader(&key, &dataSize); in perform_list()
|