• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2020 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package android.util;
18 
19 @SuppressWarnings("unused")
20 public final class StatsEvent {
StatsEvent(int atomId, StatsEvent.Buffer buffer, byte[] payload, int numBytes)21     private StatsEvent(int atomId, StatsEvent.Buffer buffer, byte[] payload, int numBytes) {
22         throw new RuntimeException("Stub!");
23     }
24 
newBuilder()25     public static StatsEvent.Builder newBuilder() {
26         throw new RuntimeException("Stub!");
27     }
28 
getAtomId()29     public int getAtomId() {
30         throw new RuntimeException("Stub!");
31     }
32 
getBytes()33     public byte[] getBytes() {
34         throw new RuntimeException("Stub!");
35     }
36 
getNumBytes()37     public int getNumBytes() {
38         throw new RuntimeException("Stub!");
39     }
40 
release()41     public void release() {
42         throw new RuntimeException("Stub!");
43     }
44 
45     private static final class Buffer {
obtain()46         private static StatsEvent.Buffer obtain() {
47             throw new RuntimeException("Stub!");
48         }
49 
Buffer()50         private Buffer() {
51             throw new RuntimeException("Stub!");
52         }
53     }
54 
55     public static final class Builder {
Builder(StatsEvent.Buffer buffer)56         private Builder(StatsEvent.Buffer buffer) {
57             throw new RuntimeException("Stub!");
58         }
59 
setAtomId(int atomId)60         public StatsEvent.Builder setAtomId(int atomId) {
61             throw new RuntimeException("Stub!");
62         }
63 
writeBoolean(boolean value)64         public StatsEvent.Builder writeBoolean(boolean value) {
65             throw new RuntimeException("Stub!");
66         }
67 
writeInt(int value)68         public StatsEvent.Builder writeInt(int value) {
69             throw new RuntimeException("Stub!");
70         }
71 
writeLong(long value)72         public StatsEvent.Builder writeLong(long value) {
73             throw new RuntimeException("Stub!");
74         }
75 
writeFloat(float value)76         public StatsEvent.Builder writeFloat(float value) {
77             throw new RuntimeException("Stub!");
78         }
79 
writeString(String value)80         public StatsEvent.Builder writeString(String value) {
81             throw new RuntimeException("Stub!");
82         }
83 
writeByteArray(byte[] value)84         public StatsEvent.Builder writeByteArray(byte[] value) {
85             throw new RuntimeException("Stub!");
86         }
87 
writeByteArray(byte[] value, byte typeId)88         private void writeByteArray(byte[] value, byte typeId) {
89             throw new RuntimeException("Stub!");
90         }
91 
writeAttributionChain(int[] uids, String[] tags)92         public StatsEvent.Builder writeAttributionChain(int[] uids, String[] tags) {
93             throw new RuntimeException("Stub!");
94         }
95 
addBooleanAnnotation(byte annotationId, boolean value)96         public StatsEvent.Builder addBooleanAnnotation(byte annotationId, boolean value) {
97             throw new RuntimeException("Stub!");
98         }
99 
addIntAnnotation(byte annotationId, int value)100         public StatsEvent.Builder addIntAnnotation(byte annotationId, int value) {
101             throw new RuntimeException("Stub!");
102         }
103 
usePooledBuffer()104         public StatsEvent.Builder usePooledBuffer() {
105             throw new RuntimeException("Stub!");
106         }
107 
build()108         public StatsEvent build() {
109             throw new RuntimeException("Stub!");
110         }
111 
writeTypeId(byte typeId)112         private void writeTypeId(byte typeId) {
113             throw new RuntimeException("Stub!");
114         }
115 
writeAnnotationCount()116         private void writeAnnotationCount() {
117             throw new RuntimeException("Stub!");
118         }
119 
stringToBytes(String value)120         private static byte[] stringToBytes(String value) {
121             throw new RuntimeException("Stub!");
122         }
123     }
124 }
125