Searched refs:newPolicy (Results 1 – 3 of 3) sorted by relevance
367 SystemUpdatePolicy newPolicy = mDevicePolicyManager.getSystemUpdatePolicy(); in testPolicy() local369 assertNull(newPolicy); in testPolicy()371 assertNotNull(newPolicy); in testPolicy()372 assertEquals(policy.toString(), newPolicy.toString()); in testPolicy()373 assertEquals(policy.getPolicyType(), newPolicy.getPolicyType()); in testPolicy()375 assertEquals(policy.getInstallWindowStart(), newPolicy.getInstallWindowStart()); in testPolicy()376 assertEquals(policy.getInstallWindowEnd(), newPolicy.getInstallWindowEnd()); in testPolicy()
526 BluetoothSinkAudioPolicy newPolicy = new BluetoothSinkAudioPolicy.Builder(demoAudioPolicy) in setGetAudioPolicy() local533 mFakeDevice.requestAudioPolicyAsSink(newPolicy)); in setGetAudioPolicy()536 assertEquals(BluetoothSinkAudioPolicy.POLICY_ALLOWED, newPolicy.getCallEstablishPolicy()); in setGetAudioPolicy()538 newPolicy.getActiveDevicePolicyAfterConnection()); in setGetAudioPolicy()539 assertEquals(BluetoothSinkAudioPolicy.POLICY_ALLOWED, newPolicy.getInBandRingtonePolicy()); in setGetAudioPolicy()
1827 NotificationManager.Policy newPolicy = new NotificationManager.Policy( in testMatchesCallFilter_allCallers() local1833 mNotificationManager.setNotificationPolicy(newPolicy); in testMatchesCallFilter_allCallers()