1 /* 2 * Copyright (C) 2018 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.os; 18 19 import java.lang.String; 20 21 /** Fake android.os.Binder class that just holds a descriptor. 22 * 23 * Note that having this class will cause Proguard to issue warnings when 24 * building ahat-test-dump with 'mm' or 'mma': 25 * 26 * Warning: Library class android.net.wifi.rtt.IWifiRttManager$Stub extends 27 * program class android.os.Binder 28 * 29 * This is because when building for the device, proguard will include the 30 * framework jars, which contain Stub classes that extend android.os.Binder, 31 * which is defined again here. 32 * 33 * Since we don't actually run this code on the device, these warnings can 34 * be ignored. 35 */ 36 public class Binder implements IBinder { Binder()37 public Binder() { 38 mDescriptor = null; 39 } 40 Binder(String descriptor)41 public Binder(String descriptor) { 42 mDescriptor = descriptor; 43 } 44 45 private String mDescriptor; 46 } 47