/packages/apps/Settings/src/com/android/settings/notification/zen/ |
D | ZenModeBackend.java | 65 protected NotificationManager.Policy mPolicy; field in ZenModeBackend 88 mPolicy = mNotificationManager.getNotificationPolicy(); in updatePolicy() 134 return (mPolicy.suppressedVisualEffects & visualEffect) != 0; in isVisualEffectSuppressed() 138 return (mPolicy.priorityCategories & categoryType) != 0; in isPriorityCategoryEnabled() 142 int priorityCategories = mPolicy.priorityCategories; in getNewDefaultPriorityCategories() 153 return mPolicy.priorityCallSenders; in getPriorityCallSenders() 162 return mPolicy.priorityMessageSenders; in getPriorityMessageSenders() 169 return mPolicy.priorityConversationSenders; in getPriorityConversationSenders() 179 savePolicy(mPolicy.priorityCategories, mPolicy.priorityCallSenders, in saveVisualEffectsPolicy() 180 mPolicy.priorityMessageSenders, suppressedEffects, in saveVisualEffectsPolicy() [all …]
|
D | ZenModeSettingsFooterPreferenceController.java | 198 private NotificationManager.Policy mPolicy; field in ZenModeSettingsFooterPreferenceController.ZenCustomSettingsDialog 202 mPolicy = policy; in setNotificationPolicy() 211 mPolicy = policy; in onCreateDialog() 257 allowCallsText.setText(mSummaryBuilder.getCallsSettingSummary(mPolicy)); in onCreateDialog() 258 allowMessagesText.setText(mSummaryBuilder.getMessagesSettingSummary(mPolicy)); in onCreateDialog() 259 allowAlarmsText.setText(getAllowRes(mPolicy.allowAlarms())); in onCreateDialog() 260 allowMediaText.setText(getAllowRes(mPolicy.allowMedia())); in onCreateDialog() 261 allowSystemText.setText(getAllowRes(mPolicy.allowSystem())); in onCreateDialog() 262 allowRemindersText.setText(getAllowRes(mPolicy.allowReminders())); in onCreateDialog() 263 allowEventsText.setText(getAllowRes(mPolicy.allowEvents())); in onCreateDialog() [all …]
|
D | ZenFooterPreferenceController.java | 37 return mBackend.mPolicy.suppressedVisualEffects == 0 in isAvailable() 38 || Policy.areAllVisualEffectsSuppressed(mBackend.mPolicy.suppressedVisualEffects); in isAvailable() 45 if (mBackend.mPolicy.suppressedVisualEffects == 0) { in updateState() 47 } else if (Policy.areAllVisualEffectsSuppressed(mBackend.mPolicy.suppressedVisualEffects)) { in updateState()
|
D | ZenModeVisEffectsCustomPreferenceController.java | 76 mBackend.mPolicy.suppressedVisualEffects); in areCustomOptionsSelected() 77 boolean noEffectsSuppressed = mBackend.mPolicy.suppressedVisualEffects == 0; in areCustomOptionsSelected()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/ |
D | BluetoothDeviceConnectionPolicyTest.java | 82 private BluetoothDeviceConnectionPolicy mPolicy; field in BluetoothDeviceConnectionPolicyTest 146 mPolicy = BluetoothDeviceConnectionPolicy.create(mMockContext, USER_ID, in setUp() 148 Assert.assertTrue(mPolicy != null); in setUp() 157 if (mPolicy != null) { in tearDown() 158 mPolicy.release(); in tearDown() 262 mPolicy.init(); in testInitWithAdapterOn_connectDevices() 279 mPolicy.init(); in testInitWithAdapterOff_doNothing() 299 mPolicy.init(); in testReceiveAdapterTurningOff_doNothing() 318 mPolicy.init(); in testReceiveAdapterOff_doNothing() 337 mPolicy.init(); in testReceiveAdapterTurningOn_doNothing() [all …]
|
D | BluetoothUtilsGetProfileConnectionPolicyNameTest.java | 33 private final int mPolicy; field in BluetoothUtilsGetProfileConnectionPolicyNameTest 37 mPolicy = policy; in BluetoothUtilsGetProfileConnectionPolicyNameTest() 43 String result = BluetoothUtils.getConnectionPolicyName(mPolicy); in testGetProfilePriorityName() 45 assertThat(result).contains(String.valueOf(mPolicy)); in testGetProfilePriorityName()
|
D | BluetoothPowerPolicyTest.java | 63 private BluetoothPowerPolicy mPolicy; field in BluetoothPowerPolicyTest 110 mPolicy = BluetoothPowerPolicy.create(mMockContext, USER_ID); in setUp() 111 Assert.assertTrue(mPolicy != null); in setUp() 116 mPolicy.init(); in setUp() 121 mPolicy.release(); in tearDown() 207 mPolicy.getPowerPolicyListener().onPolicyChanged(policy, policy); in sendPowerPolicyBluetoothOnOff()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/detectors/ |
D | HighUsageDetector.java | 47 private BatteryTipPolicy mPolicy; field in HighUsageDetector 60 mPolicy = policy; in HighUsageDetector() 67 mPolicy.highUsagePeriodMs, mPolicy.highUsageBatteryDraining); in HighUsageDetector() 76 if (mPolicy.highUsageEnabled && mDischarging) { in detect() 78 if (mDataParser.isDeviceHeavilyUsed() || mPolicy.testHighUsageTip) { in detect() 104 if (mHighUsageAppList.size() >= mPolicy.highUsageAppCount) { in detect() 110 if (mPolicy.testHighUsageTip && mHighUsageAppList.isEmpty()) { in detect()
|
D | SmartBatteryDetector.java | 33 private final BatteryTipPolicy mPolicy; field in SmartBatteryDetector 43 mPolicy = policy; in SmartBatteryDetector() 62 || mPolicy.testSmartBatteryTip; in detect()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/detectors/ |
D | SmartBatteryDetectorTest.java | 49 private BatteryTipPolicy mPolicy; field in SmartBatteryDetectorTest 59 mPolicy = spy(new BatteryTipPolicy(mContext)); in setUp() 63 mPolicy, in setUp() 71 ReflectionHelpers.setField(mPolicy, "testSmartBatteryTip", true); in testDetect_testFeatureOn_tipNew() 93 mPolicy, in testDetect_batterySaverOn_tipInvisible() 109 mPolicy, in testDetect_unexpectedBatteryLevel_tipInvisible()
|
D | HighUsageDetectorTest.java | 74 private BatteryTipPolicy mPolicy; field in HighUsageDetectorTest 83 mPolicy = spy(new BatteryTipPolicy(mContext)); in setUp() 99 mPolicy, in setUp() 126 ReflectionHelpers.setField(mPolicy, "highUsageEnabled", false); in testDetect_disabledByPolicy_tipInvisible() 133 ReflectionHelpers.setField(mPolicy, "highUsageEnabled", true); in testDetect_deviceCharging_tipInvisible() 143 ReflectionHelpers.setField(mPolicy, "testHighUsageTip", true); in testDetect_testFeatureOn_tipNew()
|
/packages/services/Car/car-lib/src/android/car/os/ |
D | ThreadPolicyWithPriority.java | 87 private final int mPolicy; field in ThreadPolicyWithPriority 109 mPolicy = policy; in ThreadPolicyWithPriority() 179 return mPolicy; in getPolicy() 193 dest.writeInt(mPolicy); in writeToParcel() 211 this.mPolicy = policy; in ThreadPolicyWithPriority() 213 SchedPolicy.class, null, mPolicy); in ThreadPolicyWithPriority()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/zen/ |
D | ZenModeVisEffectsCustomPreferenceControllerTest.java | 90 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 0); in isAvailable_noVisEffects() 96 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 1); in isAvailable_visEffects() 102 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 0); in updateState_notChecked_noVisEffects() 119 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, allSuppressed); in updateState_notChecked_allVisEffects() 127 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 2); in updateState_checked() 135 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 2); in updateState_listeners()
|
D | ZenFooterPreferenceControllerTest.java | 89 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 0); in isAvailable_noVisEffects() 95 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 2); in isAvailable_someVisEffects() 110 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, allSuppressed); in isAvailable_allVisEffects() 116 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 0); in updateSummary_noVisEffects() 123 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 2); in getSummary_someVisEffects() 139 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, allSuppressed); in getSummary_allVisEffects()
|
D | ZenModeVisEffectsNonePreferenceControllerTest.java | 98 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 1); in updateState_notChecked() 106 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 0); in updateState_checked() 123 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 1); in onRadioButtonClick()
|
D | ZenModeVisEffectsAllPreferenceControllerTest.java | 98 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 1); in updateState_notChecked() 115 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, allSuppressed); in updateState_checked() 132 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 1); in onPreferenceChanged_checkedTrue()
|
D | ZenModeBlockedEffectsPreferenceControllerTest.java | 48 private NotificationManager.Policy mPolicy; field in ZenModeBlockedEffectsPreferenceControllerTest 61 when(mNotificationManager.getNotificationPolicy()).thenReturn(mPolicy); in setup()
|
D | ZenModeMessagesPreferenceControllerTest.java | 51 private NotificationManager.Policy mPolicy; field in ZenModeMessagesPreferenceControllerTest 64 when(mNotificationManager.getNotificationPolicy()).thenReturn(mPolicy); in setup()
|
D | ZenModeCallsPreferenceControllerTest.java | 51 private NotificationManager.Policy mPolicy; field in ZenModeCallsPreferenceControllerTest 64 when(mNotificationManager.getNotificationPolicy()).thenReturn(mPolicy); in setup()
|
D | ZenRuleCustomSwitchPreferenceControllerTest.java | 53 private NotificationManager.Policy mPolicy; field in ZenRuleCustomSwitchPreferenceControllerTest 71 when(mNotificationManager.getNotificationPolicy()).thenReturn(mPolicy); in setup()
|
D | ZenModeDurationPreferenceControllerTest.java | 52 private NotificationManager.Policy mPolicy; field in ZenModeDurationPreferenceControllerTest 65 when(mNotificationManager.getNotificationPolicy()).thenReturn(mPolicy); in setup()
|
D | ZenRuleRepeatCallersPreferenceControllerTest.java | 55 private NotificationManager.Policy mPolicy; field in ZenRuleRepeatCallersPreferenceControllerTest 72 when(mNotificationManager.getNotificationPolicy()).thenReturn(mPolicy); in setup()
|
/packages/modules/Wifi/framework/java/android/net/wifi/hotspot2/ |
D | PasspointConfiguration.java | 180 private Policy mPolicy = null; field in PasspointConfiguration 185 mPolicy = policy; in setPolicy() 191 return mPolicy; in getPolicy() 750 if (source.mPolicy != null) { in PasspointConfiguration() 751 mPolicy = new Policy(source.mPolicy); in PasspointConfiguration() 792 dest.writeParcelable(mPolicy, flags); in writeToParcel() 836 && (mPolicy == null ? that.mPolicy == null : mPolicy.equals(that.mPolicy)) in equals() 867 return Objects.hash(mHomeSp, mCredential, mPolicy, mSubscriptionUpdate, mTrustRootCertList, in hashCode() 906 if (mPolicy != null) { in toString() 908 builder.append(mPolicy); in toString() [all …]
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | ChartDataUsagePreference.java | 57 @Nullable private NetworkPolicy mPolicy; field in ChartDataUsagePreference 87 bindNetworkPolicy(chart, mPolicy, top); in onBindViewHolder() 94 mPolicy != null ? Math.max(mPolicy.limitBytes, mPolicy.warningBytes) : 0; in getTop() 291 mPolicy = policy; in setNetworkPolicy()
|
/packages/modules/NeuralNetworks/driver/cache/nnCache/ |
D | nnCache.cpp | 48 mPolicy(defaultPolicy()), in NNCache() 66 mPolicy = policy; in initialize() 141 mBlobCache.reset(new BlobCache(mMaxKeySize, mMaxValueSize, mMaxTotalSize, mPolicy)); in getBlobCacheLocked()
|