/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/mode/ |
D | DarkModeSnapshotRestorerTest.kt | 40 private var isActive = false variable in com.android.customization.model.mode.DarkModeSnapshotRestorerTest 49 isActive = { isActive }, in setUp() 50 setActive = { isActive = it }, in setUp() 57 isActive = true in set up and restore - active() 64 assertThat(isActive).isTrue() in set up and restore - active() 70 isActive = false in set up and restore - inactive() 77 assertThat(isActive).isFalse() in set up and restore - inactive() 83 isActive = true in set up - deactivate - restore to active() 91 assertThat(isActive).isTrue() in set up - deactivate - restore to active() 97 isActive = false in set up - activate - restore to inactive() [all …]
|
/packages/modules/StatsD/statsd/tests/ |
D | StatsLogProcessor_test.cpp | 608 EXPECT_TRUE(metricsManager1->isActive()); in TEST() 618 EXPECT_TRUE(metricProducer1->isActive()); in TEST() 628 EXPECT_TRUE(metricProducer2->isActive()); in TEST() 634 EXPECT_TRUE(metricsManager2->isActive()); in TEST() 644 EXPECT_FALSE(metricProducer3->isActive()); in TEST() 654 EXPECT_TRUE(metricProducer4->isActive()); in TEST() 660 EXPECT_FALSE(metricsManager3->isActive()); in TEST() 670 EXPECT_FALSE(metricProducer5->isActive()); in TEST() 680 EXPECT_FALSE(metricProducer6->isActive()); in TEST() 693 EXPECT_TRUE(metricsManager1->isActive()); in TEST() [all …]
|
/packages/apps/ThemePicker/src/com/android/customization/model/mode/ |
D | DarkModeSnapshotRestorer.kt | 33 private val isActive: () -> Boolean in <lambda>() constant in com.android.customization.model.mode.DarkModeSnapshotRestorer 44 isActive = { in <lambda>() 48 setActive = { isActive -> manager.setNightModeActivated(isActive) }, in <lambda>() method 54 isActive: () -> Boolean, in <lambda>() 58 this.isActive = isActive in <lambda>() 65 isActivated = isActive(), in <lambda>()
|
/packages/apps/Camera2/src/com/android/camera/one/ |
D | OneCamera.java | 227 public final boolean isActive; field in OneCamera.FocusState 234 public FocusState(float lensDistance, boolean isActive) { in FocusState() argument 236 this.isActive = isActive; in FocusState() 250 if (isActive != that.isActive) in equals() 259 result = 31 * result + (isActive ? 1 : 0); in hashCode() 267 ", isActive=" + isActive + in toString()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dpsink/ |
D | A2dpSinkStreamHandlerTest.java | 127 assertThat(BluetoothMediaBrowserService.isActive()).isFalse(); in testSrcStart() 139 assertThat(BluetoothMediaBrowserService.isActive()).isFalse(); in testSrcStop() 148 assertThat(BluetoothMediaBrowserService.isActive()).isFalse(); in testSnkPlay() 159 assertThat(BluetoothMediaBrowserService.isActive()).isFalse(); in testSnkPause() 171 assertThat(BluetoothMediaBrowserService.isActive()).isFalse(); in testDisconnect() 182 assertThat(BluetoothMediaBrowserService.isActive()).isFalse(); in testSrcPlay() 218 assertThat(BluetoothMediaBrowserService.isActive()).isTrue(); in testFocusGain() 233 assertThat(BluetoothMediaBrowserService.isActive()).isFalse(); in testFocusTransientMayDuck() 250 assertThat(BluetoothMediaBrowserService.isActive()).isFalse(); in testFocusLostTransient() 266 assertThat(BluetoothMediaBrowserService.isActive()).isFalse(); in testFocusRerequest() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | ShortcutUtil.java | 30 return isActive(info) && (isApp(info) || isPinnedShortcut(info)); in supportsShortcuts() 37 return isActive(info) && isApp(info) && !WidgetsModel.GO_DISABLE_WIDGETS; in supportsDeepShortcuts() 44 return isActive(info) && isPinnedShortcut(info) in getShortcutIdIfPinnedShortcut() 52 return isActive(info) && isPinnedShortcut(info) in getPersonKeysIfPinnedShortcut() 64 private static boolean isActive(ItemInfo info) { in isActive() method in ShortcutUtil
|
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/color/ |
D | ColorOptionTest.kt | 169 assertThat(seedOption.isActive(manager)).isTrue() in seedOption_isActive_notDefault_SourceSet() 177 assertThat(seedOption.isActive(manager)).isTrue() in seedOption_isActive_notDefault_NoSource() 185 assertThat(seedOption.isActive(manager)).isFalse() in seedOption_isActive_notDefault_differentSource() 193 assertThat(seedOption.isActive(manager)).isTrue() in seedOption_isActive_default_emptyJson() 203 assertThat(seedOption.isActive(manager)).isTrue() in seedOption_isActive_default_nonEmptyJson() 213 assertThat(seedOption.isActive(manager)).isFalse() in seedOption_isActive_default_nonEmptyOverlays()
|
/packages/apps/TV/src/com/android/tv/ui/ |
D | TvOverlayManager.java | 685 if (mProgramGuide.isActive()) { in toggleProgramGuide() 760 } else if (mSideFragmentManager.isActive()) { in hideOverlays() 787 return mSideFragmentManager.isActive() in needHideTextOnMainView() 788 || getMenu().isActive() in needHideTextOnMainView() 869 } else if (getSideFragmentManager().isActive()) { in updateChannelBannerAndShowIfNeeded() 966 if (mSideFragmentManager.isActive()) { in onUserInteraction() 968 } else if (mMenu.isActive()) { in onUserInteraction() 970 } else if (mProgramGuide.isActive()) { in onUserInteraction() 987 if (mMenu.isActive() in onKeyDown() 988 || mSideFragmentManager.isActive() in onKeyDown() [all …]
|
/packages/modules/StatsD/statsd/tests/e2e/ |
D | MetricActivation_e2e_test.cpp | 284 EXPECT_FALSE(metricsManager->isActive()); in TEST() 302 EXPECT_FALSE(metricsManager->isActive()); in TEST() 309 EXPECT_TRUE(metricsManager->isActive()); in TEST() 328 EXPECT_TRUE(metricsManager->isActive()); in TEST() 341 EXPECT_TRUE(metricsManager->isActive()); in TEST() 359 EXPECT_FALSE(metricsManager->isActive()); in TEST() 375 EXPECT_TRUE(metricsManager->isActive()); in TEST() 503 EXPECT_FALSE(metricsManager->isActive()); in TEST() 525 EXPECT_FALSE(metricsManager->isActive()); in TEST() 532 EXPECT_TRUE(metricsManager->isActive()); in TEST() [all …]
|
/packages/apps/Camera2/src/com/android/camera/ui/focus/ |
D | FocusRingView.java | 88 return mAutoFocusRing.isActive(); in isPassiveFocusRunning() 93 return mManualFocusRing.isActive(); in isActiveFocusRunning() 101 if (mManualFocusRing.isActive() && !mManualFocusRing.isExiting()) { in startPassiveFocus() 114 if (mAutoFocusRing.isActive() && !mAutoFocusRing.isExiting()) { in startActiveFocus() 125 if (mManualFocusRing.isActive() && !mManualFocusRing.isExiting() in stopFocusAnimations() 130 if (mAutoFocusRing.isActive() && !mAutoFocusRing.isExiting()) { in stopFocusAnimations()
|
D | FocusRingRenderer.java | 135 public boolean isActive() { in isActive() method in FocusRingRenderer 180 if (mRingRadius.isActive()) { in exit() 197 if (mRingRadius.isActive()) { in stop()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | WakeupConfigStoreDataTest.java | 106 boolean isActive = false; in deserializeSerializedData_emptySet() 110 when(mActiveDataSource.getData()).thenReturn(isActive); in deserializeSerializedData_emptySet() 118 verify(mActiveDataSource).setData(eq(isActive)); in deserializeSerializedData_emptySet() 148 boolean isActive = true; in deserializeSerializedData() 152 when(mActiveDataSource.getData()).thenReturn(isActive); in deserializeSerializedData() 160 verify(mActiveDataSource).setData(eq(isActive)); in deserializeSerializedData()
|
/packages/apps/TV/src/com/android/tv/menu/ |
D | Menu.java | 217 if (isActive()) { in show() 229 if (!isActive()) { in hide() 271 } else if (isActive()) { in setKeepVisible() 282 public boolean isActive() { in isActive() method in Menu 293 return mMenuView.update(isActive()); in update() 303 return mMenuView.update(rowId, isActive()); in update()
|
/packages/apps/Settings/src/com/android/settings/network/helper/ |
D | LifecycleCallbackTelephonyAdapter.java | 67 public void setCallbackActive(boolean isActive) { in setCallbackActive() argument 68 super.setCallbackActive(isActive); in setCallbackActive() 69 Runnable op = (isActive) ? mRegisterCallback : mUnRegisterCallback; in setCallbackActive()
|
D | VoiceCallStatus.java | 66 public void setCallbackActive(boolean isActive) { in VoiceCallStatus() 67 super.setCallbackActive(isActive); in VoiceCallStatus() 68 if (!isActive) { in VoiceCallStatus()
|
D | ServiceStateStatus.java | 67 public void setCallbackActive(boolean isActive) { in ServiceStateStatus() 68 super.setCallbackActive(isActive); in ServiceStateStatus() 69 if (!isActive) { in ServiceStateStatus()
|
D | LifecycleCallbackIntentReceiver.java | 91 public void setCallbackActive(boolean isActive) { in setCallbackActive() argument 92 super.setCallbackActive(isActive); in setCallbackActive() 93 Runnable op = (isActive) ? mRegisterCallback : mUnRegisterCallback; in setCallbackActive()
|
D | SubscriptionGrouping.java | 85 if (anno1.isActive() != anno2.isActive()) { in selectBestFromList() 86 return anno1.isActive() ? -1 : 1; in selectBestFromList()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | HeadsetMediaButton.java | 80 public boolean isActive() { in isActive() method in HeadsetMediaButton.MediaSessionWrapper 81 return mMediaSession.isActive(); in isActive() 93 boolean isActive(); in isActive() method 137 if (activate != mSession.isActive()) {
|
/packages/modules/StatsD/statsd/src/metrics/ |
D | MetricsManager.cpp | 304 mIsActive |= mAllMetricProducers[metric]->isActive(); in initializeConfigActiveStatus() 578 bool isActive = mIsAlwaysActive; in onLogEvent() local 587 if (metric->isActive()) { in onLogEvent() 594 mIsActive = isActive || !activeMetricsIndices.empty(); in onLogEvent() 637 if (!metric->isActive()) { in onLogEvent() 642 isActive |= !activeMetricsIndices.empty(); in onLogEvent() 650 isActive |= mAllMetricProducers[metricIndex]->isActive(); in onLogEvent() 655 mIsActive = isActive; in onLogEvent() 760 if (!mIsActive && metric->isActive()) { in loadActiveConfig() 764 mIsActive |= metric->isActive(); in loadActiveConfig()
|
D | MetricProducer.cpp | 189 bool isActive = mEventActivationMap.empty(); in evaluateActiveStateLocked() local 196 isActive = true; in evaluateActiveStateLocked() 199 return isActive; in evaluateActiveStateLocked() 207 const bool isActive = evaluateActiveStateLocked(elapsedTimestampNs); in flushIfExpire() local 208 if (!isActive) { // Metric went from active to not active. in flushIfExpire()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/helper/ |
D | SubscriptionGroupingTest.java | 98 boolean isActive, boolean isDisplayAllowed, ParcelUuid guuid) { in TestSubAnnotation() argument 102 mIsActive = isActive; in TestSubAnnotation() 123 public boolean isActive() { in isActive() method in SubscriptionGroupingTest.TestSubAnnotation
|
/packages/apps/Car/Settings/src/com/android/car/settings/common/rotary/ |
D | DirectManipulationHandler.java | 147 + (mDirectManipulationMode.isActive() ? "active" : "inactive")); in onKey() 149 boolean inDirectManipulationMode = mDirectManipulationMode.isActive(); in onKey() 202 if (!mDirectManipulationMode.isActive()) { in onGenericMotion()
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | HeadsetMediaButtonTest.java | 95 when(mMediaSessionAdapter.isActive()).thenReturn(true); in testAddCall() 116 when(mMediaSessionAdapter.isActive()).thenReturn(true); in testRegularCallThatBecomesExternal() 210 when(session.isActive()).thenReturn(active); in testMediaSessionWrapperIsActive() 211 assertEquals(active, wrapper.isActive()); in testMediaSessionWrapperIsActive()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/audio_util/ |
D | MediaPlayerList.java | 817 void injectAudioPlaybacActive(boolean isActive) { in injectAudioPlaybacActive() argument 818 mAudioPlaybackIsActive = isActive; in injectAudioPlaybacActive() 833 boolean isActive = false; 836 if (config.isActive() && (config.getAudioAttributes().getUsage() 841 isActive = true; 844 if (isActive != mAudioPlaybackIsActive) { 847 + (isActive ? "Active" : "Non-active")); 848 if (isActive) { 852 mAudioPlaybackIsActive = isActive;
|