Lines Matching defs:mDevicePolicyManager
57 private DevicePolicyManager mDevicePolicyManager = mock(DevicePolicyManager.class);
69 mContext.addMockSystemService(Context.DEVICE_POLICY_SERVICE, mDevicePolicyManager);
90 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(false);
99 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(true);
100 when(mDevicePolicyManager.getDeviceOwnerOrganizationName()).thenReturn(null);
110 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(true);
111 when(mDevicePolicyManager.getDeviceOwnerOrganizationName()).thenReturn(ORGANIZATION_NAME);
121 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(false);
127 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(true);
128 when(mDevicePolicyManager.getDeviceOwnerOrganizationName()).thenReturn(null);
136 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(true);
137 when(mDevicePolicyManager.getDeviceOwnerOrganizationName()).thenReturn(ORGANIZATION_NAME);
146 when(mDevicePolicyManager.isDeviceManaged()).thenReturn(false);