Home
last modified time | relevance | path

Searched refs:assertNull (Results 1 – 25 of 407) sorted by relevance

12345678910>>...17

/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/sensorprivacy/
H A DSensorPrivacyServiceMockingTest.java29 import static org.junit.Assert.assertNull;
109 assertNull(ps.getState(TOGGLE_TYPE_SOFTWARE, 10, CAMERA)); in testMigration1()
112 assertNull(ps.getState(TOGGLE_TYPE_HARDWARE, 0, CAMERA)); in testMigration1()
114 assertNull(ps.getState(TOGGLE_TYPE_HARDWARE, 10, CAMERA)); in testMigration1()
128 assertNull(ps.getState(TOGGLE_TYPE_SOFTWARE, 11, CAMERA)); in testMigration2()
134 assertNull(ps.getState(TOGGLE_TYPE_HARDWARE, 0, CAMERA)); in testMigration2()
154 assertNull(ps.getState(TOGGLE_TYPE_HARDWARE, 0, CAMERA)); in testMigration3()
170 assertNull(ps.getState(TOGGLE_TYPE_HARDWARE, 0, CAMERA)); in testMigration4()
186 assertNull(ps.getState(TOGGLE_TYPE_HARDWARE, 0, CAMERA)); in testMigration5()
196 assertNull(ps.getState(TOGGLE_TYPE_SOFTWARE, 0, CAMERA)); in testMigration6()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/os/
H A DParcelNullabilityTest.java19 import static org.junit.Assert.assertNull;
44 assertNull(throughBytes(p).createByteArray()); in nullByteArray()
52 assertNull(throughBytes(p).readBlob()); in nullBlob()
60 assertNull(throughBytes(p).readString()); in nullString()
68 assertNull(throughBytes(p).readCharSequence()); in nullCharSequence()
76 assertNull(throughBytes(p).readStrongBinder()); in nullStrongBinder()
84 assertNull(throughBytes(p).readStrongBinder()); in nullStringInterface()
148 assertNull(throughBytes(p).readBundle()); in nullBundle()
194 assertNull(throughBytes(p).readArray(null)); in nullArray()
242 assertNull(throughBytes(p).createIntArray()); in nullIntArray()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/android/net/
H A DNetworkKeyTest.java20 import static org.junit.Assert.assertNull;
51 assertNull(NetworkKey.createFromWifiInfo(null)); in createFromWifi_nullInput()
57 assertNull(NetworkKey.createFromWifiInfo(mWifiInfo)); in createFromWifi_nullSsid()
64 assertNull(NetworkKey.createFromWifiInfo(mWifiInfo)); in createFromWifi_emptySsid()
71 assertNull(NetworkKey.createFromWifiInfo(mWifiInfo)); in createFromWifi_noneSsid()
77 assertNull(NetworkKey.createFromWifiInfo(mWifiInfo)); in createFromWifi_nullBssid()
84 assertNull(NetworkKey.createFromWifiInfo(mWifiInfo)); in createFromWifi_emptyBssid()
91 assertNull(NetworkKey.createFromWifiInfo(mWifiInfo)); in createFromWifi_invalidBssid()
106 assertNull(NetworkKey.createFromScanResult(null)); in createFromScanResult_nullInput()
114 assertNull(NetworkKey.createFromScanResult(scanResult)); in createFromScanResult_nullSsid()
[all …]
/aosp14/frameworks/base/tests/MidiTests/src/com/android/server/midi/
H A DMidiEventMultiSchedulerTest.java22 import static org.junit.Assert.assertNull;
78 assertNull(scheduler1.getNextEvent(System.nanoTime())); in testMultiScheduler()
79 assertNull(scheduler2.getNextEvent(System.nanoTime())); in testMultiScheduler()
81 assertNull(scheduler0.getNextEvent(System.nanoTime())); in testMultiScheduler()
83 assertNull(scheduler2.getNextEvent(System.nanoTime())); in testMultiScheduler()
85 assertNull(scheduler0.getNextEvent(System.nanoTime())); in testMultiScheduler()
86 assertNull(scheduler1.getNextEvent(System.nanoTime())); in testMultiScheduler()
90 assertNull(scheduler1.getNextEvent(System.nanoTime())); in testMultiScheduler()
185 assertNull(scheduler0.getNextEvent(System.nanoTime())); in testSchedulerSpamEvents()
207 assertNull(scheduler0.getNextEvent(System.nanoTime())); in testSchedulerSpamEventsPullLater()
[all …]
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DVibratorHelperTest.java20 import static junit.framework.Assert.assertNull;
78 assertNull(VibratorHelper.createWaveformVibration(null, false)); in createWaveformVibration_invalidPattern_returnsNullAndDoesNotCrash()
79 assertNull(VibratorHelper.createWaveformVibration(new long[0], false)); in createWaveformVibration_invalidPattern_returnsNullAndDoesNotCrash()
80 assertNull(VibratorHelper.createWaveformVibration(new long[] { 0, 0 }, false)); in createWaveformVibration_invalidPattern_returnsNullAndDoesNotCrash()
82 assertNull(VibratorHelper.createPwleWaveformVibration(null, false)); in createWaveformVibration_invalidPattern_returnsNullAndDoesNotCrash()
83 assertNull(VibratorHelper.createPwleWaveformVibration(new float[0], false)); in createWaveformVibration_invalidPattern_returnsNullAndDoesNotCrash()
84 assertNull(VibratorHelper.createPwleWaveformVibration(new float[] { 0 }, false)); in createWaveformVibration_invalidPattern_returnsNullAndDoesNotCrash()
85 assertNull(VibratorHelper.createPwleWaveformVibration(new float[] { 0, 0, 0 }, false)); in createWaveformVibration_invalidPattern_returnsNullAndDoesNotCrash()
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/focus/
H A DHorizontalFocusSearchTest.java74 assertNull("going up from mLeftTall", in testSearchFromLeftButton()
76 assertNull("going down from mLeftTall", in testSearchFromLeftButton()
78 assertNull("going left from mLeftTall", in testSearchFromLeftButton()
87 assertNull("going up from mMidShort1Top", in TODO_testSearchFromMiddleLeftButton()
104 assertNull("going down from mMidShort2Bottom", in TODO_testSearchFromMiddleRightButton()
115 assertNull("going up from mRightTall", in testSearchFromRightButton()
117 assertNull("going down from mRightTall", in testSearchFromRightButton()
122 assertNull("going right from mRightTall", in testSearchFromRightButton()
H A DVerticalFocusSearchTest.java89 assertNull("going up from mTopWide.", in testSearchFromTopButton()
92 assertNull("going left from mTopWide.", in testSearchFromTopButton()
95 assertNull("going right from mTopWide.", in testSearchFromTopButton()
105 assertNull("going left should have no next focus", in testSearchFromMidLeft()
126 assertNull("going right should have no next focus", in testSearchFromMidRight()
140 assertNull("going down from bottom button should have no next focus.", in testSearchFromFromBottom()
143 assertNull("going left from bottom button should have no next focus.", in testSearchFromFromBottom()
146 assertNull("going right from bottom button should have no next focus.", in testSearchFromFromBottom()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DShortcutManagerTest5.java81 assertNull(pi.signatures); in testGetPackageInfo()
82 assertNull(pi.signingInfo); in testGetPackageInfo()
87 assertNull(pi.signatures); in testGetPackageInfo()
92 assertNull(pi); in testGetPackageInfo()
102 assertNull(ai); in testGetApplicationInfo()
109 assertNull(ai); in testGetActivityInfoWithMetadata()
114 assertNull(ai); in testGetActivityInfoWithMetadata()
121 assertNull(ai.loadXmlMetaData(getTestContext().getPackageManager(), in testGetActivityInfoWithMetadata()
154 assertNull(mShortcutService.injectGetDefaultMainActivity( in testGetDefaultMainActivity()
158 assertNull(mShortcutService.injectGetDefaultMainActivity( in testGetDefaultMainActivity()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/am/
H A DMemoryStatUtilTest.java25 import static org.junit.Assert.assertNull;
142 assertNull(stat); in testParseMemoryStatFromMemcg_emptyMemoryStatContents()
145 assertNull(stat); in testParseMemoryStatFromMemcg_emptyMemoryStatContents()
161 assertNull(stat); in testParseMemoryStatFromProcfs_emptyContents()
164 assertNull(stat); in testParseMemoryStatFromProcfs_emptyContents()
170 assertNull(parseMemoryStatFromProcfs(contents)); in testParseMemoryStatFromProcfs_invalidValue()
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DTaskSnapshotCacheTest.java24 import static org.junit.Assert.assertNull;
71 assertNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */, in testAppRemoved()
82 assertNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */, in testAppDied()
93 assertNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */, in testTaskRemoved()
102 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
110 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
119 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testRestoreFromDisk()
133 assertNull(mCache.getSnapshot(window.getTask().mTaskId, 0, false, false)); in testClearCache()
H A DTaskPositioningControllerTests.java31 import static org.junit.Assert.assertNull;
78 assertNull(mTarget.getDragWindowHandleLocked()); in testStartAndFinishPositioning()
90 assertNull(mTarget.getDragWindowHandleLocked()); in testStartAndFinishPositioning()
96 assertNull(mTarget.getDragWindowHandleLocked()); in testFinishPositioningWhenAppRequested()
108 assertNull(mTarget.getDragWindowHandleLocked()); in testFinishPositioningWhenAppRequested()
114 assertNull(mTarget.getDragWindowHandleLocked()); in testHandleTapOutsideTask()
132 assertNull(mTarget.getDragWindowHandleLocked()); in testHandleTapOutsideTask()
138 assertNull(mTarget.getDragWindowHandleLocked()); in testHandleTapOutsideNonResizableTask()
H A DInsetsSourceProviderTest.java28 import static org.junit.Assert.assertNull;
115 assertNull(mProvider.getControl(target)); in testUpdateControlForTarget()
116 assertNull(mProvider.getControlTarget()); in testUpdateControlForTarget()
127 assertNull(mProvider.getControl(target)); in testUpdateControlForTarget()
128 assertNull(mProvider.getControlTarget()); in testUpdateControlForTarget()
130 assertNull(mProvider.getControl(target)); in testUpdateControlForTarget()
131 assertNull(mProvider.getControlTarget()); in testUpdateControlForTarget()
141 assertNull(mProvider.getControl(target)); in testUpdateControlForTarget()
142 assertNull(mProvider.getControlTarget()); in testUpdateControlForTarget()
148 assertNull(mProvider.getControl(target)); in testUpdateControlForTarget()
[all …]
H A DInsetsStateControllerTest.java39 import static org.junit.Assert.assertNull;
92 assertNull(navBar.getInsetsState().peekSource(ID_IME)); in testStripForDispatch_navBar()
93 assertNull(navBar.getInsetsState().peekSource(ID_STATUS_BAR)); in testStripForDispatch_navBar()
108 assertNull(app.getInsetsState().peekSource(ID_STATUS_BAR)); in testStripForDispatch_pip()
110 assertNull(app.getInsetsState().peekSource(ID_IME)); in testStripForDispatch_pip()
125 assertNull(app.getInsetsState().peekSource(ID_STATUS_BAR)); in testStripForDispatch_freeform()
142 assertNull(app.getInsetsState().peekSource(ID_STATUS_BAR)); in testStripForDispatch_multiwindow_alwaysOnTop()
340 assertNull(getController().getControlsForDispatch(app)); in testControlRevoked()
352 assertNull(getController().getControlsForDispatch(app)); in testControlRevoked_animation()
452 assertNull(app.mAboveInsetsState.peekSource(ID_IME)); in testUpdateAboveInsetsState_zOrderChanged()
[all …]
H A DTaskSnapshotLowResDisabledTest.java23 import static org.junit.Assert.assertNull;
84 assertNull(mLoader.loadTask(1, mTestUserId, true /* isLowResolution */)); in testPersistAndLoadSnapshot()
132 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
136 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
144 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
148 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/sensors/
H A DProximitySensorImplSingleTest.java21 import static org.junit.Assert.assertNull;
68 assertNull(listener.mLastEvent); in testSingleListener()
91 assertNull(listenerA.mLastEvent); in testMultiListener()
92 assertNull(listenerB.mLastEvent); in testMultiListener()
119 assertNull(listenerA.mLastEvent); in testDuplicateListener()
137 assertNull(listener.mLastEvent); in testUnregister()
154 assertNull(listener.mLastEvent); in testPauseAndResume()
195 assertNull(listenerA.mLastEvent); in testAlertListeners()
196 assertNull(listenerB.mLastEvent); in testAlertListeners()
199 assertNull(listenerA.mLastEvent); in testAlertListeners()
[all …]
H A DProximitySensorImplDualTest.java24 import static org.junit.Assert.assertNull;
74 assertNull(listener.mLastEvent); in testInitiallyAbovePrimary()
92 assertNull(listener.mLastEvent); in testInitiallyBelowPrimaryAboveSecondary()
96 assertNull(listener.mLastEvent); in testInitiallyBelowPrimaryAboveSecondary()
114 assertNull(listener.mLastEvent); in testInitiallyBelowPrimaryAndSecondary()
118 assertNull(listener.mLastEvent); in testInitiallyBelowPrimaryAndSecondary()
135 assertNull(listener.mLastEvent); in testPrimaryBelowDoesNotInvokeSecondary()
153 assertNull(listener.mLastEvent); in testSingleListener()
160 assertNull(listener.mLastEvent); in testSingleListener()
167 assertNull(listener.mLastEvent); in testSingleListener()
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/
H A DCustomIconCacheTest.kt24 import org.junit.Assert.assertNull
67 assertNull(customIconCache.retrieve(TEST_COMPONENT1, CONTROL_ID_2))
74 assertNull(customIconCache.retrieve(TEST_COMPONENT2, CONTROL_ID_1))
82 assertNull(customIconCache.retrieve(TEST_COMPONENT1, CONTROL_ID_1))
83 assertNull(customIconCache.retrieve(TEST_COMPONENT1, CONTROL_ID_2))
99 assertNull(customIconCache.retrieve(TEST_COMPONENT1, CONTROL_ID_1))
/aosp14/frameworks/base/core/tests/coretests/src/android/util/apk/
H A DSourceStampVerifierTest.java23 import static org.junit.Assert.assertNull;
77 assertNull(result.getCertificate()); in testSourceStamp_noStamp()
105 assertNull(result.getCertificate()); in testSourceStamp_signatureMissing()
117 assertNull(result.getCertificate()); in testSourceStamp_certificateMismatch()
129 assertNull(result.getCertificate()); in testSourceStamp_apkHashMismatch_v1SignatureScheme()
141 assertNull(result.getCertificate()); in testSourceStamp_apkHashMismatch_v2SignatureScheme()
153 assertNull(result.getCertificate()); in testSourceStamp_apkHashMismatch_v3SignatureScheme()
165 assertNull(result.getCertificate()); in testSourceStamp_malformedSignature()
199 assertNull(result.getCertificate()); in testSourceStamp_multiApk_invalidStamps()
230 assertNull(result.getCertificate()); in testSourceStamp_invalidStampLineage()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/power/stats/
H A DEnergyConsumerSnapshotTest.java23 import static org.junit.Assert.assertNull;
122 assertNull(delta.displayChargeUC); in testUpdateAndGetDelta()
123 assertNull(delta.otherTotalChargeUC); in testUpdateAndGetDelta()
124 assertNull(delta.otherUidChargesUC); in testUpdateAndGetDelta()
152 assertNull(delta.otherUidChargesUC); in testUpdateAndGetDelta()
153 assertNull(delta.otherTotalChargeUC); in testUpdateAndGetDelta()
158 assertNull(delta.displayChargeUC); in testUpdateAndGetDelta()
212 assertNull(delta.displayChargeUC); in testUpdateAndGetDelta_some()
213 assertNull(delta.otherTotalChargeUC); in testUpdateAndGetDelta_some()
214 assertNull(delta.otherUidChargesUC); in testUpdateAndGetDelta_some()
[all …]
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/location/countrydetector/
H A DLocationBasedCountryDetectorTest.java208 assertNull(detector.getTimer()); in testFindingCountryCommon()
214 assertNull(detector.getQueryThread()); in testFindingCountryCommon()
231 assertNull(detector.getTimer()); in testFindingCountryCancelled()
239 assertNull(detector.getQueryThread()); in testFindingCountryCancelled()
256 assertNull(detector.getTimer()); in testFindingLocationCancelled()
258 assertNull(detector.getQueryThread()); in testFindingLocationCancelled()
280 assertNull(detector.getQueryThread()); in testFindingLocationFailed()
282 assertNull(countryListener.getCountry()); in testFindingLocationFailed()
310 assertNull(detector.getTimer()); in testFindingCountryFailed()
316 assertNull(detector.getQueryThread()); in testFindingCountryFailed()
[all …]
/aosp14/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
H A DBrightnessTrackerTest.java23 import static org.junit.Assert.assertNull;
136 assertNull(mInjector.mSensorListener); in testStartStopTrackerScreenOnOff()
144 assertNull(mInjector.mSensorListener); in testStartStopTrackerScreenOnOff()
150 assertNull(mInjector.mSensorListener); in testStartStopTrackerScreenOnOff()
156 assertNull(mInjector.mSensorListener); in testStartStopTrackerScreenOnOff()
165 assertNull(mInjector.mSensorListener); in testStartStopTrackerScreenOnOff()
542 assertNull(event.colorValueBuckets); in testReadEvents()
837 assertNull(mInjector.mLightSensor); in testLightSensorChange()
864 assertNull(mInjector.mLightSensor); in testNullLightSensorWontRegister()
869 assertNull(mInjector.mLightSensor); in testOnlyOneReceiverRegistered()
[all …]
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
H A DPersistentConnectionTest.java131 assertNull(conn.getServiceBinder()); in testAll()
144 assertNull(conn.getServiceBinder()); in testAll()
174 assertNull(conn.getServiceBinder()); in testAll()
184 assertNull(conn.getServiceBinder()); in testAll()
197 assertNull(conn.getServiceBinder()); in testAll()
221 assertNull(conn.getServiceBinder()); in testAll()
237 assertNull(conn.getServiceBinder()); in testAll()
260 assertNull(conn.getServiceBinder()); in testAll()
276 assertNull(conn.getServiceBinder()); in testAll()
288 assertNull(conn.getServiceBinder()); in testAll()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/tv/
H A DTvPipMenuTests.kt25 import org.junit.Assert.assertNull
199 assertNull(
214 assertNull(
218 assertNull(
222 assertNull(
249 assertNull(
253 assertNull(
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/tare/
H A DTareTestUtils.java21 import static org.junit.Assert.assertNull;
30 assertNull(actual); in assertLedgersEqual()
54 assertNull(actual); in assertSparseLongArraysEqual()
68 assertNull(actual); in assertRewardBucketsEqual()
78 assertNull(actual); in assertTransactionsEqual()
/aosp14/frameworks/base/tests/Internal/src/com/android/internal/protolog/
H A DProtoLogViewerConfigReaderTest.java20 import static org.junit.Assert.assertNull;
96 assertNull(mConfig.getViewerString(1)); in getViewerString_notLoaded()
105 assertNull(mConfig.getViewerString(1)); in loadViewerConfig()
112 assertNull(mConfig.getViewerString(1)); in loadViewerConfig_invalidFile()

12345678910>>...17