/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | ImageReaderTest.java | 38 private ImageReader mReader; field in ImageReaderTest 58 mReader = spy(ImageReader.newInstance(DEFAULT_WIDTH, DEFAULT_HEIGHT, DEFAULT_FORMAT, in setUp() 76 mReader.close(); in tearDown() 86 when(mReader.acquireNextImage()).thenReturn(null); in testGetLatestImageEmpty() 87 when(mReader.acquireNextImageNoThrowISE()).thenReturn(null); in testGetLatestImageEmpty() 88 assertEquals(null, mReader.acquireLatestImage()); in testGetLatestImageEmpty() 96 when(mReader.acquireNextImage()).thenReturn(mImage1); in testGetLatestImage1() 97 when(mReader.acquireNextImageNoThrowISE()).thenReturn(null); in testGetLatestImage1() 98 assertEquals(mImage1, mReader.acquireLatestImage()); in testGetLatestImage1() 107 when(mReader.acquireNextImage()).thenReturn(mImage1); in testGetLatestImage2() [all …]
|
/frameworks/base/cmds/hid/src/com/android/commands/hid/ |
D | Event.java | 162 private JsonReader mReader; field in Event.Reader 165 mReader = new JsonReader(in); in Reader() 166 mReader.setLenient(true); in Reader() 171 while (e == null && mReader.peek() != JsonToken.END_DOCUMENT) { in getNextEvent() 174 mReader.beginObject(); in getNextEvent() 175 while (mReader.hasNext()) { in getNextEvent() 176 String name = mReader.nextName(); in getNextEvent() 182 eb.setCommand(mReader.nextString()); in getNextEvent() 188 eb.setName(mReader.nextString()); in getNextEvent() 206 mReader.skipValue(); in getNextEvent() [all …]
|
D | Hid.java | 39 private final Event.Reader mReader; field in Hid 72 mReader = new Event.Reader(new InputStreamReader(in, "UTF-8")); in Hid() 81 while ((e = mReader.getNextEvent()) != null) { in run()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | KernelSingleUidTimeReaderTest.java | 46 private KernelSingleUidTimeReader mReader; field in KernelSingleUidTimeReaderTest 52 mReader = new KernelSingleUidTimeReader(TEST_FREQ_COUNT, mInjector); in setUp() 57 final SparseArray<long[]> allLastCpuTimes = mReader.getLastUidCpuTimeMs(); in readDelta() 60 long[] deltaCpuTimes = mReader.readDeltaMs(TEST_UID); in readDelta() 69 deltaCpuTimes = mReader.readDeltaMs(TEST_UID); in readDelta() 74 deltaCpuTimes = mReader.readDeltaMs(TEST_UID); in readDelta() 88 deltaCpuTimes = mReader.readDeltaMs(TEST_UID); in readDelta() 102 deltaCpuTimes = mReader.readDeltaMs(TEST_UID); in readDelta() 112 assertTrue(mReader.singleUidCpuTimesAvailable()); in readDelta_fileNotAvailable() 113 mReader.readDeltaMs(TEST_UID); in readDelta_fileNotAvailable() [all …]
|
D | KernelCpuUidFreqTimeReaderTest.java | 60 private KernelCpuUidFreqTimeReader mReader; field in KernelCpuUidFreqTimeReaderTest 77 mReader = new KernelCpuUidFreqTimeReader(mTestFile.getAbsolutePath(), in setUp() 99 mReader = new KernelCpuUidFreqTimeReader(mTestFile.getAbsolutePath(), in testReadFreqs_perClusterTimesNotAvailable() 103 long[] actualFreqs = mReader.readFreqs(mPowerProfile); in testReadFreqs_perClusterTimesNotAvailable() 107 assertFalse(errMsg, mReader.perClusterTimesAvailable()); in testReadFreqs_perClusterTimesNotAvailable() 111 actualFreqs = mReader.readFreqs(mPowerProfile); in testReadFreqs_perClusterTimesNotAvailable() 113 assertFalse(errMsg, mReader.perClusterTimesAvailable()); in testReadFreqs_perClusterTimesNotAvailable() 127 mReader = new KernelCpuUidFreqTimeReader(mTestFile.getAbsolutePath(), in testReadFreqs_perClusterTimesAvailable() 131 long[] actualFreqs = mReader.readFreqs(mPowerProfile); in testReadFreqs_perClusterTimesAvailable() 135 assertTrue(errMsg, mReader.perClusterTimesAvailable()); in testReadFreqs_perClusterTimesAvailable() [all …]
|
D | KernelCpuUidUserSysTimeReaderTest.java | 56 private KernelCpuUidTimeReader.KernelCpuUidUserSysTimeReader mReader; field in KernelCpuUidUserSysTimeReaderTest 78 mReader = new KernelCpuUidUserSysTimeReader( in setUp() 91 mReader = new KernelCpuUidUserSysTimeReader( in testThrottler() 93 mReader.setThrottle(500); in testThrottler() 96 mReader.readDelta(mCallback); in testThrottler() 102 mReader.readDelta(mCallback); in testThrottler() 110 mReader.readDelta(mCallback); in testThrottler() 116 mReader.readDelta(mCallback); in testThrottler() 124 mReader.readDelta(mCallback); in testReadDelta() 134 mReader.readDelta(mCallback); in testReadDelta() [all …]
|
D | KernelWakelockReaderTest.java | 61 private KernelWakelockReader mReader; field in KernelWakelockReaderTest 66 mReader = new KernelWakelockReader(); in setUp() 71 KernelWakelockStats staleStats = mReader.parseProcWakelocks(new byte[0], 0, true, in testParseEmptyFile() 79 KernelWakelockStats staleStats = mReader.parseProcWakelocks(buffer, buffer.length, true, in testOnlyHeader() 89 KernelWakelockStats staleStats = mReader.parseProcWakelocks(buffer, buffer.length, true, in testOneWakelock() 105 KernelWakelockStats staleStats = mReader.parseProcWakelocks(buffer, buffer.length, true, in testTwoWakelocks() 118 KernelWakelockStats staleStats = mReader.parseProcWakelocks(buffer, buffer.length, true, in testDuplicateWakelocksAccumulate() 135 staleStats = mReader.parseProcWakelocks(buffer, buffer.length, true, staleStats); in testWakelocksBecomeStale() 143 staleStats = mReader.parseProcWakelocks(buffer, buffer.length, true, staleStats); in testWakelocksBecomeStale()
|
D | KernelCpuUidActiveTimeReaderTest.java | 53 private KernelCpuUidActiveTimeReader mReader; field in KernelCpuUidActiveTimeReaderTest 69 mReader = new KernelCpuUidActiveTimeReader( in setUp() 84 mReader.readDelta(mCallback); in testReadDelta() 94 mReader.readDelta(mCallback); in testReadDelta() 102 mReader.readDelta(mCallback); in testReadDelta() 109 mReader.readDelta(null); in testReadDelta() 117 mReader.readDelta(mCallback); in testReadDelta() 129 mReader.readAbsolute(mCallback); in testReadAbsolute() 139 mReader.readAbsolute(mCallback); in testReadAbsolute() 151 mReader.readDelta(mCallback); in testReadDeltaDecreasedTime() [all …]
|
D | KernelCpuUidClusterTimeReaderTest.java | 55 private KernelCpuUidClusterTimeReader mReader; field in KernelCpuUidClusterTimeReaderTest 71 mReader = new KernelCpuUidClusterTimeReader( in setUp() 86 mReader.readDelta(mCallback); in testReadDelta() 96 mReader.readDelta(mCallback); in testReadDelta() 104 mReader.readDelta(mCallback); in testReadDelta() 111 mReader.readDelta(null); in testReadDelta() 119 mReader.readDelta(mCallback); in testReadDelta() 131 mReader.readAbsolute(mCallback); in testReadAbsolute() 141 mReader.readAbsolute(mCallback); in testReadAbsolute() 153 mReader.readDelta(mCallback); in testReadDeltaDecreasedTime() [all …]
|
D | KernelCpuProcStringReaderTest.java | 65 private KernelCpuProcStringReader mReader; field in KernelCpuProcStringReaderTest 76 mReader = new KernelCpuProcStringReader(mTestFile.getAbsolutePath()); in setUp() 91 assertEquals(null, mReader.open()); in testReadInvalidFile() 100 try (KernelCpuProcStringReader.ProcFileIterator iter = mReader.open()) { in testReadErrorsLimit() 109 try (KernelCpuProcStringReader.ProcFileIterator iter = mReader.open()) { in testReadErrorsLimit() 115 try (KernelCpuProcStringReader.ProcFileIterator iter = mReader.open(true)) { in testReadErrorsLimit() 123 try (KernelCpuProcStringReader.ProcFileIterator iter = mReader.open(true)) { in testReadErrorsLimit() 144 try (KernelCpuProcStringReader.ProcFileIterator iter = mReader.open()) { in testReadLine() 179 try (KernelCpuProcStringReader.ProcFileIterator iter = mReader.open(true)) { in testMultipleRead() 196 try (KernelCpuProcStringReader.ProcFileIterator iter = mReader.open()) { in testReadLineToArray() [all …]
|
/frameworks/base/core/tests/coretests/src/android/metrics/ |
D | MetricsReaderTest.java | 68 MetricsReader mReader = new MetricsReader(); field in MetricsReaderTest 72 mReader.setLogReader(mLogReader); in setUp() 76 mReader.read(0); in testNonBlockingRead() 79 assertTrue(mReader.hasNext()); in testNonBlockingRead() 80 LogMaker log = mReader.next(); in testNonBlockingRead() 86 mReader.read(0); in testReset() 87 while (mReader.hasNext()) { in testReset() 88 mReader.next(); in testReset() 90 mReader.reset(); in testReset() 92 assertTrue(mReader.hasNext()); in testReset() [all …]
|
/frameworks/base/core/java/android/se/omapi/ |
D | Reader.java | 45 private ISecureElementReader mReader; field in Reader 55 mReader = reader; in Reader() 98 session = mReader.openSession(); in openSession() 123 return mReader.isSecureElementPresent(); in isSecureElementPresent() 149 mReader.closeSessions(); in closeSessions()
|
D | Session.java | 46 private final Reader mReader; field in Session 56 mReader = reader; in Session() 66 return mReader; in getReader() 208 mReader.getSEService().getListener()); in openBasicChannel() 315 mReader.getSEService().getListener()); in openLogicalChannel()
|
/frameworks/av/media/ndk/ |
D | NdkImageReaderPriv.h | 109 CallbackHandler(AImageReader* reader) : mReader(reader) {} in CallbackHandler() 112 AImageReader* mReader; 129 explicit FrameListener(AImageReader* parent) : mReader(parent) {} in FrameListener() 137 wp<AImageReader> mReader; member 144 explicit BufferRemovedListener(AImageReader* parent) : mReader(parent) {} in BufferRemovedListener() 152 wp<AImageReader> mReader; member
|
D | NdkImagePriv.h | 75 wp<AImageReader> mReader; member
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | NavigationBarButtonTest.java | 54 private ImageReader mReader; field in NavigationBarButtonTest 76 mReader = ImageReader.newInstance(displayInfo.logicalWidth, in createVirtualDisplay() 79 assertNotNull("ImageReader must not be null", mReader); in createVirtualDisplay() 82 displayInfo.logicalHeight, displayInfo.logicalDensityDpi, mReader.getSurface(), in createVirtualDisplay() 119 mReader.close(); in releaseDisplay()
|
/frameworks/wilhelm/src/itf/ |
D | IOutputMixExt.cpp | 78 track->mReader = NULL; in track_check() 111 track->mReader = oldFront->mBuffer; in track_check() 138 track->mReader = oldFront->mBuffer; in track_check() 235 assert(NULL != track->mReader); in IOutputMixExt_FillBuffer() 237 const stereo *source = (const stereo *) track->mReader; in IOutputMixExt_FillBuffer() 263 memcpy(dstWriter, track->mReader, actual); in IOutputMixExt_FillBuffer() 270 track->mReader = (char *) track->mReader + actual; in IOutputMixExt_FillBuffer() 291 track->mReader = newFront->mBuffer; in IOutputMixExt_FillBuffer() 417 track->mReader = NULL; in IOutputMixExt_checkAudioPlayerSourceSink()
|
/frameworks/base/core/java/android/metrics/ |
D | MetricsReader.java | 45 private LogReader mReader = new LogReader(); field in MetricsReader 55 mReader = reader; in setLogReader() 79 mReader.readEvents(LOGTAGS, horizonMs, nativeEvents); in read() 117 mReader.writeCheckpoint(mCheckpointTag); in checkpoint()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | KernelCpuUidTimeReader.java | 58 final KernelCpuProcStringReader mReader; field in KernelCpuUidTimeReader 77 mReader = reader; in KernelCpuUidTimeReader() 203 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readDeltaImpl() 241 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readAbsoluteImpl() 427 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readDeltaImpl() 467 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readAbsoluteImpl() 557 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readDeltaImpl() 586 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readAbsoluteImpl() 677 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readDeltaImpl() 716 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readAbsoluteImpl()
|
D | KernelCpuThreadReaderDiff.java | 82 private final KernelCpuThreadReader mReader; field in KernelCpuThreadReaderDiff 102 mReader = reader; in KernelCpuThreadReaderDiff() 118 mReader.getProcessCpuUsage(); in getProcessCpuUsageDiffed() 142 return mReader.getCpuFrequenciesKhz(); in getCpuFrequenciesKhz()
|
/frameworks/native/services/inputflinger/ |
D | InputManager.cpp | 38 mReader = createInputReader(readerPolicy, mClassifier); in InputManager() 47 mReaderThread = new InputReaderThread(mReader); in initialize() 84 return mReader; in getReader()
|
D | InputReaderBase.cpp | 39 Thread(/*canCallJava*/ true), mReader(reader) { in InputReaderThread() 46 mReader->loopOnce(); in threadLoop()
|
/frameworks/opt/vcard/java/com/android/vcard/ |
D | VCardParserImpl_V30.java | 68 return mReader.peekLine(); in peekLine() 79 return mReader.readLine(); in getLine() 91 while ((line = mReader.readLine()) != null) { in getNonEmptyLine()
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
D | ComposerHal.cpp | 349 mReader.takeChangedCompositionTypes(display, outLayers, outTypes); in getChangedCompositionTypes() 448 mReader.takeDisplayRequests(display, outDisplayRequestMask, in getDisplayRequests() 535 mReader.takeReleaseFences(display, outLayers, outReleaseFences); in getReleaseFences() 549 mReader.takePresentFence(display, outPresentFence); in presentDisplay() 654 mReader.hasChanges(display, outNumTypes, outNumRequests); in validateDisplay() 669 mReader.takePresentOrValidateStage(display, state); in presentOrValidateDisplay() 672 mReader.takePresentFence(display, outPresentFence); in presentOrValidateDisplay() 676 mReader.hasChanges(display, outNumTypes, outNumRequests); in presentOrValidateDisplay() 880 mReader.setMQDescriptor(tmpDescriptor); in execute() 888 if (mReader.readQueue(tmpOutLength, tmpOutHandles)) { in execute() [all …]
|
/frameworks/wilhelm/src/desktop/ |
D | OutputMixExt.h | 40 const void *mReader; ///< Pointer to next frame in BufferHeader.mBuffer member
|