Home
last modified time | relevance | path

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

12345678910>>...72

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DAdnRecordTest.java42 assertFalse(adn.isEmpty()); in testBasic()
52 assertTrue(adn.isEmpty()); in testBasic()
61 assertTrue(adn.isEmpty()); in testBasic()
71 assertFalse(adn.isEmpty()); in testBasic()
81 assertFalse(adn.isEmpty()); in testBasic()
91 assertFalse(adn.isEmpty()); in testBasic()
101 assertFalse(adn.isEmpty()); in testBasic()
111 assertFalse(adn.isEmpty()); in testBasic()
121 assertFalse(adn.isEmpty()); in testBasic()
132 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/native/libs/ui/tests/
DSize_test.cpp59 EXPECT_FALSE(s.isEmpty()); in TEST()
65 EXPECT_FALSE(s.isEmpty()); in TEST()
71 EXPECT_FALSE(s.isEmpty()); in TEST()
77 EXPECT_FALSE(s.isEmpty()); in TEST()
83 EXPECT_FALSE(s.isEmpty()); in TEST()
89 EXPECT_FALSE(s.isEmpty()); in TEST()
96 EXPECT_FALSE(s.isEmpty()); in TEST()
102 EXPECT_TRUE(s.isEmpty()); in TEST()
108 EXPECT_TRUE(s.isEmpty()); in TEST()
115 EXPECT_TRUE(s.isEmpty()); in TEST()
[all …]
/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/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/opt/telephony/src/java/com/android/internal/telephony/cdnr/
DCarrierDisplayNameResolver.java164 if (!TextUtils.isEmpty(eriText) && (mPhone.isPhoneTypeCdma() || mPhone.isPhoneTypeCdmaLte()) in updateEfForEri()
180 if (TextUtils.isEmpty(operatorName)) { in updateEfForBrandOverride()
261 if (!TextUtils.isEmpty(mEf.valueAt(i).getServiceProviderName())) { in getEfSpn()
311 if (efOpl.isEmpty()) { in getCarrierDisplayNameFromEf()
315 plmn = efPnn.isEmpty() ? "" : getPlmnNetworkName(efPnn.get(0)); in getCarrierDisplayNameFromEf()
323 if (TextUtils.isEmpty(plmn)) { in getCarrierDisplayNameFromEf()
324 plmn = TextUtils.isEmpty(registeredPlmnName) ? registeredPlmnNumeric in getCarrierDisplayNameFromEf()
329 boolean showPlmn = TextUtils.isEmpty(spn) || displayRule.shouldShowPlmn(isRoaming, plmn); in getCarrierDisplayNameFromEf()
353 String plmn = efPnn.isEmpty() ? "" : getPlmnNetworkName(efPnn.get(0)); in getCarrierDisplayNameFromWifiCallingOverride()
355 TextUtils.isEmpty(plmn) ? rawCarrierDisplayNameData.getPlmn() : plmn); in getCarrierDisplayNameFromWifiCallingOverride()
[all …]
/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/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/av/services/audiopolicy/enginedefault/src/
DEngine.cpp231 if (!devices.isEmpty()) break; in getDevicesForStrategyInt()
235 if (!devices.isEmpty()) break; in getDevicesForStrategyInt()
241 if (!devices.isEmpty()) break; in getDevicesForStrategyInt()
249 if (!devices.isEmpty()) break; in getDevicesForStrategyInt()
255 if (!devices.isEmpty()) break; in getDevicesForStrategyInt()
260 if (!devices.isEmpty()) break; in getDevicesForStrategyInt()
273 if (!devices.isEmpty()) break; in getDevicesForStrategyInt()
280 if (!devices.isEmpty()) break; in getDevicesForStrategyInt()
311 if (!availableOutputDevices.getDevicesFromTypes(getAudioDeviceOutAllScoSet()).isEmpty()) { in getDevicesForStrategyInt()
321 if (!devices2.isEmpty()) { in getDevicesForStrategyInt()
[all …]
/frameworks/base/core/java/android/view/textclassifier/intent/
DTemplateIntentFactory.java78 if (TextUtils.isEmpty(remoteActionTemplate.titleWithEntity) in isValidTemplate()
79 && TextUtils.isEmpty(remoteActionTemplate.titleWithoutEntity)) { in isValidTemplate()
83 if (TextUtils.isEmpty(remoteActionTemplate.description)) { in isValidTemplate()
87 if (!TextUtils.isEmpty(remoteActionTemplate.packageName)) { in isValidTemplate()
91 if (TextUtils.isEmpty(remoteActionTemplate.action)) { in isValidTemplate()
100 final Uri uri = TextUtils.isEmpty(remoteActionTemplate.data) in createIntent()
102 final String type = TextUtils.isEmpty(remoteActionTemplate.type) in createIntent()
/frameworks/base/core/java/com/android/internal/util/
DCollectionUtils.java111 if (isEmpty(cur)) return Collections.emptyList(); in map()
124 if (isEmpty(cur)) return Collections.emptySet(); in map()
153 if (isEmpty(cur)) return Collections.emptyList(); in mapNotNull()
203 public static boolean isEmpty(@Nullable Collection<?> cur) { in isEmpty() method in CollectionUtils
211 if (isEmpty(list)) return Collections.emptyList(); in filter()
237 if (isEmpty(items)) return null; in find()
273 if (isEmpty(cur)) { in remove()
284 if (isEmpty(cur)) { in remove()
295 return isEmpty(cur) ? Collections.emptyList() : new ArrayList<>(cur); in copyOf()
302 return isEmpty(cur) ? Collections.emptySet() : new ArraySet<>(cur); in copyOf()
[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/services/tests/wmtests/src/com/android/server/wm/
DLaunchParamsPersisterTests.java152 assertTrue("Default result should be empty.", mResult.isEmpty()); in testReturnsEmptyLaunchParamsByDefault()
200 assertTrue("Result should be empty.", mResult.isEmpty()); in testReturnsEmptyLaunchParamsUserIdMismatch()
210 assertTrue("Result should be empty.", mResult.isEmpty()); in testReturnsEmptyLaunchParamsComponentMismatch()
261 assertFalse("Shouldn't clear record of a different user.", mResult.isEmpty()); in testClearsRecordsOfTheUserOnUserCleanUp()
264 assertTrue("Should have cleaned record for " + TEST_COMPONENT, mResult.isEmpty()); in testClearsRecordsOfTheUserOnUserCleanUp()
267 assertTrue("Should have cleaned record for " + ALTERNATIVE_COMPONENT, mResult.isEmpty()); in testClearsRecordsOfTheUserOnUserCleanUp()
278 assertTrue("Result should be empty.", mResult.isEmpty()); in testClearsRecordInMemory()
294 assertTrue("Result should be empty.", mResult.isEmpty()); in testClearsWriteQueueItem()
311 assertTrue("Result should be empty.", mResult.isEmpty()); in testClearsFile()
323 assertTrue("Result should be empty.", mResult.isEmpty()); in testClearsRecordInMemoryOnPackageUninstalled()
[all …]
/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/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/tests/servicestests/src/com/android/server/pm/dex/
DDynamicCodeLoggerTests.java156 assertThat(mDynamicCodeLogger.getAllPackagesWithDynamicCodeLoading()).isEmpty(); in testOneLoader_ownFile_noFileHash()
172 assertThat(mDynamicCodeLogger.getAllPackagesWithDynamicCodeLoading()).isEmpty(); in testOneLoader_ownFile_hashingFails()
180 assertThat(mMessagesForUid).isEmpty(); in testOneLoader_ownFile_unknownPath()
182 assertThat(mDynamicCodeLogger.getAllPackagesWithDynamicCodeLoading()).isEmpty(); in testOneLoader_ownFile_unknownPath()
194 assertThat(mMessagesForUid).isEmpty(); in testOneLoader_pathTraversal()
218 assertThat(mMessagesForUid).isEmpty(); in testOneLoader_differentOwner_uninstalled()
272 assertThat(mMessagesForUid).isEmpty(); in testUnknownOwner()
283 assertThat(mMessagesForUid).isEmpty(); in testUninstalledPackage()
285 assertThat(mDynamicCodeLogger.getAllPackagesWithDynamicCodeLoading()).isEmpty(); in testUninstalledPackage()
/frameworks/base/services/core/java/com/android/server/wm/
DAnimatingAppWindowTokenRegistry.java57 if (mAnimatingTokens.isEmpty()) { in notifyFinished()
74 if (mAnimatingTokens.isEmpty()) { in notifyAboutToFinish()
113 if (!mAnimatingTokens.isEmpty() || !mFinishedTokens.isEmpty()) { in dump()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DBluetoothMediaManagerTest.java101 assertThat(mMediaManager.mMediaDevices).isEmpty(); in startScan_haveA2dpProfileDeviceIsPreferredAndBonded_shouldAddDevice()
118 assertThat(mMediaManager.mMediaDevices).isEmpty(); in startScan_haveA2dpProfileDeviceIsPreferredAndBondNone_shouldNotAddDevice()
120 assertThat(mMediaManager.mMediaDevices).isEmpty(); in startScan_haveA2dpProfileDeviceIsPreferredAndBondNone_shouldNotAddDevice()
129 assertThat(mMediaManager.mMediaDevices).isEmpty(); in startScan_noA2dpProfileBluetoothDevice_shouldNotAddDevice()
131 assertThat(mMediaManager.mMediaDevices).isEmpty(); in startScan_noA2dpProfileBluetoothDevice_shouldNotAddDevice()
146 assertThat(mMediaManager.mMediaDevices).isEmpty(); in startScan_haveHapProfileDeviceIsPreferredAndBonded_shouldAddDevice()
157 assertThat(mMediaManager.mMediaDevices).isEmpty(); in startScan_noHapProfileBluetoothDevice_shouldNotAddDevice()
159 assertThat(mMediaManager.mMediaDevices).isEmpty(); in startScan_noHapProfileBluetoothDevice_shouldNotAddDevice()
247 assertThat(mMediaManager.mMediaDevices).isEmpty(); in onBluetoothStateChanged_bluetoothStateIsOff_callOnDeviceListRemoved()
258 assertThat(mMediaManager.mMediaDevices).isEmpty(); in onDeviceAdded_cachedDeviceIsConnected_callOnDeviceAdded()
[all …]
/frameworks/base/services/core/java/com/android/server/net/
DNetworkIdentitySet.java108 if (isEmpty()) { in isAnyMemberMetered()
121 if (isEmpty()) { in isAnyMemberRoaming()
135 if (isEmpty()) { in areAllMembersOnDefaultNetwork()
165 if (isEmpty()) return -1; in compareTo()
166 if (another.isEmpty()) return 1; in compareTo()

12345678910>>...72