Searched refs:isNull (Results 1 - 25 of 112) sorted by relevance

12345

/frameworks/support/core/ktx/src/main/java/androidx/core/database/
H A DCursor.kt109 * @see Cursor.isNull
112 inline fun Cursor.getBlobOrNull(index: Int) = if (isNull(index)) null else getBlob(index)
120 * @see Cursor.isNull
123 inline fun Cursor.getDoubleOrNull(index: Int) = if (isNull(index)) null else getDouble(index)
131 * @see Cursor.isNull
134 inline fun Cursor.getFloatOrNull(index: Int) = if (isNull(index)) null else getFloat(index)
142 * @see Cursor.isNull
145 inline fun Cursor.getIntOrNull(index: Int) = if (isNull(index)) null else getInt(index)
153 * @see Cursor.isNull
156 inline fun Cursor.getLongOrNull(index: Int) = if (isNull(inde
[all...]
/frameworks/base/packages/ExtServices/tests/src/android/ext/services/autofill/
H A DAutofillFieldClassificationServiceImplTest.java38 assertThat(mService.onGetScores(null, null, null, Arrays.asList("whatever"))).isNull();
44 Arrays.asList("whatever"))).isNull();
50 Arrays.asList(AutofillValue.forText("whatever")), null)).isNull();
57 .isNull();
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
H A DArrayUtilsTest.java29 java.util.function.Predicate<Object> isNull = new java.util.function.Predicate<Object>() {
41 assertEquals(0, ArrayUtils.unstableRemoveIf(collection, isNull));
44 assertEquals(0, ArrayUtils.unstableRemoveIf(collection, isNull));
47 assertEquals(0, ArrayUtils.unstableRemoveIf(collection, isNull));
52 assertEquals(1, ArrayUtils.unstableRemoveIf(collection, isNull));
56 assertEquals(0, ArrayUtils.unstableRemoveIf(collection, isNull));
62 assertEquals(1, ArrayUtils.unstableRemoveIf(collection, isNull));
67 assertEquals(1, ArrayUtils.unstableRemoveIf(collection, isNull));
72 assertEquals(2, ArrayUtils.unstableRemoveIf(collection, isNull));
76 assertEquals(0, ArrayUtils.unstableRemoveIf(collection, isNull));
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/
H A DFullBackupRestoreObserverUtilsTest.java53 assertThat(result).isNull();
72 assertThat(result).isNull();
81 assertThat(result).isNull();
101 assertThat(result).isNull();
109 assertThat(result).isNull();
128 assertThat(result).isNull();
/frameworks/base/services/tests/servicestests/src/com/android/server/autofill/
H A DAutofillManagerServiceTest.java33 assertThat(getWhitelistedCompatModePackages(null)).isNull();
38 assertThat(getWhitelistedCompatModePackages("")).isNull();
73 assertThat(result.get("one")).isNull();
82 assertThat(result.get("p2")).isNull();
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
H A DCachedBluetoothDeviceTest.java91 assertThat(mCachedDevice.getConnectionSummary()).isNull();
95 assertThat(mCachedDevice.getConnectionSummary()).isNull();
105 assertThat(mCachedDevice.getConnectionSummary()).isNull();
112 assertThat(mCachedDevice.getConnectionSummary()).isNull();
116 assertThat(mCachedDevice.getConnectionSummary()).isNull();
147 assertThat(mCachedDevice.getConnectionSummary()).isNull();
155 assertThat(mCachedDevice.getConnectionSummary()).isNull();
168 assertThat(mCachedDevice.getConnectionSummary()).isNull();
179 assertThat(mCachedDevice.getConnectionSummary()).isNull();
187 assertThat(mCachedDevice.getConnectionSummary()).isNull();
[all...]
/frameworks/support/tv-provider/src/main/java/androidx/tvprovider/media/tv/
H A DBaseProgram.java340 if ((index = cursor.getColumnIndex(BaseTvColumns._ID)) >= 0 && !cursor.isNull(index)) {
344 && !cursor.isNull(index)) {
348 && !cursor.isNull(index)) {
352 && !cursor.isNull(index)) {
358 && !cursor.isNull(index)) {
363 && !cursor.isNull(index)) {
370 && !cursor.isNull(index)) {
375 && !cursor.isNull(index)) {
380 && !cursor.isNull(index)) {
384 && !cursor.isNull(inde
[all...]
H A DChannel.java416 if ((index = cursor.getColumnIndex(Channels._ID)) >= 0 && !cursor.isNull(index)) {
420 && !cursor.isNull(index)) {
424 && !cursor.isNull(index)) {
428 && !cursor.isNull(index)) {
432 && !cursor.isNull(index)) {
436 && !cursor.isNull(index)) {
440 && !cursor.isNull(index)) {
444 && !cursor.isNull(index)) {
448 && !cursor.isNull(index)) {
452 && !cursor.isNull(inde
[all...]
H A DBasePreviewProgram.java457 && !cursor.isNull(index)) {
462 && !cursor.isNull(index)) {
467 && !cursor.isNull(index)) {
472 && !cursor.isNull(index)) {
476 && !cursor.isNull(index)) {
480 && !cursor.isNull(index)) {
484 && !cursor.isNull(index)) {
489 && !cursor.isNull(index)) {
494 && !cursor.isNull(index)) {
498 && !cursor.isNull(inde
[all...]
H A DProgram.java180 && !cursor.isNull(index)) {
184 && !cursor.isNull(index)) {
189 && !cursor.isNull(index)) {
193 && !cursor.isNull(index)) {
198 && !cursor.isNull(index)) {
H A DPreviewProgram.java177 && !cursor.isNull(index)) {
181 && !cursor.isNull(index)) {
/frameworks/compile/mclinker/lib/LD/
H A DLDSymbol.cpp85 bool LDSymbol::isNull() const { function in class:mcld::LDSymbol
90 return !m_pFragRef->isNull();
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DUserDataPreparerTest.java44 import static org.mockito.Matchers.isNull;
102 verify(mStorageManagerMock).prepareUserStorage(isNull(String.class), eq(TEST_USER_ID),
104 verify(mInstaller).createUserData(isNull(String.class), eq(TEST_USER_ID),
120 verify(mStorageManagerMock).prepareUserStorage(isNull(String.class), eq(TEST_USER_ID),
122 verify(mInstaller).createUserData(isNull(String.class), eq(TEST_USER_ID),
160 verify(mInstaller).destroyUserData(isNull(String.class), eq(TEST_USER_ID),
162 verify(mStorageManagerMock).destroyUserStorage(isNull(String.class), eq(TEST_USER_ID),
178 verify(mInstaller).destroyUserData(isNull(String.class), eq(TEST_USER_ID),
180 verify(mStorageManagerMock).destroyUserStorage(isNull(String.class), eq(TEST_USER_ID),
203 verify(mInstaller).destroyUserData(isNull(Strin
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/restore/
H A DPerformAdbRestoreTaskTest.java81 assertThat(tarInputStream).isNull();
93 assertThat(tarInputStream).isNull();
/frameworks/base/services/tests/servicestests/src/com/android/server/appops/
H A DAppOpsServiceTest.java86 assertThat(getLoggedOps()).isNull();
160 assertThat(loggedOps).isNull();
164 assertThat(loggedOps).isNull();
169 assertThat(loggedOps).isNull();
181 assertThat(getLoggedOps()).isNull();
193 assertThat(getLoggedOps()).isNull();
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
H A DWificondScannerTest.java103 verify(mAlarmManager.getAlarmManager(), never()).cancel(isNull(PendingIntent.class));
105 .cancel(isNull(AlarmManager.OnAlarmListener.class));
128 verify(mAlarmManager.getAlarmManager(), never()).cancel(isNull(PendingIntent.class));
130 .cancel(isNull(AlarmManager.OnAlarmListener.class));
159 verify(mAlarmManager.getAlarmManager(), never()).cancel(isNull(PendingIntent.class));
161 .cancel(isNull(AlarmManager.OnAlarmListener.class));
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DLocaleTrackerTest.java22 import static org.mockito.Matchers.isNull;
80 doReturn(Arrays.asList(mCellInfo)).when(mPhone).getAllCellInfo(isNull());
154 doReturn(null).when(mPhone).getAllCellInfo(isNull());
160 doReturn(Arrays.asList(mCellInfo)).when(mPhone).getAllCellInfo(isNull());
169 doReturn(null).when(mPhone).getAllCellInfo(isNull());
175 doReturn(Arrays.asList(mCellInfo)).when(mPhone).getAllCellInfo(isNull());
/frameworks/data-binding/compiler/src/main/kotlin/android/databinding/tool/writer/
H A DKCode.kt46 fun isNull(kcode : KCode?) = kcode == null || (kcode.nodes.isEmpty() && (kcode.s == null || kcode.s.trim() == ""))
67 if (c == null || isNull(c)) {
75 if (c == null || isNull(c)) {
104 if (isNull(c)) {
141 if (!isNull(it)) { // avoid spaces for empty lines
/frameworks/opt/telephony/src/java/android/telephony/
H A DCellBroadcastMessage.java147 if (plmnColumn != -1 && !cursor.isNull(plmnColumn)) {
155 if (lacColumn != -1 && !cursor.isNull(lacColumn)) {
163 if (cidColumn != -1 && !cursor.isNull(cidColumn)) {
174 if (etwsWarningTypeColumn != -1 && !cursor.isNull(etwsWarningTypeColumn)) {
184 if (cmasMessageClassColumn != -1 && !cursor.isNull(cmasMessageClassColumn)) {
190 if (cmasCategoryColumn != -1 && !cursor.isNull(cmasCategoryColumn)) {
199 if (cmasResponseTypeColumn != -1 && !cursor.isNull(cmasResponseTypeColumn)) {
208 if (cmasSeverityColumn != -1 && !cursor.isNull(cmasSeverityColumn)) {
217 if (cmasUrgencyColumn != -1 && !cursor.isNull(cmasUrgencyColumn)) {
226 if (cmasCertaintyColumn != -1 && !cursor.isNull(cmasCertaintyColum
[all...]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/license/
H A DLicenseHtmlLoaderTest.java79 assertThat(loader.loadInBackground()).isNull();
103 assertThat(loader.loadInBackground()).isNull();
/frameworks/support/jetifier/jetifier/core/src/test/kotlin/com/android/tools/build/jetifier/core/type/
H A DTypesMapTest.kt57 Truth.assertThat(result).isNull()
/frameworks/support/jetifier/jetifier/processor/src/test/kotlin/com/android/tools/build/jetifier/processor/transform/
H A DDependencyMappingTest.kt51 Truth.assertThat(result).isNull()
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/constraints/trackers/
H A DStorageNotLowTrackerTest.java22 import static org.mockito.ArgumentMatchers.isNull;
59 when(mMockContext.registerReceiver((BroadcastReceiver) isNull(),
/frameworks/base/core/java/android/database/
H A DCursor.java343 boolean isNull(int columnIndex); method in interface:Cursor
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/
H A DIconCacheTest.java56 assertThat(mIconCache.getIcon(null)).isNull();

Completed in 5765 milliseconds

12345