Home
last modified time | relevance | path

Searched refs:mIsActive (Results 1 – 25 of 27) sorted by relevance

12

/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/
DDeviceAdminAddActionPreferenceController.java44 private Boolean mIsActive; field in DeviceAdminAddActionPreferenceController
55 preference.setEnabled(mIsActive != null); in updateState()
56 preference.setTitle(mIsActive == null || mIsActive in updateState()
63 if (mIsActive == null) { in handlePreferenceClicked()
67 if (mIsActive) { in handlePreferenceClicked()
86 mIsActive = null; in setIsActive()
88 mIsActive = mDpm.isAdminActive(admin); in setIsActive()
91 mLogger.d("updateState(): active = " + mIsActive); in setIsActive()
/packages/modules/StatsD/statsd/tests/e2e/
DMetricActivation_e2e_test.cpp278 EXPECT_FALSE(metricProducer->mIsActive); in TEST()
296 EXPECT_FALSE(metricProducer->mIsActive); in TEST()
303 EXPECT_TRUE(metricProducer->mIsActive); in TEST()
322 EXPECT_TRUE(metricProducer->mIsActive); in TEST()
335 EXPECT_TRUE(metricProducer->mIsActive); in TEST()
353 EXPECT_FALSE(metricProducer->mIsActive); in TEST()
369 EXPECT_TRUE(metricProducer->mIsActive); in TEST()
490 EXPECT_FALSE(metricProducer->mIsActive); in TEST()
512 EXPECT_FALSE(metricProducer->mIsActive); in TEST()
519 EXPECT_TRUE(metricProducer->mIsActive); in TEST()
[all …]
DDurationMetric_e2e_test.cpp66 EXPECT_TRUE(metricProducer->mIsActive); in TEST()
149 EXPECT_TRUE(metricProducer->mIsActive); in TEST()
264 EXPECT_FALSE(metricProducer->mIsActive); in TEST()
290 EXPECT_TRUE(metricProducer->mIsActive); in TEST()
303 EXPECT_FALSE(metricProducer->mIsActive); in TEST()
334 EXPECT_TRUE(metricProducer->mIsActive); in TEST()
403 EXPECT_TRUE(metricProducer->mIsActive); in TEST()
507 EXPECT_TRUE(metricProducer->mIsActive); in TEST()
618 EXPECT_FALSE(metricProducer->mIsActive); in TEST()
633 EXPECT_FALSE(metricProducer->mIsActive); in TEST()
[all …]
/packages/apps/Car/libs/car-telephony-common/src/com/android/car/telephony/common/
DAsyncQueryLiveData.java92 private boolean mIsActive; field in AsyncQueryLiveData.CursorRunnable
96 mIsActive = true; in CursorRunnable()
103 if (mIsActive) { in run()
105 if (mIsActive) { in run()
113 if (!mIsActive && mCursor != null) { in closeCursorIfNecessary()
116 mIsActive = false; in closeCursorIfNecessary()
DObservableAsyncQuery.java60 private boolean mIsActive = false; field in ObservableAsyncQuery
110 mIsActive = true; in startQuery()
120 mIsActive = false; in stopQuery()
126 if (!mIsActive) { in onQueryComplete()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DSlideshowDataAdapter.java53 private boolean mIsActive = false; field in SlideshowDataAdapter
99 while (mIsActive && (!mDataReady in run()
109 if (!mIsActive) return null; in run()
160 while (mIsActive && mDataReady && mImageQueue.isEmpty()) { in innerNextBitmap()
187 mIsActive = false;
198 mIsActive = true;
DAlbumPage.java85 private boolean mIsActive = false; field in AlbumPage
252 if (!mIsActive) return; in onSingleTapUp()
273 if (!mIsActive) return; in pickPhoto()
401 mIsActive = true; in onResume()
438 mIsActive = false; in onPause()
714 if ((mLoadingBits == 0) && (mSyncResult == MediaSet.SYNC_RESULT_ERROR) && mIsActive in showSyncErrorIfNecessary()
727 if (mLoadingBits == 0 && mIsActive) { in clearLoadingBit()
DAlbumSetPage.java84 private boolean mIsActive = false; field in AlbumSetPage
191 if (!mIsActive) return; in onSingleTapUp()
238 if (!mIsActive) return; in pickAlbum()
400 if (mLoadingBits == 0 && mIsActive) { in clearLoadingBit()
437 mIsActive = false; in onPause()
457 mIsActive = true; in onResume()
716 if (resultCode == MediaSet.SYNC_RESULT_ERROR && mIsActive) { in onSyncDone()
DSlideshowPage.java84 private boolean mIsActive = false; field in SlideshowPage
158 if (mIsActive) { in showPendingBitmap()
175 mIsActive = false; in onPause()
186 mIsActive = true; in onResume()
DPhotoDataAdapter.java153 private boolean mIsActive; field in PhotoDataAdapter
351 mIsActive = true; in resume()
366 mIsActive = false; in pause()
386 if (index < 0 || index >= mSize || !mIsActive) return null; in getItem()
448 if (index < 0 || index >= mSize || !mIsActive) return null; in getScreenNail()
657 if (!mIsActive) return; in updateImageRequests()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWakeupController.java106 private boolean mIsActive = false; field in WakeupController
195 if (mIsActive != isActive) { in setActive()
197 mIsActive = isActive; in setActive()
222 if (mIsActive) { in setLastDisconnectInfo()
267 if (mIsActive) { in start()
474 pw.println("mIsActive: " + mIsActive); in dump()
484 return mIsActive; in getData()
489 mIsActive = data; in setData()
/packages/modules/StatsD/statsd/src/metrics/
DMetricProducer.cpp72 mIsActive(mEventActivationMap.empty()), in MetricProducer()
110 if (!mIsActive) { in onMatchedLogEventLocked()
192 if (!mIsActive) { in flushIfExpire()
195 mIsActive = evaluateActiveStateLocked(elapsedTimestampNs); in flushIfExpire()
196 if (!mIsActive) { in flushIfExpire()
216 bool oldActiveState = mIsActive; in activateLocked()
217 mIsActive = true; in activateLocked()
254 mIsActive = true; in loadActiveMetricLocked()
DDurationMetricProducer.cpp424 if (!mIsActive) { in onSlicedConditionMayChangeLocked()
445 if (mIsActive) { in onActiveStateChangedLocked()
450 whatIt.second->onConditionChanged(mIsActive, eventTimeNs); in onActiveStateChangedLocked()
452 } else if (mIsActive) { in onActiveStateChangedLocked()
454 onSlicedConditionMayChangeInternalLocked(mIsActive, eventTimeNs); in onActiveStateChangedLocked()
457 whatIt.second->onConditionChanged(mIsActive, eventTimeNs); in onActiveStateChangedLocked()
467 if (!mIsActive) { in onConditionChangedLocked()
687 if (mIsActive) { in handleMatchedLogEventValuesLocked()
776 condition = condition && mIsActive; in handleMatchedLogEventValuesLocked()
DMetricsManager.cpp268 mIsActive = mIsAlwaysActive; in initializeConfigActiveStatus()
270 mIsActive |= mAllMetricProducers[metric]->isActive(); in initializeConfigActiveStatus()
272 VLOG("mIsActive is initialized to %d", mIsActive); in initializeConfigActiveStatus()
557 mIsActive = isActive || !activeMetricsIndices.empty(); in onLogEvent()
607 mIsActive = isActive; in onLogEvent()
713 if (!mIsActive && metric->isActive()) { in loadActiveConfig()
717 mIsActive |= metric->isActive(); in loadActiveConfig()
DGaugeMetricProducer.cpp211 if (mIsActive && mIsPulled && mSamplingType == GaugeMetric::RANDOM_ONE_SAMPLE) { in onConfigUpdatedLocked()
357 if (mIsActive && mIsPulled && mSamplingType == GaugeMetric::RANDOM_ONE_SAMPLE) { in prepareFirstBucketLocked()
412 if (mTriggerAtomId == -1 || (mIsActive && mSamplingType == GaugeMetric::RANDOM_ONE_SAMPLE)) { in onActiveStateChangedLocked()
423 if (!mIsActive) { in onConditionChangedLocked()
438 if (!mIsActive) { in onSlicedConditionMayChangeLocked()
DValueMetricProducer.cpp179 mConditionTimer.onConditionChanged(mIsActive && mCondition == ConditionState::kTrue, in ValueMetricProducer()
254 if (mCondition != ConditionState::kTrue || !mIsActive) { in onStateChanged()
498 if (mUseDiff && !mIsActive) { in onActiveStateChangedLocked()
506 mConditionTimer.onConditionChanged(mIsActive, eventTimeNs); in onActiveStateChangedLocked()
508 updateCurrentSlicedBucketConditionTimers(mIsActive, eventTimeNs); in onActiveStateChangedLocked()
517 if (!mIsActive) { in onConditionChangedLocked()
601 if (mIsActive && mIsPulled && mCondition == ConditionState::kTrue && mUseDiff) { in prepareFirstBucketLocked()
DMetricProducer.h430 if (!mIsActive) { in onActiveStateChangedLocked()
436 return mIsActive; in isActiveLocked()
524 bool mIsActive; variable
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DAlbumSlidingWindow.java77 private boolean mIsActive = false; field in AlbumSlidingWindow
129 if (!mIsActive) { in setContentWindow()
178 if (mIsActive) updateAllImageRequests(); in setActiveWindow()
191 if (!mIsActive) return; in updateTextureUploadQueue()
338 if (index >= mContentStart && index < mContentEnd && mIsActive) { in onContentChanged()
349 mIsActive = true; in resume()
358 mIsActive = false; in pause()
DAlbumSetSlidingWindow.java69 private boolean mIsActive = false; field in AlbumSetSlidingWindow
181 if (mIsActive) { in setActiveWindow()
314 if (!mIsActive) return; in updateTextureUploadQueue()
354 if (mIsActive && mSize != size) { in onSizeChanged()
364 if (!mIsActive) { in onContentChanged()
398 mIsActive = false; in pause()
408 mIsActive = true; in resume()
532 if (!mIsActive) return; in onSlotSizeChanged()
/packages/apps/Settings/src/com/android/settings/network/helper/
DSubscriptionAnnotation.java41 private boolean mIsActive; field in SubscriptionAnnotation
96 mIsActive = activeSimSlotIndexList.contains(mSubInfo.getSimSlotIndex()); in SubscriptionAnnotation()
102 mIsActive = (mSubInfo.getSimSlotIndex() > SubscriptionManager.INVALID_SIM_SLOT_INDEX) in SubscriptionAnnotation()
128 return mIsActive; in isActive()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
DSyncStateSwitchPreference.java35 private boolean mIsActive = false; field in SyncStateSwitchPreference
66 final boolean activeVisible = mIsActive || mIsPending; in onBindViewHolder()
68 syncActiveView.setAnimating(mIsActive); in onBindViewHolder()
94 mIsActive = isActive; in setActive()
/packages/apps/Settings/src/com/android/settings/accounts/
DSyncStateSwitchPreference.java36 private boolean mIsActive = false; field in SyncStateSwitchPreference
80 final boolean activeVisible = mIsActive || mIsPending; in onBindViewHolder()
82 syncActiveView.setAnimating(mIsActive); in onBindViewHolder()
108 mIsActive = isActive; in setActive()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/helper/
DSubscriptionGroupingTest.java93 private boolean mIsActive; field in SubscriptionGroupingTest.TestSubAnnotation
102 mIsActive = isActive; in TestSubAnnotation()
124 return mIsActive; in isActive()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioPlaybackCallbackTest.java501 private boolean mIsActive = true; field in CarAudioPlaybackCallbackTest.AudioPlaybackConfigurationBuilder
515 mIsActive = false; in setInactive()
525 when(configuration.isActive()).thenReturn(mIsActive); in build()
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DCarAudioZoneTest.java344 private boolean mIsActive = true; field in CarAudioZoneTest.Builder
358 mIsActive = false; in setInactive()
368 when(configuration.isActive()).thenReturn(mIsActive); in build()

12