Fix CTS-13_r1

We changed the code to unblock OEM

Fix: 243759495
Bug: 245997827
Ignore-AOSP-First: nearby_not_in_aosp_yet
Test: -m
Change-Id: I3ea80b28107657b55e8501a98cd5ba1208a7f68f
This commit is contained in:
Xinyi Zhou 2022-09-09 16:19:19 -07:00
commit 63ab6041f5
3 changed files with 1 additions and 7 deletions

View file

@ -109,7 +109,6 @@ public final class DataElement implements Parcelable {
*/
public DataElement(int key, @NonNull byte[] value) {
Preconditions.checkArgument(value != null, "value cannot be null");
Preconditions.checkArgument(isValidType(key), "key should one of DataElement.DataType");
mKey = key;
mValue = value;
}

View file

@ -216,10 +216,6 @@ public final class NearbyDeviceParcelable implements Parcelable {
+ Arrays.toString(mData)
+ ", salt="
+ Arrays.toString(mSalt)
+ ", presenceDevice="
+ mPresenceDevice
+ ", encryptionKeyTag="
+ Arrays.toString(mEncryptionKeyTag)
+ "]";
}

View file

@ -86,8 +86,7 @@ public class NearbyDeviceParcelableTest {
"NearbyDeviceParcelable[scanType=2, name=testDevice, medium=BLE, "
+ "txPower=0, rssi=-60, action=0, bluetoothAddress="
+ BLUETOOTH_ADDRESS
+ ", fastPairModelId=null, data=null, salt=null,"
+ " presenceDevice=null, encryptionKeyTag=null]");
+ ", fastPairModelId=null, data=null, salt=null]");
}
@Test