/packages/modules/StatsD/framework/test/unittests/src/android/util/ |
D | StatsEventTest.java | 44 final StatsEvent statsEvent = StatsEvent.newBuilder().usePooledBuffer().build(); in testNoFields() 54 .that(buffer.get()).isEqualTo(StatsEvent.TYPE_OBJECT); in testNoFields() 60 .that(buffer.get()).isEqualTo(StatsEvent.TYPE_LONG); in testNoFields() 66 .that(buffer.get()).isEqualTo(StatsEvent.TYPE_INT); in testNoFields() 72 .that(buffer.get()).isEqualTo(StatsEvent.TYPE_ERRORS); in testNoFields() 77 .that(errorMask).isEqualTo(StatsEvent.ERROR_NO_ATOM_ID); in testNoFields() 89 final StatsEvent statsEvent = StatsEvent.newBuilder() in testOnlyAtomId() 101 .that(buffer.get()).isEqualTo(StatsEvent.TYPE_OBJECT); in testOnlyAtomId() 107 .that(buffer.get()).isEqualTo(StatsEvent.TYPE_LONG); in testOnlyAtomId() 113 .that(buffer.get()).isEqualTo(StatsEvent.TYPE_INT); in testOnlyAtomId() [all …]
|
/packages/modules/StatsD/tests/utils/src/android/util/ |
D | StatsEventTestUtils.java | 19 import static android.util.StatsEvent.TYPE_ATTRIBUTION_CHAIN; 20 import static android.util.StatsEvent.TYPE_BOOLEAN; 21 import static android.util.StatsEvent.TYPE_BYTE_ARRAY; 22 import static android.util.StatsEvent.TYPE_ERRORS; 23 import static android.util.StatsEvent.TYPE_FLOAT; 24 import static android.util.StatsEvent.TYPE_INT; 25 import static android.util.StatsEvent.TYPE_LIST; 26 import static android.util.StatsEvent.TYPE_LONG; 27 import static android.util.StatsEvent.TYPE_STRING; 53 public static Atom convertToAtom(StatsEvent statsEvent) throws InvalidProtocolBufferException { in convertToAtom() [all …]
|
/packages/modules/StatsD/framework/api/ |
D | system-current.txt | 63 method public int onPullAtom(int, @NonNull java.util.List<android.util.StatsEvent>); 122 public final class StatsEvent { 123 method @NonNull public static android.util.StatsEvent.Builder newBuilder(); 126 public static final class StatsEvent.Builder { 127 method @NonNull public android.util.StatsEvent.Builder addBooleanAnnotation(byte, boolean); 128 method @NonNull public android.util.StatsEvent.Builder addIntAnnotation(byte, int); 129 method @NonNull public android.util.StatsEvent build(); 130 method @NonNull public android.util.StatsEvent.Builder setAtomId(int); 131 method @NonNull public android.util.StatsEvent.Builder usePooledBuffer(); 132 …method @NonNull public android.util.StatsEvent.Builder writeAttributionChain(@NonNull int[], @NonN… [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/metrics/ |
D | TranscodeMetrics.java | 21 import android.util.StatsEvent; 50 static List<StatsEvent> pullStatsEvents() { in pullStatsEvents() 56 List<StatsEvent> result = getStatsEvents(); in pullStatsEvents() 62 private static List<StatsEvent> getStatsEvents() { in getStatsEvents() 64 List<StatsEvent> result = new ArrayList<>(); in getStatsEvents() 65 StatsEvent event; in getStatsEvents() 69 event = StatsEvent.newBuilder().setAtomId(TRANSCODING_DATA) in getStatsEvents()
|
D | PulledMetrics.java | 25 import android.util.StatsEvent; 127 public int onPullAtom(int atomTag, List<StatsEvent> data) { in onPullAtom() 129 List<StatsEvent> events = pullEvents(atomTag); in onPullAtom() 138 private List<StatsEvent> pullEvents(int atomTag) { in pullEvents()
|
D | StorageAccessMetrics.java | 29 import android.util.StatsEvent; 178 List<StatsEvent> pullStatsEvents() { in pullStatsEvents() 241 StatsEvent toStatsEvent() { in toStatsEvent() 242 return StatsEvent.newBuilder() in toStatsEvent()
|
/packages/modules/Connectivity/service/src/com/android/metrics/ |
D | ConnectivitySampleMetricsHelper.java | 24 import android.util.StatsEvent; 37 final Supplier<StatsEvent> mDelegate; 55 @NonNull final Supplier<StatsEvent> delegate) { in start() 64 public ConnectivitySampleMetricsHelper(@NonNull final Supplier<StatsEvent> delegate) { in ConnectivitySampleMetricsHelper() 69 public int onPullAtom(final int atomTag, final List<StatsEvent> data) { in onPullAtom()
|
/packages/services/Mms/tests/unittests/src/com/android/mms/service/metrics/ |
D | MmsMetricsCollectorTest.java | 34 import android.util.StatsEvent; 70 List<StatsEvent> actualAtoms = new ArrayList<>(); in onPullAtom_incomingMms_empty() 81 List<StatsEvent> actualAtoms = new ArrayList<>(); in onPullAtom_incomingMms_tooFrequent() 97 List<StatsEvent> actualAtoms = new ArrayList<>(); in onPullAtom_incomingMms_multipleMms() 108 List<StatsEvent> actualAtoms = new ArrayList<>(); in onPullAtom_outgoingMms_empty() 119 List<StatsEvent> actualAtoms = new ArrayList<>(); in onPullAtom_outgoingMms_tooFrequent() 135 List<StatsEvent> actualAtoms = new ArrayList<>(); in onPullAtom_outgoingMms_multipleMms()
|
/packages/modules/Telephony/libs/TelephonyStatsLib/src/com/android/telephony/statslib/ |
D | StatsLibPulledAtomCallback.java | 22 import android.util.StatsEvent; 115 public int onPullAtom(int atomTag, List<StatsEvent> data) { in onPullAtom() 119 final StatsEvent.Builder builder = StatsEvent.newBuilder(); in onPullAtom() 132 final StatsEvent.Builder builder = StatsEvent.newBuilder(); in onPullAtom()
|
D | AtomsPushed.java | 19 import android.util.StatsEvent; 32 public abstract void build(StatsEvent.Builder builder); in build()
|
D | AtomsPulled.java | 19 import android.util.StatsEvent; 32 public abstract void build(StatsEvent.Builder builder); in build()
|
D | StatsLib.java | 25 import android.util.StatsEvent; 112 final StatsEvent.Builder builder = StatsEvent.newBuilder(); in onWritePushedAtom()
|
/packages/services/Mms/src/com/android/mms/service/metrics/ |
D | MmsMetricsCollector.java | 25 import android.util.StatsEvent; 79 private static StatsEvent buildStatsEvent(IncomingMms mms) { in buildStatsEvent() 97 private static StatsEvent buildStatsEvent(OutgoingMms mms) { in buildStatsEvent() 117 public int onPullAtom(int atomTag, List<StatsEvent> data) { in onPullAtom() 129 private int pullIncomingMms(List<StatsEvent> data) { in pullIncomingMms() 141 private int pullOutgoingMms(List<StatsEvent> data) { in pullOutgoingMms()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiPulledAtomLogger.java | 30 import android.util.StatsEvent; 87 public int onPullAtom(int atomTag, List<StatsEvent> data) { in onPullAtom() 103 private int handleWifiVersionPull(int atomTag, List<StatsEvent> data) { in handleWifiVersionPull() 120 private int handleWifiSettingsPull(int atomTag, List<StatsEvent> data) { in handleWifiSettingsPull() 173 private int handleWifiComplexSettingsPull(int atomTag, List<StatsEvent> data) { in handleWifiComplexSettingsPull() 209 private StatsEvent wifiConfigToStatsEvent( in wifiConfigToStatsEvent() 234 private int handleWifiConfiguredNetworkInfoPull(int atomTag, List<StatsEvent> data) { in handleWifiConfiguredNetworkInfoPull()
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/metrics/ |
D | TranscodeMetricsTest.java | 21 import android.util.StatsEvent; 84 List<StatsEvent> statsEvents = TranscodeMetrics.pullStatsEvents(); in testHandleStatsEventDataRequest_resetsData() 96 List<StatsEvent> statsEvents = TranscodeMetrics.pullStatsEvents(); in testHandleStatsEventDataRequest_fillsExactlySampleLimit_excessData() 108 List<StatsEvent> statsEvents = TranscodeMetrics.pullStatsEvents(); in testHandleStatsEventDataRequest_fillsExactlyAsSaved_dataWithinSampleLimit()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WifiPulledAtomLoggerTest.java | 38 import android.util.StatsEvent; 129 List<StatsEvent> data = new ArrayList<>(); in testWifiMainlineVersionPull_builtFromSource() 160 List<StatsEvent> data = new ArrayList<>(); in testWifiMainlineVersionPull_preBuilt() 189 List<StatsEvent> data = new ArrayList<>(); in testWifiSettingsPull() 208 List<StatsEvent> data = new ArrayList<>(); in testWifiComplexSettingsPull_valid() 260 List<StatsEvent> data = new ArrayList<>(); in testWifiConfiguredNetworkInfoPull()
|
/packages/modules/AppSearch/service/java/com/android/server/appsearch/stats/ |
D | StatsCollector.java | 29 import android.util.StatsEvent; 97 public int onPullAtom(int atomTag, @NonNull List<StatsEvent> data) { in onPullAtom() 108 private static int pullAppSearchStorageInfo(@NonNull List<StatsEvent> data) { in pullAppSearchStorageInfo() 149 private static StatsEvent buildStatsEvent( in buildStatsEvent()
|
/packages/modules/StatsD/framework/java/android/util/ |
D | StatsEvent.java | 62 public final class StatsEvent { class 247 private StatsEvent(final int atomId, @Nullable final Buffer buffer, in StatsEvent() method in StatsEvent 259 public static StatsEvent.Builder newBuilder() { in newBuilder() 260 return new StatsEvent.Builder(Buffer.obtain()); in newBuilder() 769 public StatsEvent build() { in build() 798 return new StatsEvent(mAtomId, mBuffer, mBuffer.getBytes(), size); in build() 807 return new StatsEvent(mAtomId, null, payload, size); in build()
|
/packages/modules/Telephony/libs/TelephonyStatsLib/tests/com/android/telephony/statslib/ |
D | AtomsPushedTestInfo.java | 19 import android.util.StatsEvent; 56 public void build(StatsEvent.Builder builder) { in build()
|
D | AtomsPulledTestInfo.java | 19 import android.util.StatsEvent; 57 public void build(StatsEvent.Builder builder) { in build()
|
D | AtomsSerializablePulledTestInfo.java | 19 import android.util.StatsEvent; 63 public void build(StatsEvent.Builder builder) { in build()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/ |
D | LogUtils.java | 20 import android.util.StatsEvent; 62 StatsLog.write(StatsEvent.newBuilder() in log()
|
/packages/modules/Permission/service/java/com/android/safetycenter/logging/ |
D | SafetyCenterPullAtomCallback.java | 29 import android.util.StatsEvent; 86 public int onPullAtom(int atomTag, List<StatsEvent> statsEvents) { in onPullAtom() 119 private StatsEvent createOverallSafetyStateAtomLocked( in createOverallSafetyStateAtomLocked()
|
/packages/modules/Telephony/services/QualifiedNetworksService/src/com/android/telephony/qns/atoms/ |
D | AtomsQnsHandoverTimeMillisInfo.java | 19 import android.util.StatsEvent; 68 public void build(StatsEvent.Builder builder) { in build()
|
/packages/modules/AdServices/sdksandbox/service/java/com/android/server/sdksandbox/ |
D | SdkSandboxPulledAtoms.java | 26 import android.util.StatsEvent; 77 final List<StatsEvent> events = new ArrayList<>(); in initialize()
|