/frameworks/base/packages/SystemUI/src/com/android/systemui/analytics/ |
D | SensorLoggerSession.java | 103 Session proto = new Session(); in toProto() local 104 proto.setStartTimestampMillis(mStartTimestampMillis); in toProto() 105 proto.setDurationMillis(mEndTimestampMillis - mStartTimestampMillis); in toProto() 106 proto.setBuild(Build.FINGERPRINT); in toProto() 107 proto.setResult(mResult); in toProto() 108 proto.setType(mType); in toProto() 109 proto.sensorEvents = mSensorEvents.toArray(proto.sensorEvents); in toProto() 110 proto.touchEvents = mMotionEvents.toArray(proto.touchEvents); in toProto() 111 proto.phoneEvents = mPhoneEvents.toArray(proto.phoneEvents); in toProto() 112 proto.setTouchAreaWidth(mTouchAreaWidth); in toProto() [all …]
|
/frameworks/base/libs/hwui/service/ |
D | GraphicsStatsService.cpp | 44 static void mergeProfileDataIntoProto(service::GraphicsStatsProto* proto, 47 static void dumpAsTextToFd(service::GraphicsStatsProto* proto, int outFd); 84 void mergeProfileDataIntoProto(service::GraphicsStatsProto* proto, const std::string& package, in mergeProfileDataIntoProto() argument 86 if (proto->stats_start() == 0 || proto->stats_start() > startTime) { in mergeProfileDataIntoProto() 87 proto->set_stats_start(startTime); in mergeProfileDataIntoProto() 89 if (proto->stats_end() == 0 || proto->stats_end() < endTime) { in mergeProfileDataIntoProto() 90 proto->set_stats_end(endTime); in mergeProfileDataIntoProto() 92 proto->set_package_name(package); in mergeProfileDataIntoProto() 93 proto->set_version_code(versionCode); in mergeProfileDataIntoProto() 94 auto summary = proto->mutable_summary(); in mergeProfileDataIntoProto() [all …]
|
/frameworks/base/core/proto/android/os/ |
D | incident.proto | 22 import "frameworks/base/libs/incident/proto/android/privacy.proto"; 23 import "frameworks/base/core/proto/android/service/appwidget.proto"; 24 import "frameworks/base/core/proto/android/service/battery.proto"; 25 import "frameworks/base/core/proto/android/service/graphicsstats.proto"; 26 import "frameworks/base/core/proto/android/service/fingerprint.proto"; 27 import "frameworks/base/core/proto/android/service/diskstats.proto"; 28 import "frameworks/base/core/proto/android/service/netstats.proto"; 29 import "frameworks/base/core/proto/android/service/notification.proto"; 30 import "frameworks/base/core/proto/android/service/package.proto"; 31 import "frameworks/base/core/proto/android/service/power.proto"; [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | DiskStatsService.java | 31 import android.util.proto.ProtoOutputStream; 90 ProtoOutputStream proto = null; in dump() local 93 proto = new ProtoOutputStream(fd); in dump() 95 proto.write(DiskStatsServiceDumpProto.HAS_TEST_ERROR, error != null); in dump() 97 proto.write(DiskStatsServiceDumpProto.ERROR_MESSAGE, error.toString()); in dump() 99 proto.write(DiskStatsServiceDumpProto.WRITE_512B_LATENCY_MILLIS, after - before); in dump() 112 reportFreeSpace(Environment.getDataDirectory(), "Data", pw, proto, in dump() local 114 reportFreeSpace(Environment.getDownloadCacheDirectory(), "Cache", pw, proto, in dump() local 116 reportFreeSpace(new File("/system"), "System", pw, proto, in dump() 123 proto.write(DiskStatsServiceDumpProto.ENCRYPTION, in dump() [all …]
|
D | BatteryService.java | 56 import android.util.proto.ProtoOutputStream; 853 final ProtoOutputStream proto = new ProtoOutputStream(fd); in dumpProto() local 856 proto.write(BatteryServiceDumpProto.ARE_UPDATES_STOPPED, mUpdatesStopped); in dumpProto() 865 proto.write(BatteryServiceDumpProto.PLUGGED, batteryPluggedValue); in dumpProto() 866 … proto.write(BatteryServiceDumpProto.MAX_CHARGING_CURRENT, mBatteryProps.maxChargingCurrent); in dumpProto() 867 … proto.write(BatteryServiceDumpProto.MAX_CHARGING_VOLTAGE, mBatteryProps.maxChargingVoltage); in dumpProto() 868 proto.write(BatteryServiceDumpProto.CHARGE_COUNTER, mBatteryProps.batteryChargeCounter); in dumpProto() 869 proto.write(BatteryServiceDumpProto.STATUS, mBatteryProps.batteryStatus); in dumpProto() 870 proto.write(BatteryServiceDumpProto.HEALTH, mBatteryProps.batteryHealth); in dumpProto() 871 proto.write(BatteryServiceDumpProto.IS_PRESENT, mBatteryProps.batteryPresent); in dumpProto() [all …]
|
/frameworks/base/cmds/am/src/com/android/commands/am/ |
D | Instrument.java | 32 import android.util.proto.ProtoOutputStream; 52 public boolean proto = false; field in Instrument 173 final ProtoOutputStream proto = new ProtoOutputStream(); in onInstrumentationStatusLocked() local 175 final long token = proto.startRepeatedObject(InstrumentationData.Session.TEST_STATUS); in onInstrumentationStatusLocked() 177 proto.writeSInt32(InstrumentationData.TestStatus.RESULT_CODE, resultCode); in onInstrumentationStatusLocked() 178 writeBundle(proto, InstrumentationData.TestStatus.RESULTS, results); in onInstrumentationStatusLocked() 180 proto.endRepeatedObject(token); in onInstrumentationStatusLocked() 181 writeProtoToStdout(proto); in onInstrumentationStatusLocked() 187 final ProtoOutputStream proto = new ProtoOutputStream(); in onInstrumentationFinishedLocked() local 189 final long token = proto.startObject(InstrumentationData.Session.SESSION_STATUS); in onInstrumentationFinishedLocked() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageSetting.java | 24 import android.util.proto.ProtoOutputStream; 135 public void writeToProto(ProtoOutputStream proto, long fieldId, List<UserInfo> users) { in writeToProto() argument 136 final long packageToken = proto.start(fieldId); in writeToProto() 137 proto.write(PackageProto.NAME, (realName != null ? realName : name)); in writeToProto() 138 proto.write(PackageProto.UID, appId); in writeToProto() 139 proto.write(PackageProto.VERSION_CODE, versionCode); in writeToProto() 140 proto.write(PackageProto.VERSION_STRING, pkg.mVersionName); in writeToProto() 141 proto.write(PackageProto.INSTALL_TIME_MS, firstInstallTime); in writeToProto() 142 proto.write(PackageProto.UPDATE_TIME_MS, lastUpdateTime); in writeToProto() 143 proto.write(PackageProto.INSTALLER_NAME, installerPackageName); in writeToProto() [all …]
|
D | PackageSettingBase.java | 31 import android.util.proto.ProtoOutputStream; 582 protected void writeUsersInfoToProto(ProtoOutputStream proto, long fieldId) { in writeUsersInfoToProto() argument 585 final long userToken = proto.start(fieldId); in writeUsersInfoToProto() 588 proto.write(PackageProto.UserInfoProto.ID, userId); in writeUsersInfoToProto() 597 proto.write(PackageProto.UserInfoProto.INSTALL_TYPE, installType); in writeUsersInfoToProto() 598 proto.write(PackageProto.UserInfoProto.IS_HIDDEN, state.hidden); in writeUsersInfoToProto() 599 proto.write(PackageProto.UserInfoProto.IS_SUSPENDED, state.suspended); in writeUsersInfoToProto() 600 proto.write(PackageProto.UserInfoProto.IS_STOPPED, state.stopped); in writeUsersInfoToProto() 601 proto.write(PackageProto.UserInfoProto.IS_LAUNCHED, !state.notLaunched); in writeUsersInfoToProto() 602 proto.write(PackageProto.UserInfoProto.ENABLED_STATE, state.enabled); in writeUsersInfoToProto() [all …]
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | WirelessChargerDetector.java | 30 import android.util.proto.ProtoOutputStream; 175 public void writeToProto(ProtoOutputStream proto, long fieldId) { in writeToProto() argument 176 final long wcdToken = proto.start(fieldId); in writeToProto() 178 proto.write(WirelessChargerDetectorProto.IS_POWERED_WIRELESSLY, mPoweredWirelessly); in writeToProto() 179 proto.write(WirelessChargerDetectorProto.IS_AT_REST, mAtRest); in writeToProto() 181 final long restVectorToken = proto.start(WirelessChargerDetectorProto.REST); in writeToProto() 182 proto.write(WirelessChargerDetectorProto.VectorProto.X, mRestX); in writeToProto() 183 proto.write(WirelessChargerDetectorProto.VectorProto.Y, mRestY); in writeToProto() 184 proto.write(WirelessChargerDetectorProto.VectorProto.Z, mRestZ); in writeToProto() 185 proto.end(restVectorToken); in writeToProto() [all …]
|
D | PowerManagerService.java | 73 import android.util.proto.ProtoOutputStream; 616 void dumpProto(ProtoOutputStream proto) { in dumpProto() argument 617 final long constantsToken = proto.start(PowerServiceDumpProto.CONSTANTS); in dumpProto() 618 proto.write(PowerServiceDumpProto.ConstantsProto.IS_NO_CACHED_WAKE_LOCKS, in dumpProto() 620 proto.end(constantsToken); in dumpProto() 3364 final ProtoOutputStream proto = new ProtoOutputStream(fd); in dumpProto() local 3367 mConstants.dumpProto(proto); in dumpProto() 3368 proto.write(PowerServiceDumpProto.DIRTY, mDirty); in dumpProto() 3369 proto.write(PowerServiceDumpProto.WAKEFULNESS, mWakefulness); in dumpProto() 3370 proto.write(PowerServiceDumpProto.IS_WAKEFULNESS_CHANGING, mWakefulnessChanging); in dumpProto() [all …]
|
D | SuspendBlocker.java | 19 import android.util.proto.ProtoOutputStream; 46 void writeToProto(ProtoOutputStream proto, long fieldId); in writeToProto() argument
|
/frameworks/base/cmds/am/ |
D | Android.mk | 8 $(call all-proto-files-under, proto) 23 $(call all-proto-files-under, proto) 27 …$(call intermediates-dir-for,STATIC_LIBRARIES,libinstrumentation,HOST,,,)/proto/$(LOCAL_PATH)/proto
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskSnapshotLoader.java | 76 final TaskSnapshotProto proto = TaskSnapshotProto.parseFrom(bytes); in loadTask() local 90 return new TaskSnapshot(buffer, proto.orientation, in loadTask() 91 new Rect(proto.insetLeft, proto.insetTop, proto.insetRight, proto.insetBottom), in loadTask()
|
D | TaskSnapshotPersister.java | 302 final TaskSnapshotProto proto = new TaskSnapshotProto(); in writeProto() local 303 proto.orientation = mSnapshot.getOrientation(); in writeProto() 304 proto.insetLeft = mSnapshot.getContentInsets().left; in writeProto() 305 proto.insetTop = mSnapshot.getContentInsets().top; in writeProto() 306 proto.insetRight = mSnapshot.getContentInsets().right; in writeProto() 307 proto.insetBottom = mSnapshot.getContentInsets().bottom; in writeProto() 308 final byte[] bytes = TaskSnapshotProto.toByteArray(proto); in writeProto()
|
/frameworks/compile/mclinker/unittests/ |
D | test3.txt | 84 $(MAKE) -f $(SELF) do-proto-toplev \ 103 $(MAKE) -f $(SELF) do-proto-toplev \ 131 .PHONY: do-proto-toplev 132 do-proto-toplev: $(DEVO_SUPPORT) $(SUPPORT_FILES) texinfo/texinfo.tex 145 rm -rf proto-toplev ; mkdir proto-toplev 157 if [ -d $$d/proto-$$d.dir ]; then \ 158 ln -s ../$$d/proto-$$d.dir proto-toplev/$$d ; \ 160 ln -s ../$$d proto-toplev/$$d ; \ 162 else ln -s ../$$d proto-toplev/$$d ; fi ; \ 179 mkdir proto-toplev/etc [all …]
|
/frameworks/base/core/java/android/os/ |
D | Message.java | 21 import android.util.proto.ProtoOutputStream; 525 void writeToProto(ProtoOutputStream proto, long fieldId) { in writeToProto() argument 526 final long messageToken = proto.start(fieldId); in writeToProto() 527 proto.write(MessageProto.WHEN, when); in writeToProto() 531 proto.write(MessageProto.CALLBACK, callback.getClass().getName()); in writeToProto() 533 proto.write(MessageProto.WHAT, what); in writeToProto() 537 proto.write(MessageProto.ARG1, arg1); in writeToProto() 541 proto.write(MessageProto.ARG2, arg2); in writeToProto() 545 proto.write(MessageProto.OBJ, obj.toString()); in writeToProto() 548 proto.write(MessageProto.TARGET, target.getClass().getName()); in writeToProto() [all …]
|
D | Looper.java | 25 import android.util.proto.ProtoOutputStream; 330 public void writeToProto(ProtoOutputStream proto, long fieldId) { in writeToProto() argument 331 final long looperToken = proto.start(fieldId); in writeToProto() 332 proto.write(LooperProto.THREAD_NAME, mThread.getName()); in writeToProto() 333 proto.write(LooperProto.THREAD_ID, mThread.getId()); in writeToProto() 334 proto.write(LooperProto.IDENTITY_HASH_CODE, System.identityHashCode(this)); in writeToProto() 335 mQueue.writeToProto(proto, LooperProto.QUEUE); in writeToProto() 336 proto.end(looperToken); in writeToProto()
|
/frameworks/base/core/java/android/net/ |
D | NetworkIdentity.java | 30 import android.util.proto.ProtoOutputStream; 115 public void writeToProto(ProtoOutputStream proto, long tag) { in writeToProto() argument 116 final long start = proto.start(tag); in writeToProto() 118 proto.write(NetworkIdentityProto.TYPE, mType); in writeToProto() 123 proto.write(NetworkIdentityProto.SUBSCRIBER_ID, scrubSubscriberId(mSubscriberId)); in writeToProto() 125 proto.write(NetworkIdentityProto.NETWORK_ID, mNetworkId); in writeToProto() 126 proto.write(NetworkIdentityProto.ROAMING, mRoaming); in writeToProto() 127 proto.write(NetworkIdentityProto.METERED, mMetered); in writeToProto() 129 proto.end(start); in writeToProto()
|
D | NetworkStatsHistory.java | 37 import android.util.proto.ProtoOutputStream; 634 public void writeToProto(ProtoOutputStream proto, long tag) { in writeToProto() argument 635 final long start = proto.start(tag); in writeToProto() 637 proto.write(NetworkStatsHistoryProto.BUCKET_DURATION_MS, bucketDuration); in writeToProto() 640 final long startBucket = proto.start(NetworkStatsHistoryProto.BUCKETS); in writeToProto() 642 proto.write(NetworkStatsHistoryBucketProto.BUCKET_START_MS, bucketStart[i]); in writeToProto() 643 writeToProto(proto, NetworkStatsHistoryBucketProto.RX_BYTES, rxBytes, i); in writeToProto() 644 writeToProto(proto, NetworkStatsHistoryBucketProto.RX_PACKETS, rxPackets, i); in writeToProto() 645 writeToProto(proto, NetworkStatsHistoryBucketProto.TX_BYTES, txBytes, i); in writeToProto() 646 writeToProto(proto, NetworkStatsHistoryBucketProto.TX_PACKETS, txPackets, i); in writeToProto() [all …]
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkIdentitySet.java | 21 import android.util.proto.ProtoOutputStream; 149 public void writeToProto(ProtoOutputStream proto, long tag) { in writeToProto() argument 150 final long start = proto.start(tag); in writeToProto() 153 ident.writeToProto(proto, NetworkIdentitySetProto.IDENTITIES); in writeToProto() 156 proto.end(start); in writeToProto()
|
D | NetworkStatsCollection.java | 43 import android.util.proto.ProtoOutputStream; 560 public void writeToProto(ProtoOutputStream proto, long tag) { in writeToProto() argument 561 final long start = proto.start(tag); in writeToProto() 564 final long startStats = proto.start(NetworkStatsCollectionProto.STATS); in writeToProto() 567 final long startKey = proto.start(NetworkStatsCollectionStatsProto.KEY); in writeToProto() 568 key.ident.writeToProto(proto, NetworkStatsCollectionKeyProto.IDENTITY); in writeToProto() 569 proto.write(NetworkStatsCollectionKeyProto.UID, key.uid); in writeToProto() 570 proto.write(NetworkStatsCollectionKeyProto.SET, key.set); in writeToProto() 571 proto.write(NetworkStatsCollectionKeyProto.TAG, key.tag); in writeToProto() 572 proto.end(startKey); in writeToProto() [all …]
|
/frameworks/base/packages/SystemUI/ |
D | Android.mk | 5 LOCAL_MODULE := SystemUI-proto 7 LOCAL_SRC_FILES := $(call all-proto-files-under,src) 45 SystemUI-proto
|
/frameworks/base/tools/aapt2/ |
D | Android.bp | 108 "proto/ProtoHelpers.cpp", 109 "proto/TableProtoDeserializer.cpp", 110 "proto/TableProtoSerializer.cpp", 139 "Format.proto", 141 proto: {
|
/frameworks/base/services/core/java/com/android/server/fingerprint/ |
D | FingerprintService.java | 66 import android.util.proto.ProtoOutputStream; 1347 final ProtoOutputStream proto = new ProtoOutputStream(fd); in dumpProto() local 1351 final long userToken = proto.start(FingerprintServiceDumpProto.USERS); in dumpProto() 1353 proto.write(FingerprintUserStatsProto.USER_ID, userId); in dumpProto() 1354 proto.write(FingerprintUserStatsProto.NUM_FINGERPRINTS, in dumpProto() 1360 final long countsToken = proto.start(FingerprintUserStatsProto.NORMAL); in dumpProto() 1361 proto.write(FingerprintActionStatsProto.ACCEPT, normal.accept); in dumpProto() 1362 proto.write(FingerprintActionStatsProto.REJECT, normal.reject); in dumpProto() 1363 proto.write(FingerprintActionStatsProto.ACQUIRE, normal.acquire); in dumpProto() 1364 proto.write(FingerprintActionStatsProto.LOCKOUT, normal.lockout); in dumpProto() [all …]
|
/frameworks/base/proto/ |
D | Android.mk | 8 LOCAL_SRC_FILES:= $(call all-proto-files-under, src) 26 LOCAL_SRC_FILES:= $(call all-proto-files-under, src)
|