Extend CarProjectionManager to support wireless
Delegate creating and managing access point to Car Service. Wireless
receiver apps should use this API which allows to start tethered and
local-only hotspot depending on the user preference.
Bug: 115754607
Test: flash mojave and verify wireless AAP works + API test
Change-Id: Ie5edf308dc4d764f33427495e73f19645a2ea2c2
diff --git a/car-lib/api/system-current.txt b/car-lib/api/system-current.txt
index c4c4385..55fc0c6 100644
--- a/car-lib/api/system-current.txt
+++ b/car-lib/api/system-current.txt
@@ -42,6 +42,8 @@
method public void onCarDisconnected();
method public void registerProjectionListener(android.car.CarProjectionManager.CarProjectionListener, int) throws android.car.CarNotConnectedException;
method public void registerProjectionRunner(android.content.Intent) throws android.car.CarNotConnectedException;
+ method public void startProjectionAccessPoint(android.car.CarProjectionManager.ProjectionAccessPointCallback);
+ method public void stopProjectionAccessPoint();
method public void unregisterProjectionListener();
method public void unregisterProjectionRunner(android.content.Intent);
field public static final int PROJECTION_LONG_PRESS_VOICE_SEARCH = 2; // 0x2
@@ -52,6 +54,17 @@
method public abstract void onVoiceAssistantRequest(boolean);
}
+ public static abstract class CarProjectionManager.ProjectionAccessPointCallback {
+ ctor public CarProjectionManager.ProjectionAccessPointCallback();
+ method public void onFailed(int);
+ method public void onStarted(android.net.wifi.WifiConfiguration);
+ method public void onStopped();
+ field public static final int ERROR_GENERIC = 2; // 0x2
+ field public static final int ERROR_INCOMPATIBLE_MODE = 3; // 0x3
+ field public static final int ERROR_NO_CHANNEL = 1; // 0x1
+ field public static final int ERROR_TETHERING_DISALLOWED = 4; // 0x4
+ }
+
public final class VehicleAreaDoor {
field public static final int DOOR_HOOD = 268435456; // 0x10000000
field public static final int DOOR_REAR = 536870912; // 0x20000000