/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/detectors/ |
H A D | SummaryDetector.java | 28 private BatteryTipPolicy mPolicy; field in class:SummaryDetector 32 mPolicy = policy; 39 final int state = mPolicy.summaryEnabled
|
H A D | LowBatteryDetector.java | 34 private BatteryTipPolicy mPolicy; field in class:LowBatteryDetector 39 mPolicy = policy; 51 && mBatteryInfo.remainingTimeUs < TimeUnit.HOURS.toMicros(mPolicy.lowBatteryHour)); 54 if (mPolicy.lowBatteryEnabled) { 58 } else if (mPolicy.testLowBatteryTip || (mBatteryInfo.discharging && lowBattery)) {
|
H A D | SmartBatteryDetector.java | 30 private BatteryTipPolicy mPolicy; field in class:SmartBatteryDetector 34 mPolicy = policy; 43 || mPolicy.testSmartBatteryTip;
|
H A D | EarlyWarningDetector.java | 35 private BatteryTipPolicy mPolicy; field in class:EarlyWarningDetector 41 mPolicy = policy; 56 EarlyWarningDetector.class.getName()) || mPolicy.testBatterySaverTip; 60 : mPolicy.batterySaverTipEnabled && discharging && earlyWarning
|
H A D | HighUsageDetector.java | 44 private BatteryTipPolicy mPolicy; field in class:HighUsageDetector 56 mPolicy = policy; 60 mDataParser = new HighUsageDataParser(mPolicy.highUsagePeriodMs, 61 mPolicy.highUsageBatteryDraining); 69 if (mPolicy.highUsageEnabled && mDischarging) { 71 if (mDataParser.isDeviceHeavilyUsed() || mPolicy.testHighUsageTip) { 91 if (mPolicy.testHighUsageTip && mHighUsageAppList.isEmpty()) { 100 Math.min(mPolicy.highUsageAppCount, mHighUsageAppList.size()));
|
H A D | RestrictAppDetector.java | 42 private BatteryTipPolicy mPolicy; field in class:RestrictAppDetector 52 mPolicy = policy; 63 if (mPolicy.appRestrictionEnabled) {
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/detectors/ |
H A D | SummaryDetectorTest.java | 37 private BatteryTipPolicy mPolicy; field in class:SummaryDetectorTest 44 mPolicy = spy(new BatteryTipPolicy(RuntimeEnvironment.application)); 49 ReflectionHelpers.setField(mPolicy, "summaryEnabled", false); 50 SummaryDetector detector = new SummaryDetector(mPolicy, AVERAGE_TIME_MS); 57 SummaryDetector detector = new SummaryDetector(mPolicy, AVERAGE_TIME_MS);
|
H A D | LowBatteryDetectorTest.java | 48 private BatteryTipPolicy mPolicy; field in class:LowBatteryDetectorTest 57 mPolicy = spy(new BatteryTipPolicy(RuntimeEnvironment.application)); 60 ReflectionHelpers.setField(mPolicy, "lowBatteryEnabled", true); 61 ReflectionHelpers.setField(mPolicy, "lowBatteryHour", 3); 64 mLowBatteryDetector = new LowBatteryDetector(mContext, mPolicy, mBatteryInfo); 69 ReflectionHelpers.setField(mPolicy, "lowBatteryEnabled", false); 77 ReflectionHelpers.setField(mPolicy, "testLowBatteryTip", true);
|
H A D | SmartBatteryDetectorTest.java | 43 private BatteryTipPolicy mPolicy; field in class:SmartBatteryDetectorTest 51 mPolicy = spy(new BatteryTipPolicy(mContext)); 52 mSmartBatteryDetector = new SmartBatteryDetector(mPolicy, mContentResolver); 57 ReflectionHelpers.setField(mPolicy, "testSmartBatteryTip", true);
|
H A D | EarlyWarningDetectorTest.java | 46 private BatteryTipPolicy mPolicy; field in class:EarlyWarningDetectorTest 59 mPolicy = spy(new BatteryTipPolicy(mContext)); 67 mEarlyWarningDetector = new EarlyWarningDetector(mPolicy, mContext); 72 ReflectionHelpers.setField(mPolicy, "batterySaverTipEnabled", false); 81 ReflectionHelpers.setField(mPolicy, "testBatterySaverTip", true);
|
H A D | HighUsageDetectorTest.java | 71 private BatteryTipPolicy mPolicy; field in class:HighUsageDetectorTest 80 mPolicy = spy(new BatteryTipPolicy(mContext)); 81 mHighUsageDetector = spy(new HighUsageDetector(mContext, mPolicy, mBatteryStatsHelper, 109 ReflectionHelpers.setField(mPolicy, "highUsageEnabled", false); 116 ReflectionHelpers.setField(mPolicy, "highUsageEnabled", true); 126 ReflectionHelpers.setField(mPolicy, "testHighUsageTip", true);
|
/packages/apps/Settings/src/com/android/settings/notification/ |
H A D | ZenModeBackend.java | 49 protected NotificationManager.Policy mPolicy; field in class:ZenModeBackend 72 mPolicy = mNotificationManager.getNotificationPolicy(); 105 return (mPolicy.suppressedVisualEffects & visualEffect) != 0; 109 return (mPolicy.priorityCategories & categoryType) != 0; 113 int priorityCategories = mPolicy.priorityCategories; 124 return mPolicy.priorityCallSenders; 132 return mPolicy.priorityMessageSenders; 142 savePolicy(mPolicy.priorityCategories, mPolicy.priorityCallSenders, 143 mPolicy [all...] |
H A D | ZenFooterPreferenceController.java | 36 return mBackend.mPolicy.suppressedVisualEffects == 0 37 || Policy.areAllVisualEffectsSuppressed(mBackend.mPolicy.suppressedVisualEffects); 44 if (mBackend.mPolicy.suppressedVisualEffects == 0) { 46 } else if (Policy.areAllVisualEffectsSuppressed(mBackend.mPolicy.suppressedVisualEffects)) {
|
H A D | ZenModeVisEffectsCustomPreferenceController.java | 74 Policy.areAllVisualEffectsSuppressed(mBackend.mPolicy.suppressedVisualEffects); 75 boolean noEffectsSuppressed = mBackend.mPolicy.suppressedVisualEffects == 0;
|
/packages/services/Car/service/src/com/android/car/ |
H A D | BluetoothAutoConnectStateMachine.java | 42 private final BluetoothDeviceConnectionPolicy mPolicy; field in class:BluetoothAutoConnectStateMachine 61 mPolicy = policy; 131 mPolicy.connectToDeviceOnProfile(BluetoothProfile.PBAP_CLIENT, device); 132 mPolicy.connectToDeviceOnProfile(BluetoothProfile.MAP_CLIENT, device); 153 boolean deviceToConnectFound = mPolicy.findDeviceToConnect(); 198 mPolicy.updateDeviceConnectionStatus(params, false);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
H A D | ZenFooterPreferenceControllerTest.java | 84 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 0); 90 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 2); 105 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, allSuppressed); 111 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 0); 118 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 2); 134 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, allSuppressed);
|
H A D | ZenModeVisEffectsCustomPreferenceControllerTest.java | 93 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 0); 99 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 1); 106 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 0); 123 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, allSuppressed); 131 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 2); 139 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 2);
|
H A D | ZenModeBlockedEffectsPreferenceControllerTest.java | 46 private NotificationManager.Policy mPolicy; field in class:ZenModeBlockedEffectsPreferenceControllerTest 59 when(mNotificationManager.getNotificationPolicy()).thenReturn(mPolicy);
|
H A D | ZenModeBehaviorCallsPreferenceControllerTest.java | 48 private NotificationManager.Policy mPolicy; field in class:ZenModeBehaviorCallsPreferenceControllerTest 61 when(mNotificationManager.getNotificationPolicy()).thenReturn(mPolicy);
|
H A D | ZenModeBehaviorMsgEventReminderPreferenceControllerTest.java | 48 private NotificationManager.Policy mPolicy; field in class:ZenModeBehaviorMsgEventReminderPreferenceControllerTest 61 when(mNotificationManager.getNotificationPolicy()).thenReturn(mPolicy);
|
H A D | ZenModeBehaviorSoundPreferenceControllerTest.java | 48 private NotificationManager.Policy mPolicy; field in class:ZenModeBehaviorSoundPreferenceControllerTest 61 when(mNotificationManager.getNotificationPolicy()).thenReturn(mPolicy);
|
H A D | ZenModeVisEffectsAllPreferenceControllerTest.java | 100 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 1); 117 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, allSuppressed); 134 mBackend.mPolicy = new NotificationManager.Policy(0, 0, 0, 1);
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
H A D | SetupDataFragment.java | 54 private volatile Policy mPolicy; field in class:SetupDataFragment 66 mPolicy = null; 81 outState.putParcelable(SAVESTATE_POLICY, mPolicy); 96 mPolicy = savedInstanceState.getParcelable(SAVESTATE_POLICY); 159 return mPolicy; 163 mPolicy = policy; 250 dest.writeParcelable(mPolicy, 0); 262 mPolicy = in.readParcelable(loader); 279 sb.append(mPolicy == null ? "none" : "exists");
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/anomaly/ |
H A D | AnomalyLoader.java | 50 AnomalyDetectionPolicy mPolicy; field in class:AnomalyLoader 82 mPolicy = policy; 101 return mAnomalyUtils.detectAnomalies(mBatteryStatsHelper, mPolicy, mPackageName);
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
H A D | ChartDataUsagePreference.java | 44 private NetworkPolicy mPolicy; field in class:ChartDataUsagePreference 74 bindNetworkPolicy(chart, mPolicy, top); 89 long policyMax = mPolicy != null ? Math.max(mPolicy.limitBytes, mPolicy.warningBytes) : 0; 166 mPolicy = policy;
|