Home
last modified time | relevance | path

Searched refs:Assert (Results 1 – 25 of 1298) sorted by relevance

12345678910>>...52

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/
DBipTransformationTest.java21 import org.junit.Assert;
34 Assert.assertFalse(trans.supportsAny()); in testCreateEmpty()
35 Assert.assertEquals(null, trans.toString()); in testCreateEmpty()
42 Assert.assertTrue(trans.isSupported(BipTransformation.CROP)); in testAddTransformation()
43 Assert.assertFalse(trans.isSupported(BipTransformation.STRETCH)); in testAddTransformation()
44 Assert.assertFalse(trans.isSupported(BipTransformation.FILL)); in testAddTransformation()
45 Assert.assertEquals("crop", trans.toString()); in testAddTransformation()
48 Assert.assertTrue(trans.isSupported(BipTransformation.CROP)); in testAddTransformation()
49 Assert.assertTrue(trans.isSupported(BipTransformation.STRETCH)); in testAddTransformation()
50 Assert.assertFalse(trans.isSupported(BipTransformation.FILL)); in testAddTransformation()
[all …]
DBipImageFormatTest.java21 import org.junit.Assert;
34 Assert.assertEquals(BipImageFormat.FORMAT_NATIVE, format.getType()); in testParseNative_requiredOnly()
35 Assert.assertEquals(new BipEncoding(BipEncoding.JPEG, null), format.getEncoding()); in testParseNative_requiredOnly()
36 Assert.assertEquals(BipPixel.createFixed(1280, 1024), format.getPixel()); in testParseNative_requiredOnly()
37 Assert.assertEquals(new BipTransformation(), format.getTransformation()); in testParseNative_requiredOnly()
38 Assert.assertEquals(-1, format.getSize()); in testParseNative_requiredOnly()
39 Assert.assertEquals(-1, format.getMaxSize()); in testParseNative_requiredOnly()
40 Assert.assertEquals(expected, format.toString()); in testParseNative_requiredOnly()
47 Assert.assertEquals(BipImageFormat.FORMAT_NATIVE, format.getType()); in testParseNative_withSize()
48 Assert.assertEquals(new BipEncoding(BipEncoding.JPEG, null), format.getEncoding()); in testParseNative_withSize()
[all …]
DBipAttachmentFormatTest.java21 import org.junit.Assert;
55 Assert.assertEquals(contentType, attachment.getContentType()); in testParse()
56 Assert.assertEquals(charset, attachment.getCharset()); in testParse()
57 Assert.assertEquals(name, attachment.getName()); in testParse()
58 Assert.assertEquals(expectedSize, attachment.getSize()); in testParse()
61 Assert.assertEquals(expectedCreated, attachment.getCreatedDate().getTime()); in testParse()
62 Assert.assertEquals(isCreatedUtc, attachment.getCreatedDate().isUtc()); in testParse()
64 Assert.assertEquals(null, attachment.getCreatedDate()); in testParse()
68 Assert.assertEquals(expectedModified, attachment.getModifiedDate().getTime()); in testParse()
69 Assert.assertEquals(isModifiedUtc, attachment.getModifiedDate().isUtc()); in testParse()
[all …]
DBipPixelTest.java21 import org.junit.Assert;
34 Assert.assertEquals(pixelType, pixel.getType()); in testParse()
35 Assert.assertEquals(minWidth, pixel.getMinWidth()); in testParse()
36 Assert.assertEquals(minHeight, pixel.getMinHeight()); in testParse()
37 Assert.assertEquals(maxWidth, pixel.getMaxWidth()); in testParse()
38 Assert.assertEquals(maxHeight, pixel.getMaxHeight()); in testParse()
39 Assert.assertEquals(pixelStr, pixel.toString()); in testParse()
44 Assert.assertEquals(BipPixel.TYPE_FIXED, pixel.getType()); in testFixed()
45 Assert.assertEquals(width, pixel.getMinWidth()); in testFixed()
46 Assert.assertEquals(height, pixel.getMinHeight()); in testFixed()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/
DStateMachineTest.java36 import org.junit.Assert;
110 Assert.assertTrue(stateMachine.toString().contains("TestStateMachine")); in testToStringSucceedsEvenIfMachineHasNoStates()
120 Assert.assertTrue(stateMachine.toString().contains("TestStateMachine")); in testToStringSucceedsEvenIfStateHasNoName()
121 Assert.assertTrue(stateMachine.toString().contains("(null)")); in testToStringSucceedsEvenIfStateHasNoName()
131 Assert.assertTrue(stateMachine.toString().contains("TestStateMachine")); in testToStringIncludesMachineAndStateNames()
132 Assert.assertTrue(stateMachine.toString().contains("exampleState")); in testToStringIncludesMachineAndStateNames()
142 Assert.assertFalse(stateMachine.toString().contains("\n")); in testToStringDoesNotContainMultipleLines()
226 Assert.assertEquals(8, smQuitTest.mLogRecs.size()); in testStateMachineQuit()
232 Assert.assertEquals(i, lr.getWhat()); in testStateMachineQuit()
233 Assert.assertEquals(smQuitTest.mS1, lr.getState()); in testStateMachineQuit()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpItemTest.java31 import org.junit.Assert;
98 Assert.assertEquals(mDevice, item.getDevice()); in buildAvrcpItem()
99 Assert.assertEquals(true, item.isPlayable()); in buildAvrcpItem()
100 Assert.assertEquals(false, item.isBrowsable()); in buildAvrcpItem()
101 Assert.assertEquals(0, item.getUid()); in buildAvrcpItem()
102 Assert.assertEquals(UUID, item.getUuid()); in buildAvrcpItem()
103 Assert.assertEquals(null, item.getDisplayableName()); in buildAvrcpItem()
104 Assert.assertEquals(title, item.getTitle()); in buildAvrcpItem()
105 Assert.assertEquals(artist, item.getArtistName()); in buildAvrcpItem()
106 Assert.assertEquals(album, item.getAlbumName()); in buildAvrcpItem()
[all …]
DAvrcpCoverArtStorageTest.java32 import org.junit.Assert;
62 Assert.fail("Setup Failure Unable to get resources" + e.toString()); in setUp()
94 Assert.assertTrue(expected.sameAs(fromStorage)); in assertImageSame()
100 Assert.assertFalse(mAvrcpCoverArtStorage.doesImageExist(mDevice1, mHandle1)); in addNewImage_imageExists()
104 Assert.assertEquals(expectedUri, uri); in addNewImage_imageExists()
105 Assert.assertTrue(mAvrcpCoverArtStorage.doesImageExist(mDevice1, mHandle1)); in addNewImage_imageExists()
111 Assert.assertFalse(mAvrcpCoverArtStorage.doesImageExist(mDevice1, mHandle1)); in addExistingImage_imageUpdated()
114 Assert.assertTrue(mAvrcpCoverArtStorage.doesImageExist(mDevice1, mHandle1)); in addExistingImage_imageUpdated()
115 Assert.assertEquals(expectedUri, uri); in addExistingImage_imageUpdated()
119 Assert.assertTrue(mAvrcpCoverArtStorage.doesImageExist(mDevice1, mHandle1)); in addExistingImage_imageUpdated()
[all …]
DAvrcpControllerStateMachineTest.java46 import org.junit.Assert;
103 Assert.assertNotNull(Looper.myLooper()); in setUp()
142 Assert.assertFalse(mAvrcpStateMachine.isActive()); in tearDown()
162 Assert.assertEquals(mTestDevice, mIntentArgument.getValue().getParcelableExtra( in testDisconnect()
164 Assert.assertEquals(BluetoothAvrcpController.ACTION_CONNECTION_STATE_CHANGED, in testDisconnect()
166 Assert.assertEquals(BluetoothProfile.STATE_DISCONNECTED, in testDisconnect()
168 Assert.assertThat(mAvrcpStateMachine.getCurrentState(), in testDisconnect()
170 Assert.assertEquals(mAvrcpStateMachine.getState(), BluetoothProfile.STATE_DISCONNECTED); in testDisconnect()
174 Assert.assertEquals(PlaybackStateCompat.STATE_ERROR, in testDisconnect()
186 Assert.assertNotNull(transportControls); in testControlOnly()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/
DHearingAidServiceTest.java45 import org.junit.Assert;
140 Assert.assertNotNull(mService); in startService()
146 Assert.assertNull(mService); in stopService()
156 Assert.assertNotNull(device); in onReceive()
158 Assert.assertNotNull(queue); in onReceive()
161 Assert.fail("Cannot add Intent to the Connection State queue: " in onReceive()
171 Assert.assertNotNull(intent); in verifyConnectionStateIntent()
172 Assert.assertEquals(BluetoothHearingAid.ACTION_CONNECTION_STATE_CHANGED, in verifyConnectionStateIntent()
174 Assert.assertEquals(device, intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE)); in verifyConnectionStateIntent()
175 Assert.assertEquals(newState, intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1)); in verifyConnectionStateIntent()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DRemoteDevicesTest.java23 import org.junit.Assert;
69 Assert.assertNotNull(msg); in testSendUuidIntent()
82 Assert.assertNull(mRemoteDevices.getDeviceProperties(mDevice1)); in testUpdateBatteryLevel_normalSequence()
88 Assert.assertEquals(AdapterService.BLUETOOTH_PERM, mStringArgument.getValue()); in testUpdateBatteryLevel_normalSequence()
91 Assert.assertNotNull(mRemoteDevices.getDeviceProperties(mDevice1)); in testUpdateBatteryLevel_normalSequence()
92 Assert.assertEquals(mRemoteDevices.getDeviceProperties(mDevice1).getBatteryLevel(), in testUpdateBatteryLevel_normalSequence()
104 Assert.assertEquals(AdapterService.BLUETOOTH_PERM, mStringArgument.getValue()); in testUpdateBatteryLevel_normalSequence()
108 Assert.assertEquals(mRemoteDevices.getDeviceProperties(mDevice1).getBatteryLevel(), in testUpdateBatteryLevel_normalSequence()
119 Assert.assertNull(mRemoteDevices.getDeviceProperties(mDevice1)); in testUpdateBatteryLevel_errorNegativeValue()
126 Assert.assertNull(mRemoteDevices.getDeviceProperties(mDevice1)); in testUpdateBatteryLevel_errorNegativeValue()
[all …]
DAdapterServiceTest.java52 import org.junit.Assert;
108 Assert.assertNotNull(Looper.myLooper()); in setupClass()
114 Assert.assertNotNull(adapterConfig); in setupClass()
115 Assert.assertNotNull("metrics salt is null: " + adapterConfig.toString(), in setupClass()
124 Assert.assertNotNull(Looper.myLooper()); in setUp()
176 Assert.assertNotNull(mAdapterConfig); in setUp()
196 Assert.assertFalse(mAdapterService.getState() == BluetoothAdapter.STATE_ON); in doEnable()
235 Assert.assertTrue(scanMode == BluetoothAdapter.SCAN_MODE_CONNECTABLE in doEnable()
237 Assert.assertTrue(mAdapterService.getState() == BluetoothAdapter.STATE_ON); in doEnable()
241 Assert.assertTrue(mAdapterService.getState() == BluetoothAdapter.STATE_ON); in doDisable()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/
DA2dpServiceTest.java46 import org.junit.Assert;
138 Assert.assertNotNull(mA2dpService); in startService()
144 Assert.assertNull(mA2dpService); in stopService()
154 Assert.fail("Cannot add Intent to the Connection State queue: " in onReceive()
162 Assert.fail("Cannot add Intent to the Audio State queue: " + e.getMessage()); in onReceive()
169 Assert.fail("Cannot add Intent to the Codec Config queue: " + e.getMessage()); in onReceive()
178 Assert.assertNotNull(intent); in verifyConnectionStateIntent()
179 Assert.assertEquals(BluetoothA2dp.ACTION_CONNECTION_STATE_CHANGED, in verifyConnectionStateIntent()
181 Assert.assertEquals(device, intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE)); in verifyConnectionStateIntent()
182 Assert.assertEquals(newState, intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1)); in verifyConnectionStateIntent()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceAndStateMachineTest.java59 import org.junit.Assert;
114 Assert.fail("Action is null for intent " + intent); in onReceive()
122 Assert.fail("Cannot add Intent to the Connection State Changed queue: " in onReceive()
130 Assert.fail("Cannot add Intent to the Active Device Changed queue: " in onReceive()
138 Assert.fail("Cannot add Intent to the Audio State Changed queue: " in onReceive()
143 Assert.fail("Unknown action " + action); in onReceive()
221 Assert.assertNotNull(mHeadsetService); in setUp()
226 Assert.assertNotNull(mHeadsetServiceBinder); in setUp()
247 Assert.assertNull(mHeadsetService); in tearDown()
265 Assert.assertEquals(mHeadsetService, HeadsetService.getHeadsetService()); in testGetHeadsetService()
[all …]
DHeadsetServiceTest.java45 import org.junit.Assert;
135 Assert.assertNotNull(mCurrentDevice); in setUp()
146 Assert.assertNotNull(mHeadsetService); in setUp()
150 Assert.assertNotNull(mHeadsetServiceBinder); in setUp()
163 Assert.assertNull(mHeadsetService); in tearDown()
178 Assert.assertEquals(mHeadsetService, HeadsetService.getHeadsetService()); in testGetHeadsetService()
181 Assert.assertEquals(BluetoothProfile.STATE_DISCONNECTED, in testGetHeadsetService()
183 Assert.assertEquals(BluetoothHeadset.STATE_AUDIO_DISCONNECTED, in testGetHeadsetService()
239 Assert.assertTrue(mHeadsetService.connect(mCurrentDevice)); in testConnectDevice_connectDeviceBelowLimit()
248 Assert.assertEquals(BluetoothProfile.STATE_CONNECTING, in testConnectDevice_connectDeviceBelowLimit()
[all …]
DHeadsetTestUtils.java26 import org.junit.Assert;
43 Assert.assertNotNull(intent); in verifyAudioStateBroadcast()
44 Assert.assertEquals(BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED, intent.getAction()); in verifyAudioStateBroadcast()
45 Assert.assertEquals(device, intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE)); in verifyAudioStateBroadcast()
46 Assert.assertEquals(toState, intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1)); in verifyAudioStateBroadcast()
47 Assert.assertEquals(fromState, in verifyAudioStateBroadcast()
63 Assert.assertNotNull(intent); in verifyConnectionStateBroadcast()
64 Assert.assertEquals(BluetoothHeadset.ACTION_CONNECTION_STATE_CHANGED, intent.getAction()); in verifyConnectionStateBroadcast()
66 Assert.assertEquals(Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND, intent.getFlags()); in verifyConnectionStateBroadcast()
68 Assert.assertEquals(device, intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE)); in verifyConnectionStateBroadcast()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/storage/
DDatabaseManagerTest.java19 import static org.junit.Assert.assertThat;
50 import org.junit.Assert;
129 Assert.assertEquals(BluetoothProfile.CONNECTION_POLICY_UNKNOWN, in testMetadataDefault()
133 Assert.assertEquals(BluetoothA2dp.OPTIONAL_CODECS_SUPPORT_UNKNOWN, in testMetadataDefault()
136 Assert.assertEquals(BluetoothA2dp.OPTIONAL_CODECS_PREF_UNKNOWN, in testMetadataDefault()
140 Assert.assertNull(mDatabaseManager.getCustomMeta(mTestDevice, id)); in testMetadataDefault()
260 Assert.assertEquals(1, list.size()); in testRemoveUnusedMetadata_WithSingleBondedDevice()
264 Assert.assertEquals(TEST_BT_ADDR, checkData.getAddress()); in testRemoveUnusedMetadata_WithSingleBondedDevice()
312 Assert.assertEquals(2, list.size()); in testRemoveUnusedMetadata_WithMultiBondedDevices()
316 Assert.assertEquals(OTHER_BT_ADDR2, checkData1.getAddress()); in testRemoveUnusedMetadata_WithMultiBondedDevices()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hid/
DHidDeviceTest.java43 import org.junit.Assert;
106 Assert.assertNotNull(Looper.myLooper()); in setUp()
119 Assert.assertNotNull(mHidDeviceService); in setUp()
128 Assert.assertEquals(nativeInterface, mHidDeviceNativeInterface); in setUp()
149 Assert.assertNull(mHidDeviceService); in tearDown()
166 Assert.fail("Cannot add Intent to the queue"); in onReceive()
174 Assert.assertNotNull(intent); in waitForIntent()
177 Assert.fail("Cannot obtain an Intent from the queue"); in waitForIntent()
185 Assert.assertNotNull(intent); in verifyConnectionStateIntent()
186 Assert.assertEquals(BluetoothHidDevice.ACTION_CONNECTION_STATE_CHANGED, intent.getAction()); in verifyConnectionStateIntent()
[all …]
/packages/apps/KeyChain/robotests/src/com/android/keychain/internal/
DGrantsDatabaseTest.java27 import org.junit.Assert;
78 Assert.assertFalse(mGrantsDB.hasGrant(DUMMY_UID2, DUMMY_ALIAS));
84 Assert.assertFalse(mGrantsDB.hasGrant(DUMMY_UID, DUMMY_ALIAS2));
89 Assert.assertFalse(mGrantsDB.hasGrant(DUMMY_UID, DUMMY_ALIAS));
91 Assert.assertTrue(mGrantsDB.hasGrant(DUMMY_UID, DUMMY_ALIAS));
97 Assert.assertFalse(mGrantsDB.hasGrant(DUMMY_UID, DUMMY_ALIAS));
103 Assert.assertTrue(mGrantsDB.hasGrant(DUMMY_UID, DUMMY_ALIAS));
105 Assert.assertFalse(mGrantsDB.hasGrant(DUMMY_UID, DUMMY_ALIAS));
113 Assert.assertTrue(mGrantsDB.hasGrant(DUMMY_UID, DUMMY_ALIAS));
115 Assert.assertFalse(mGrantsDB.hasGrant(DUMMY_UID, DUMMY_ALIAS));
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DBugleDatabaseOperations.java43 import com.android.messaging.util.Assert;
44 import com.android.messaging.util.Assert.DoesNotRunOnMainThread;
98 Assert.isNotMainThread(); in sanitizeConversationParticipants()
142 Assert.isNotMainThread(); in getRecipientsFromConversationParticipants()
169 Assert.isNotMainThread(); in getOrCreateConversationFromThreadId()
190 Assert.isNotMainThread(); in getOrCreateConversationFromRecipient()
212 Assert.isNotMainThread(); in getOrCreateConversation()
257 Assert.isNotMainThread(); in getExistingConversation()
269 Assert.isTrue(cursor.getCount() == 1); in getExistingConversation()
291 Assert.isNotMainThread(); in getThreadId()
[all …]
/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/
DNewVoicemailMediaPlayerView.java43 import com.android.dialer.common.Assert;
156 Assert.isNotNull(voicemailEntryFromAdapter); in bindValuesFromAdapterOfExpandedViewHolderMediaPlayerView()
163 Assert.isNotNull(viewHolder); in bindValuesFromAdapterOfExpandedViewHolderMediaPlayerView()
164 Assert.isNotNull(uri); in bindValuesFromAdapterOfExpandedViewHolderMediaPlayerView()
165 Assert.isNotNull(listener); in bindValuesFromAdapterOfExpandedViewHolderMediaPlayerView()
166 Assert.isNotNull(totalDurationView); in bindValuesFromAdapterOfExpandedViewHolderMediaPlayerView()
167 Assert.checkArgument(uri.equals(viewHolder.getViewHolderVoicemailUri())); in bindValuesFromAdapterOfExpandedViewHolderMediaPlayerView()
205 Assert.checkArgument( in bindValuesFromAdapterOfExpandedViewHolderMediaPlayerView()
224 Assert.checkArgument(viewHolder.getViewHolderVoicemailUri().equals(voicemailUri)); in bindValuesFromAdapterOfExpandedViewHolderMediaPlayerView()
304 Assert.checkArgument(playButton.getVisibility() == GONE);
[all …]
DNewVoicemailAdapter.java43 import com.android.dialer.common.Assert;
175 Assert.checkArgument( in updateHeaderPositions()
233 throw Assert.createUnsupportedOperationFailException("Unsupported view type: " + viewType); in onCreateViewHolder()
250 Assert.checkArgument( in onBindViewHolder()
338 Assert.checkArgument( in onBindViewHolder()
343 Assert.isNotNull(getCurrentlyExpandedViewHolder()); in onBindViewHolder()
344 Assert.checkArgument( in onBindViewHolder()
388 Assert.checkArgument(position == 0, "position is not 0"); in onBindAlertViewHolder()
389 Assert.checkArgument( in onBindAlertViewHolder()
396 Assert.checkArgument(viewType == RowType.VOICEMAIL_ALERT, "Invalid row type: " + viewType); in onBindAlertViewHolder()
[all …]
/packages/apps/Dialer/java/com/android/dialer/phonelookup/consolidator/
DPhoneLookupInfoConsolidator.java20 import com.android.dialer.common.Assert;
129 throw Assert.createUnsupportedOperationFailException( in getContactSource()
135 Assert.checkState(nameSource == NameSource.PEOPLE_API); in getRefinedPeopleApiSource()
159 return Assert.isNotNull(firstDefaultCp2Contact).getName(); in getName()
161 return Assert.isNotNull(firstExtendedCp2Contact).getName(); in getName()
173 throw Assert.createUnsupportedOperationFailException( in getName()
188 return Assert.isNotNull(firstDefaultCp2Contact).getPhotoThumbnailUri(); in getPhotoThumbnailUri()
190 return Assert.isNotNull(firstExtendedCp2Contact).getPhotoThumbnailUri(); in getPhotoThumbnailUri()
199 throw Assert.createUnsupportedOperationFailException( in getPhotoThumbnailUri()
214 return Assert.isNotNull(firstDefaultCp2Contact).getPhotoUri(); in getPhotoUri()
[all …]
/packages/apps/KeyChain/robotests/src/com/android/keychain/
DAliasLoaderTest.java32 import org.junit.Assert;
165 Assert.assertNotNull(result); in testAliasLoader_loadsAllAliases()
166 Assert.assertEquals(3, result.getCount()); in testAliasLoader_loadsAllAliases()
167 Assert.assertEquals("a", result.getItem(0)); in testAliasLoader_loadsAllAliases()
168 Assert.assertEquals("b", result.getItem(1)); in testAliasLoader_loadsAllAliases()
169 Assert.assertEquals("c", result.getItem(2)); in testAliasLoader_loadsAllAliases()
189 Assert.assertNotNull(result); in testAliasLoader_copesWithNoAliases()
190 Assert.assertEquals(0, result.getCount()); in testAliasLoader_copesWithNoAliases()
212 Assert.assertNotNull(result); in testAliasLoader_filtersNonUserSelectableAliases()
213 Assert.assertEquals(1, result.getCount()); in testAliasLoader_filtersNonUserSelectableAliases()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/newavrcp/
DMediaPlayerWrapperTest.java33 import org.junit.Assert;
142 Assert.assertNull(wrapper); in testNullControllerLooper()
145 Assert.assertNull(wrapper); in testNullControllerLooper()
156 Assert.assertTrue(wrapper.isPlaybackStateReady()); in testIsReady()
157 Assert.assertTrue(wrapper.isMetadataReady()); in testIsReady()
161 Assert.assertFalse(wrapper.isPlaybackStateReady()); in testIsReady()
165 Assert.assertTrue(wrapper.isPlaybackStateReady()); in testIsReady()
169 Assert.assertFalse(wrapper.isMetadataReady()); in testIsReady()
173 Assert.assertTrue(wrapper.isMetadataReady()); in testIsReady()
185 Assert.assertTrue(wrapper.isPlaybackStateReady()); in testControllerUpdate()
[all …]
/packages/apps/Dialer/java/com/android/dialer/protos/
DProtoParsers.java23 import com.android.dialer.common.Assert;
38 Assert.isNotNull(bundle); in get()
39 Assert.isNotNull(key); in get()
40 Assert.isNotNull(defaultInstance); in get()
55 Assert.isNotNull(contentValues); in get()
56 Assert.isNotNull(key); in get()
57 Assert.isNotNull(defaultInstance); in get()
73 throw Assert.createIllegalStateFailException(e.toString()); in getTrusted()
88 throw Assert.createIllegalStateFailException(e.toString()); in getTrusted()
99 Assert.isNotNull(intent); in getTrusted()
[all …]

12345678910>>...52