Home
last modified time | relevance | path

Searched refs:isActive (Results 1 – 25 of 161) sorted by relevance

1234567

/frameworks/base/services/tests/servicestests/src/com/android/server/location/
DLocationRequestStatisticsTest.java45 assertTrue(stats.isActive()); in testSinglePackage()
65 assertTrue(stats.isActive()); in testSinglePackage_stopAndRestart()
68 assertFalse(stats.isActive()); in testSinglePackage_stopAndRestart()
86 assertTrue(stats.isActive()); in testSinglePackage_multipleIntervals()
89 assertTrue(stats.isActive()); in testSinglePackage_multipleIntervals()
91 assertFalse(stats.isActive()); in testSinglePackage_multipleIntervals()
107 assertTrue(stats1.isActive()); in testSinglePackage_multipleProviders()
113 assertTrue(stats2.isActive()); in testSinglePackage_multipleProviders()
116 assertFalse(stats1.isActive()); in testSinglePackage_multipleProviders()
117 assertTrue(stats2.isActive()); in testSinglePackage_multipleProviders()
[all …]
/frameworks/base/cmds/statsd/tests/
DStatsLogProcessor_test.cpp481 EXPECT_TRUE(metricsManager1->isActive()); in TEST()
491 EXPECT_TRUE(metricProducer1->isActive()); in TEST()
501 EXPECT_TRUE(metricProducer2->isActive()); in TEST()
507 EXPECT_TRUE(metricsManager2->isActive()); in TEST()
517 EXPECT_FALSE(metricProducer3->isActive()); in TEST()
527 EXPECT_TRUE(metricProducer4->isActive()); in TEST()
533 EXPECT_FALSE(metricsManager3->isActive()); in TEST()
543 EXPECT_FALSE(metricProducer5->isActive()); in TEST()
553 EXPECT_FALSE(metricProducer6->isActive()); in TEST()
566 EXPECT_TRUE(metricsManager1->isActive()); in TEST()
[all …]
/frameworks/base/core/java/com/android/internal/view/
DIInputConnectionWrapper.java116 abstract protected boolean isActive(); in isActive() method in IInputConnectionWrapper
246 if (ic == null || !isActive()) { in executeMessage()
264 if (ic == null || !isActive()) { in executeMessage()
282 if (ic == null || !isActive()) { in executeMessage()
300 if (ic == null || !isActive()) { in executeMessage()
322 if (ic == null || !isActive()) { in executeMessage()
341 if (ic == null || !isActive()) { in executeMessage()
350 if (ic == null || !isActive()) { in executeMessage()
359 if (ic == null || !isActive()) { in executeMessage()
368 if (ic == null || !isActive()) { in executeMessage()
[all …]
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/
DBackgroundJobsController.java155 private void updateJobRestrictionsForUidLocked(int uid, boolean isActive) { in updateJobRestrictionsForUidLocked() argument
156 updateJobRestrictionsLocked(uid, (isActive) ? KNOWN_ACTIVE : KNOWN_INACTIVE); in updateJobRestrictionsForUidLocked()
194 final boolean isActive; in updateSingleJobRestrictionLocked()
196 isActive = mAppStateTracker.isUidActive(uid); in updateSingleJobRestrictionLocked()
198 isActive = (activeState == KNOWN_ACTIVE); in updateSingleJobRestrictionLocked()
200 if (isActive && jobStatus.getStandbyBucket() == NEVER_INDEX) { in updateSingleJobRestrictionLocked()
204 didChange |= jobStatus.setUidActive(isActive); in updateSingleJobRestrictionLocked()
237 public void updateJobsForUid(int uid, boolean isActive) {
239 updateJobRestrictionsForUidLocked(uid, isActive);
244 public void updateJobsForUidPackage(int uid, String packageName, boolean isActive) {
[all …]
/frameworks/base/core/java/android/hardware/display/
DDisplayViewport.java53 public boolean isActive; field in DisplayViewport
85 isActive = viewport.isActive; in copyFrom()
118 && isActive == other.isActive in equals()
135 result += prime * result + (isActive ? 1 : 0); in hashCode()
156 + ", isActive=" + isActive in toString()
/frameworks/native/include/input/
DDisplayViewport.h77 bool isActive; member
97 isActive(false), in DisplayViewport()
109 isActive == other.isActive && uniqueId == other.uniqueId &&
134 isActive = false; in setNonDisplayViewport()
151 deviceHeight, isActive); in toString()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DUiccSlotTest.java117 assertTrue(mUiccSlot.isActive()); in testUpdateInactiveSlotStatus()
126 assertFalse(mUiccSlot.isActive()); in testUpdateInactiveSlotStatus()
136 assertTrue(mUiccSlot.isActive()); in testUpdateActiveSlotStatus()
153 assertTrue(mUiccSlot.isActive()); in testUpdateActiveSlotStatus()
164 assertTrue(mUiccSlot.isActive()); in testUpdateActiveSlotStatus()
178 assertTrue(mUiccSlot.isActive()); in testUpdateSlotStatusEuiccIsSupported()
187 assertFalse(mUiccSlot.isActive()); in testUpdateSlotStatusEuiccIsSupported()
198 assertTrue(mUiccSlot.isActive()); in testUpdateSlotStatusEuiccIsSupported()
213 assertTrue(mUiccSlot.isActive()); in testUpdateSlotStatusEuiccIsNotSupported()
222 assertFalse(mUiccSlot.isActive()); in testUpdateSlotStatusEuiccIsNotSupported()
[all …]
/frameworks/base/cmds/statsd/src/metrics/
DMetricsManager.cpp167 bool isActive = mIsAlwaysActive; in MetricsManager() local
169 isActive |= mAllMetricProducers[metric]->isActive(); in MetricsManager()
171 mIsActive = isActive; in MetricsManager()
180 if (metric->isActive()) { in MetricsManager()
464 bool isActive = mIsAlwaysActive; in onLogEvent() local
473 if (metric->isActive()) { in onLogEvent()
480 mIsActive = isActive || !activeMetricsIndices.empty(); in onLogEvent()
511 if (!metric->isActive()) { in onLogEvent()
516 isActive |= !activeMetricsIndices.empty(); in onLogEvent()
524 isActive |= mAllMetricProducers[metricIndex]->isActive(); in onLogEvent()
[all …]
DMetricProducer.cpp142 bool isActive = mEventActivationMap.empty(); in evaluateActiveStateLocked() local
149 isActive = true; in evaluateActiveStateLocked()
152 return isActive; in evaluateActiveStateLocked()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWakeupConfigStoreDataTest.java104 boolean isActive = false; in deserializeSerializedData_emptySet()
108 when(mActiveDataSource.getData()).thenReturn(isActive); in deserializeSerializedData_emptySet()
116 verify(mActiveDataSource).setData(eq(isActive)); in deserializeSerializedData_emptySet()
140 boolean isActive = true; in deserializeSerializedData()
144 when(mActiveDataSource.getData()).thenReturn(isActive); in deserializeSerializedData()
152 verify(mActiveDataSource).setData(eq(isActive)); in deserializeSerializedData()
/frameworks/base/cmds/statsd/tests/e2e/
DMetricActivation_e2e_test.cpp277 EXPECT_FALSE(metricsManager->isActive()); in TEST()
295 EXPECT_FALSE(metricsManager->isActive()); in TEST()
302 EXPECT_TRUE(metricsManager->isActive()); in TEST()
321 EXPECT_TRUE(metricsManager->isActive()); in TEST()
334 EXPECT_TRUE(metricsManager->isActive()); in TEST()
352 EXPECT_FALSE(metricsManager->isActive()); in TEST()
368 EXPECT_TRUE(metricsManager->isActive()); in TEST()
489 EXPECT_FALSE(metricsManager->isActive()); in TEST()
511 EXPECT_FALSE(metricsManager->isActive()); in TEST()
518 EXPECT_TRUE(metricsManager->isActive()); in TEST()
[all …]
DDurationMetric_e2e_test.cpp65 EXPECT_TRUE(metricsManager->isActive()); in TEST()
148 EXPECT_TRUE(metricsManager->isActive()); in TEST()
263 EXPECT_FALSE(metricsManager->isActive()); in TEST()
289 EXPECT_TRUE(metricsManager->isActive()); in TEST()
302 EXPECT_FALSE(metricsManager->isActive()); in TEST()
333 EXPECT_TRUE(metricsManager->isActive()); in TEST()
402 EXPECT_TRUE(metricsManager->isActive()); in TEST()
506 EXPECT_TRUE(metricsManager->isActive()); in TEST()
617 EXPECT_FALSE(metricsManager->isActive()); in TEST()
632 EXPECT_FALSE(metricsManager->isActive()); in TEST()
[all …]
/frameworks/base/telephony/java/android/telephony/
DUiccSlotInfo.java111 public UiccSlotInfo(boolean isActive, boolean isEuicc, String cardId, in UiccSlotInfo() argument
113 this.mIsActive = isActive; in UiccSlotInfo()
125 public UiccSlotInfo(boolean isActive, boolean isEuicc, String cardId, in UiccSlotInfo() argument
128 this.mIsActive = isActive; in UiccSlotInfo()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioOutputDescriptor.cpp126 bool AudioOutputDescriptor::isActive(VolumeSource vs, uint32_t inPastMs, nsecs_t sysTime) const in isActive() function in android::AudioOutputDescriptor
129 isActive(inPastMs) : (mVolumeActivities.find(vs) != std::end(mVolumeActivities)? in isActive()
130 mVolumeActivities.at(vs).isActive(inPastMs, sysTime) : false); in isActive()
133 bool AudioOutputDescriptor::isActive(uint32_t inPastMs) const in isActive() function in android::AudioOutputDescriptor
140 if (iter.second.isActive(inPastMs, sysTime)) { in isActive()
434 devicePort->hasGainController(true) && isActive(vs)) { in setVolume()
553 if (!isActive()) { in start()
570 if (!isActive()) { in stop()
674 bool SwAudioOutputCollection::isActive(VolumeSource volumeSource, uint32_t inPastMs) const in isActive() function in android::SwAudioOutputCollection
679 if (outputDesc->isActive(volumeSource, inPastMs, sysTime)) { in isActive()
[all …]
/frameworks/base/core/jni/
Dandroid_hardware_display_DisplayViewport.cpp37 jfieldID isActive; member
63 viewport->isActive = env->GetBooleanField(viewportObj, gDisplayViewportClassInfo.isActive); in android_hardware_display_DisplayViewport_toNative()
109 gDisplayViewportClassInfo.isActive = in register_android_hardware_display_DisplayViewport()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioOutputDescriptor.h45 bool isActive(uint32_t inPastMs = 0, nsecs_t sysTime = 0) const
186 bool isActive(uint32_t inPastMs) const;
187 bool isActive(VolumeSource volumeSource = VOLUME_SOURCE_NONE,
195 if (iter.second.isActive()) { in getActiveVolumeSources()
238 mRoutingActivities.at(ps).isActive(inPastMs, sysTime) : false;
444 bool isActive(VolumeSource volumeSource, uint32_t inPastMs = 0) const;
538 bool isActive(VolumeSource volumeSource, uint32_t inPastMs = 0) const;
/frameworks/compile/slang/
Dslang_rs_reflection_state.cpp112 if (!isActive()) in nextFile()
239 if (!isActive()) in beginForEaches()
256 if (!isActive()) in beginForEach()
385 if (!isActive()) in addForEachIn()
432 if (!isActive()) in addForEachParam()
462 if (!isActive()) in addForEachSignatureMetadata()
499 if (!isActive()) in endForEach()
573 if (!isActive()) in declareInvokable()
667 if (!isActive()) in beginRecords()
677 if (!isActive()) in endRecords()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWakeupConfigStoreData.java187 boolean isActive = false; in parseFeatureState()
199 isActive = (Boolean) value; in parseFeatureState()
213 mIsActiveDataSource.setData(isActive); in parseFeatureState()
DWakeupController.java178 private void setActive(boolean isActive) { in setActive() argument
179 if (mIsActive != isActive) { in setActive()
180 Log.d(TAG, "Setting active to " + isActive); in setActive()
181 mIsActive = isActive; in setActive()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
DSimSlotStateTest.java48 doReturn(false).when(mInactiveSlot).isActive(); in setUp()
50 doReturn(true).when(mEmptySlot).isActive(); in setUp()
53 doReturn(true).when(mPhysicalSlot).isActive(); in setUp()
57 doReturn(true).when(mEsimSlot).isActive(); in setUp()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DPhoneMediaDevice.java150 public void updateSummary(boolean isActive) { in updateSummary() argument
151 mSummary = isActive in updateSummary()
/frameworks/base/core/java/android/hardware/fingerprint/
DIFingerprintClientActiveCallback.aidl23 void onClientActiveChanged(boolean isActive); in onClientActiveChanged() argument
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/euicc/
DEuiccCardControllerTest.java101 when(mActivatedEsimSlot.isActive()).thenReturn(true); in setUp()
104 when(mNotPresentEsimSlot.isActive()).thenReturn(true); in setUp()
107 when(mInactivatedEsimSlot.isActive()).thenReturn(false); in setUp()
110 when(mActivatedRemovableSlot.isActive()).thenReturn(true); in setUp()
/frameworks/base/services/core/java/com/android/server/display/whitebalance/
DDisplayWhiteBalanceSettings.java80 final boolean isActive = mCdsi.setDisplayWhiteBalanceListener(this); in DisplayWhiteBalanceSettings()
81 setActive(isActive); in DisplayWhiteBalanceSettings()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DCachedBluetoothDevice.java526 public void onActiveDeviceChanged(boolean isActive, int bluetoothProfile) { in onActiveDeviceChanged() argument
530 changed = (mIsActiveDeviceA2dp != isActive); in onActiveDeviceChanged()
531 mIsActiveDeviceA2dp = isActive; in onActiveDeviceChanged()
534 changed = (mIsActiveDeviceHeadset != isActive); in onActiveDeviceChanged()
535 mIsActiveDeviceHeadset = isActive; in onActiveDeviceChanged()
538 changed = (mIsActiveDeviceHearingAid != isActive); in onActiveDeviceChanged()
539 mIsActiveDeviceHearingAid = isActive; in onActiveDeviceChanged()
543 " isActive " + isActive); in onActiveDeviceChanged()

1234567