1// Signature format: 4.0 2package androidx.car.app.testing { 3 4 public class FakeHost { 5 method public void performNotificationActionClick(android.app.PendingIntent); 6 method @SuppressCompatibility @androidx.car.app.annotations.ExperimentalCarApi public void setMicrophoneInputData(java.io.InputStream); 7 } 8 9 public class ScreenController { 10 ctor public ScreenController(androidx.car.app.Screen); 11 method public androidx.car.app.Screen getScreen(); 12 method public Object? getScreenResult(); 13 method public java.util.List<androidx.car.app.model.Template!> getTemplatesReturned(); 14 method public androidx.car.app.testing.ScreenController moveToState(androidx.lifecycle.Lifecycle.State); 15 method public void reset(); 16 } 17 18 public class SessionController { 19 ctor public SessionController(androidx.car.app.Session, androidx.car.app.testing.TestCarContext, android.content.Intent); 20 method public androidx.car.app.Session getSession(); 21 method public androidx.car.app.testing.SessionController moveToState(androidx.lifecycle.Lifecycle.State); 22 } 23 24 public class TestAppManager extends androidx.car.app.AppManager { 25 method public androidx.car.app.SurfaceCallback? getSurfaceCallback(); 26 method public java.util.List<android.util.Pair<androidx.car.app.Screen!,androidx.car.app.model.Template!>!> getTemplatesReturned(); 27 method public java.util.List<java.lang.CharSequence!> getToastsShown(); 28 method public void reset(); 29 } 30 31 public class TestCarContext extends androidx.car.app.CarContext { 32 method public static androidx.car.app.testing.TestCarContext createCarContext(android.content.Context); 33 method public androidx.car.app.testing.FakeHost getFakeHost(); 34 method public androidx.car.app.testing.TestCarContext.PermissionRequestInfo? getLastPermissionRequestInfo(); 35 method public java.util.List<android.content.Intent!> getStartCarAppIntents(); 36 method public boolean hasCalledFinishCarApp(); 37 method public void reset(); 38 } 39 40 public static class TestCarContext.PermissionRequestInfo { 41 method public androidx.car.app.OnRequestPermissionsListener getListener(); 42 method public java.util.List<java.lang.String!> getPermissionsRequested(); 43 } 44 45 public class TestScreenManager extends androidx.car.app.ScreenManager { 46 method public java.util.List<androidx.car.app.Screen!> getScreensPushed(); 47 method public java.util.List<androidx.car.app.Screen!> getScreensRemoved(); 48 method public boolean hasScreens(); 49 method public void reset(); 50 } 51 52} 53 54package androidx.car.app.testing.navigation { 55 56 public class TestNavigationManager extends androidx.car.app.navigation.NavigationManager { 57 ctor public TestNavigationManager(androidx.car.app.testing.TestCarContext, androidx.car.app.HostDispatcher); 58 method public int getNavigationEndedCount(); 59 method public androidx.car.app.navigation.NavigationManagerCallback? getNavigationManagerCallback(); 60 method public int getNavigationStartedCount(); 61 method public java.util.List<androidx.car.app.navigation.model.Trip!> getTripsSent(); 62 method public void reset(); 63 } 64 65} 66 67