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", "DoNotCallSuggester"}) 20 public final class StatsEvent { newBuilder()21 public static StatsEvent.Builder newBuilder() { 22 throw new RuntimeException("Stub!"); 23 } 24 getAtomId()25 public int getAtomId() { 26 throw new RuntimeException("Stub!"); 27 } 28 getBytes()29 public byte[] getBytes() { 30 throw new RuntimeException("Stub!"); 31 } 32 getNumBytes()33 public int getNumBytes() { 34 throw new RuntimeException("Stub!"); 35 } 36 release()37 public void release() { 38 throw new RuntimeException("Stub!"); 39 } 40 41 private static final class Buffer { 42 } 43 44 @SuppressWarnings({"unused", "DoNotCallSuggester"}) 45 public static final class Builder { setAtomId(int atomId)46 public StatsEvent.Builder setAtomId(int atomId) { 47 throw new RuntimeException("Stub!"); 48 } 49 writeBoolean(boolean value)50 public StatsEvent.Builder writeBoolean(boolean value) { 51 throw new RuntimeException("Stub!"); 52 } 53 writeInt(int value)54 public StatsEvent.Builder writeInt(int value) { 55 throw new RuntimeException("Stub!"); 56 } 57 writeIntArray(int[] values)58 public StatsEvent.Builder writeIntArray(int[] values) { 59 throw new RuntimeException("Stub!"); 60 } 61 writeLong(long value)62 public StatsEvent.Builder writeLong(long value) { 63 throw new RuntimeException("Stub!"); 64 } 65 writeFloat(float value)66 public StatsEvent.Builder writeFloat(float value) { 67 throw new RuntimeException("Stub!"); 68 } 69 writeString(String value)70 public StatsEvent.Builder writeString(String value) { 71 throw new RuntimeException("Stub!"); 72 } 73 writeByteArray(byte[] value)74 public StatsEvent.Builder writeByteArray(byte[] value) { 75 throw new RuntimeException("Stub!"); 76 } 77 writeAttributionChain(int[] uids, String[] tags)78 public StatsEvent.Builder writeAttributionChain(int[] uids, String[] tags) { 79 throw new RuntimeException("Stub!"); 80 } 81 addBooleanAnnotation(byte annotationId, boolean value)82 public StatsEvent.Builder addBooleanAnnotation(byte annotationId, boolean value) { 83 throw new RuntimeException("Stub!"); 84 } 85 addIntAnnotation(byte annotationId, int value)86 public StatsEvent.Builder addIntAnnotation(byte annotationId, int value) { 87 throw new RuntimeException("Stub!"); 88 } 89 usePooledBuffer()90 public StatsEvent.Builder usePooledBuffer() { 91 throw new RuntimeException("Stub!"); 92 } 93 build()94 public StatsEvent build() { 95 throw new RuntimeException("Stub!"); 96 } 97 } 98 } 99