Home
last modified time | relevance | path

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

12345678910>>...71

/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.java39 if (TextUtils.isEmpty(mFancyColon)) { in onInitializeAccessibilityEvent()
43 if (!TextUtils.isEmpty(text)) { in onInitializeAccessibilityEvent()
50 if (TextUtils.isEmpty(mFancyColon)) { in onPopulateAccessibilityEvent()
54 if (!TextUtils.isEmpty(text)) { in onPopulateAccessibilityEvent()
63 if (TextUtils.isEmpty(mFancyColon)) { in onInitializeAccessibilityNodeInfo()
66 if (!TextUtils.isEmpty(info.getText())) { in onInitializeAccessibilityNodeInfo()
69 if (!TextUtils.isEmpty(info.getContentDescription())) { in onInitializeAccessibilityNodeInfo()
75 if (TextUtils.isEmpty(mFancyColon)) { in replaceFancyColon()
82 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/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/vcard/java/com/android/vcard/
DVCardEntry.java111 public boolean isEmpty(); in isEmpty() method
150 return TextUtils.isEmpty(mFamily) && TextUtils.isEmpty(mGiven) in emptyStructuredName()
151 && TextUtils.isEmpty(mMiddle) && TextUtils.isEmpty(mPrefix) in emptyStructuredName()
152 && TextUtils.isEmpty(mSuffix); in emptyStructuredName()
156 return TextUtils.isEmpty(mPhoneticFamily) && TextUtils.isEmpty(mPhoneticGiven) in emptyPhoneticStructuredName()
157 && TextUtils.isEmpty(mPhoneticMiddle); in emptyPhoneticStructuredName()
168 if (!TextUtils.isEmpty(mGiven)) { in constructInsertOperation()
171 if (!TextUtils.isEmpty(mFamily)) { in constructInsertOperation()
174 if (!TextUtils.isEmpty(mMiddle)) { in constructInsertOperation()
177 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/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardClockAccessibilityDelegateTest.java60 assertFalse(TextUtils.isEmpty(ev.getContentDescription())); in onInitializeAccessibilityEvent_producesNonEmptyAsciiContentDesc()
69 assertFalse(isEmpty(ev.getText())); in onPopulateAccessibilityEvent_producesNonEmptyAsciiText()
80 assertFalse(TextUtils.isEmpty(info.getText())); in onInitializeAccessibilityNodeInfo_producesNonEmptyAsciiText()
83 assertFalse(TextUtils.isEmpty(info.getContentDescription())); in onInitializeAccessibilityNodeInfo_producesNonEmptyAsciiText()
96 boolean hasFancyColon = !TextUtils.isEmpty(mContext.getString( in isNeeded_returnsWhetherFancyColonExists()
110 private boolean isEmpty(List<CharSequence> texts) { in isEmpty() method in KeyguardClockAccessibilityDelegateTest
111 return texts.stream().allMatch(TextUtils::isEmpty); in isEmpty()
/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/gamesdk/third_party/protobuf-3.0.0/java/util/src/main/java/com/google/protobuf/util/
DFieldMaskTree.java111 if (!createNewBranch && node != root && node.children.isEmpty()) { in addFieldPath()
143 if (root.children.isEmpty()) { in toFieldMask()
155 if (node.children.isEmpty()) { in getFieldPaths()
160 String childPath = path.isEmpty() ? entry.getKey() : path + "." + entry.getKey(); in getFieldPaths()
169 if (root.children.isEmpty()) { in intersectFieldPath()
178 if (node != root && node.children.isEmpty()) { in intersectFieldPath()
205 if (root.children.isEmpty()) { in merge()
233 if (!entry.getValue().children.isEmpty()) { in merge()
242 String childPath = path.isEmpty() ? entry.getKey() : path + "." + entry.getKey(); in merge()
/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/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/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/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/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/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.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/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/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/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()
/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/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/opt/gamesdk/src/tuningfork/tools/validation/src/main/java/com/google/tuningfork/validation/
DValidationUtil.java139 if (devFidelityList.isEmpty()) { in validateDevFidelityParams()
177 if (!fidelityParamsDesc.getOneofs().isEmpty()) { in validateFidelityParams()
183 if (!fidelityParamsDesc.getNestedTypes().isEmpty()) { in validateFidelityParams()
189 if (!fidelityParamsDesc.getExtensions().isEmpty()) { in validateFidelityParams()
220 if (!annotationDesc.getOneofs().isEmpty()) { in validateAnnotationAndGetEnumSizes()
225 if (!annotationDesc.getNestedTypes().isEmpty()) { in validateAnnotationAndGetEnumSizes()
230 if (!annotationDesc.getExtensions().isEmpty()) { in validateAnnotationAndGetEnumSizes()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DDomainMatcher.java128 if (!TextUtils.isEmpty(domain)) { in DomainMatcher()
136 if (!TextUtils.isEmpty(primaryDomain)) { in DomainMatcher()
159 if (TextUtils.isEmpty(domainName)) { in isSubDomain()
188 if (TextUtils.isEmpty(domain1) || TextUtils.isEmpty(domain2)) { in arg2SubdomainOfArg1()

12345678910>>...71