Searched refs:write (Results 126 - 150 of 1003) sorted by relevance

1234567891011>>

/frameworks/base/cmds/am/src/com/android/commands/am/
H A DInstrument.java72 boolean protoStd = false; // write proto to stdout
73 boolean protoFile = false; // write proto to a file
245 proto.write(InstrumentationData.TestStatus.RESULT_CODE, resultCode);
258 proto.write(InstrumentationData.SessionStatus.STATUS_CODE,
260 proto.write(InstrumentationData.SessionStatus.RESULT_CODE, resultCode);
272 proto.write(InstrumentationData.SessionStatus.STATUS_CODE,
274 proto.write(InstrumentationData.SessionStatus.ERROR_TEXT, errorText);
287 proto.write(InstrumentationData.ResultsBundleEntry.KEY, key);
291 proto.write(InstrumentationData.ResultsBundleEntry.VALUE_STRING,
294 proto.write(InstrumentationDat
[all...]
/frameworks/base/cmds/incident_helper/src/parsers/
H A DBatteryTypeParser.cpp44 proto.write(BatteryTypeProto::TYPE, line);
H A DCpuFreqParser.cpp65 proto.write(CpuFreqProto::JIFFY_HZ, (int)jiffyHz);
69 proto.write(CpuFreqProto::Stats::CPU_NAME, header[i+1]);
72 proto.write(CpuFreqProto::Stats::TimeInState::STATE_KHZ, it->first);
73 proto.write(CpuFreqProto::Stats::TimeInState::TIME_JIFFY, it->second);
/frameworks/base/cmds/interrupter/
H A Dinterrupter.c51 DEFINE_INTERCEPT(write, ssize_t, int, const void*, size_t);
/frameworks/base/cmds/statsd/benchmark/
H A Dmetric_util.cpp251 event->write(state);
259 (event->write(level));
269 event->write(attributions);
270 event->write(jobName);
271 event->write(state);
295 event->write(attributions);
296 event->write(android::os::WakeLockLevelEnum::PARTIAL_WAKE_LOCK);
297 event->write(wakelockName);
298 event->write(state);
321 event->write(ui
[all...]
/frameworks/base/drm/java/android/drm/
H A DDrmOutputStream.java76 IoBridge.write(mFd, status.convertedData, 0, status.convertedData.length);
93 public void write(byte[] buffer, int offset, int count) throws IOException { method in class:DrmOutputStream
106 IoBridge.write(mFd, status.convertedData, 0, status.convertedData.length);
113 public void write(int oneByte) throws IOException { method in class:DrmOutputStream
/frameworks/base/services/usage/java/com/android/server/usage/
H A DUsageStatsXml.java78 public static void write(AtomicFile file, IntervalStats stats) throws IOException { method in class:UsageStatsXml
81 write(fos, stats);
85 // When fos is null (successful write), this will no-op
116 static void write(OutputStream out, IntervalStats stats) throws IOException { method in class:UsageStatsXml
124 UsageStatsXmlV1.write(xml, stats);
/frameworks/support/leanback/
H A Dgeneratef.py51 outfile.write(content)
69 outfile.write(content)
87 outfile.write(content)
107 outfile.write(content)
/frameworks/support/navigation/safe-args-gradle-plugin/
H A Dbuild.gradle47 // Properties.write will have a timestamp, that invalidates the task,
48 // so we don't use it and write a file manually
50 writer.write("compileSdkVersion=$SupportConfig.CURRENT_SDK_VERSION\n")
51 writer.write("buildToolsVersion=$SupportConfig.BUILD_TOOLS_VERSION\n")
/frameworks/base/core/java/android/content/res/
H A DAssetFileDescriptor.java300 public void write(byte[] buffer, int offset, int count) throws IOException { method in class:AssetFileDescriptor.AutoCloseOutputStream
304 super.write(buffer, offset, count);
309 super.write(buffer, offset, count);
313 public void write(byte[] buffer) throws IOException { method in class:AssetFileDescriptor.AutoCloseOutputStream
318 super.write(buffer);
323 super.write(buffer);
327 public void write(int oneByte) throws IOException { method in class:AssetFileDescriptor.AutoCloseOutputStream
330 super.write(oneByte);
335 super.write(oneByte);
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
H A DBitwiseStreamsTest.java39 for (int i = 0; i < inBuf.length; i++) outStream.write(8, inBuf[i]);
54 for (int i = 0; i < inBuf.length; i++) outStream.write(8, inBuf[i]);
68 for (int i = 0; i < inBuf.length; i++) outStream.write(8, inBuf[i]);
83 outStream.write(5, inBuf[i] >>> 3);
84 outStream.write(3, inBuf[i] & 0x07);
106 outStream.write(size, value);
124 outStream.write(5, inBuf[i] >>> 3);
125 outStream.write(3, inBuf[i] & 0x07);
150 outStream.write(size, value);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
H A DMediaAudioTrackTest.java339 track.write(data, 0, data.length);
340 track.write(data, 0, data.length);
367 track.write(data, 0, data.length);
368 track.write(data, 0, data.length);
398 track.write(data, 0, data.length);
399 track.write(data, 0, data.length);
434 track.write(data, 0, data.length);
435 track.write(data, 0, data.length);
468 track.write(data, 0, data.length);
469 track.write(dat
[all...]
/frameworks/base/cmds/statsd/tests/metrics/
H A DGaugeMetricProducer_test.cpp76 event->write(10);
77 event->write("some value");
78 event->write(11);
94 event2->write(24);
95 event2->write("some value");
96 event2->write(25);
154 event1->write(1);
155 event1->write(10);
170 event2->write(1);
171 event2->write(1
[all...]
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
H A DBatterySaverStateMachine.java459 proto.write(BatterySaverStateMachineProto.ENABLED,
462 proto.write(BatterySaverStateMachineProto.BOOT_COMPLETED, mBootCompleted);
463 proto.write(BatterySaverStateMachineProto.SETTINGS_LOADED, mSettingsLoaded);
464 proto.write(BatterySaverStateMachineProto.BATTERY_STATUS_SET, mBatteryStatusSet);
466 proto.write(BatterySaverStateMachineProto.BATTERY_SAVER_SNOOZING,
469 proto.write(BatterySaverStateMachineProto.IS_POWERED, mIsPowered);
470 proto.write(BatterySaverStateMachineProto.BATTERY_LEVEL, mBatteryLevel);
471 proto.write(BatterySaverStateMachineProto.IS_BATTERY_LEVEL_LOW, mIsBatteryLevelLow);
473 proto.write(BatterySaverStateMachineProto.SETTING_BATTERY_SAVER_ENABLED,
475 proto.write(BatterySaverStateMachineProt
[all...]
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
H A DBearerData.java449 outStream.write(8, 3);
450 outStream.write(4, bData.messageType);
451 outStream.write(8, bData.messageId >> 8);
452 outStream.write(8, bData.messageId);
453 outStream.write(1, bData.hasUserDataHeader ? 1 : 0);
509 outStream.write(7, UserData.UNENCODABLE_7_BIT_CHAR);
514 outStream.write(7, charCode);
553 * extended with byte-wise reversed endianness read/write
719 outStream.write(8, paramBytes);
720 outStream.write(
[all...]
/frameworks/base/services/core/java/com/android/server/job/controllers/
H A DJobStatus.java1098 proto.write(JobStatusShortInfoProto.CALLING_UID, callingUid);
1099 proto.write(JobStatusShortInfoProto.JOB_ID, job.getId());
1100 proto.write(JobStatusShortInfoProto.BATTERY_NAME, batteryName);
1146 proto.write(fieldId, JobStatusDumpProto.CONSTRAINT_CHARGING);
1149 proto.write(fieldId, JobStatusDumpProto.CONSTRAINT_BATTERY_NOT_LOW);
1152 proto.write(fieldId, JobStatusDumpProto.CONSTRAINT_STORAGE_NOT_LOW);
1155 proto.write(fieldId, JobStatusDumpProto.CONSTRAINT_TIMING_DELAY);
1158 proto.write(fieldId, JobStatusDumpProto.CONSTRAINT_DEADLINE);
1161 proto.write(fieldId, JobStatusDumpProto.CONSTRAINT_IDLE);
1164 proto.write(fieldI
[all...]
/frameworks/av/media/libstagefright/
H A DAACWriter.cpp240 write(mFd, &data, 1);
249 write(mFd, &data, 1);
260 write(mFd, &data, 1);
268 write(mFd, &data, 1);
271 write(mFd, &data, 1);
276 write(mFd, &data, 1);
281 write(mFd, &data, 1);
355 dataLength != write(mFd, data, dataLength)) {
/frameworks/av/media/mtp/
H A DMtpDevHandle.cpp47 int MtpDevHandle::write(const void *data, size_t len) { function in class:android::MtpDevHandle
48 return ::write(mFd, data, len);
/frameworks/base/core/java/android/content/pm/
H A DIPackageInstallerSession.aidl33 void write(String name, long offsetBytes, long lengthBytes, in ParcelFileDescriptor fd);
/frameworks/base/core/java/android/print/
H A DIPrintDocumentAdapter.aidl37 void write(in PageRange[] pages, in ParcelFileDescriptor fd,
/frameworks/base/core/java/com/android/internal/util/
H A DBitwiseOutputStream.java20 * An object that provides bitwise incremental write access to a byte array.
89 * @param bits the amount of data to write (gte 0, lte 8)
90 * @param data to write, will be masked to expose only bits param from lsb
92 public void write(int bits, int data) throws AccessException { method in class:BitwiseOutputStream
94 throw new AccessException("illegal write (" + bits + " bits)");
109 * @param bits the amount of data to write
116 write(increment, (byte)(arr[i] >>> (8 - increment)));
/frameworks/base/libs/androidfw/
H A DObbFile.cpp240 ALOGW("failed to write to %s: %s\n", filename, strerror(errno));
254 ALOGW("tried to write uninitialized ObbFile data\n");
262 if (write(fd, &intBuf, sizeof(uint32_t)) != (ssize_t)sizeof(uint32_t)) {
263 ALOGW("couldn't write signature version: %s\n", strerror(errno));
268 if (write(fd, &intBuf, sizeof(uint32_t)) != (ssize_t)sizeof(uint32_t)) {
269 ALOGW("couldn't write package version\n");
274 if (write(fd, &intBuf, sizeof(uint32_t)) != (ssize_t)sizeof(uint32_t)) {
275 ALOGW("couldn't write package version\n");
279 if (write(fd, mSalt, sizeof(mSalt)) != (ssize_t)sizeof(mSalt)) {
280 ALOGW("couldn't write sal
[all...]
/frameworks/data-binding/compiler/src/main/kotlin/android/databinding/tool/writer/
H A DBRWriter.kt23 public fun write(pkg : String): String = "package $pkg;${StringUtils.LINE_SEPARATOR}$klass"
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/java/
H A DUnsafeByteSequence.java43 * Moves the write pointer back to the beginning of the sequence,
50 public void write(byte[] buffer, int offset, int length) { method in class:UnsafeByteSequence
60 public void write(int b) { method in class:UnsafeByteSequence
/frameworks/base/services/core/java/com/android/server/am/
H A DAppTimeTracker.java127 proto.write(AppTimeTrackerProto.RECEIVER, mReceiver.toString());
128 proto.write(AppTimeTrackerProto.TOTAL_DURATION_MS, mTotalTime);
131 proto.write(AppTimeTrackerProto.PackageTime.PACKAGE, mPackageTimes.keyAt(i));
132 proto.write(AppTimeTrackerProto.PackageTime.DURATION_MS, mPackageTimes.valueAt(i).value);
138 proto.write(AppTimeTrackerProto.STARTED_PACKAGE, mStartedPackage);

Completed in 393 milliseconds

1234567891011>>