Home
last modified time | relevance | path

Searched refs:projectionType (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/java/android/app/
DIUiModeManager.aidl186 boolean requestProjection(in IBinder binder, int projectionType, String callingPackage); in requestProjection() argument
191 boolean releaseProjection(int projectionType, String callingPackage); in releaseProjection() argument
197 …nProjectionStateChangedListener(in IOnProjectionStateChangedListener listener, int projectionType); in addOnProjectionStateChangedListener() argument
209 List<String> getProjectingPackages(int projectionType); in getProjectingPackages() argument
DUiModeManager.java103 void onProjectionStateChanged(@ProjectionType int projectionType, in onProjectionStateChanged() argument
1157 public boolean requestProjection(@ProjectionType int projectionType) { in requestProjection() argument
1160 return sGlobals.mService.requestProjection(new Binder(), projectionType, in requestProjection()
1186 public boolean releaseProjection(@ProjectionType int projectionType) { in releaseProjection() argument
1190 projectionType, mContext.getOpPackageName()); in releaseProjection()
1210 public Set<String> getProjectingPackages(@ProjectionType int projectionType) { in getProjectingPackages() argument
1213 return new ArraySet<>(sGlobals.mService.getProjectingPackages(projectionType)); in getProjectingPackages()
1251 public void addOnProjectionStateChangedListener(@ProjectionType int projectionType, in addOnProjectionStateChangedListener() argument
1264 innerListener, projectionType); in addOnProjectionStateChangedListener()
/frameworks/base/services/core/java/com/android/server/
DUiModeManagerService.java1114 @UiModeManager.ProjectionType int projectionType, in requestProjection() argument
1117 assertSingleProjectionType(projectionType); in requestProjection()
1118 enforceProjectionTypePermissions(projectionType); in requestProjection()
1125 if (!mProjectionHolders.contains(projectionType)) { in requestProjection()
1126 mProjectionHolders.put(projectionType, new ArrayList<>(1)); in requestProjection()
1128 List<ProjectionHolder> currentHolders = mProjectionHolders.get(projectionType); in requestProjection()
1141 if (projectionType == PROJECTION_TYPE_AUTOMOTIVE && !currentHolders.isEmpty()) { in requestProjection()
1146 projectionType, binder, in requestProjection()
1153 + projectionType + "."); in requestProjection()
1154 onProjectionStateChangedLocked(projectionType); in requestProjection()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/
DUiModeManagerServiceTest.java1053 int projectionType = 1 << i; in requestProjection() local
1054 assertTrue(mService.requestProjection(mBinder, projectionType, PACKAGE_NAME)); in requestProjection()
1055 assertTrue((mService.getActiveProjectionTypes() & projectionType) != 0); in requestProjection()
1056 assertThat(mService.getProjectingPackages(projectionType), contains(PACKAGE_NAME)); in requestProjection()
1058 assertTrue(mService.requestProjection(mBinder, projectionType, PACKAGE_NAME)); in requestProjection()
1123 int projectionType = 1 << i; in releaseProjection() local
1124 assertEquals(projectionType != PROJECTION_TYPE_AUTOMOTIVE, in releaseProjection()
1125 (boolean) mService.releaseProjection(projectionType, PACKAGE_NAME)); in releaseProjection()
/frameworks/base/services/core/java/com/android/server/media/projection/
DMediaProjectionManagerService.java380 String projectionType = incomingSession != null in setContentRecordingSession() local
385 + mProjectionGrant.getVirtualDisplayId() + "type=" + projectionType); in setContentRecordingSession()