/frameworks/base/cmds/uinput/src/com/android/commands/uinput/ |
D | Event.java | 211 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/ |
D | Event.java | 200 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/ |
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/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/com/android/internal/os/ |
D | ProcLocksReader.java | 37 private ProcFileReader mReader = null; field in ProcLocksReader 70 if (mReader == null) { in handleBlockingFileLocks() 71 mReader = new ProcFileReader(new FileInputStream(mPath)); in handleBlockingFileLocks() 73 mReader.rewind(); in handleBlockingFileLocks() 76 while (mReader.hasMoreData()) { in handleBlockingFileLocks() 77 id = mReader.nextLong(true); // lock id in handleBlockingFileLocks() 79 mReader.finishLine(); // blocked lock in handleBlockingFileLocks() 89 mReader.nextIgnored(); // lock type: POSIX? in handleBlockingFileLocks() 90 mReader.nextIgnored(); // lock type: MANDATORY? in handleBlockingFileLocks() 91 mReader.nextIgnored(); // lock type: RW? in handleBlockingFileLocks() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | KernelSingleUidTimeReaderTest.java | 50 private KernelSingleUidTimeReader mReader; field in KernelSingleUidTimeReaderTest 66 mReader = new KernelSingleUidTimeReader(TEST_FREQ_COUNT, mInjector); in setUp() 71 final SparseArray<long[]> allLastCpuTimes = mReader.getLastUidCpuTimeMs(); in readDelta() 74 long[] deltaCpuTimes = mReader.readDeltaMs(TEST_UID); in readDelta() 83 deltaCpuTimes = mReader.readDeltaMs(TEST_UID); in readDelta() 88 deltaCpuTimes = mReader.readDeltaMs(TEST_UID); in readDelta() 102 deltaCpuTimes = mReader.readDeltaMs(TEST_UID); in readDelta() 116 deltaCpuTimes = mReader.readDeltaMs(TEST_UID); in readDelta() 126 assertTrue(mReader.singleUidCpuTimesAvailable()); in readDelta_fileNotAvailable() 127 mReader.readDeltaMs(TEST_UID); in readDelta_fileNotAvailable() [all …]
|
D | KernelCpuUidBpfMapReaderTest.java | 55 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 …]
|
D | KernelCpuUidUserSysTimeReaderTest.java | 55 private KernelCpuUidTimeReader.KernelCpuUidUserSysTimeReader mReader; field in KernelCpuUidUserSysTimeReaderTest 79 mReader = new KernelCpuUidUserSysTimeReader( in setUp() 95 mReader = new KernelCpuUidUserSysTimeReader( in testThrottler() 99 mReader.setThrottle(500); in testThrottler() 102 mReader.readDelta(false, mCallback); in testThrottler() 108 mReader.readDelta(false, mCallback); in testThrottler() 116 mReader.readDelta(false, mCallback); in testThrottler() 122 mReader.readDelta(false, mCallback); in testThrottler() 127 mReader.readDelta(true, mCallback); in testThrottler() 135 mReader.readDelta(true, mCallback); in testThrottler() [all …]
|
D | KernelCpuUidFreqTimeReaderTest.java | 62 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 …]
|
D | KernelCpuUidActiveTimeReaderTest.java | 57 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 …]
|
D | KernelCpuUidClusterTimeReaderTest.java | 58 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 …]
|
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 …]
|
D | KernelWakelockReaderTest.java | 85 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/omapi/java/android/se/omapi/ |
D | Reader.java | 47 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()
|
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/native/services/inputflinger/reader/include/ |
D | InputReader.h | 126 InputReader* mReader; variable 134 void disableVirtualKeysUntil(nsecs_t time) REQUIRES(mReader->mLock) override; 136 REQUIRES(mReader->mLock) override; 137 void fadePointer() REQUIRES(mReader->mLock) override; 139 REQUIRES(mReader->mLock) override; 140 void requestTimeoutAtTime(nsecs_t when) REQUIRES(mReader->mLock) override; 143 REQUIRES(mReader->mLock) override; 145 REQUIRES(mReader->mLock) override; 146 InputReaderPolicyInterface* getPolicy() REQUIRES(mReader->mLock) override; 147 InputListenerInterface& getListener() REQUIRES(mReader->mLock) override; [all …]
|
/frameworks/av/media/ndk/ |
D | NdkImageReaderPriv.h | 110 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/native/services/inputflinger/ |
D | InputManager.cpp | 66 mReader = createInputReader(readerPolicy, *mBlocker); in InputManager() 80 result = mReader->start(); in start() 94 status_t result = mReader->stop(); in stop() 110 return *mReader; in getReader() 126 mReader->monitor(); in monitor()
|
/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/packages/SystemUI/tests/src/com/android/systemui/navigationbar/ |
D | NavigationBarButtonTest.java | 66 private ImageReader mReader; field in NavigationBarButtonTest 98 mReader = ImageReader.newInstance(displayInfo.logicalWidth, in createVirtualDisplay() 101 assertNotNull("ImageReader must not be null", mReader); in createVirtualDisplay() 104 displayInfo.logicalHeight, displayInfo.logicalDensityDpi, mReader.getSurface(), in createVirtualDisplay() 141 mReader.close(); in releaseDisplay()
|
/frameworks/base/tests/Internal/src/com/android/internal/protolog/ |
D | ProtoLogImplTest.java | 80 private ProtoLogViewerConfigReader mReader; field in ProtoLogImplTest 89 mProtoLog = new ProtoLogImpl(mFile, 1024 * 1024, mReader, 1024); 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/ |
D | ScrollCaptureClient.java | 243 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/base/core/java/android/metrics/ |
D | MetricsReader.java | 43 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/ |
D | InputReader.cpp | 890 : mReader(reader), mIdGenerator(IdGenerator::Source::INPUT_READER) {} in ContextImpl() 894 mReader->updateGlobalMetaStateLocked(); in updateGlobalMetaState() 899 return mReader->getGlobalMetaStateLocked(); in getGlobalMetaState() 904 mReader->updateLedMetaStateLocked(metaState); in updateLedMetaState() 909 return mReader->getLedMetaStateLocked(); in getLedMetaState() 914 mReader->disableVirtualKeysUntilLocked(time); in disableVirtualKeysUntil() 920 return mReader->shouldDropVirtualKeyLocked(now, keyCode, scanCode); in shouldDropVirtualKey() 925 mReader->fadePointerLocked(); in fadePointer() 931 return mReader->getPointerControllerLocked(deviceId); in getPointerController() 936 mReader->requestTimeoutAtTimeLocked(when); in requestTimeoutAtTime() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/qrcode/ |
D | QrCamera.java | 80 private MultiFormatReader mReader; field in QrCamera 89 mReader = new MultiFormatReader(); in QrCamera() 90 mReader.setHints(HINTS); in QrCamera() 255 mReader.decodeWithState( in doInBackground() 261 mReader.reset(); in doInBackground() 458 qrCode = mReader.decodeWithState(image); in decodeImage() 461 mReader.reset(); in decodeImage()
|