diff options
| author | Treehugger Robot <treehugger-gerrit@google.com> | 2021-08-10 03:33:43 +0000 |
|---|---|---|
| committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-08-10 03:33:43 +0000 |
| commit | e165469aaf4a9023967e515a124b42fe8fdaf377 (patch) | |
| tree | 400669f1d98b6af69f468e9d43cd47051fcdcac8 /core/java | |
| parent | 6e254477ef60bcc3c0a351ac86b92933fc36c536 (diff) | |
| parent | a883c2c975d7c4726a47558c88106233efe991e6 (diff) | |
Merge "IAdbManager.getPairDevices returns FingerprintAndPairDevice[]." am: e9e1f5afa7 am: da74454c03 am: a883c2c975
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1780474
Change-Id: If69050b1d8c8d826915faef2e904e1789c24048c
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/debug/FingerprintAndPairDevice.aidl | 28 | ||||
| -rw-r--r-- | core/java/android/debug/IAdbManager.aidl | 7 |
2 files changed, 33 insertions, 2 deletions
diff --git a/core/java/android/debug/FingerprintAndPairDevice.aidl b/core/java/android/debug/FingerprintAndPairDevice.aidl new file mode 100644 index 000000000000..b439e14282e7 --- /dev/null +++ b/core/java/android/debug/FingerprintAndPairDevice.aidl @@ -0,0 +1,28 @@ +/* + * Copyright (C) 2021 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package android.debug; + +import android.debug.PairDevice; + +/** + * @see {@link android.debug.IAdbManager#getPairedDevices()} + * @hide + */ +parcelable FingerprintAndPairDevice { + String keyFingerprint; + PairDevice device; +}
\ No newline at end of file diff --git a/core/java/android/debug/IAdbManager.aidl b/core/java/android/debug/IAdbManager.aidl index aea7633d91dc..d858c549c609 100644 --- a/core/java/android/debug/IAdbManager.aidl +++ b/core/java/android/debug/IAdbManager.aidl @@ -16,6 +16,8 @@ package android.debug; +import android.debug.FingerprintAndPairDevice; + /** * Interface to communicate remotely with the {@code AdbService} in the system server. * @@ -58,9 +60,10 @@ interface IAdbManager { void denyWirelessDebugging(); /** - * Returns a Map<String, PairDevice> with the key fingerprint mapped to the device information. + * Returns an array of NamedPairDevice with the key fingerprint mapped to the device + * information. */ - Map getPairedDevices(); + FingerprintAndPairDevice[] getPairedDevices(); /** * Unpair the device identified by the key fingerprint it uses. |
