/frameworks/base/cmds/statsd/tools/loadtest/src/com/android/statsd/loadtest/ |
D | SequencePusher.java | 19 import android.util.StatsLog; 80 StatsLog.write(StatsLog.BATTERY_LEVEL_CHANGED, 50 + i /* battery_level */); in next() 86 StatsLog.write(StatsLog.BLE_SCAN_RESULT_RECEIVED, i /* uid */, in next() 92 StatsLog.write(StatsLog.CHARGING_STATE_CHANGED, in next() 93 StatsLog.CHARGING_STATE_CHANGED__STATE__BATTERY_STATUS_CHARGING in next() 99 StatsLog.write(StatsLog.GPS_SCAN_STATE_CHANGED, i /* uid */, in next() 100 StatsLog.GPS_SCAN_STATE_CHANGED__STATE__ON /* state */); in next() 105 StatsLog.write(StatsLog.CHARGING_STATE_CHANGED, in next() 106 StatsLog.CHARGING_STATE_CHANGED__STATE__BATTERY_STATUS_NOT_CHARGING in next() 112 StatsLog.write(StatsLog.GPS_SCAN_STATE_CHANGED, i /* uid */, in next() [all …]
|
D | DisplayProtoUtils.java | 20 import com.android.os.StatsLog; 27 … public static void displayLogReport(StringBuilder sb, StatsLog.ConfigMetricsReportList reports) { in displayLogReport() 31 com.android.os.StatsLog.ConfigMetricsReportList.ConfigKey key = reports.getConfigKey(); in displayLogReport() 37 for (StatsLog.ConfigMetricsReport report : reports.getReportsList()) { in displayLogReport() 43 for (StatsLog.StatsLogReport log : report.getMetricsList()) { in displayLogReport() 87 … private static void displayDimension(StringBuilder sb, StatsLog.DimensionsValue dimensionValue) { in displayDimension() 99 for (StatsLog.DimensionsValue child : in displayDimension() 108 public static void displayDurationMetricData(StringBuilder sb, StatsLog.StatsLogReport log) { in displayDurationMetricData() 109 StatsLog.StatsLogReport.DurationMetricDataWrapper durationMetricDataWrapper in displayDurationMetricData() 112 for (StatsLog.DurationMetricData duration : durationMetricDataWrapper.getDataList()) { in displayDurationMetricData() [all …]
|
D | ValidationRecorder.java | 20 import com.android.os.StatsLog.ConfigMetricsReport; 21 import com.android.os.StatsLog.EventMetricData; 22 import com.android.os.StatsLog.StatsLogReport;
|
/frameworks/base/core/java/com/android/internal/os/logging/ |
D | MetricsLoggerWrapper.java | 23 import android.util.StatsLog; 42 StatsLog.write(StatsLog.PICTURE_IN_PICTURE_STATE_CHANGED, in logPictureInPictureDismissByTap() 45 StatsLog.PICTURE_IN_PICTURE_STATE_CHANGED__STATE__DISMISSED); in logPictureInPictureDismissByTap() 53 StatsLog.write(StatsLog.PICTURE_IN_PICTURE_STATE_CHANGED, in logPictureInPictureDismissByDrag() 56 StatsLog.PICTURE_IN_PICTURE_STATE_CHANGED__STATE__DISMISSED); in logPictureInPictureDismissByDrag() 63 StatsLog.write(StatsLog.PICTURE_IN_PICTURE_STATE_CHANGED, in logPictureInPictureMinimize() 66 StatsLog.PICTURE_IN_PICTURE_STATE_CHANGED__STATE__MINIMIZED); in logPictureInPictureMinimize() 95 StatsLog.write(StatsLog.PICTURE_IN_PICTURE_STATE_CHANGED, uid, in logPictureInPictureEnter() 97 StatsLog.PICTURE_IN_PICTURE_STATE_CHANGED__STATE__ENTERED); in logPictureInPictureEnter() 104 StatsLog.write(StatsLog.PICTURE_IN_PICTURE_STATE_CHANGED, in logPictureInPictureFullScreen() [all …]
|
/frameworks/base/cmds/statsd/tools/dogfood/src/com/android/statsd/dogfood/ |
D | DisplayProtoUtils.java | 20 import com.android.os.StatsLog; 25 … public static void displayLogReport(StringBuilder sb, StatsLog.ConfigMetricsReportList reports) { in displayLogReport() 28 com.android.os.StatsLog.ConfigMetricsReportList.ConfigKey key = reports.getConfigKey(); in displayLogReport() 33 for (StatsLog.ConfigMetricsReport report : reports.getReportsList()) { in displayLogReport() 39 for (StatsLog.StatsLogReport log : report.getMetricsList()) { in displayLogReport() 76 … private static void displayDimension(StringBuilder sb, StatsLog.DimensionsValue dimensionValue) { in displayDimension() 88 for (StatsLog.DimensionsValue child : in displayDimension() 97 public static void displayDurationMetricData(StringBuilder sb, StatsLog.StatsLogReport log) { in displayDurationMetricData() 98 StatsLog.StatsLogReport.DurationMetricDataWrapper durationMetricDataWrapper in displayDurationMetricData() 101 for (StatsLog.DurationMetricData duration : durationMetricDataWrapper.getDataList()) { in displayDurationMetricData() [all …]
|
D | MainActivity.java | 28 import android.util.StatsLog; 123 StatsLog.write(StatsLog.PLUGGED_STATE_CHANGED, in onCreate() 124 StatsLog.PLUGGED_STATE_CHANGED__STATE__BATTERY_PLUGGED_AC); in onCreate() 131 StatsLog.write(StatsLog.PLUGGED_STATE_CHANGED, in onCreate() 132 StatsLog.PLUGGED_STATE_CHANGED__STATE__BATTERY_PLUGGED_NONE); in onCreate() 139 StatsLog.write(StatsLog.SCREEN_STATE_CHANGED, in onCreate() 140 StatsLog.SCREEN_STATE_CHANGED__STATE__DISPLAY_STATE_ON); in onCreate() 147 StatsLog.write(StatsLog.SCREEN_STATE_CHANGED, in onCreate() 148 StatsLog.SCREEN_STATE_CHANGED__STATE__DISPLAY_STATE_OFF); in onCreate() 155 StatsLog.logStart(8); in onCreate() [all …]
|
/frameworks/base/services/core/java/com/android/server/biometrics/ |
D | LoggableMonitor.java | 24 import android.util.StatsLog; 85 StatsLog.write(StatsLog.BIOMETRIC_ACQUIRED, in logOnAcquired() 106 StatsLog.write(StatsLog.BIOMETRIC_ERROR_OCCURRED, in logOnError() 119 int authState = StatsLog.BIOMETRIC_AUTHENTICATED__STATE__UNKNOWN; in logOnAuthenticated() 121 authState = StatsLog.BIOMETRIC_AUTHENTICATED__STATE__REJECTED; in logOnAuthenticated() 125 authState = StatsLog.BIOMETRIC_AUTHENTICATED__STATE__PENDING_CONFIRMATION; in logOnAuthenticated() 127 authState = StatsLog.BIOMETRIC_AUTHENTICATED__STATE__CONFIRMED; in logOnAuthenticated() 148 StatsLog.write(StatsLog.BIOMETRIC_AUTHENTICATED, in logOnAuthenticated() 170 StatsLog.write(StatsLog.BIOMETRIC_ENROLLED, in logOnEnrolled()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BatteryStatsService.java | 56 import android.util.StatsLog; 350 StatsLog.write(StatsLog.PROCESS_LIFE_CYCLE_STATE_CHANGED, uid, name, in noteProcessStart() 351 StatsLog.PROCESS_LIFE_CYCLE_STATE_CHANGED__STATE__STARTED); in noteProcessStart() 358 StatsLog.write(StatsLog.PROCESS_LIFE_CYCLE_STATE_CHANGED, uid, name, in noteProcessCrash() 359 StatsLog.PROCESS_LIFE_CYCLE_STATE_CHANGED__STATE__CRASHED); in noteProcessCrash() 372 StatsLog.write(StatsLog.PROCESS_LIFE_CYCLE_STATE_CHANGED, uid, name, in noteProcessFinish() 373 StatsLog.PROCESS_LIFE_CYCLE_STATE_CHANGED__STATE__FINISHED); in noteProcessFinish() 380 StatsLog.write(StatsLog.UID_PROCESS_STATE_CHANGED, uid, in noteUidProcessState() 456 StatsLog.write_non_chained(StatsLog.SYNC_STATE_CHANGED, uid, null, name, in noteSyncStart() 457 StatsLog.SYNC_STATE_CHANGED__STATE__ON); in noteSyncStart() [all …]
|
/frameworks/base/services/core/java/com/android/server/signedconfig/ |
D | SignedConfigEvent.java | 18 import android.util.StatsLog; 25 public int type = StatsLog.SIGNED_CONFIG_REPORTED__TYPE__UNKNOWN_TYPE; 26 public int status = StatsLog.SIGNED_CONFIG_REPORTED__STATUS__UNKNOWN_STATUS; 29 public int verifiedWith = StatsLog.SIGNED_CONFIG_REPORTED__VERIFIED_WITH__NO_KEY; 35 StatsLog.write(StatsLog.SIGNED_CONFIG_REPORTED, in send()
|
D | SignatureVerifier.java | 21 import android.util.StatsLog; 99 mEvent.status = StatsLog.SIGNED_CONFIG_REPORTED__STATUS__BASE64_FAILURE_SIGNATURE; in verifySignature() 111 mEvent.verifiedWith = StatsLog.SIGNED_CONFIG_REPORTED__VERIFIED_WITH__DEBUG; in verifySignature() 123 StatsLog.SIGNED_CONFIG_REPORTED__STATUS__SIGNATURE_CHECK_FAILED_PROD_KEY_ABSENT; in verifySignature() 128 mEvent.verifiedWith = StatsLog.SIGNED_CONFIG_REPORTED__VERIFIED_WITH__PRODUCTION; in verifySignature() 132 mEvent.status = StatsLog.SIGNED_CONFIG_REPORTED__STATUS__SIGNATURE_CHECK_FAILED; in verifySignature()
|
D | GlobalSettingsConfigApplicator.java | 26 import android.util.StatsLog; 85 mEvent.status = StatsLog.SIGNED_CONFIG_REPORTED__STATUS__SECURITY_EXCEPTION; in checkSignature() 119 mEvent.status = StatsLog.SIGNED_CONFIG_REPORTED__STATUS__INVALID_CONFIG; in applyConfig() 126 mEvent.status = StatsLog.SIGNED_CONFIG_REPORTED__STATUS__OLD_CONFIG; in applyConfig() 136 mEvent.status = StatsLog.SIGNED_CONFIG_REPORTED__STATUS__NOT_APPLICABLE; in applyConfig() 142 mEvent.status = StatsLog.SIGNED_CONFIG_REPORTED__STATUS__APPLIED; in applyConfig()
|
/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/ |
D | ContentCaptureMetricsLogger.java | 23 import android.util.StatsLog; 38 StatsLog.write(StatsLog.CONTENT_CAPTURE_SERVICE_EVENTS, eventType, serviceName, in writeServiceEvent() 82 StatsLog.write(StatsLog.CONTENT_CAPTURE_SERVICE_EVENTS, in writeSetWhitelistEvent() 83 StatsLog.CONTENT_CAPTURE_SERVICE_EVENTS__EVENT__SET_WHITELIST, in writeSetWhitelistEvent() 90 StatsLog.write(StatsLog.CONTENT_CAPTURE_SESSION_EVENTS, sessionId, event, flags, in writeSessionEvent() 99 StatsLog.write(StatsLog.CONTENT_CAPTURE_FLUSHED, sessionId, in writeSessionFlush()
|
D | RemoteContentCaptureService.java | 34 import android.util.StatsLog; 84 writeServiceEvent(StatsLog.CONTENT_CAPTURE_SERVICE_EVENTS__EVENT__ON_CONNECTED, in handleOnConnectedStateChanged() 93 writeServiceEvent(StatsLog.CONTENT_CAPTURE_SERVICE_EVENTS__EVENT__ON_DISCONNECTED, in handleOnConnectedStateChanged() 115 StatsLog.CONTENT_CAPTURE_SESSION_EVENTS__EVENT__ON_SESSION_STARTED, initialState, in onSessionStarted() 127 StatsLog.CONTENT_CAPTURE_SESSION_EVENTS__EVENT__ON_SESSION_FINISHED, in onSessionFinished() 144 writeServiceEvent(StatsLog.CONTENT_CAPTURE_SERVICE_EVENTS__EVENT__ON_USER_DATA_REMOVED, in onDataRemovalRequest()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiMulticastLockManager.java | 23 import android.util.StatsLog; 154 StatsLog.write_non_chained( in acquireLock() 155 StatsLog.WIFI_MULTICAST_LOCK_STATE_CHANGED, uid, null, in acquireLock() 156 StatsLog.WIFI_MULTICAST_LOCK_STATE_CHANGED__STATE__ON, tag); in acquireLock() 192 StatsLog.write_non_chained( in removeMulticasterLocked() 193 StatsLog.WIFI_MULTICAST_LOCK_STATE_CHANGED, uid, null, in removeMulticasterLocked() 194 StatsLog.WIFI_MULTICAST_LOCK_STATE_CHANGED__STATE__OFF, tag); in removeMulticasterLocked()
|
D | WifiLockManager.java | 30 import android.util.StatsLog; 713 StatsLog.write(StatsLog.WIFI_LOCK_STATE_CHANGED, ws, in setBlameHiPerfWs() 714 StatsLog.WIFI_LOCK_STATE_CHANGED__STATE__ON, in setBlameHiPerfWs() 718 StatsLog.write(StatsLog.WIFI_LOCK_STATE_CHANGED, ws, in setBlameHiPerfWs() 719 StatsLog.WIFI_LOCK_STATE_CHANGED__STATE__OFF, in setBlameHiPerfWs() 734 StatsLog.write_non_chained(StatsLog.WIFI_LOCK_STATE_CHANGED, uid, null, in setBlameLowLatencyUid() 735 StatsLog.WIFI_LOCK_STATE_CHANGED__STATE__ON, in setBlameLowLatencyUid() 739 StatsLog.write_non_chained(StatsLog.WIFI_LOCK_STATE_CHANGED, uid, null, in setBlameLowLatencyUid() 740 StatsLog.WIFI_LOCK_STATE_CHANGED__STATE__OFF, in setBlameLowLatencyUid()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsHelperTest.java | 40 import android.util.StatsLog; 265 StatsLog.DEVICE_CALCULATED_POWER_BLAME_OTHER__DRAIN_TYPE__AMBIENT_DISPLAY); in testDrainTypesSyncedWithProto() 268 StatsLog.DEVICE_CALCULATED_POWER_BLAME_OTHER__DRAIN_TYPE__BLUETOOTH); in testDrainTypesSyncedWithProto() 270 StatsLog.DEVICE_CALCULATED_POWER_BLAME_OTHER__DRAIN_TYPE__CAMERA); in testDrainTypesSyncedWithProto() 272 StatsLog.DEVICE_CALCULATED_POWER_BLAME_OTHER__DRAIN_TYPE__CELL); in testDrainTypesSyncedWithProto() 274 StatsLog.DEVICE_CALCULATED_POWER_BLAME_OTHER__DRAIN_TYPE__FLASHLIGHT); in testDrainTypesSyncedWithProto() 276 StatsLog.DEVICE_CALCULATED_POWER_BLAME_OTHER__DRAIN_TYPE__IDLE); in testDrainTypesSyncedWithProto() 278 StatsLog.DEVICE_CALCULATED_POWER_BLAME_OTHER__DRAIN_TYPE__MEMORY); in testDrainTypesSyncedWithProto() 280 StatsLog.DEVICE_CALCULATED_POWER_BLAME_OTHER__DRAIN_TYPE__OVERCOUNTED); in testDrainTypesSyncedWithProto() 282 StatsLog.DEVICE_CALCULATED_POWER_BLAME_OTHER__DRAIN_TYPE__PHONE); in testDrainTypesSyncedWithProto() [all …]
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
D | StatsLogCompat.java | 19 import android.util.StatsLog; 32 StatsLog.write(19, action, srcState, dstState, extension, in write() 46 StatsLog.write(179, action, colorPackageHash, in write()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | Notifier.java | 51 import android.util.StatsLog; 196 StatsLog.write(StatsLog.INTERACTIVE_STATE_CHANGED, in Notifier() 197 StatsLog.INTERACTIVE_STATE_CHANGED__STATE__ON); in Notifier() 242 StatsLog.write(StatsLog.LONG_PARTIAL_WAKELOCK_STATE_CHANGED, workSource, in onLongPartialWakeLockStart() 243 tag, historyTag, StatsLog.LONG_PARTIAL_WAKELOCK_STATE_CHANGED__STATE__ON); in onLongPartialWakeLockStart() 246 StatsLog.write_non_chained(StatsLog.LONG_PARTIAL_WAKELOCK_STATE_CHANGED, in onLongPartialWakeLockStart() 248 StatsLog.LONG_PARTIAL_WAKELOCK_STATE_CHANGED__STATE__ON); in onLongPartialWakeLockStart() 265 StatsLog.write(StatsLog.LONG_PARTIAL_WAKELOCK_STATE_CHANGED, workSource, in onLongPartialWakeLockFinish() 266 tag, historyTag, StatsLog.LONG_PARTIAL_WAKELOCK_STATE_CHANGED__STATE__OFF); in onLongPartialWakeLockFinish() 269 StatsLog.write_non_chained(StatsLog.LONG_PARTIAL_WAKELOCK_STATE_CHANGED, in onLongPartialWakeLockFinish() [all …]
|
/frameworks/base/services/core/java/com/android/server/stats/ |
D | StatsCompanionService.java | 111 import android.util.StatsLog; 1434 e.writeInt(StatsLog.DIRECTORY_USAGE__DIRECTORY__DATA); in pullDirectoryUsage() 1440 e.writeInt(StatsLog.DIRECTORY_USAGE__DIRECTORY__CACHE); in pullDirectoryUsage() 1446 e.writeInt(StatsLog.DIRECTORY_USAGE__DIRECTORY__SYSTEM); in pullDirectoryUsage() 1492 e.writeInt(StatsLog.CATEGORY_SIZE__CATEGORY__APP_SIZE); in pullCategorySize() 1498 e.writeInt(StatsLog.CATEGORY_SIZE__CATEGORY__APP_DATA_SIZE); in pullCategorySize() 1504 e.writeInt(StatsLog.CATEGORY_SIZE__CATEGORY__APP_CACHE_SIZE); in pullCategorySize() 1510 e.writeInt(StatsLog.CATEGORY_SIZE__CATEGORY__PHOTOS); in pullCategorySize() 1516 e.writeInt(StatsLog.CATEGORY_SIZE__CATEGORY__VIDEOS); in pullCategorySize() 1522 e.writeInt(StatsLog.CATEGORY_SIZE__CATEGORY__AUDIO); in pullCategorySize() [all …]
|
/frameworks/base/core/java/android/util/ |
D | StatsLog.java | 35 public final class StatsLog extends StatsLogInternal { class 43 private StatsLog() { in StatsLog() method in StatsLog 63 StatsLog.APP_BREADCRUMB_REPORTED__STATE__START); in logStart() 91 service.sendAppBreadcrumbAtom(label, StatsLog.APP_BREADCRUMB_REPORTED__STATE__STOP); in logStop() 120 label, StatsLog.APP_BREADCRUMB_REPORTED__STATE__UNSPECIFIED); in logEvent()
|
/frameworks/base/services/core/java/com/android/server/rollback/ |
D | RollbackPackageHealthObserver.java | 39 import android.util.StatsLog; 122 StatsLog.WATCHDOG_ROLLBACK_OCCURRED__ROLLBACK_TYPE__ROLLBACK_INITIATE); in execute() 139 StatsLog.WATCHDOG_ROLLBACK_OCCURRED__ROLLBACK_TYPE__ROLLBACK_SUCCESS); in execute() 143 StatsLog.WATCHDOG_ROLLBACK_OCCURRED__ROLLBACK_TYPE__ROLLBACK_FAILURE); in execute() 222 StatsLog.WATCHDOG_ROLLBACK_OCCURRED__ROLLBACK_TYPE__ROLLBACK_SUCCESS); in onBootCompleted() 227 StatsLog.WATCHDOG_ROLLBACK_OCCURRED__ROLLBACK_TYPE__ROLLBACK_FAILURE); in onBootCompleted() 305 StatsLog in handleStagedSessionChange() 311 StatsLog.WATCHDOG_ROLLBACK_OCCURRED__ROLLBACK_TYPE__ROLLBACK_FAILURE); in handleStagedSessionChange() 361 StatsLog.logWatchdogRollbackOccurred(type, moduleMetadataPackage.getPackageName(), in logEvent()
|
/frameworks/base/services/core/java/com/android/server/ |
D | LocationUsageLogger.java | 26 import android.util.StatsLog; 204 StatsLog.write(StatsLog.LOCATION_MANAGER_API_USAGE_REPORTED, usageType, in logLocationApiUsage() 251 StatsLog.write(StatsLog.LOCATION_MANAGER_API_USAGE_REPORTED, usageType, apiInUse, in logLocationApiUsage()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | StatusBarKeyguardViewManager.java | 28 import android.util.StatsLog; 290 StatsLog.write(StatsLog.KEYGUARD_STATE_CHANGED, in show() 291 StatsLog.KEYGUARD_STATE_CHANGED__STATE__SHOWN); in show() 455 StatsLog.write(StatsLog.KEYGUARD_STATE_CHANGED, in setOccluded() 456 StatsLog.KEYGUARD_STATE_CHANGED__STATE__OCCLUDED); in setOccluded() 470 StatsLog.write(StatsLog.KEYGUARD_STATE_CHANGED, in setOccluded() 471 StatsLog.KEYGUARD_STATE_CHANGED__STATE__SHOWN); in setOccluded() 579 StatsLog.write(StatsLog.KEYGUARD_STATE_CHANGED, in hide() 580 StatsLog.KEYGUARD_STATE_CHANGED__STATE__HIDDEN); in hide()
|
/frameworks/base/core/java/android/app/admin/ |
D | DevicePolicyEventLogger.java | 22 import android.util.StatsLog; 199 StatsLog.write(StatsLog.DEVICE_POLICY_EVENT, mEventId, mAdminPackageName, mIntValue, in write()
|
/frameworks/base/core/java/android/view/ |
D | GestureDetector.java | 19 import static android.util.StatsLog.TOUCH_GESTURE_CLASSIFIED__CLASSIFICATION__DEEP_PRESS; 20 import static android.util.StatsLog.TOUCH_GESTURE_CLASSIFIED__CLASSIFICATION__DOUBLE_TAP; 21 import static android.util.StatsLog.TOUCH_GESTURE_CLASSIFIED__CLASSIFICATION__LONG_PRESS; 22 import static android.util.StatsLog.TOUCH_GESTURE_CLASSIFIED__CLASSIFICATION__SCROLL; 23 import static android.util.StatsLog.TOUCH_GESTURE_CLASSIFIED__CLASSIFICATION__SINGLE_TAP; 24 import static android.util.StatsLog.TOUCH_GESTURE_CLASSIFIED__CLASSIFICATION__UNKNOWN_CLASSIFICATIO… 32 import android.util.StatsLog; 883 StatsLog.write( in recordGestureClassification() 884 StatsLog.TOUCH_GESTURE_CLASSIFIED, in recordGestureClassification()
|