| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
package android.nfc.cardemulation; |
| 18 |
|
| 19 |
import android.annotation.NonNull; |
| 20 |
import android.content.ComponentName; |
| 21 |
import android.content.ComponentNameProto; |
| 22 |
import android.util.proto.ProtoOutputStream; |
| 23 |
|
| 24 |
|
| 25 |
public final class Utils { |
| 26 |
private Utils() { |
| 27 |
} |
| 28 |
|
| 29 |
|
| 30 |
public static void dumpDebugComponentName( |
| 31 |
@NonNull ComponentName componentName, @NonNull ProtoOutputStream proto, long fieldId) { |
| 32 |
final long token = proto.start(fieldId); |
| 33 |
proto.write(ComponentNameProto.PACKAGE_NAME, componentName.getPackageName()); |
| 34 |
proto.write(ComponentNameProto.CLASS_NAME, componentName.getClassName()); |
| 35 |
proto.end(token); |
| 36 |
} |
| 37 |
} |