Home
last modified time | relevance | path

Searched refs:isEmpty (Results 1 – 25 of 2045) sorted by relevance

12345678910>>...82

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DAdnRecordTest.java44 assertFalse(adn.isEmpty()); in testBasic()
54 assertTrue(adn.isEmpty()); in testBasic()
63 assertTrue(adn.isEmpty()); in testBasic()
73 assertFalse(adn.isEmpty()); in testBasic()
83 assertFalse(adn.isEmpty()); in testBasic()
93 assertFalse(adn.isEmpty()); in testBasic()
103 assertFalse(adn.isEmpty()); in testBasic()
113 assertFalse(adn.isEmpty()); in testBasic()
123 assertFalse(adn.isEmpty()); in testBasic()
134 assertFalse(adn.isEmpty()); in testBasic()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardClockAccessibilityDelegate.java41 if (TextUtils.isEmpty(mFancyColon)) { in onInitializeAccessibilityEvent()
45 if (!TextUtils.isEmpty(text)) { in onInitializeAccessibilityEvent()
52 if (TextUtils.isEmpty(mFancyColon)) { in onPopulateAccessibilityEvent()
56 if (!TextUtils.isEmpty(text)) { in onPopulateAccessibilityEvent()
65 if (TextUtils.isEmpty(mFancyColon)) { in onInitializeAccessibilityNodeInfo()
68 if (!TextUtils.isEmpty(info.getText())) { in onInitializeAccessibilityNodeInfo()
71 if (!TextUtils.isEmpty(info.getContentDescription())) { in onInitializeAccessibilityNodeInfo()
77 if (TextUtils.isEmpty(mFancyColon)) { in replaceFancyColon()
84 return !TextUtils.isEmpty(context.getString(R.string.keyguard_fancy_colon)); in isNeeded()
/frameworks/base/core/java/android/view/inputmethod/
DInputConnectionInspector.java221 boolean isEmpty = true; in getMissingMethodFlagsAsString()
224 isEmpty = false; in getMissingMethodFlagsAsString()
227 if (!isEmpty) { in getMissingMethodFlagsAsString()
231 isEmpty = false; in getMissingMethodFlagsAsString()
234 if (!isEmpty) { in getMissingMethodFlagsAsString()
238 isEmpty = false; in getMissingMethodFlagsAsString()
241 if (!isEmpty) { in getMissingMethodFlagsAsString()
245 isEmpty = false; in getMissingMethodFlagsAsString()
248 if (!isEmpty) { in getMissingMethodFlagsAsString()
252 isEmpty = false; in getMissingMethodFlagsAsString()
[all …]
/frameworks/base/media/java/android/media/
DMediaRouter2Utils.java34 if (TextUtils.isEmpty(providerId)) { in toUniqueId()
38 if (TextUtils.isEmpty(id)) { in toUniqueId()
52 if (TextUtils.isEmpty(uniqueId)) { in getProviderId()
63 if (TextUtils.isEmpty(providerId)) { in getProviderId()
76 if (TextUtils.isEmpty(uniqueId)) { in getOriginalId()
87 if (TextUtils.isEmpty(providerId)) { in getOriginalId()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DArrayUtils.java60 public static boolean isEmpty(@Nullable Collection<?> array) { in isEmpty() method in ArrayUtils
61 return array == null || array.isEmpty(); in isEmpty()
67 public static <T> boolean isEmpty(@Nullable T[] array) { in isEmpty() method in ArrayUtils
74 public static boolean isEmpty(@Nullable int[] array) { in isEmpty() method in ArrayUtils
81 public static boolean isEmpty(@Nullable long[] array) { in isEmpty() method in ArrayUtils
88 public static boolean isEmpty(@Nullable byte[] array) { in isEmpty() method in ArrayUtils
95 public static boolean isEmpty(@Nullable boolean[] array) { in isEmpty() method in ArrayUtils
/frameworks/native/libs/ui/tests/
DSize_test.cpp69 EXPECT_FALSE(s.isEmpty()); in TEST()
75 EXPECT_FALSE(s.isEmpty()); in TEST()
81 EXPECT_FALSE(s.isEmpty()); in TEST()
87 EXPECT_FALSE(s.isEmpty()); in TEST()
93 EXPECT_FALSE(s.isEmpty()); in TEST()
99 EXPECT_FALSE(s.isEmpty()); in TEST()
106 EXPECT_FALSE(s.isEmpty()); in TEST()
112 EXPECT_TRUE(s.isEmpty()); in TEST()
118 EXPECT_TRUE(s.isEmpty()); in TEST()
125 EXPECT_TRUE(s.isEmpty()); in TEST()
[all …]
/frameworks/opt/vcard/java/com/android/vcard/
DVCardEntry.java123 public boolean isEmpty(); in isEmpty() method
162 return TextUtils.isEmpty(mFamily) && TextUtils.isEmpty(mGiven) in emptyStructuredName()
163 && TextUtils.isEmpty(mMiddle) && TextUtils.isEmpty(mPrefix) in emptyStructuredName()
164 && TextUtils.isEmpty(mSuffix); in emptyStructuredName()
168 return TextUtils.isEmpty(mPhoneticFamily) && TextUtils.isEmpty(mPhoneticGiven) in emptyPhoneticStructuredName()
169 && TextUtils.isEmpty(mPhoneticMiddle); in emptyPhoneticStructuredName()
180 if (!TextUtils.isEmpty(mGiven)) { in constructInsertOperation()
183 if (!TextUtils.isEmpty(mFamily)) { in constructInsertOperation()
186 if (!TextUtils.isEmpty(mMiddle)) { in constructInsertOperation()
189 if (!TextUtils.isEmpty(mPrefix)) { in constructInsertOperation()
[all …]
DVCardBuilder.java165 if (TextUtils.isEmpty(charset)) { in VCardBuilder()
175 if (TextUtils.isEmpty(charset)) { in VCardBuilder()
218 return !(TextUtils.isEmpty(familyName) && TextUtils.isEmpty(middleName) && in containsNonEmptyName()
219 TextUtils.isEmpty(givenName) && TextUtils.isEmpty(prefix) && in containsNonEmptyName()
220 TextUtils.isEmpty(suffix) && TextUtils.isEmpty(phoneticFamilyName) && in containsNonEmptyName()
221 TextUtils.isEmpty(phoneticMiddleName) && TextUtils.isEmpty(phoneticGivenName) && in containsNonEmptyName()
222 TextUtils.isEmpty(displayName)); in containsNonEmptyName()
280 if (contentValuesList == null || contentValuesList.isEmpty()) { in appendNamePropertiesV40()
298 if (TextUtils.isEmpty(familyName) in appendNamePropertiesV40()
299 && TextUtils.isEmpty(givenName) in appendNamePropertiesV40()
[all …]
/frameworks/base/telephony/common/com/android/internal/telephony/util/
DArrayUtils.java198 public static boolean isEmpty(@Nullable Collection<?> array) { in isEmpty() method in ArrayUtils
199 return array == null || array.isEmpty(); in isEmpty()
205 public static boolean isEmpty(@Nullable Map<?, ?> map) { in isEmpty() method in ArrayUtils
206 return map == null || map.isEmpty(); in isEmpty()
212 public static <T> boolean isEmpty(@Nullable T[] array) { in isEmpty() method in ArrayUtils
219 public static boolean isEmpty(@Nullable int[] array) { in isEmpty() method in ArrayUtils
226 public static boolean isEmpty(@Nullable long[] array) { in isEmpty() method in ArrayUtils
233 public static boolean isEmpty(@Nullable byte[] array) { in isEmpty() method in ArrayUtils
240 public static boolean isEmpty(@Nullable boolean[] array) { in isEmpty() method in ArrayUtils
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardClockAccessibilityDelegateTest.java61 assertFalse(TextUtils.isEmpty(ev.getContentDescription())); in onInitializeAccessibilityEvent_producesNonEmptyAsciiContentDesc()
70 assertFalse(isEmpty(ev.getText())); in onPopulateAccessibilityEvent_producesNonEmptyAsciiText()
81 assertFalse(TextUtils.isEmpty(info.getText())); in onInitializeAccessibilityNodeInfo_producesNonEmptyAsciiText()
84 assertFalse(TextUtils.isEmpty(info.getContentDescription())); in onInitializeAccessibilityNodeInfo_producesNonEmptyAsciiText()
97 boolean hasFancyColon = !TextUtils.isEmpty(mContext.getString( in isNeeded_returnsWhetherFancyColonExists()
111 private boolean isEmpty(List<CharSequence> texts) { in isEmpty() method in KeyguardClockAccessibilityDelegateTest
112 return texts.stream().allMatch(TextUtils::isEmpty); in isEmpty()
/frameworks/base/libs/hwui/tests/unit/
DMatrixTests.cpp32 ASSERT_TRUE(empty.isEmpty()); in TEST()
35 EXPECT_FALSE(empty.isEmpty()) << "Empty 'line' rect doesn't remain empty when skewed."; in TEST()
45 ASSERT_TRUE(lineRect.isEmpty()); in TEST()
47 EXPECT_FALSE(lineRect.isEmpty()) << "Empty 'line' rect doesn't remain empty when rotated."; in TEST()
/frameworks/av/services/audiopolicy/enginedefault/src/
DEngine.cpp233 if (!devices.isEmpty()) break; in getDevicesForStrategyInt()
237 if (!devices.isEmpty()) break; in getDevicesForStrategyInt()
243 if (!devices.isEmpty()) break; in getDevicesForStrategyInt()
251 if (!devices.isEmpty()) break; in getDevicesForStrategyInt()
257 if (!devices.isEmpty()) break; in getDevicesForStrategyInt()
262 if (!devices.isEmpty()) break; in getDevicesForStrategyInt()
275 if (!devices.isEmpty()) break; in getDevicesForStrategyInt()
282 if (!devices.isEmpty()) break; in getDevicesForStrategyInt()
313 if (!availableOutputDevices.getDevicesFromTypes(getAudioDeviceOutAllScoSet()).isEmpty()) { in getDevicesForStrategyInt()
323 if (!devices2.isEmpty()) { in getDevicesForStrategyInt()
[all …]
/frameworks/base/packages/PrintRecommendationService/src/com/android/printservice/recommendation/plugin/samsung/
DPrinterFilterSamsung.java83 if (!TextUtils.isEmpty(model)) { in isSupportedSamsungModel()
97 if (TextUtils.isEmpty(usb_mfg)) { in getSamsungModelName()
102 if (TextUtils.isEmpty(usb_mdl)) { in getSamsungModelName()
107 if (!TextUtils.isEmpty(usb_mfg) && !TextUtils.isEmpty(usb_mdl)) { in getSamsungModelName()
111 if (TextUtils.isEmpty(modelName)) { in getSamsungModelName()
/frameworks/opt/calendar/src/com/android/calendarcommon2/
DRecurrenceSet.java93 if (!TextUtils.isEmpty(rruleStr) || !TextUtils.isEmpty(rdateStr)) { in init()
102 if (TextUtils.isEmpty(ruleStr)) { in parseMultiLineRecurrenceRules()
116 if (TextUtils.isEmpty(dateStr)) { in parseMultiLineRecurrenceDates()
214 if ((TextUtils.isEmpty(dtstart))|| in populateContentValues()
215 (TextUtils.isEmpty(duration))|| in populateContentValues()
216 ((TextUtils.isEmpty(rrule))&& in populateContentValues()
217 (TextUtils.isEmpty(rdate)))) { in populateContentValues()
280 (TextUtils.isEmpty(duration))|| in populateComponent()
281 ((TextUtils.isEmpty(rruleStr))&& in populateComponent()
282 (TextUtils.isEmpty(rdateStr)))) { in populateComponent()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DDefaultItemAnimator.java103 boolean removalsPending = !mPendingRemovals.isEmpty(); in runPendingAnimations()
104 boolean movesPending = !mPendingMoves.isEmpty(); in runPendingAnimations()
105 boolean changesPending = !mPendingChanges.isEmpty(); in runPendingAnimations()
106 boolean additionsPending = !mPendingAdditions.isEmpty(); in runPendingAnimations()
464 if (changes.isEmpty()) { in endAnimation()
477 if (moves.isEmpty()) { in endAnimation()
489 if (additions.isEmpty()) { in endAnimation()
532 return (!mPendingAdditions.isEmpty() in isRunning()
533 || !mPendingChanges.isEmpty() in isRunning()
534 || !mPendingMoves.isEmpty() in isRunning()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DInfoMediaManager.java78 if (!TextUtils.isEmpty(packageName)) { in InfoMediaManager()
125 if (TextUtils.isEmpty(mPackageName)) { in addDeviceToPlayMedia()
156 if (TextUtils.isEmpty(mPackageName)) { in removeDeviceFromPlayMedia()
177 if (TextUtils.isEmpty(mPackageName)) { in releaseSession()
201 if (TextUtils.isEmpty(mPackageName)) { in getSelectableMediaDevice()
228 if (TextUtils.isEmpty(mPackageName)) { in getDeselectableMediaDevice()
255 if (TextUtils.isEmpty(mPackageName)) { in getSelectedMediaDevice()
290 if (TextUtils.isEmpty(mPackageName)) { in adjustSessionVolume()
313 if (TextUtils.isEmpty(mPackageName)) { in getSessionVolumeMax()
334 if (TextUtils.isEmpty(mPackageName)) { in getSessionVolume()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DShareTargetInfo.java69 if (!TextUtils.isEmpty(mScheme)) { in toStringInner()
72 if (!TextUtils.isEmpty(mHost)) { in toStringInner()
75 if (!TextUtils.isEmpty(mPort)) { in toStringInner()
78 if (!TextUtils.isEmpty(mPath)) { in toStringInner()
81 if (!TextUtils.isEmpty(mPathPattern)) { in toStringInner()
84 if (!TextUtils.isEmpty(mPathPrefix)) { in toStringInner()
87 if (!TextUtils.isEmpty(mMimeType)) { in toStringInner()
173 if (targetData.isEmpty() || targetClass == null || categories.isEmpty()) { in loadFromXml()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationChannelHelper.java43 if (!TextUtils.isEmpty(channel.getConversationId())) { in createConversationChannelIfNeeded()
49 if (TextUtils.isEmpty(conversationId) || TextUtils.isEmpty(pkg) in createConversationChannelIfNeeded()
76 if (TextUtils.isEmpty(nameString)) { in getName()
79 if (TextUtils.isEmpty(nameString)) { in getName()
/frameworks/av/drm/mediadrm/plugins/clearkey/default/tests/
DJsonWebKeyUnittest.cpp44 if (input.isEmpty()) { in stringFromVector()
54 if (keys.isEmpty()) { in verifyKeys()
78 EXPECT_TRUE(keys.isEmpty()); in TEST_F()
100 EXPECT_TRUE(keys.isEmpty()); in TEST_F()
195 EXPECT_TRUE(keys.isEmpty()); in TEST_F()
214 EXPECT_TRUE(keys.isEmpty()); in TEST_F()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DLaunchParamsPersisterTests.java157 assertTrue("Default result should be empty.", mResult.isEmpty()); in testReturnsEmptyLaunchParamsByDefault()
205 assertTrue("Result should be empty.", mResult.isEmpty()); in testReturnsEmptyLaunchParamsUserIdMismatch()
215 assertTrue("Result should be empty.", mResult.isEmpty()); in testReturnsEmptyLaunchParamsComponentMismatch()
258 assertTrue("Result must be empty.", mResult.isEmpty()); in testReturnsEmptyLaunchParamsUidInLaunchAffinityMismatch()
270 assertTrue("Result must be empty.", mResult.isEmpty()); in testReturnsEmptyLaunchParamsWindowLayoutAffinityMismatch()
367 assertFalse("Shouldn't clear record of a different user.", mResult.isEmpty()); in testClearsRecordsOfTheUserOnUserCleanUp()
370 assertTrue("Should have cleaned record for " + TEST_COMPONENT, mResult.isEmpty()); in testClearsRecordsOfTheUserOnUserCleanUp()
373 assertTrue("Should have cleaned record for " + ALTERNATIVE_COMPONENT, mResult.isEmpty()); in testClearsRecordsOfTheUserOnUserCleanUp()
384 assertTrue("Result should be empty.", mResult.isEmpty()); in testClearsRecordInMemory()
400 assertTrue("Result should be empty.", mResult.isEmpty()); in testClearsWriteQueueItem()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiShellCommandTest.java104 assertFalse(mWifiShellCommand.getErrPrintWriter().toString().isEmpty()); in testSetIpReachDisconnect()
123 assertFalse(mWifiShellCommand.getErrPrintWriter().toString().isEmpty()); in testSetIpReachDisconnect()
133 assertFalse(mWifiShellCommand.getErrPrintWriter().toString().isEmpty()); in testGetIpReachDisconnect()
161 assertFalse(mWifiShellCommand.getErrPrintWriter().toString().isEmpty()); in testSetPollRssiIntervalMsecs()
175 assertFalse(mWifiShellCommand.getErrPrintWriter().toString().isEmpty()); in testSetPollRssiIntervalMsecs()
185 assertFalse(mWifiShellCommand.getErrPrintWriter().toString().isEmpty()); in testGetPollRssiIntervalMsecs()
205 assertFalse(mWifiShellCommand.getErrPrintWriter().toString().isEmpty()); in testForceHiPerfMode()
227 assertFalse(mWifiShellCommand.getErrPrintWriter().toString().isEmpty()); in testForceLowLatencyMode()
250 assertFalse(mWifiShellCommand.getErrPrintWriter().toString().isEmpty()); in testNetworkSuggestionsSetUserApproved()
274 assertFalse(mWifiShellCommand.getErrPrintWriter().toString().isEmpty()); in testNetworkSuggestionsHasUserApproved()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DCollectionUtils.java115 if (isEmpty(cur)) return Collections.emptyList(); in map()
128 if (isEmpty(cur)) return emptySet(); in map()
157 if (isEmpty(cur)) return Collections.emptyList(); in mapNotNull()
218 public static boolean isEmpty(@Nullable Collection<?> cur) { in isEmpty() method in CollectionUtils
226 if (isEmpty(list)) return Collections.emptyList(); in filter()
261 if (isEmpty(items)) return null; in find()
329 if (isEmpty(val)) { in addAll()
366 if (isEmpty(cur)) { in remove()
377 if (isEmpty(cur)) { in remove()
388 return isEmpty(cur) ? Collections.emptyList() : new ArrayList<>(cur); in copyOf()
[all …]
/frameworks/layoutlib/bridge/src/android/graphics/
DRegion_Delegate.java141 /*package*/ static boolean isEmpty(Region thisRegion) { in isEmpty() method in Region_Delegate
147 return regionDelegate.mArea.isEmpty(); in isEmpty()
200 return regionDelegate.mArea.isEmpty() || in quickReject()
216 return regionDelegate.mArea.isEmpty() || in quickReject()
234 if (regionDelegate.mArea.isEmpty()) { in translate()
256 if (regionDelegate.mArea.isEmpty()) { in scale()
303 return dstRegion.mArea.getBounds().isEmpty() == false; in nativeSetRect()
325 return dstRegion.mArea.getBounds().isEmpty() == false; in nativeSetPath()
336 if (bounds.isEmpty()) { in nativeGetBounds()
360 if (region.mArea.isEmpty()) { in nativeGetBoundaryPath()
[all …]
/frameworks/base/core/java/android/content/
DSyncAdapterType.java48 if (TextUtils.isEmpty(authority)) { in SyncAdapterType()
51 if (TextUtils.isEmpty(accountType)) { in SyncAdapterType()
72 if (TextUtils.isEmpty(authority)) { in SyncAdapterType()
75 if (TextUtils.isEmpty(accountType)) { in SyncAdapterType()
91 if (TextUtils.isEmpty(authority)) { in SyncAdapterType()
94 if (TextUtils.isEmpty(accountType)) { in SyncAdapterType()
/frameworks/base/services/core/java/com/android/server/wm/
DAnimatingActivityRegistry.java57 if (mAnimatingActivities.isEmpty()) { in notifyFinished()
74 if (mAnimatingActivities.isEmpty()) { in notifyAboutToFinish()
113 if (!mAnimatingActivities.isEmpty() || !mFinishedTokens.isEmpty()) { in dump()

12345678910>>...82