/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
DevicePolicyManagerTestable.java | 25 public final DevicePolicyManagerServiceTestable dpms; field in class:DevicePolicyManagerTestable 28 DevicePolicyManagerServiceTestable dpms) { 29 super(context, dpms, /* parentInstance = */ false); 30 this.dpms = dpms; 35 return UserHandle.getUserId(dpms.context.binder.callingUid);
|
DevicePolicyManagerServiceMigrationTest.java | 119 // Initialize DPM/DPMS and let it migrate the persisted information. 122 final DevicePolicyManagerServiceTestable dpms; local 128 dpms = new DevicePolicyManagerServiceTestable(getServices(), mContext); 130 dpms.systemReady(SystemService.PHASE_LOCK_SETTINGS_READY); 131 dpms.systemReady(SystemService.PHASE_BOOT_COMPLETED); 136 assertTrue(dpms.mOwners.hasDeviceOwner()); 137 assertFalse(dpms.mOwners.hasProfileOwner(UserHandle.USER_SYSTEM)); 138 assertTrue(dpms.mOwners.hasProfileOwner(10)); 139 assertTrue(dpms.mOwners.hasProfileOwner(11)); 140 assertFalse(dpms.mOwners.hasProfileOwner(12)) 235 final DevicePolicyManagerServiceTestable dpms; local 299 final DevicePolicyManagerServiceTestable dpms; local [all...] |
DevicePolicyManagerTest.java | 131 public DevicePolicyManagerServiceTestable dpms; field in class:DevicePolicyManagerTest 200 dpms = new DevicePolicyManagerServiceTestable(getServices(), mContext); 201 dpms.systemReady(SystemService.PHASE_LOCK_SETTINGS_READY); 202 dpms.systemReady(SystemService.PHASE_BOOT_COMPLETED); 204 dpm = new DevicePolicyManagerTestable(mContext, dpms); 249 runAsCaller(mServiceContext, dpms, dpm -> { 268 // If the device has no DPMS feature, it shouldn't register the local service. 470 // Directly call the DPMS method with a different userid, which should fail. 472 () -> dpms.removeActiveAdmin(admin1, DpmMockContext.CALLER_USER_HANDLE + 1)); 478 // Change the caller, and call into DPMS directly with a different user-id [all...] |
DpmTestBase.java | 91 protected void runAsCaller(DpmMockContext caller, DevicePolicyManagerServiceTestable dpms, 104 action.run(new DevicePolicyManagerTestable(caller, dpms)); 209 // Note we don't set up queryBroadcastReceivers. We don't use it in DPMS.
|
/hardware/intel/img/psb_video/src/x11/ |
psb_x11.c | 32 #include <X11/extensions/dpms.h>
|
psb_xvva.c | 39 #include <X11/extensions/dpms.h> 155 drv_debug_msg(VIDEO_DEBUG_GENERAL, "DPMS is %s, monitor state=%s\n", onoff ? "enabled" : "disabled", 575 drv_debug_msg(VIDEO_DEBUG_GENERAL, "DPMS is %s, monitor state=%s\n", onoff ? "enabled" : "disabled", 581 drv_debug_msg(VIDEO_DEBUG_GENERAL, "DPMS is enabled, and monitor isn't DPMSModeOn, force it on\n");
|