Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b9a7ef22 authored by Eugene Susla's avatar Eugene Susla Committed by Automerger Merge Worker
Browse files

Merge "Address CDM API feedback" into sc-dev am: 098bd02d

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13693064

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ic390019970d24364b5f89ba1ad7b4dc5968675ed
parents 9250a5d0 098bd02d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -9741,7 +9741,7 @@ package android.companion {
  public interface DeviceFilter<D extends android.os.Parcelable> extends android.os.Parcelable {
  }
  public class DeviceNotAssociatedException extends java.lang.Exception {
  public class DeviceNotAssociatedException extends java.lang.RuntimeException {
  }
  public final class WifiDeviceFilter implements android.companion.DeviceFilter<android.net.wifi.ScanResult> {
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ import android.annotation.Nullable;
 * An exception for a case when a given device was not
 * {@link CompanionDeviceManager#associate associated} to the calling app.
 */
public class DeviceNotAssociatedException extends Exception {
public class DeviceNotAssociatedException extends RuntimeException {
    /** @hide */
    public DeviceNotAssociatedException(@Nullable String deviceName) {
        super("Device not associated with the current app: " + deviceName);
+9 −0
Original line number Diff line number Diff line
@@ -780,6 +780,15 @@ public class CompanionDeviceManagerService extends SystemService implements Bind
                }
            }
        }

        if (association.isNotifyOnDeviceNearby()) {
            ServiceConnector<ICompanionDeviceService> serviceConnector =
                    mDeviceListenerServiceConnectors.forUser(association.getUserId())
                            .get(association.getPackageName());
            if (serviceConnector != null) {
                serviceConnector.unbind();
            }
        }
    }

    private void updateSpecialAccessPermissionForAssociatedPackage(Association association) {