Home
last modified time | relevance | path

Searched refs:mReader (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DImageReaderTest.java38 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/
DEvent.java162 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 …]
DHid.java39 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/android/metrics/
DMetricsReaderTest.java68 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/tests/coretests/src/com/android/internal/os/
DKernelSingleUidTimeReaderTest.java49 private KernelSingleUidTimeReader mReader; field in KernelSingleUidTimeReaderTest
65 mReader = new KernelSingleUidTimeReader(TEST_FREQ_COUNT, mInjector); in setUp()
70 final SparseArray<long[]> allLastCpuTimes = mReader.getLastUidCpuTimeMs(); in readDelta()
73 long[] deltaCpuTimes = mReader.readDeltaMs(TEST_UID); in readDelta()
82 deltaCpuTimes = mReader.readDeltaMs(TEST_UID); in readDelta()
87 deltaCpuTimes = mReader.readDeltaMs(TEST_UID); in readDelta()
101 deltaCpuTimes = mReader.readDeltaMs(TEST_UID); in readDelta()
115 deltaCpuTimes = mReader.readDeltaMs(TEST_UID); in readDelta()
125 assertTrue(mReader.singleUidCpuTimesAvailable()); in readDelta_fileNotAvailable()
126 mReader.readDeltaMs(TEST_UID); in readDelta_fileNotAvailable()
[all …]
DKernelCpuUidBpfMapReaderTest.java55 private KernelCpuUidTestBpfMapReader mReader; field in KernelCpuUidBpfMapReaderTest
63 mReader = new KernelCpuUidTestBpfMapReader(); in setUp()
71 assertEquals(null, mReader.open()); in testUnsuccessfulRead()
80 try (BpfMapIterator iter = mReader.open()) { in testReadErrorsLimit()
88 mReader.setData(data); in testReadErrorsLimit()
91 mReader.setData(null); in testReadErrorsLimit()
93 try (BpfMapIterator iter = mReader.open(true)) { in testReadErrorsLimit()
97 mReader.setData(data); in testReadErrorsLimit()
98 try (BpfMapIterator iter = mReader.open(true)) { in testReadErrorsLimit()
107 mReader.setData(data); in testGetNextUid()
[all …]
DKernelCpuUidFreqTimeReaderTest.java62 private KernelCpuUidFreqTimeReader mReader; field in KernelCpuUidFreqTimeReaderTest
91 mReader = new KernelCpuUidFreqTimeReader(mTestFile.getAbsolutePath(), in setUp()
113 mReader = new KernelCpuUidFreqTimeReader(mTestFile.getAbsolutePath(), in testReadFreqs_perClusterTimesNotAvailable()
117 long[] actualFreqs = mReader.readFreqs(mPowerProfile); in testReadFreqs_perClusterTimesNotAvailable()
121 assertFalse(errMsg, mReader.perClusterTimesAvailable()); in testReadFreqs_perClusterTimesNotAvailable()
125 actualFreqs = mReader.readFreqs(mPowerProfile); in testReadFreqs_perClusterTimesNotAvailable()
127 assertFalse(errMsg, mReader.perClusterTimesAvailable()); in testReadFreqs_perClusterTimesNotAvailable()
141 mReader = new KernelCpuUidFreqTimeReader(mTestFile.getAbsolutePath(), in testReadFreqs_perClusterTimesAvailable()
145 long[] actualFreqs = mReader.readFreqs(mPowerProfile); in testReadFreqs_perClusterTimesAvailable()
149 assertTrue(errMsg, mReader.perClusterTimesAvailable()); in testReadFreqs_perClusterTimesAvailable()
[all …]
DKernelCpuUidUserSysTimeReaderTest.java56 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 …]
DKernelCpuUidActiveTimeReaderTest.java57 private KernelCpuUidActiveTimeReader mReader; field in KernelCpuUidActiveTimeReaderTest
85 mReader = new KernelCpuUidActiveTimeReader( in setUp()
100 mReader.readDelta(mCallback); in testReadDelta()
110 mReader.readDelta(mCallback); in testReadDelta()
118 mReader.readDelta(mCallback); in testReadDelta()
125 mReader.readDelta(null); in testReadDelta()
134 mReader.readDelta(mCallback); in testReadDelta()
146 mReader.readAbsolute(mCallback); in testReadAbsolute()
156 mReader.readAbsolute(mCallback); in testReadAbsolute()
168 mReader.readDelta(mCallback); in testReadDeltaDecreasedTime()
[all …]
DKernelCpuUidClusterTimeReaderTest.java58 private KernelCpuUidClusterTimeReader mReader; field in KernelCpuUidClusterTimeReaderTest
87 mReader = new KernelCpuUidClusterTimeReader( in setUp()
103 mReader.readDelta(mCallback); in testReadDelta()
113 mReader.readDelta(mCallback); in testReadDelta()
121 mReader.readDelta(mCallback); in testReadDelta()
128 mReader.readDelta(null); in testReadDelta()
136 mReader.readDelta(mCallback); in testReadDelta()
148 mReader.readAbsolute(mCallback); in testReadAbsolute()
158 mReader.readAbsolute(mCallback); in testReadAbsolute()
170 mReader.readDelta(mCallback); in testReadDeltaDecreasedTime()
[all …]
DKernelCpuProcStringReaderTest.java65 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 …]
DKernelWakelockReaderTest.java85 mReader.updateVersion(staleStats); in readKernelWakelockStats()
86 mReader.parseProcWakelocks(buffer, buffer.length, true, staleStats); in readKernelWakelockStats()
87 mReader.updateWakelockStats(wlStats, staleStats); in readKernelWakelockStats()
88 return mReader.removeOldStats(staleStats); in readKernelWakelockStats()
91 private KernelWakelockReader mReader; field in KernelWakelockReaderTest
96 mReader = new KernelWakelockReader(); in setUp()
102 KernelWakelockStats staleStats = mReader.parseProcWakelocks(new byte[0], 0, true, in testParseEmptyFile()
112 KernelWakelockStats staleStats = mReader.parseProcWakelocks(buffer, buffer.length, true, in testOnlyHeader()
124 KernelWakelockStats staleStats = mReader.parseProcWakelocks(buffer, buffer.length, true, in testOneWakelock()
143 KernelWakelockStats staleStats = mReader.parseProcWakelocks(buffer, buffer.length, true, in testTwoWakelocks()
[all …]
/frameworks/base/core/java/android/se/omapi/
DReader.java47 private ISecureElementReader mReader; field in Reader
57 mReader = reader; in Reader()
100 session = mReader.openSession(); in openSession()
125 return mReader.isSecureElementPresent(); in isSecureElementPresent()
151 mReader.closeSessions(); in closeSessions()
172 return mReader.reset(); in reset()
DSession.java46 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/
DNdkImageReaderPriv.h110 CallbackHandler(AImageReader* reader) : mReader(reader) {} in CallbackHandler()
113 AImageReader* mReader;
130 explicit FrameListener(AImageReader* parent) : mReader(parent) {} in FrameListener()
138 const wp<AImageReader> mReader; member
145 explicit BufferRemovedListener(AImageReader* parent) : mReader(parent) {} in BufferRemovedListener()
153 const wp<AImageReader> mReader; member
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DNavigationBarButtonTest.java54 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/
DIOutputMixExt.cpp78 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/native/services/inputflinger/reader/
DInputReader.cpp704 InputReader::ContextImpl::ContextImpl(InputReader* reader) : mReader(reader) {} in ContextImpl()
708 mReader->updateGlobalMetaStateLocked(); in updateGlobalMetaState()
713 return mReader->getGlobalMetaStateLocked(); in getGlobalMetaState()
718 mReader->disableVirtualKeysUntilLocked(time); in disableVirtualKeysUntil()
724 return mReader->shouldDropVirtualKeyLocked(now, device, keyCode, scanCode); in shouldDropVirtualKey()
729 mReader->fadePointerLocked(); in fadePointer()
734 mReader->requestTimeoutAtTimeLocked(when); in requestTimeoutAtTime()
739 return mReader->bumpGenerationLocked(); in bumpGeneration()
744 mReader->getExternalStylusDevicesLocked(outDevices); in getExternalStylusDevices()
748 mReader->dispatchExternalStylusState(state); in dispatchExternalStylusState()
[all …]
/frameworks/base/core/java/android/metrics/
DMetricsReader.java45 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/native/services/inputflinger/
DInputManager.cpp40 mReader = createInputReader(readerPolicy, mClassifier); in InputManager()
49 mReaderThread = new InputReaderThread(mReader); in initialize()
86 return mReader; in getReader()
DInputReaderBase.cpp39 Thread(/*canCallJava*/ true), mReader(reader) { in InputReaderThread()
46 mReader->loopOnce(); in threadLoop()
/frameworks/base/core/java/com/android/internal/os/
DKernelCpuThreadReaderDiff.java82 private final KernelCpuThreadReader mReader; field in KernelCpuThreadReaderDiff
102 mReader = reader; in KernelCpuThreadReaderDiff()
118 mReader.getProcessCpuUsage(); in getProcessCpuUsageDiffed()
142 return mReader.getCpuFrequenciesKhz(); in getCpuFrequenciesKhz()
DKernelCpuUidTimeReader.java59 final KernelCpuProcStringReader mReader; field in KernelCpuUidTimeReader
80 mReader = reader; in KernelCpuUidTimeReader()
216 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readDeltaImpl()
254 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readAbsoluteImpl()
497 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readDeltaImpl()
525 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readAbsoluteImpl()
655 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readDeltaImpl()
689 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readAbsoluteImpl()
833 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readDeltaImpl()
861 try (ProcFileIterator iter = mReader.open(!mThrottle)) { in readAbsoluteImpl()
/frameworks/opt/vcard/java/com/android/vcard/
DVCardParserImpl_V30.java68 return mReader.peekLine(); in peekLine()
79 return mReader.readLine(); in getLine()
91 while ((line = mReader.readLine()) != null) { in getNonEmptyLine()
/frameworks/native/services/surfaceflinger/DisplayHardware/
DComposerHal.cpp351 mReader.takeChangedCompositionTypes(display, outLayers, outTypes); in getChangedCompositionTypes()
450 mReader.takeDisplayRequests(display, outDisplayRequestMask, in getDisplayRequests()
537 mReader.takeReleaseFences(display, outLayers, outReleaseFences); in getReleaseFences()
551 mReader.takePresentFence(display, outPresentFence); in presentDisplay()
656 mReader.hasChanges(display, outNumTypes, outNumRequests); in validateDisplay()
671 mReader.takePresentOrValidateStage(display, state); in presentOrValidateDisplay()
674 mReader.takePresentFence(display, outPresentFence); in presentOrValidateDisplay()
678 mReader.hasChanges(display, outNumTypes, outNumRequests); in presentOrValidateDisplay()
882 mReader.setMQDescriptor(tmpDescriptor); in execute()
890 if (mReader.readQueue(tmpOutLength, tmpOutHandles)) { in execute()
[all …]

12