1// Signature format: 2.0 2package android.content.res { 3 4 public final class CompatScaleWrapper { 5 ctor public CompatScaleWrapper(float, float); 6 method public float getDensityScaleFactor(); 7 method public float getScaleFactor(); 8 } 9 10} 11 12package com.android.internal.car { 13 14 public interface CarServiceHelperInterface { 15 method public boolean assignUserToExtraDisplay(int, int); 16 method @Nullable public android.os.UserHandle createUserEvenWhenDisallowed(@Nullable String, @NonNull String, int); 17 method @Nullable public java.io.File dumpServiceStacks(); 18 method public int fetchAidlVhalPid(); 19 method public int getMainDisplayAssignedToUser(int); 20 method public int getProcessGroup(int); 21 method public int getUserAssignedToDisplay(int); 22 method public boolean isOverlayDisplay(int); 23 method public boolean isVisibleBackgroundUsersEnabled(); 24 method public void setProcessGroup(int, int); 25 method public void setProcessProfile(int, int, @NonNull String); 26 method public void setSafetyMode(boolean); 27 method public boolean startUserInBackgroundVisibleOnDisplay(int, int); 28 method public boolean unassignUserFromExtraDisplay(int, int); 29 } 30 31 public interface CarServiceHelperServiceUpdatable { 32 method public void dump(@NonNull java.io.PrintWriter, @Nullable String[]); 33 method public com.android.server.wm.CarActivityInterceptorUpdatable getCarActivityInterceptorUpdatable(); 34 method public com.android.server.wm.CarDisplayCompatScaleProviderUpdatable getCarDisplayCompatScaleProviderUpdatable(); 35 method public com.android.server.wm.CarLaunchParamsModifierUpdatable getCarLaunchParamsModifierUpdatable(); 36 method public void notifyFocusChanged(int, int); 37 method public void onFactoryReset(@NonNull java.util.function.BiConsumer<java.lang.Integer,android.os.Bundle>); 38 method public void onStart(); 39 method public void onUserRemoved(@NonNull android.os.UserHandle); 40 method public void sendUserLifecycleEvent(int, @Nullable android.os.UserHandle, @NonNull android.os.UserHandle); 41 } 42 43} 44 45package com.android.server.wm { 46 47 public final class ActivityInterceptResultWrapper { 48 method public static com.android.server.wm.ActivityInterceptResultWrapper create(android.content.Intent, android.app.ActivityOptions); 49 } 50 51 public final class ActivityInterceptorInfoWrapper { 52 method public android.content.pm.ActivityInfo getActivityInfo(); 53 method public String getCallingPackage(); 54 method public int getCallingPid(); 55 method public int getCallingUid(); 56 method public com.android.server.wm.ActivityOptionsWrapper getCheckedOptions(); 57 method public android.content.Intent getIntent(); 58 method public int getUserId(); 59 } 60 61 public final class ActivityOptionsWrapper { 62 method public static com.android.server.wm.ActivityOptionsWrapper create(android.app.ActivityOptions); 63 method public com.android.server.wm.TaskDisplayAreaWrapper getLaunchTaskDisplayArea(); 64 method public int getLaunchWindowingMode(); 65 method public android.app.ActivityOptions getOptions(); 66 method public void setLaunchDisplayId(int); 67 method public void setLaunchRootTask(android.os.IBinder); 68 field public static final int WINDOWING_MODE_UNDEFINED = 0; // 0x0 69 } 70 71 public final class ActivityRecordWrapper { 72 method public boolean allowingEmbedded(); 73 method public android.content.ComponentName getComponentName(); 74 method public com.android.server.wm.TaskDisplayAreaWrapper getDisplayArea(); 75 method public int getHandoverLaunchDisplayId(); 76 method public com.android.server.wm.TaskDisplayAreaWrapper getHandoverTaskDisplayArea(); 77 method public int getUserId(); 78 method public boolean isDisplayTrusted(); 79 method public boolean isNoDisplay(); 80 } 81 82 public final class CalculateParams { 83 method public com.android.server.wm.ActivityRecordWrapper getActivity(); 84 method public com.android.server.wm.LaunchParamsWrapper getCurrentParams(); 85 method public com.android.server.wm.ActivityOptionsWrapper getOptions(); 86 method public com.android.server.wm.LaunchParamsWrapper getOutParams(); 87 method public int getPhase(); 88 method public com.android.server.wm.RequestWrapper getRequest(); 89 method public com.android.server.wm.ActivityRecordWrapper getSource(); 90 method public com.android.server.wm.TaskWrapper getTask(); 91 method public com.android.server.wm.WindowLayoutWrapper getWindowLayout(); 92 method public boolean supportsMultiDisplay(); 93 } 94 95 public interface CarActivityInterceptorInterface { 96 method public int getMainDisplayAssignedToUser(int); 97 method public int getUserAssignedToDisplay(int); 98 } 99 100 public interface CarActivityInterceptorUpdatable { 101 method @Nullable public com.android.server.wm.ActivityInterceptResultWrapper onInterceptActivityLaunch(com.android.server.wm.ActivityInterceptorInfoWrapper); 102 } 103 104 public interface CarDisplayCompatScaleProviderInterface { 105 method public float getCompatModeScalingFactor(@NonNull String, @NonNull android.os.UserHandle); 106 method @NonNull public android.util.Pair<java.lang.Integer,java.lang.Integer> getCurrentAndTargetUserIds(); 107 method public int getMainDisplayAssignedToUser(int); 108 method @Nullable public android.content.pm.PackageInfo getPackageInfoAsUser(@NonNull String, @NonNull android.content.pm.PackageManager.PackageInfoFlags, int) throws android.content.pm.PackageManager.NameNotFoundException; 109 method @Nullable public String getStringForUser(android.content.ContentResolver, String, int); 110 method public boolean putStringForUser(android.content.ContentResolver, String, String, int); 111 } 112 113 public interface CarDisplayCompatScaleProviderUpdatable { 114 method @Nullable public android.content.res.CompatScaleWrapper getCompatScale(@NonNull String, int); 115 method public boolean requiresDisplayCompat(@NonNull String, int); 116 } 117 118 public interface CarLaunchParamsModifierInterface { 119 method @Nullable public com.android.server.wm.TaskDisplayAreaWrapper findTaskDisplayArea(int, int); 120 method @NonNull public android.util.Pair<java.lang.Integer,java.lang.Integer> getCurrentAndTargetUserIds(); 121 method @Nullable public com.android.server.wm.TaskDisplayAreaWrapper getDefaultTaskDisplayAreaOnDisplay(int); 122 method @NonNull public java.util.List<com.android.server.wm.TaskDisplayAreaWrapper> getFallbackDisplayAreasForActivity(@NonNull com.android.server.wm.ActivityRecordWrapper, @Nullable com.android.server.wm.RequestWrapper); 123 method public int getMainDisplayAssignedToUser(int); 124 method public int getUserAssignedToDisplay(int); 125 } 126 127 public interface CarLaunchParamsModifierUpdatable { 128 method public int calculate(com.android.server.wm.CalculateParams); 129 method public android.hardware.display.DisplayManager.DisplayListener getDisplayListener(); 130 method public void handleCurrentUserSwitching(int); 131 method public void handleUserStarting(int); 132 method public void handleUserStopped(int); 133 method public void handleUserVisibilityChanged(int, boolean); 134 } 135 136 public final class LaunchParamsWrapper { 137 method public android.graphics.Rect getBounds(); 138 method public com.android.server.wm.TaskDisplayAreaWrapper getPreferredTaskDisplayArea(); 139 method public int getWindowingMode(); 140 method public void setBounds(android.graphics.Rect); 141 method public void setPreferredTaskDisplayArea(com.android.server.wm.TaskDisplayAreaWrapper); 142 method public void setWindowingMode(int); 143 field public static int RESULT_CONTINUE; 144 field public static int RESULT_DONE; 145 field public static int RESULT_SKIP; 146 } 147 148 public final class RequestWrapper { 149 } 150 151 public final class TaskDisplayAreaWrapper { 152 method public android.view.Display getDisplay(); 153 method public int getFeatureId(); 154 } 155 156 public final class TaskWrapper { 157 method @Nullable public static com.android.server.wm.TaskWrapper createFromToken(@NonNull android.os.IBinder); 158 method public com.android.server.wm.TaskWrapper getRootTask(); 159 method public com.android.server.wm.TaskDisplayAreaWrapper getTaskDisplayArea(); 160 method public int getUserId(); 161 } 162 163 public final class WindowLayoutWrapper { 164 } 165 166} 167 168