/frameworks/proto_logging/stats/ |
D | Android.bp | 24 // Enum protos can be reused in multiple libraries (pixelatoms.proto, etc) 27 "enums/app/**/*.proto", 28 "enums/display/*.proto", 32 "enums/adservices/common/*.proto", 33 "enums/adservices/enrollment/*.proto", 34 "enums/adservices/fledge/*.proto", 35 "enums/adservices/measurement/*.proto", 36 "enums/anr/*.proto", 37 "enums/apex/*.proto", 38 "enums/appsearch/*.proto", [all …]
|
/frameworks/native/services/surfaceflinger/Tracing/ |
D | TransactionProtoParser.cpp | 55 perfetto::protos::TransactionState proto; in toProto() local 56 proto.set_pid(t.originPid); in toProto() 57 proto.set_uid(t.originUid); in toProto() 58 proto.set_vsync_id(t.frameTimelineInfo.vsyncId); in toProto() 59 proto.set_input_event_id(t.frameTimelineInfo.inputEventId); in toProto() 60 proto.set_post_time(t.postTime); in toProto() 61 proto.set_transaction_id(t.id); in toProto() 63 proto.mutable_layer_changes()->Reserve(static_cast<int32_t>(t.states.size())); in toProto() 65 proto.mutable_layer_changes()->Add(std::move(toProto(layerState))); in toProto() 68 proto.mutable_display_changes()->Reserve(static_cast<int32_t>(t.displays.size())); in toProto() [all …]
|
/frameworks/base/libs/protoutil/tests/ |
D | ProtoOutputStream_test.cpp | 29 static std::string flushToString(ProtoOutputStream* proto) { in flushToString() argument 34 EXPECT_TRUE(proto->flush(tf.fd)); in flushToString() 39 static std::string iterateToString(ProtoOutputStream* proto) { in iterateToString() argument 41 content.reserve(proto->size()); in iterateToString() 42 sp<ProtoReader> reader = proto->data(); in iterateToString() 53 ProtoOutputStream proto; in TEST() local 54 EXPECT_TRUE(proto.write(FIELD_TYPE_INT32 | PrimitiveProto::kValInt32FieldNumber, 123)); in TEST() 55 EXPECT_TRUE(proto.write(FIELD_TYPE_INT64 | PrimitiveProto::kValInt64FieldNumber, -1LL)); in TEST() 56 EXPECT_TRUE(proto.write(FIELD_TYPE_FLOAT | PrimitiveProto::kValFloatFieldNumber, -23.5f)); in TEST() 57 EXPECT_TRUE(proto.write(FIELD_TYPE_DOUBLE | PrimitiveProto::kValDoubleFieldNumber, 324.5)); in TEST() [all …]
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsProtoV2.java | 28 import android.util.proto.ProtoInputStream; 29 import android.util.proto.ProtoOutputStream; 52 private static UsageStats parseUsageStats(ProtoInputStream proto, final long beginTime) in parseUsageStats() argument 57 switch (proto.nextField()) { in parseUsageStats() 59 stats.mPackageToken = proto.readInt( in parseUsageStats() 63 stats.mLastTimeUsed = beginTime + proto.readLong( in parseUsageStats() 67 stats.mTotalTimeInForeground = proto.readLong( in parseUsageStats() 71 stats.mAppLaunchCount = proto.readInt( in parseUsageStats() 76 final long token = proto.start(UsageStatsObfuscatedProto.CHOOSER_ACTIONS); in parseUsageStats() 77 loadChooserCounts(proto, stats); in parseUsageStats() [all …]
|
D | UsageStatsProto.java | 24 import android.util.proto.ProtoInputStream; 25 import android.util.proto.ProtoOutputStream; 43 private static List<String> readStringPool(ProtoInputStream proto) throws IOException { in readStringPool() argument 45 final long token = proto.start(IntervalStatsProto.STRINGPOOL); in readStringPool() 47 if (proto.nextField(IntervalStatsProto.StringPool.SIZE)) { in readStringPool() 48 stringPool = new ArrayList(proto.readInt(IntervalStatsProto.StringPool.SIZE)); in readStringPool() 52 while (proto.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in readStringPool() 53 switch (proto.getFieldNumber()) { in readStringPool() 55 stringPool.add(proto.readString(IntervalStatsProto.StringPool.STRINGS)); in readStringPool() 59 proto.end(token); in readStringPool() [all …]
|
/frameworks/base/core/java/com/android/internal/inputmethod/ |
D | InputConnectionProtoDumper.java | 30 import android.util.proto.ProtoOutputStream; 65 ProtoOutputStream proto = new ProtoOutputStream(); in buildGetTextAfterCursorProto() local 66 final long token = proto.start(GET_TEXT_AFTER_CURSOR); in buildGetTextAfterCursorProto() 67 proto.write(GetTextAfterCursor.LENGTH, length); in buildGetTextAfterCursorProto() 68 proto.write(GetTextAfterCursor.FLAGS, flags); in buildGetTextAfterCursorProto() 69 proto.end(token); in buildGetTextAfterCursorProto() 70 return proto.getBytes(); in buildGetTextAfterCursorProto() 88 ProtoOutputStream proto = new ProtoOutputStream(); in buildGetTextBeforeCursorProto() local 89 final long token = proto.start(GET_TEXT_BEFORE_CURSOR); in buildGetTextBeforeCursorProto() 90 proto.write(GetTextBeforeCursor.LENGTH, length); in buildGetTextBeforeCursorProto() [all …]
|
/frameworks/base/core/java/com/android/internal/print/ |
D | DumpUtils.java | 56 public static void writePrinterId(@NonNull DualDumpOutputStream proto, String idName, long id, in writePrinterId() argument 58 long token = proto.start(idName, id); in writePrinterId() 59 writeComponentName(proto, "service_name", PrinterIdProto.SERVICE_NAME, in writePrinterId() 61 proto.write("local_id", PrinterIdProto.LOCAL_ID, printerId.getLocalId()); in writePrinterId() 62 proto.end(token); in writePrinterId() 74 @NonNull DualDumpOutputStream proto, String idName, long id, in writePrinterCapabilities() argument 76 long token = proto.start(idName, id); in writePrinterCapabilities() 77 writeMargins(proto, "min_margins", PrinterCapabilitiesProto.MIN_MARGINS, in writePrinterCapabilities() 82 writeMediaSize(context, proto, "media_sizes", PrinterCapabilitiesProto.MEDIA_SIZES, in writePrinterCapabilities() 88 writeResolution(proto, "resolutions", PrinterCapabilitiesProto.RESOLUTIONS, in writePrinterCapabilities() [all …]
|
/frameworks/base/ |
D | ProtoLibraries.bp | 35 ":ipconnectivity-proto-src", 39 "core/proto/**/*.proto", 40 "libs/incident/**/*.proto", 67 ":ipconnectivity-proto-src", 70 "core/proto/**/*.proto", 71 "libs/incident/**/*.proto", 78 output_extension: "proto.h", 101 "core/proto/android/app/pendingintent.proto", 102 "core/proto/android/content/component_name.proto", 103 "core/proto/android/content/intent.proto", [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | TileStateToProtoTest.kt | 35 val proto = state.toProto() in platformTile_INACTIVE() constant 37 assertThat(proto).isNotNull() in platformTile_INACTIVE() 38 assertThat(proto?.hasSpec()).isTrue() in platformTile_INACTIVE() 39 assertThat(proto?.spec).isEqualTo(TEST_SPEC) in platformTile_INACTIVE() 40 assertThat(proto?.hasComponentName()).isFalse() in platformTile_INACTIVE() 41 assertThat(proto?.label).isEqualTo(TEST_LABEL) in platformTile_INACTIVE() 42 assertThat(proto?.secondaryLabel).isEqualTo(TEST_SUBTITLE) in platformTile_INACTIVE() 43 assertThat(proto?.state).isEqualTo(Tile.STATE_INACTIVE) in platformTile_INACTIVE() 44 assertThat(proto?.hasBooleanState()).isFalse() in platformTile_INACTIVE() 56 val proto = state.toProto() in componentTile_UNAVAILABLE() constant [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | SmsStats.java | 94 IncomingSms proto = getIncomingDefaultProto(is3gpp2, SOURCE_NOT_INJECTED, isEmergency); in onDroppedIncomingMultipartSms() local 97 proto.smsTech = INCOMING_SMS__SMS_TECH__SMS_TECH_UNKNOWN; in onDroppedIncomingMultipartSms() 98 proto.rat = TelephonyManager.NETWORK_TYPE_UNKNOWN; in onDroppedIncomingMultipartSms() 99 proto.error = INCOMING_SMS__ERROR__SMS_ERROR_GENERIC; in onDroppedIncomingMultipartSms() 100 proto.totalParts = totalCount; in onDroppedIncomingMultipartSms() 101 proto.receivedParts = receivedCount; in onDroppedIncomingMultipartSms() 102 mAtomsStorage.addIncomingSms(proto); in onDroppedIncomingMultipartSms() 108 IncomingSms proto = getIncomingDefaultProto(is3gpp2, smsSource, false); in onIncomingSmsVoicemail() local 109 proto.smsType = INCOMING_SMS__SMS_TYPE__SMS_TYPE_VOICEMAIL_INDICATION; in onIncomingSmsVoicemail() 110 mAtomsStorage.addIncomingSms(proto); in onIncomingSmsVoicemail() [all …]
|
D | VoiceCallSessionStats.java | 218 VoiceCallSession proto = mCallProtos.get(id); in onRilCallListChanged() local 220 checkCallSetup(conn, proto); in onRilCallListChanged() 223 proto.bearerAtEnd = getBearer(conn); // should be CS in onRilCallListChanged() 224 proto.disconnectReasonCode = conn.getDisconnectCause(); in onRilCallListChanged() 225 proto.disconnectExtraCode = conn.getPreciseDisconnectCause(); in onRilCallListChanged() 226 proto.disconnectExtraMessage = conn.getVendorDisconnectCause(); in onRilCallListChanged() 227 proto.callDuration = classifyCallDuration(conn.getDurationMillis()); in onRilCallListChanged() 233 callAnalytics.onCallTerminated(proto.isEmergency, in onRilCallListChanged() 236 proto.bearerAtEnd), in onRilCallListChanged() 237 proto.simSlotIndex, proto.disconnectReasonCode); in onRilCallListChanged() [all …]
|
D | SatelliteStats.java | 2144 SatelliteController proto = new SatelliteController(); in onSatelliteControllerMetrics() local 2145 proto.countOfSatelliteServiceEnablementsSuccess = in onSatelliteControllerMetrics() 2147 proto.countOfSatelliteServiceEnablementsFail = in onSatelliteControllerMetrics() 2149 proto.countOfOutgoingDatagramSuccess = param.getCountOfOutgoingDatagramSuccess(); in onSatelliteControllerMetrics() 2150 proto.countOfOutgoingDatagramFail = param.getCountOfOutgoingDatagramFail(); in onSatelliteControllerMetrics() 2151 proto.countOfIncomingDatagramSuccess = param.getCountOfIncomingDatagramSuccess(); in onSatelliteControllerMetrics() 2152 proto.countOfIncomingDatagramFail = param.getCountOfIncomingDatagramFail(); in onSatelliteControllerMetrics() 2153 proto.countOfDatagramTypeSosSmsSuccess = param.getCountOfDatagramTypeSosSmsSuccess(); in onSatelliteControllerMetrics() 2154 proto.countOfDatagramTypeSosSmsFail = param.getCountOfDatagramTypeSosSmsFail(); in onSatelliteControllerMetrics() 2155 proto.countOfDatagramTypeLocationSharingSuccess = in onSatelliteControllerMetrics() [all …]
|
/frameworks/base/core/java/android/util/proto/ |
D | ProtoUtils.java | 17 package android.util.proto; 36 public static void toAggStatsProto(ProtoOutputStream proto, long fieldId, in toAggStatsProto() argument 38 final long aggStatsToken = proto.start(fieldId); in toAggStatsProto() 39 proto.write(AggStats.MIN, min); in toAggStatsProto() 40 proto.write(AggStats.AVERAGE, average); in toAggStatsProto() 41 proto.write(AggStats.MAX, max); in toAggStatsProto() 42 proto.write(AggStats.MEAN_KB, meanKb); in toAggStatsProto() 43 proto.write(AggStats.MAX_KB, maxKb); in toAggStatsProto() 44 proto.end(aggStatsToken); in toAggStatsProto() 50 public static void toAggStatsProto(ProtoOutputStream proto, long fieldId, in toAggStatsProto() argument [all …]
|
/frameworks/base/core/proto/android/os/ |
D | incident.proto | 20 import "frameworks/base/core/proto/android/nfc/nfc_service.proto"; 21 import "frameworks/base/core/proto/android/os/backtrace.proto"; 22 import "frameworks/base/core/proto/android/os/batterytype.proto"; 23 import "frameworks/base/core/proto/android/os/cpufreq.proto"; 24 import "frameworks/base/core/proto/android/os/cpuinfo.proto"; 25 import "frameworks/base/core/proto/android/os/cpu_usage.proto"; 26 import "frameworks/base/core/proto/android/os/data.proto"; 27 import "frameworks/base/core/proto/android/os/header.proto"; 28 import "frameworks/base/core/proto/android/os/kernelwake.proto"; 29 import "frameworks/base/core/proto/android/os/metadata.proto"; [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/ |
D | DataNetworkValidationStatsTest.java | 103 PersistAtomsProto.DataNetworkValidation proto = captor.getValue(); in testOnUpdateNetworkValidationStateWithSuccessStatus() local 108 proto.networkType); in testOnUpdateNetworkValidationStateWithSuccessStatus() 109 assertEquals(ApnSetting.TYPE_IMS, proto.apnTypeBitmask); in testOnUpdateNetworkValidationStateWithSuccessStatus() 112 proto.signalStrength); in testOnUpdateNetworkValidationStateWithSuccessStatus() 115 proto.validationResult); in testOnUpdateNetworkValidationStateWithSuccessStatus() 116 assertEquals(100L, proto.elapsedTimeInMillis); in testOnUpdateNetworkValidationStateWithSuccessStatus() 117 assertFalse(proto.handoverAttempted); in testOnUpdateNetworkValidationStateWithSuccessStatus() 118 assertEquals(1, proto.networkValidationCount); in testOnUpdateNetworkValidationStateWithSuccessStatus() 138 PersistAtomsProto.DataNetworkValidation proto = captor.getValue(); in testOnUpdateNetworkValidationStateWithFailureStatus() local 143 proto.networkType); in testOnUpdateNetworkValidationStateWithFailureStatus() [all …]
|
/frameworks/base/services/core/java/com/android/server/vibrator/ |
D | Vibration.java | 32 import android.util.proto.ProtoOutputStream; 331 void dump(ProtoOutputStream proto, long fieldId) { in dump() argument 332 final long token = proto.start(fieldId); in dump() 333 proto.write(VibrationProto.START_TIME, mStartTime); in dump() 334 proto.write(VibrationProto.END_TIME, mEndTime); in dump() 335 proto.write(VibrationProto.DURATION_MS, mDurationMs); in dump() 336 proto.write(VibrationProto.STATUS, mStatus.ordinal()); in dump() 338 final long attrsToken = proto.start(VibrationProto.ATTRIBUTES); in dump() 340 proto.write(VibrationAttributesProto.USAGE, attrs.getUsage()); in dump() 341 proto.write(VibrationAttributesProto.AUDIO_USAGE, attrs.getAudioUsage()); in dump() [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationHistoryProtoHelper.java | 24 import android.util.proto.ProtoInputStream; 25 import android.util.proto.ProtoOutputStream; 45 private static List<String> readStringPool(ProtoInputStream proto) throws IOException { in readStringPool() argument 46 final long token = proto.start(NotificationHistoryProto.STRING_POOL); in readStringPool() 48 if (proto.nextField(NotificationHistoryProto.StringPool.SIZE)) { in readStringPool() 49 stringPool = new ArrayList(proto.readInt(NotificationHistoryProto.StringPool.SIZE)); in readStringPool() 53 while (proto.nextField() != ProtoInputStream.NO_MORE_FIELDS) { in readStringPool() 54 switch (proto.getFieldNumber()) { in readStringPool() 56 stringPool.add(proto.readString(NotificationHistoryProto.StringPool.STRINGS)); in readStringPool() 60 proto.end(token); in readStringPool() [all …]
|
/frameworks/proto_logging/stats/enums/bluetooth/ |
D | Android.bp | 24 proto: { 29 "a2dp/enums.proto", 30 "enums.proto", 31 "hci/enums.proto", 32 "hfp/enums.proto", 33 "le/enums.proto", 34 "rfcomm/enums.proto", 35 "smp/enums.proto", 46 "enums.proto", 53 "a2dp/enums.proto", [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | DiskStatsService.java | 35 import android.util.proto.ProtoOutputStream; 94 ProtoOutputStream proto = null; in dump() local 97 proto = new ProtoOutputStream(fd); in dump() 99 proto.write(DiskStatsServiceDumpProto.HAS_TEST_ERROR, error != null); in dump() 101 proto.write(DiskStatsServiceDumpProto.ERROR_MESSAGE, error.toString()); in dump() 103 proto.write(DiskStatsServiceDumpProto.WRITE_512B_LATENCY_MILLIS, after - before); in dump() 117 reportDiskWriteSpeedProto(proto); in dump() 122 reportFreeSpace(Environment.getDataDirectory(), "Data", pw, proto, in dump() local 124 reportFreeSpace(Environment.getDownloadCacheDirectory(), "Cache", pw, proto, in dump() local 126 reportFreeSpace(new File("/system"), "System", pw, proto, in dump() [all …]
|
/frameworks/base/cmds/incident_helper/src/parsers/ |
D | ProcrankParser.cpp | 35 ProtoOutputStream proto; in Parse() local 69 uint64_t token = proto.start(ProcrankProto::PROCESSES); in Parse() 71 if (!table.insertField(&proto, header[i], record[i])) { in Parse() 76 proto.end(token); in Parse() 80 uint64_t token = proto.start(ProcrankProto::SUMMARY); in Parse() 83 uint64_t token = proto.start(ProcrankProto::Summary::TOTAL); in Parse() 85 … table.insertField(&proto, header[header.size() - i].c_str(), record[record.size() - i].c_str()); in Parse() 87 proto.end(token); in Parse() 90 uint64_t token = proto.start(ProcrankProto::Summary::ZRAM); in Parse() 91 proto.write(ProcrankProto::Summary::Zram::RAW_TEXT, zram); in Parse() [all …]
|
D | PageTypeInfoParser.cpp | 35 ProtoOutputStream proto; in Parse() local 49 proto.write(PageTypeInfoProto::PAGE_BLOCK_ORDER, pageBlockOrder); in Parse() 53 proto.write(PageTypeInfoProto::PAGES_PER_BLOCK, toInt(line)); in Parse() 67 uint64_t token = proto.start(PageTypeInfoProto::MIGRATE_TYPES); in Parse() 70 proto.write(PageTypeInfoProto::MigrateType::NODE, toInt(record[0])); in Parse() 74 proto.write(PageTypeInfoProto::MigrateType::ZONE, record[1]); in Parse() 83 proto.write(PageTypeInfoProto::MigrateType::TYPE, pageCounts[0]); in Parse() 85 … proto.write(PageTypeInfoProto::MigrateType::FREE_PAGES_COUNT, toInt(pageCounts[i])); in Parse() 89 proto.end(token); in Parse() 91 uint64_t token = proto.start(PageTypeInfoProto::BLOCKS); in Parse() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | AppSnapshotLoader.java | 148 final TaskSnapshotProto proto = TaskSnapshotProto.parseFrom(bytes); in loadTask() local 152 PreRLegacySnapshotConfig legacyConfig = getLegacySnapshotConfig(proto.taskWidth, in loadTask() 153 proto.legacyScale, highResBitmap.exists(), loadLowResolutionBitmap); in loadTask() 167 && !proto.isTranslucent ? Config.RGB_565 : Config.ARGB_8888; in loadTask() 188 proto.topActivityComponent); in loadTask() 196 taskSize = new Point(proto.taskWidth, proto.taskHeight); in loadTask() 199 return new TaskSnapshot(proto.id, SystemClock.elapsedRealtimeNanos(), in loadTask() 201 proto.orientation, proto.rotation, taskSize, in loadTask() 202 new Rect(proto.insetLeft, proto.insetTop, proto.insetRight, proto.insetBottom), in loadTask() 203 new Rect(proto.letterboxInsetLeft, proto.letterboxInsetTop, in loadTask() [all …]
|
/frameworks/base/libs/hwui/service/ |
D | GraphicsStatsService.cpp | 48 static bool mergeProfileDataIntoProto(protos::GraphicsStatsProto* proto, const std::string& package, 51 static void dumpAsTextToFd(protos::GraphicsStatsProto* proto, int outFd); 162 bool mergeProfileDataIntoProto(protos::GraphicsStatsProto* proto, const std::string& package, in mergeProfileDataIntoProto() argument 165 if (proto->stats_start() == 0 || proto->stats_start() > startTime) { in mergeProfileDataIntoProto() 166 proto->set_stats_start(startTime); in mergeProfileDataIntoProto() 168 if (proto->stats_end() == 0 || proto->stats_end() < endTime) { in mergeProfileDataIntoProto() 169 proto->set_stats_end(endTime); in mergeProfileDataIntoProto() 171 proto->set_package_name(package); in mergeProfileDataIntoProto() 172 proto->set_version_code(versionCode); in mergeProfileDataIntoProto() 173 proto->set_pipeline(data->pipelineType() == RenderPipelineType::SkiaGL ? in mergeProfileDataIntoProto() [all …]
|
/frameworks/native/services/sensorservice/ |
D | SensorList.cpp | 237 void SensorList::dump(util::ProtoOutputStream* proto) const { in dump() 241 forEachSensor([&proto] (const Sensor& s) -> bool { in dump() 242 const uint64_t token = proto->start(SENSORS); in dump() 243 proto->write(HANDLE, s.getHandle()); in dump() 244 proto->write(NAME, std::string(s.getName().c_str())); in dump() 245 proto->write(VENDOR, std::string(s.getVendor().c_str())); in dump() 246 proto->write(VERSION, s.getVersion()); in dump() 247 proto->write(STRING_TYPE, std::string(s.getStringType().c_str())); in dump() 248 proto->write(TYPE, s.getType()); in dump() 249 proto->write(REQUIRED_PERMISSION, std::string(s.getRequiredPermission().size() ? in dump() [all …]
|
/frameworks/base/apex/jobscheduler/framework/java/com/android/server/job/ |
D | JobSchedulerInternal.java | 23 import android.util.proto.ProtoOutputStream; 124 public void dumpDebug(ProtoOutputStream proto, long fieldId) { in dumpDebug() argument 125 final long token = proto.start(fieldId); in dumpDebug() 127 final long flToken = proto.start(JobStorePersistStatsProto.FIRST_LOAD); in dumpDebug() 128 proto.write(JobStorePersistStatsProto.Stats.NUM_TOTAL_JOBS, countAllJobsLoaded); in dumpDebug() 129 proto.write(JobStorePersistStatsProto.Stats.NUM_SYSTEM_SERVER_JOBS, in dumpDebug() 131 proto.write(JobStorePersistStatsProto.Stats.NUM_SYSTEM_SYNC_MANAGER_JOBS, in dumpDebug() 133 proto.end(flToken); in dumpDebug() 135 final long lsToken = proto.start(JobStorePersistStatsProto.LAST_SAVE); in dumpDebug() 136 proto.write(JobStorePersistStatsProto.Stats.NUM_TOTAL_JOBS, countAllJobsSaved); in dumpDebug() [all …]
|