Home
last modified time | relevance | path

Searched refs:toWrite (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowTraceBufferTest.java69 ProtoOutputStream toWrite = getDummy(1); in test_addItem() local
70 final int objectSize = toWrite.getRawSize(); in test_addItem()
76 mBuffer.add(toWrite); in test_addItem()
165 ProtoOutputStream toWrite = getDummy(1); in test_startResetsBuffer() local
169 mBuffer.add(toWrite); in test_startResetsBuffer()
177 ProtoOutputStream toWrite = new ProtoOutputStream(); in getDummy() local
178 toWrite.write(MAGIC_NUMBER, value); in getDummy()
179 toWrite.flush(); in getDummy()
181 return toWrite; in getDummy()
/frameworks/base/services/core/java/com/android/server/display/
DBrightnessTracker.java535 BrightnessChangeEvent[] toWrite = mEvents.toArray(); in writeEventsLocked() local
539 Slog.d(TAG, "Writing events " + toWrite.length); in writeEventsLocked()
542 for (int i = 0; i < toWrite.length; ++i) { in writeEventsLocked()
543 int userSerialNo = mInjector.getUserSerialNumber(mUserManager, toWrite[i].userId); in writeEventsLocked()
544 if (userSerialNo != -1 && toWrite[i].timeStamp > timeCutOff) { in writeEventsLocked()
545 mEvents.append(toWrite[i]); in writeEventsLocked()
547 out.attribute(null, ATTR_NITS, Float.toString(toWrite[i].brightness)); in writeEventsLocked()
548 out.attribute(null, ATTR_TIMESTAMP, Long.toString(toWrite[i].timeStamp)); in writeEventsLocked()
549 out.attribute(null, ATTR_PACKAGE_NAME, toWrite[i].packageName); in writeEventsLocked()
551 out.attribute(null, ATTR_BATTERY_LEVEL, Float.toString(toWrite[i].batteryLevel)); in writeEventsLocked()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DLoggingPrintStreamTest.java174 String toWrite = a + "\n" + b + "\n" + c; in testWriteFlushesOnNewlines() local
175 out.write(toWrite.getBytes()); in testWriteFlushesOnNewlines()
/frameworks/opt/net/voip/src/jni/rtp/
DAudioGroup.cpp888 int toWrite = sampleCount; in threadLoop() local
892 while (--chances > 0 && (toWrite > 0 || toRead > 0)) { in threadLoop()
893 if (toWrite > 0) { in threadLoop()
895 buffer.frameCount = toWrite; in threadLoop()
899 int offset = sampleCount - toWrite; in threadLoop()
901 toWrite -= buffer.frameCount; in threadLoop()
/frameworks/base/libs/androidfw/
DBackupHelpers.cpp685 off64_t toWrite = s.st_size; in write_tarfile() local
686 while (toWrite > 0) { in write_tarfile()
687 size_t toRead = toWrite; in write_tarfile()
698 ALOGE("EOF but expect %lld more bytes in [%s]", (long long) toWrite, in write_tarfile()
714 toWrite -= nRead; in write_tarfile()
/frameworks/av/media/libaudioclient/
DAudioTrack.cpp1824 size_t toWrite = audioBuffer.size; in write() local
1825 memcpy(audioBuffer.i8, buffer, toWrite); in write()
1826 buffer = ((const char *) buffer) + toWrite; in write()
1827 userSize -= toWrite; in write()
1828 written += toWrite; in write()