Home
last modified time | relevance | path

Searched refs:wasEmpty (Results 1 – 25 of 33) sorted by relevance

12

/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/
H A DPackageBroadcastReceiver.kt56 val wasEmpty = hasNoListeners() regex
60 if (wasEmpty) {
75 val wasEmpty = hasNoListeners() regex
79 if (wasEmpty) {
93 val wasEmpty = hasNoListeners() regex
95 if (allCallbacks.remove(listener) && hasNoListeners() && !wasEmpty) {
109 val wasEmpty = hasNoListeners() regex
116 if (hasNoListeners() && !wasEmpty) {
H A DRoleListenerMultiplexer.kt52 val wasEmpty: Boolean
55 wasEmpty = userCallbacks.isEmpty()
60 if (wasEmpty) {
H A DPermissionListenerMultiplexer.kt51 val wasEmpty = callbacks.isEmpty() regex
55 if (wasEmpty) {
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
H A DTaskStackListenerImpl.java90 final boolean wasEmpty; in addListener()
92 wasEmpty = mTaskStackListeners.isEmpty(); in addListener()
95 if (wasEmpty) { in addListener()
106 final boolean wasEmpty; in removeListener()
109 wasEmpty = mTaskStackListeners.isEmpty(); in removeListener()
113 if (!wasEmpty && isEmpty) { in removeListener()
/aosp12/frameworks/base/services/core/java/com/android/server/twilight/
H A DTwilightService.java89 final boolean wasEmpty = mListeners.isEmpty(); in onStart()
92 if (wasEmpty && !mListeners.isEmpty()) { in onStart()
101 final boolean wasEmpty = mListeners.isEmpty(); in onStart()
104 if (!wasEmpty && mListeners.isEmpty()) { in onStart()
/aosp12/packages/apps/Settings/src/com/android/settings/biometrics/face/
H A DParticleCollection.java61 final boolean wasEmpty = mPrimariesInProgress.isEmpty();
69 if (mPrimariesInProgress.isEmpty() && !wasEmpty) {
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
H A DLocationUtils.java148 boolean wasEmpty = sLocationListeners.isEmpty(); in addLocationListener()
150 if (wasEmpty) { in addLocationListener()
/aosp12/frameworks/av/media/libmediatranscoding/transcoder/
H A DMediaSampleWriter.cpp162 bool wasEmpty; in addSampleToTrack() local
165 wasEmpty = mSampleQueue.empty(); in addSampleToTrack()
169 if (wasEmpty) { in addSampleToTrack()
/aosp12/frameworks/base/libs/input/
H A DSpriteController.cpp71 bool wasEmpty = mLocked.invalidatedSprites.isEmpty(); in invalidateSpriteLocked() local
73 if (wasEmpty) { in invalidateSpriteLocked()
83 bool wasEmpty = mLocked.disposedSurfaces.isEmpty(); in disposeSurfaceLocked() local
85 if (wasEmpty) { in disposeSurfaceLocked()
/aosp12/packages/apps/QuickAccessWallet/src/com/android/systemui/plugin/globalactions/wallet/
H A DWalletCardCarousel.java195 boolean wasEmpty = mWalletCardAdapter.getItemCount() == 0; in setData()
197 if (wasEmpty) { in setData()
204 return wasEmpty; in setData()
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
H A DOverviewCommandHelper.java100 boolean wasEmpty = mPendingCommands.isEmpty(); in addCommand()
102 if (wasEmpty) { in addCommand()
/aosp12/frameworks/base/core/java/android/app/
H A DPendingIntent.java1071 boolean wasEmpty = mCancelListeners.isEmpty(); in registerCancelListener()
1073 if (wasEmpty) { in registerCancelListener()
1105 boolean wasEmpty = mCancelListeners.isEmpty(); in unregisterCancelListener()
1107 if (mCancelListeners.isEmpty() && !wasEmpty) { in unregisterCancelListener()
H A DSharedPreferencesImpl.java686 boolean wasEmpty = false; in enqueueDiskWrite()
688 wasEmpty = mDiskWritesInFlight == 1; in enqueueDiskWrite()
690 if (wasEmpty) { in enqueueDiskWrite()
/aosp12/frameworks/base/services/core/java/com/android/server/camera/
H A DCameraServiceProxy.java702 boolean wasEmpty = mActiveCameraUsage.isEmpty(); in binderDied()
705 if ( mNotifyNfc && !wasEmpty ) { in binderDied()
980 boolean wasEmpty = mActiveCameraUsage.isEmpty(); in updateActivityCount()
1075 if ( mNotifyNfc && (wasEmpty != isEmpty) ) { in updateActivityCount()
/aosp12/frameworks/base/services/core/java/com/android/server/location/listeners/
H A DListenerMultiplexer.java257 boolean wasEmpty = mRegistrations.isEmpty(); in replaceRegistration()
270 if (wasEmpty) { in replaceRegistration()
/aosp12/packages/apps/TV/src/com/android/tv/dvr/ui/playback/
H A DDvrPlaybackOverlayFragment.java453 boolean wasEmpty = (mRelatedRecordingsRowAdapter.size() == 0); in updateRelatedRecordingsRow()
470 } else if (wasEmpty) { in updateRelatedRecordingsRow()
/aosp12/frameworks/native/services/surfaceflinger/CompositionEngine/src/
H A DOutput.cpp916 const bool wasEmpty = !outputState.lastCompositionHadVisibleLayers; in beginFrame() local
926 const bool mustRecompose = dirty && !(empty && wasEmpty); in beginFrame()
932 flagPrefix[empty], flagPrefix[wasEmpty]); in beginFrame()
/aosp12/packages/apps/WallpaperPicker/src/com/android/photos/views/
H A DTiledImageRenderer.java767 boolean wasEmpty = mHead == null; in push()
770 return wasEmpty; in push()
/aosp12/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
H A DTiledImageRenderer.java764 boolean wasEmpty = mHead == null; in push()
767 return wasEmpty; in push()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/ui/
H A DTileImageView.java745 boolean wasEmpty = mHead == null; in push()
748 return wasEmpty; in push()
/aosp12/packages/apps/Gallery2/src/com/android/photos/views/
H A DTiledImageRenderer.java767 boolean wasEmpty = mHead == null; in push()
770 return wasEmpty; in push()
/aosp12/frameworks/opt/photoviewer/src/com/android/ex/photo/
H A DPhotoViewController.java634 boolean wasEmpty = mIsEmpty; in onLoadFinished()
649 if (wasEmpty) { in onLoadFinished()
/aosp12/frameworks/base/core/java/android/accounts/
H A DAccountManager.java3026 final boolean wasEmpty = mAccountsUpdatedListeners.isEmpty();
3036 if (wasEmpty) {
/aosp12/frameworks/base/services/incremental/
H A DIncrementalService.cpp2366 bool wasEmpty; in addIfsStateCallback() local
2369 wasEmpty = mIfsStateCallbacks.empty(); in addIfsStateCallback()
2372 if (wasEmpty) { in addIfsStateCallback()
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/
H A DRecentsView.java2201 boolean wasEmpty = getChildCount() == 0; in showCurrentTask()
2226 if (wasEmpty) { in showCurrentTask()

12