Searched refs:projectionType (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/core/java/android/app/ |
D | IUiModeManager.aidl | 111 boolean requestProjection(in IBinder binder, int projectionType, String callingPackage); in requestProjection() argument 116 boolean releaseProjection(int projectionType, String callingPackage); in releaseProjection() argument 121 …nProjectionStateChangedListener(in IOnProjectionStateChangedListener listener, int projectionType); in addOnProjectionStateChangedListener() argument 131 List<String> getProjectingPackages(int projectionType); in getProjectingPackages() argument
|
D | UiModeManager.java | 90 void onProjectionStateChanged(@ProjectionType int projectionType, in onProjectionStateChanged() argument 745 public boolean requestProjection(@ProjectionType int projectionType) { in requestProjection() argument 748 return mService.requestProjection(new Binder(), projectionType, in requestProjection() 774 public boolean releaseProjection(@ProjectionType int projectionType) { in releaseProjection() argument 777 return mService.releaseProjection(projectionType, mContext.getOpPackageName()); in releaseProjection() 797 public Set<String> getProjectingPackages(@ProjectionType int projectionType) { in getProjectingPackages() argument 800 return new ArraySet<>(mService.getProjectingPackages(projectionType)); in getProjectingPackages() 838 public void addOnProjectionStateChangedListener(@ProjectionType int projectionType, in addOnProjectionStateChangedListener() argument 850 mService.addOnProjectionStateChangedListener(innerListener, projectionType); in addOnProjectionStateChangedListener()
|
/frameworks/base/services/core/java/com/android/server/ |
D | UiModeManagerService.java | 910 @UiModeManager.ProjectionType int projectionType, 913 assertSingleProjectionType(projectionType); 914 enforceProjectionTypePermissions(projectionType); 919 if (!mProjectionHolders.contains(projectionType)) { 920 mProjectionHolders.put(projectionType, new ArrayList<>(1)); 922 List<ProjectionHolder> currentHolders = mProjectionHolders.get(projectionType); 935 if (projectionType == PROJECTION_TYPE_AUTOMOTIVE && !currentHolders.isEmpty()) { 940 projectionType, binder, 947 + projectionType + "."); 948 onProjectionStateChangedLocked(projectionType); [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/ |
D | UiModeManagerServiceTest.java | 559 int projectionType = 1 << i; in requestProjection() local 560 assertTrue(mService.requestProjection(mBinder, projectionType, PACKAGE_NAME)); in requestProjection() 561 assertTrue((mService.getActiveProjectionTypes() & projectionType) != 0); in requestProjection() 562 assertThat(mService.getProjectingPackages(projectionType), contains(PACKAGE_NAME)); in requestProjection() 564 assertTrue(mService.requestProjection(mBinder, projectionType, PACKAGE_NAME)); in requestProjection() 625 int projectionType = 1 << i; in releaseProjection() local 626 assertEquals(projectionType != PROJECTION_TYPE_AUTOMOTIVE, in releaseProjection() 627 (boolean) mService.releaseProjection(projectionType, PACKAGE_NAME)); in releaseProjection()
|