Home
last modified time | relevance | path

Searched refs:notNull (Results 1 – 25 of 87) sorted by relevance

1234

/aosp12/packages/apps/Messaging/src/com/android/messaging/util/
H A DAvatarUriUtil.java245 Assert.notNull(name); in fromName()
268 Assert.notNull(uri); in isAvatarUri()
274 Assert.notNull(uri); in getAvatarType()
280 Assert.notNull(uri); in getIdentifier()
285 Assert.notNull(uri); in getName()
290 Assert.notNull(uri); in getGroupParticipantUris()
295 Assert.notNull(uri); in getSimColor()
300 Assert.notNull(uri); in getSimSelected()
305 Assert.notNull(uri); in getSimIncoming()
310 Assert.notNull(uri); in getPrimaryUri()
[all …]
H A DImeUtil.java61 Assert.notNull(context); in hideImeKeyboard()
62 Assert.notNull(v); in hideImeKeyboard()
72 Assert.notNull(context); in showImeKeyboard()
73 Assert.notNull(v); in showImeKeyboard()
/aosp12/packages/services/Car/tests/carservice_unit_test/src/android/car/admin/
H A DCarDevicePolicyManagerUnitTest.java23 import static org.mockito.ArgumentMatchers.notNull;
75 doThrow(new RemoteException("D'OH!")).when(mService).removeUser(eq(100), notNull()); in testRemoveUser_remoteException()
86 doThrow(new SecurityException("D'OH!")).when(mService).removeUser(eq(100), notNull()); in testRemoveUser_securityException()
112 notNull()); in testCreateUser_remoteException()
125 notNull()); in testCreateUser_securityException()
143 .when(mService).startUserInBackground(eq(100), notNull()); in testStartUserInBackground_remoteException()
170 doThrow(new RemoteException("D'OH!")).when(mService).stopUser(eq(100), notNull()); in testStopUser_remoteException()
191 }).when(mService).removeUser(eq(userId), notNull()); in mockRemoveUser()
201 }).when(mService).createUser(eq(name), eq(user.id), notNull()); in mockCreateUser()
211 }).when(mService).startUserInBackground(eq(userId), notNull()); in mockStartUserInBackground()
[all …]
/aosp12/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
H A DProcessDownloadedMmsAction.java103 Assert.notNull(messageId); in processMessageDownloaded()
104 Assert.notNull(contentUri); in processMessageDownloaded()
105 Assert.notNull(notificationUri); in processMessageDownloaded()
106 Assert.notNull(conversationId); in processMessageDownloaded()
107 Assert.notNull(participantId); in processMessageDownloaded()
144 Assert.notNull(messageId); in processMessageDownloadFastFailed()
146 Assert.notNull(conversationId); in processMessageDownloadFastFailed()
147 Assert.notNull(participantId); in processMessageDownloadFastFailed()
169 Assert.notNull(messageId); in processDownloadActionFailure()
171 Assert.notNull(participantId); in processDownloadActionFailure()
[all …]
H A DUpdateConversationOptionsAction.java40 Assert.notNull(conversationId); in enableConversationNotifications()
52 Assert.notNull(conversationId); in setConversationNotificationSound()
64 Assert.notNull(conversationId); in enableVibrationForConversationNotification()
81 Assert.notNull(conversationId); in UpdateConversationOptionsAction()
/aosp12/packages/apps/Messaging/src/com/android/messaging/datamodel/
H A DBitmapPool.java189 Assert.notNull(resources); in decodeSampledBitmapFromResource()
190 Assert.notNull(optionsTmp); in decodeSampledBitmapFromResource()
229 Assert.notNull(inputStream); in decodeSampledBitmapFromInputStream()
268 Assert.notNull(bytes); in decodeByteArray()
269 Assert.notNull(optionsTmp); in decodeByteArray()
328 Assert.notNull(b); in reclaimBitmap()
/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DSyncEngineTests.java32 import static org.mockito.ArgumentMatchers.notNull;
82 verify(listener, times(1)).onTransactionReady(eq(id), notNull()); in testTrivialSyncCallback()
110 verify(listener, times(1)).onTransactionReady(eq(id), notNull()); in testWaitingSyncCallback()
133 verify(listener, times(1)).onTransactionReady(eq(id), notNull()); in testInvisibleSyncCallback()
166 verify(listener, times(1)).onTransactionReady(eq(id), notNull()); in testWaitForChildrenCallback()
195 verify(listener, times(1)).onTransactionReady(eq(id), notNull()); in testWaitForParentCallback()
225 verify(listener, times(1)).onTransactionReady(eq(id), notNull()); in testFillsParent()
262 verify(listener, times(1)).onTransactionReady(eq(id), notNull()); in testReparentOut()
297 verify(listener, times(1)).onTransactionReady(eq(id), notNull()); in testReparentIn()
/aosp12/packages/services/Telephony/tests/src/com/android/services/telephony/
H A DTestTelephonyConnection.java28 import static org.mockito.ArgumentMatchers.notNull;
172 when(mTelecomAccountRegistry.isMergeCallSupported(notNull(PhoneAccountHandle.class))) in TestTelephonyConnection()
174 when(mTelecomAccountRegistry.isMergeImsCallSupported(notNull(PhoneAccountHandle.class))) in TestTelephonyConnection()
177 .isVideoConferencingSupported(notNull(PhoneAccountHandle.class))).thenReturn(false); in TestTelephonyConnection()
179 .isMergeOfWifiCallsAllowedWhenVoWifiOff(notNull(PhoneAccountHandle.class))) in TestTelephonyConnection()
288 when(mTelecomAccountRegistry.isMergeImsCallSupported(notNull(PhoneAccountHandle.class))) in setIsImsConnection()
/aosp12/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
H A DImagePersistTask.java58 Assert.notNull(bytes); in ImagePersistTask()
59 Assert.notNull(context); in ImagePersistTask()
60 Assert.notNull(callback); in ImagePersistTask()
168 Assert.notNull(mException); in onPostExecute()
H A DCameraPreview.java48 Assert.notNull(host); in CameraPreview()
49 Assert.notNull(host.getView()); in CameraPreview()
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
H A DCarUserManagerUnitTest.java28 import static org.mockito.ArgumentMatchers.notNull;
330 eq(42), anyInt(), notNull()); in testCreateUser_withType_runtimeException()
510 .setUserIdentificationAssociation(anyInt(), same(types), same(values), notNull()); in testSetUserIdentificationAssociation_remoteException()
528 .setUserIdentificationAssociation(anyInt(), same(types), same(values), notNull()); in testSetUserIdentificationAssociation_runtimeException()
555 .setUserIdentificationAssociation(anyInt(), same(types), same(values), notNull()); in testSetUserIdentificationAssociation_ok()
600 }).when(mService).switchUser(eq(userId), anyInt(), notNull()); in expectServiceSwitchUserSucceeds()
604 doThrow(e).when(mService).switchUser(eq(userId), anyInt(), notNull()); in expectServiceSwitchUserFails()
614 }).when(mService).removeUser(eq(userId), notNull()); in expectServiceRemoveUserSucceeds()
628 }).when(mService).createUser(eq(name), eq(userType), eq(flags), anyInt(), notNull()); in expectServiceCreateUserSucceeds()
634 .createUser(eq(name), eq(userType), eq(flags), anyInt(), notNull()); in expectServiceCreateUserFails()
H A DExperimentalCarUserManagerUnitTest.java25 import static org.mockito.ArgumentMatchers.notNull;
216 }).when(mService).switchDriver(eq(userId), notNull()); in expectSwitchDriverSucceed()
221 .switchDriver(eq(userId), notNull()); in expectSwitchDriverFail()
/aosp12/frameworks/av/media/libmedia/
H A DOMXBuffer.cpp140 bool notNull; in readFromParcel() local
141 status_t err = parcel->readBool(&notNull); in readFromParcel()
145 if (notNull) { in readFromParcel()
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/
H A DBasePreferenceControllerTestCase.java22 import static org.mockito.ArgumentMatchers.notNull;
109 verify(preference).setIcon(notNull()); in verifyPreferenceIconSet()
113 verify(preference, never()).setIcon(notNull()); in verifyPreferenceIconNeverSet()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
H A DMobileNetworkSummaryControllerTest.java23 import static org.mockito.ArgumentMatchers.notNull;
233 verify(mPreference, never()).setOnAddClickListener(notNull()); in addButton_noSubscriptionsNoEuiccMgr_noAddClickListener()
243 verify(mPreference, never()).setOnAddClickListener(notNull()); in addButton_oneSubscriptionNoEuiccMgr_noAddClickListener()
250 verify(mPreference, never()).setOnAddClickListener(notNull()); in addButton_noSubscriptions_noAddClickListener()
259 verify(mPreference).setOnAddClickListener(notNull()); in addButton_oneSubscription_hasAddClickListener()
269 verify(mPreference).setOnAddClickListener(notNull()); in addButton_twoSubscriptions_hasAddClickListener()
/aosp12/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
H A DSimSelectorItemView.java61 Assert.notNull(simEntry); in bind()
71 Assert.notNull(mData); in updateViewAppearance()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/settings/brightness/
H A DBrightnessSliderControllerTest.kt41 import org.mockito.Mockito.notNull
92 verify(brightnessSliderView).setOnSeekBarChangeListener(notNull())
133 verify(brightnessSliderView).setOnDispatchTouchEventListener(notNull())
/aosp12/packages/apps/Messaging/src/com/android/messaging/ui/
H A DSnackBar.java92 Assert.notNull(anchorView); in Placement()
136 Assert.notNull(snackBarManager); in Builder()
137 Assert.notNull(parentView); in Builder()
H A DVCardDetailActivity.java43 Assert.notNull(vCardUri); in onAttachFragment()
/aosp12/packages/apps/Messaging/src/com/android/messaging/datamodel/media/
H A DPoolableImageCache.java144 Assert.notNull(inputStream); in decodeSampledBitmapFromInputStream()
185 Assert.notNull(bytes); in decodeByteArray()
186 Assert.notNull(optionsTmp); in decodeByteArray()
H A DDecodedImageResource.java111 Assert.notNull(mBitmap); in getMediaSize()
139 Assert.notNull(mBitmap); in getDrawable()
H A DVCardRequestDescriptor.java27 Assert.notNull(vCardUri); in VCardRequestDescriptor()
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/
H A DDisplayInsetsControllerTest.java24 import static org.mockito.ArgumentMatchers.notNull;
82 verify(mWm).setDisplayWindowInsetsController(eq(SECOND_DISPLAY), notNull()); in testOnDisplayAdded_setsDisplayWindowInsetsControllerOnWMService()
/aosp12/packages/apps/Car/libs/car-qc-lib/tests/unit/src/com/android/car/qc/controller/
H A DRemoteQCControllerTest.java30 import static org.mockito.ArgumentMatchers.notNull;
75 verify(spiedController).onQCItemUpdated(notNull()); in updateListening_listen_updatesQCItem()
/aosp12/frameworks/base/tests/vcn/java/android/net/vcn/
H A DVcnManagerTest.java27 import static org.mockito.ArgumentMatchers.notNull;
154 .registerVcnStatusCallback(eq(SUB_GROUP), notNull(), any()); in testRegisterVcnStatusCallback()

1234