Home
last modified time | relevance | path

Searched refs:isNull (Results 1 – 25 of 71) sorted by relevance

123

/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DDataStatus.java56 final boolean hasStatus = !isNull(cursor, Data.STATUS); in possibleUpdate()
57 final boolean hasTimestamp = !isNull(cursor, Data.STATUS_TIMESTAMP); in possibleUpdate()
154 return cursor.isNull(columnIndex) ? missingValue : cursor.getInt(columnIndex); in getInt()
159 return cursor.isNull(columnIndex) ? missingValue : cursor.getLong(columnIndex); in getLong()
162 private static boolean isNull(Cursor cursor, String columnName) { in isNull() method in DataStatus
163 return cursor.isNull(cursor.getColumnIndex(columnName)); in isNull()
/packages/experimental/LoaderApp/src/com/android/loaderapp/util/
DDataStatus.java54 final boolean hasStatus = !isNull(cursor, Data.STATUS); in possibleUpdate()
55 final boolean hasTimestamp = !isNull(cursor, Data.STATUS_TIMESTAMP); in possibleUpdate()
148 return cursor.isNull(columnIndex) ? missingValue : cursor.getInt(columnIndex); in getInt()
153 return cursor.isNull(columnIndex) ? missingValue : cursor.getLong(columnIndex); in getLong()
156 private static boolean isNull(Cursor cursor, String columnName) { in isNull() method in DataStatus
157 return cursor.isNull(cursor.getColumnIndex(columnName)); in isNull()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/data/
DFilterStackSource.java116 if (c != null && c.moveToFirst() && !c.isNull(0)) { in getStack()
145 String name = (c.isNull(1)) ? null : c.getString(1); in getAllUserPresets()
146 byte[] b = (c.isNull(2)) ? null : c.getBlob(2); in getAllUserPresets()
179 String name = (c.isNull(0)) ? null : c.getString(0); in getAllStacks()
180 byte[] b = (c.isNull(1)) ? null : c.getBlob(1); in getAllStacks()
/packages/apps/TV/tests/unit/src/com/android/tv/menu/
DMenuTest.java81 Matchers.isNull(String.class), Matchers.isNull(Runnable.class)); in testShowHide_ReasonNone()
101 Matchers.eq(ChannelsRow.ID), Matchers.isNull(Runnable.class)); in testShowHide_ReasonGuide()
121 Matchers.eq(PlayControlsRow.ID), Matchers.isNull(Runnable.class)); in testShowHide_ReasonPlayControlsFastForward()
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DMockSuggestionProviderCursor.java86 public boolean isNull(int column) { in isNull() method in MockSuggestionProviderCursor
87 return mRows.get(getPosition()).isNull(column); in isNull()
150 public boolean isNull(int column) { in isNull() method in MockSuggestionProviderCursor.Row
/packages/apps/Email/tests/src/com/android/email/activity/setup/
DAccountSetupOptionsTests.java129 boolean isNull = mBackgroundAttachmentsView == null; in checkBackgroundAttachments()
130 boolean isVisible = !isNull && (mBackgroundAttachmentsView.getVisibility() == View.VISIBLE); in checkBackgroundAttachments()
135 assertTrue(!isNull); in checkBackgroundAttachments()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DNewOutgoingCallIntentBroadcasterTest.java51 import static org.mockito.Matchers.isNull;
241 verify(mCallsManager).placeOutgoingCall(eq(mCall), eq(handle), isNull(GatewayInfo.class), in emergencyCallTestHelper()
264 verify(mCallsManager).placeOutgoingCall(eq(mCall), eq(handle), isNull(GatewayInfo.class), in testUnmodifiedRegularCall()
281 verify(mCallsManager).placeOutgoingCall(eq(mCall), eq(encHandle), isNull(GatewayInfo.class), in testUnmodifiedSipCall()
377 isNull(Handler.class), in verifyBroadcastSent()
380 isNull(Bundle.class)); in verifyBroadcastSent()
DContactsAsyncHelperTest.java37 import static org.mockito.Matchers.isNull;
107 isNull(Drawable.class), isNull(Bitmap.class), eq(COOKIE)); in testNullReturnFromOpenInputStream()
DMissedCallNotifierImplTest.java53 import static org.mockito.Matchers.isNull;
144 verify(mNotificationManager, times(2)).notifyAsUser(isNull(String.class), in cancelNotificationTestInternal()
182 verify(mNotificationManager, times(2)).notifyAsUser(isNull(String.class), eq(1), in testNotifyMultipleMissedCalls()
269 verify(mNotificationManager).notifyAsUser(isNull(String.class), eq(1), in notifySingleCallTestInternal()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DReorderingCursorWrapper.java102 public boolean isNull(int column) { in isNull() method in ReorderingCursorWrapper
103 return mCursor.isNull(column); in isNull()
DContactDirectoryManager.java428 if (!cursor.isNull(DirectoryQuery.TYPE_RESOURCE_ID)) { in queryDirectoriesForAuthority()
431 if (!cursor.isNull(DirectoryQuery.EXPORT_SUPPORT)) { in queryDirectoriesForAuthority()
444 if (!cursor.isNull(DirectoryQuery.SHORTCUT_SUPPORT)) { in queryDirectoriesForAuthority()
457 if (!cursor.isNull(DirectoryQuery.PHOTO_SUPPORT)) { in queryDirectoriesForAuthority()
/packages/apps/Messaging/src/com/android/messaging/util/
DAssert.java168 public static void isNull(final Object obj) { in isNull() method in Assert
179 public static void isNull(final Object obj, final String failureMessage) { in isNull() method in Assert
/packages/apps/UnifiedEmail/src/com/android/mail/content/
DThreadSafeCursorWrapper.java122 public boolean isNull(int column){ in isNull() method in ThreadSafeCursorWrapper
125 return super.isNull(column); in isNull()
/packages/experimental/LoaderApp/src/com/android/loaderapp/
DContactHeaderWidget.java245 && !cursor.isNull(PhotoQuery.PHOTO)) { in onQueryComplete()
645 if (!c.isNull(ContactQuery.CONTACT_PRESENCE_STATUS)) { in bindContactInfo()
655 final Long statusTimestamp = c.isNull(ContactQuery.CONTACT_STATUS_TIMESTAMP) in bindContactInfo()
658 final Integer statusLabel = c.isNull(ContactQuery.CONTACT_STATUS_LABEL) in bindContactInfo()
/packages/apps/Contacts/src/com/android/contacts/list/
DPostalAddressListAdapter.java137 if (!cursor.isNull(PostalQuery.POSTAL_TYPE)) { in bindPostalAddress()
164 if (!cursor.isNull(PostalQuery.POSTAL_PHOTO_ID)) { in bindPhoto()
DEmailAddressListAdapter.java146 if (!cursor.isNull(EmailQuery.EMAIL_TYPE)) { in bindEmailAddress()
173 if (!cursor.isNull(EmailQuery.EMAIL_PHOTO_ID)) { in bindPhoto()
/packages/apps/Music/src/com/android/music/
DSortCursor.java226 public boolean isNull(int column) in isNull() method in SortCursor
228 return mCursor.isNull(column); in isNull()
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DContactLoader.java515 if (!cursor.isNull(ContactQuery.DATA_ID)) { in loadContactEntity()
519 if (!cursor.isNull(ContactQuery.PRESENCE) in loadContactEntity()
520 || !cursor.isNull(ContactQuery.STATUS)) { in loadContactEntity()
654 final Integer presence = cursor.isNull(ContactQuery.CONTACT_PRESENCE) in loadContactHeaderData()
873 final boolean defaultGroup = cursor.isNull(GroupQuery.AUTO_ADD) in loadGroupMetaData()
876 final boolean favorites = cursor.isNull(GroupQuery.FAVORITES) in loadGroupMetaData()
/packages/apps/Messaging/src/com/android/messaging/datamodel/binding/
DDetachableBinding.java43 Assert.isNull(mDetachedData); in detach()
/packages/apps/ContactsCommon/src/com/android/contacts/common/database/
DEmptyCursor.java77 public boolean isNull(int column) { in isNull() method in EmptyCursor
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DJsonBackedSuggestionExtras.java56 if (mExtras.isNull(columnName)) { in getExtra()
/packages/apps/DeskClock/src/com/android/deskclock/provider/
DAlarmInstance.java345 if (c.isNull(RINGTONE_INDEX)) { in AlarmInstance()
353 if (!c.isNull(ALARM_ID_INDEX)) { in AlarmInstance()
/packages/apps/Contacts/src/com/android/contacts/editor/
DGroupMembershipView.java248 if (!mGroupMetaData.isNull(GroupMetaDataLoader.FAVORITES) in updateView()
251 } else if (!mGroupMetaData.isNull(GroupMetaDataLoader.AUTO_ADD) in updateView()
/packages/apps/Messaging/src/com/android/messaging/ui/appsettings/
DGroupMmsSettingDialog.java50 Assert.isNull(mDialog); in show()
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DContactTileAdapter.java257 if (!cursor.isNull(mPresenceIndex)) { in createContactEntryFromCursor()
264 if (mStatusIndex != 0 && !cursor.isNull(mStatusIndex)) { in createContactEntryFromCursor()

123