Home
last modified time | relevance | path

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

/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DImageReaderTest.java38 private ImageReader mReader; field in ImageReaderTest
57 mReader = spy(ImageReader.newInstance(DEFAULT_WIDTH, DEFAULT_HEIGHT, DEFAULT_FORMAT, in setUp()
75 mReader.close(); in tearDown()
85 when(mReader.acquireNextImage()).thenReturn(null); in testGetLatestImageEmpty()
86 when(mReader.acquireNextImageNoThrowISE()).thenReturn(null); in testGetLatestImageEmpty()
87 assertEquals(null, mReader.acquireLatestImage()); in testGetLatestImageEmpty()
95 when(mReader.acquireNextImage()).thenReturn(mImage1); in testGetLatestImage1()
96 when(mReader.acquireNextImageNoThrowISE()).thenReturn(null); in testGetLatestImage1()
97 assertEquals(mImage1, mReader.acquireLatestImage()); in testGetLatestImage1()
106 when(mReader.acquireNextImage()).thenReturn(mImage1); in testGetLatestImage2()
[all …]
/frameworks/base/cmds/hid/src/com/android/commands/hid/
DEvent.java151 private JsonReader mReader; field in Event.Reader
154 mReader = new JsonReader(in); in Reader()
155 mReader.setLenient(true); in Reader()
160 while (e == null && mReader.peek() != JsonToken.END_DOCUMENT) { in getNextEvent()
163 mReader.beginObject(); in getNextEvent()
164 while (mReader.hasNext()) { in getNextEvent()
165 String name = mReader.nextName(); in getNextEvent()
171 eb.setCommand(mReader.nextString()); in getNextEvent()
177 eb.setName(mReader.nextString()); in getNextEvent()
192 mReader.skipValue(); in getNextEvent()
[all …]
DHid.java40 private final Event.Reader mReader; field in Hid
73 mReader = new Event.Reader(new InputStreamReader(in, "UTF-8")); in Hid()
82 while ((e = mReader.getNextEvent()) != null) { in run()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelWakelockReaderTest.java60 private KernelWakelockReader mReader; field in KernelWakelockReaderTest
65 mReader = new KernelWakelockReader(); in setUp()
70 KernelWakelockStats staleStats = mReader.parseProcWakelocks(new byte[0], 0, true, in testParseEmptyFile()
78 KernelWakelockStats staleStats = mReader.parseProcWakelocks(buffer, buffer.length, true, in testOnlyHeader()
88 KernelWakelockStats staleStats = mReader.parseProcWakelocks(buffer, buffer.length, true, in testOneWakelock()
104 KernelWakelockStats staleStats = mReader.parseProcWakelocks(buffer, buffer.length, true, in testTwoWakelocks()
117 KernelWakelockStats staleStats = mReader.parseProcWakelocks(buffer, buffer.length, true, in testDuplicateWakelocksAccumulate()
134 staleStats = mReader.parseProcWakelocks(buffer, buffer.length, true, staleStats); in testWakelocksBecomeStale()
142 staleStats = mReader.parseProcWakelocks(buffer, buffer.length, true, staleStats); in testWakelocksBecomeStale()
/frameworks/native/services/inputflinger/
DInputManager.cpp32 mReader = new InputReader(eventHub, readerPolicy, mDispatcher); in InputManager()
39 mReader(reader), in InputManager()
49 mReaderThread = new InputReaderThread(mReader); in initialize()
86 return mReader; in getReader()
DInputManager.h98 sp<InputReaderInterface> mReader;
DInputReader.cpp870 mReader(reader) { in ContextImpl()
875 mReader->updateGlobalMetaStateLocked(); in updateGlobalMetaState()
880 return mReader->getGlobalMetaStateLocked(); in getGlobalMetaState()
885 mReader->disableVirtualKeysUntilLocked(time); in disableVirtualKeysUntil()
891 return mReader->shouldDropVirtualKeyLocked(now, device, keyCode, scanCode); in shouldDropVirtualKey()
896 mReader->fadePointerLocked(); in fadePointer()
901 mReader->requestTimeoutAtTimeLocked(when); in requestTimeoutAtTime()
906 return mReader->bumpGenerationLocked(); in bumpGeneration()
911 mReader->getExternalStylusDevicesLocked(outDevices); in getExternalStylusDevices()
915 mReader->dispatchExternalStylusState(state); in dispatchExternalStylusState()
[all …]
DInputReader.h484 InputReader* mReader; variable
575 sp<InputReaderInterface> mReader;
/frameworks/av/services/medialog/
DMediaLogService.h55 NamedReader() : mReader(0) { mName[0] = '\0'; } // for Vector in NamedReader()
56 NamedReader(const sp<NBLog::Reader>& reader, const char *name) : mReader(reader) in NamedReader()
59 const sp<NBLog::Reader>& reader() const { return mReader; } in reader()
62 sp<NBLog::Reader> mReader;
/frameworks/wilhelm/src/itf/
DIOutputMixExt.c78 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/av/media/ndk/
DNdkImageReaderPriv.h98 CallbackHandler(AImageReader* reader) : mReader(reader) {} in CallbackHandler()
101 AImageReader* mReader;
115 FrameListener(AImageReader* parent) : mReader(parent) {} in FrameListener()
123 wp<AImageReader> mReader; member
DNdkImage.cpp35 mReader(reader), mFormat(format), in AImage()
60 sp<AImageReader> reader = mReader.promote(); in close()
84 sp<AImageReader> reader = mReader.promote(); in lockReader()
94 sp<AImageReader> reader = mReader.promote(); in unlockReader()
DNdkImagePriv.h70 wp<AImageReader> mReader; member
DNdkImageReader.cpp79 sp<AImageReader> reader = mReader.promote(); in onFrameAvailable()
134 (*onImageAvailable)(context, mReader); in onMessageReceived()
/frameworks/wilhelm/src/desktop/
DOutputMixExt.h40 const void *mReader; ///< Pointer to next frame in BufferHeader.mBuffer member
/frameworks/opt/vcard/java/com/android/vcard/
DVCardParserImpl_V30.java69 return mReader.readLine(); in getLine()
81 while ((line = mReader.readLine()) != null) { in getNonEmptyLine()
DVCardParserImpl_V21.java131 protected CustomBufferedReader mReader; field in VCardParserImpl_V21
182 return mReader.readLine(); in getLine()
186 return mReader.peekLine(); in peekLine()
1006 mReader = new CustomBufferedReader(tmpReader);
1037 mReader = new CustomBufferedReader(tmpReader);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DCamera2SurfaceViewTestCase.java121 protected ImageReader mReader; field in Camera2SurfaceViewTestCase
585 mReader = r; in createImageReader()
593 CameraTestUtils.closeImageReader(mReader); in closeImageReader()
594 mReader = null; in closeImageReader()
/frameworks/av/media/libstagefright/matroska/
DMatroskaExtractor.cpp614 status_t err = frame.Read(mExtractor->mReader, static_cast<uint8_t *>(mbuf->data())); in readBlock()
793 mReader(new DataSourceReader(mDataSource)), in MatroskaExtractor()
807 if (ebmlHeader.Parse(mReader, pos) < 0) { in MatroskaExtractor()
816 mkvparser::Segment::CreateInstance(mReader, pos, mSegment); in MatroskaExtractor()
858 delete mReader; in ~MatroskaExtractor()
859 mReader = NULL; in ~MatroskaExtractor()
1046 long n = frame.Read(mReader, abuf->data()); in synthesizeAVCC()
DMatroskaExtractor.h74 DataSourceReader *mReader; member
/frameworks/base/core/java/android/text/
DHtml.java686 private XMLReader mReader; field in HtmlToSpannedConverter
750 mReader = parser; in HtmlToSpannedConverter()
756 mReader.setContentHandler(this); in convert()
758 mReader.parse(new InputSource(new StringReader(mSource))); in convert()
849 mTagHandler.handleTag(true, tag, mSpannableStringBuilder, mReader); in handleStartTag()
908 mTagHandler.handleTag(false, tag, mSpannableStringBuilder, mReader); in handleEndTag()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp984 sp<InstrumentedInputReader> mReader; member in android::InputReaderTest
991 mReader = new InstrumentedInputReader(mFakeEventHub, mFakePolicy, mFakeListener); in SetUp()
995 mReader.clear(); in TearDown()
1010 mReader->loopOnce(); in addDevice()
1011 mReader->loopOnce(); in addDevice()
1018 InputDevice* device = mReader->newDevice(deviceId, controllerNumber, name, classes); in addDeviceWithFakeInputMapper()
1021 mReader->setNextDevice(device); in addDeviceWithFakeInputMapper()
1034 mReader->getInputDevices(inputDevices); in TEST_F()
1059 ASSERT_EQ(AKEY_STATE_UNKNOWN, mReader->getKeyCodeState(0, in TEST_F()
1063 ASSERT_EQ(AKEY_STATE_UNKNOWN, mReader->getKeyCodeState(1, in TEST_F()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/
DCamera2RecordingTest.java744 mReader.setOnImageAvailableListener(imageListener, mHandler); in prepareVideoSnapshot()