Home
last modified time | relevance | path

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

12

/frameworks/base/cmds/uinput/src/com/android/commands/uinput/
DEvent.java211 private JsonReader mReader; field in Event.Reader
214 mReader = new JsonReader(in); in Reader()
215 mReader.setLenient(true); in Reader()
223 while (e == null && mReader.peek() != JsonToken.END_DOCUMENT) { in getNextEvent()
226 mReader.beginObject(); in getNextEvent()
227 while (mReader.hasNext()) { in getNextEvent()
228 String name = mReader.nextName(); in getNextEvent()
234 eb.setCommand(mReader.nextString()); in getNextEvent()
237 eb.setName(mReader.nextString()); in getNextEvent()
266 mReader.skipValue(); in getNextEvent()
[all …]
/frameworks/base/cmds/hid/src/com/android/commands/hid/
DEvent.java200 private JsonReader mReader; field in Event.Reader
203 mReader = new JsonReader(in); in Reader()
204 mReader.setLenient(true); in Reader()
209 while (e == null && mReader.peek() != JsonToken.END_DOCUMENT) { in getNextEvent()
212 mReader.beginObject(); in getNextEvent()
213 while (mReader.hasNext()) { in getNextEvent()
214 String name = mReader.nextName(); in getNextEvent()
220 eb.setCommand(mReader.nextString()); in getNextEvent()
226 eb.setName(mReader.nextString()); in getNextEvent()
250 mReader.skipValue(); in getNextEvent()
[all …]
/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/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 …]
DKernelCpuUidUserSysTimeReaderTest.java56 private KernelCpuUidTimeReader.KernelCpuUidUserSysTimeReader mReader; field in KernelCpuUidUserSysTimeReaderTest
78 mReader = new KernelCpuUidUserSysTimeReader( in setUp()
92 mReader = new KernelCpuUidUserSysTimeReader( in testThrottler()
94 mReader.setThrottle(500); in testThrottler()
97 mReader.readDelta(false, mCallback); in testThrottler()
103 mReader.readDelta(false, mCallback); in testThrottler()
112 mReader.readDelta(false, mCallback); in testThrottler()
118 mReader.readDelta(false, mCallback); in testThrottler()
123 mReader.readDelta(true, mCallback); in testThrottler()
131 mReader.readDelta(true, mCallback); in testThrottler()
[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 …]
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/packages/SystemUI/tests/src/com/android/systemui/flags/
DFeatureFlagReaderTest.java48 private FeatureFlagReader mReader; field in FeatureFlagReaderTest
66 mReader = new FeatureFlagReader(mResources, mBuildInfo, mSystemPropertiesHelper); in initialize()
78 assertFalse(mReader.isEnabled(FLAG_RESID_0)); in testCantOverrideIfNotDebuggable()
90 assertFalse(mReader.isEnabled(FLAG_RESID_0)); in testCantOverrideIfNotOverrideable()
95 assertFalse(mReader.isEnabled(FLAG_RESID_0)); in testReadFlags()
96 assertTrue(mReader.isEnabled(FLAG_RESID_1)); in testReadFlags()
106 assertTrue(mReader.isEnabled(FLAG_RESID_0)); in testOverrideFlags()
107 assertFalse(mReader.isEnabled(FLAG_RESID_1)); in testOverrideFlags()
116 mReader.isEnabled(FLAG_RESID_0); in testThatFlagReadsAreCached()
117 mReader.isEnabled(FLAG_RESID_0); in testThatFlagReadsAreCached()
[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/native/services/inputflinger/reader/include/
DInputReader.h125 InputReader* mReader; variable
133 void disableVirtualKeysUntil(nsecs_t time) REQUIRES(mReader->mLock) override;
135 REQUIRES(mReader->mLock) override;
136 void fadePointer() REQUIRES(mReader->mLock) override;
138 REQUIRES(mReader->mLock) override;
139 void requestTimeoutAtTime(nsecs_t when) REQUIRES(mReader->mLock) override;
142 REQUIRES(mReader->mLock) override;
144 REQUIRES(mReader->mLock) override;
145 InputReaderPolicyInterface* getPolicy() REQUIRES(mReader->mLock) override;
146 InputListenerInterface* getListener() REQUIRES(mReader->mLock) override;
[all …]
/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/navigationbar/
DNavigationBarButtonTest.java65 private ImageReader mReader; field in NavigationBarButtonTest
95 mReader = ImageReader.newInstance(displayInfo.logicalWidth, in createVirtualDisplay()
98 assertNotNull("ImageReader must not be null", mReader); in createVirtualDisplay()
101 displayInfo.logicalHeight, displayInfo.logicalDensityDpi, mReader.getSurface(), in createVirtualDisplay()
138 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/base/tests/Internal/src/com/android/internal/protolog/
DProtoLogImplTest.java80 private ProtoLogViewerConfigReader mReader; field in ProtoLogImplTest
89 mProtoLog = new ProtoLogImpl(mFile, 1024 * 1024, mReader); in setUp()
204 when(mReader.getViewerString(anyInt())).thenReturn("test %b %d %% %o %x %e %g %s %f"); in log_logcatEnabledExternalMessage()
216 verify(mReader).getViewerString(eq(1234)); in log_logcatEnabledExternalMessage()
221 when(mReader.getViewerString(anyInt())).thenReturn("test %b %d %% %o %x %e %g %s %f"); in log_logcatEnabledInvalidMessage()
233 verify(mReader).getViewerString(eq(1234)); in log_logcatEnabledInvalidMessage()
238 when(mReader.getViewerString(anyInt())).thenReturn("test %d"); in log_logcatEnabledInlineMessage()
249 verify(mReader, never()).getViewerString(anyInt()); in log_logcatEnabledInlineMessage()
254 when(mReader.getViewerString(anyInt())).thenReturn(null); in log_logcatEnabledNoMessage()
265 verify(mReader).getViewerString(eq(1234)); in log_logcatEnabledNoMessage()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DScrollCaptureClient.java243 private ImageReader mReader;
301 mReader = ImageReader.newInstance(mTileWidth, mTileHeight, PixelFormat.RGBA_8888,
304 mReader.setOnImageAvailableListenerWithExecutor(this, mBgExecutor);
306 mCancellationSignal = mConnection.startCapture(mReader.getSurface(), this);
316 mReader.close();
368 mCapturedImage = mReader.acquireLatestImage();
412 mReader.close();
/frameworks/native/services/inputflinger/
DInputManager.cpp58 mReader = createInputReader(readerPolicy, mClassifier); in InputManager()
72 result = mReader->start(); in start()
86 status_t result = mReader->stop(); in stop()
102 return mReader; in getReader()
/frameworks/base/core/java/android/metrics/
DMetricsReader.java43 private LogReader mReader = new LogReader(); field in MetricsReader
53 mReader = reader; in setLogReader()
77 mReader.readEvents(LOGTAGS, horizonMs, nativeEvents); in read()
115 mReader.writeCheckpoint(mCheckpointTag); in checkpoint()
/frameworks/native/services/inputflinger/reader/
DInputReader.cpp881 : mReader(reader), mIdGenerator(IdGenerator::Source::INPUT_READER) {} in ContextImpl()
885 mReader->updateGlobalMetaStateLocked(); in updateGlobalMetaState()
890 return mReader->getGlobalMetaStateLocked(); in getGlobalMetaState()
895 mReader->updateLedMetaStateLocked(metaState); in updateLedMetaState()
900 return mReader->getLedMetaStateLocked(); in getLedMetaState()
905 mReader->disableVirtualKeysUntilLocked(time); in disableVirtualKeysUntil()
911 return mReader->shouldDropVirtualKeyLocked(now, keyCode, scanCode); in shouldDropVirtualKey()
916 mReader->fadePointerLocked(); in fadePointer()
922 return mReader->getPointerControllerLocked(deviceId); in getPointerController()
927 mReader->requestTimeoutAtTimeLocked(when); in requestTimeoutAtTime()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DKernelCpuThreadReaderDiff.java84 private final KernelCpuThreadReader mReader; field in KernelCpuThreadReaderDiff
104 mReader = checkNotNull(reader); in KernelCpuThreadReaderDiff()
120 mReader.getProcessCpuUsage(); in getProcessCpuUsageDiffed()
144 return mReader.getCpuFrequenciesKhz(); in getCpuFrequenciesKhz()

12