Home
last modified time | relevance | path

Searched refs:state2 (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Settings/src/com/android/settings/applications/
DAppStateNotificationBridge.java291 NotificationsSentState state2 = getNotificationsSentState(object2);
292 if (state1 == null && state2 != null) return -1;
293 if (state1 != null && state2 == null) return 1;
294 if (state1 != null && state2 != null) {
295 if (state1.lastSent < state2.lastSent) return 1;
296 if (state1.lastSent > state2.lastSent) return -1;
307 NotificationsSentState state2 = getNotificationsSentState(object2);
308 if (state1 == null && state2 != null) return -1;
309 if (state1 != null && state2 == null) return 1;
310 if (state1 != null && state2 != null) {
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/
DAppStateAlarmsAndRemindersBridgeTest.java109 AppStateAlarmsAndRemindersBridge.AlarmsAndRemindersState state2 = in createPermissionState() local
111 assertThat(state2.shouldBeVisible()).isFalse(); in createPermissionState()
112 assertThat(state2.isAllowed()).isTrue(); in createPermissionState()
/packages/services/Car/tests/carservice_test/src/com/android/car/cluster/
DClusterHomeManagerTest.java212 ClusterState state2 = mClusterHomeManager.getClusterState(); in testClusterState() local
213 assertThat(state2).isNotNull(); in testClusterState()
215 assertThat(state2.on).isEqualTo(mState.on); in testClusterState()
216 assertThat(state2.bounds).isEqualTo(mState.bounds); in testClusterState()
217 assertThat(state2.insets).isEqualTo(mState.insets); in testClusterState()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryFlagParser.java34 public BatteryFlagParser(int accent, boolean state2, int flag) { in BatteryFlagParser() argument
37 mState2 = state2; in BatteryFlagParser()
/packages/modules/StatsD/statsd/tests/metrics/parsing_utils/
Dconfig_update_utils_test.cpp909 State state2 = CreateUidProcessState(); in TEST_F() local
910 int64_t state2Id = state2.id(); in TEST_F()
911 *config.add_state() = state2; in TEST_F()
928 *newConfig.add_state() = state2; in TEST_F()
1910 State state2 = CreateScreenState(); in TEST_F() local
1911 int64_t state2Id = state2.id(); in TEST_F()
1912 *config.add_state() = state2; in TEST_F()
1953 state2.set_atom_id(util::BATTERY_SAVER_MODE_STATE_CHANGED); in TEST_F()
2010 *newConfig.add_state() = state2; in TEST_F()
2394 State state2 = CreateScreenState(); in TEST_F() local
[all …]
/packages/modules/StatsD/statsd/tests/
Dstatsd_test_util.cpp1354 const StateValue& state2 = s2[i]; in LessThan() local
1355 if (state1.atom_id() != state2.atom_id()) { in LessThan()
1356 return state1.atom_id() < state2.atom_id(); in LessThan()
1358 if (state1.value() != state2.value()) { in LessThan()
1359 return state1.value() < state2.value(); in LessThan()
1361 if (state1.group_id() != state2.group_id()) { in LessThan()
1362 return state1.group_id() < state2.group_id(); in LessThan()
/packages/modules/StatsD/statsd/tests/e2e/
DCountMetric_e2e_test.cpp654 auto state2 = CreateUidProcessState(); in TEST() local
655 *config.add_state() = state2; in TEST()
665 countMetric->add_slice_by_state(state2.id()); in TEST()