/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/ |
D | BipTransformationTest.java | 21 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 …]
|
D | BipImageFormatTest.java | 21 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 …]
|
D | BipAttachmentFormatTest.java | 21 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 …]
|
D | BipPixelTest.java | 21 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/ |
D | StateMachineTest.java | 36 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/ |
D | AvrcpItemTest.java | 31 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 …]
|
D | AvrcpCoverArtStorageTest.java | 32 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 …]
|
D | AvrcpControllerStateMachineTest.java | 47 import org.junit.Assert; 106 Assert.assertNotNull(Looper.myLooper()); in setUp() 146 Assert.assertFalse(mAvrcpStateMachine.isActive()); in tearDown() 166 Assert.assertEquals(mTestDevice, mIntentArgument.getValue().getParcelableExtra( in testDisconnect() 168 Assert.assertEquals(BluetoothAvrcpController.ACTION_CONNECTION_STATE_CHANGED, in testDisconnect() 170 Assert.assertEquals(BluetoothProfile.STATE_DISCONNECTED, in testDisconnect() 172 Assert.assertThat(mAvrcpStateMachine.getCurrentState(), in testDisconnect() 174 Assert.assertEquals(mAvrcpStateMachine.getState(), BluetoothProfile.STATE_DISCONNECTED); in testDisconnect() 178 Assert.assertEquals(PlaybackStateCompat.STATE_ERROR, in testDisconnect() 190 Assert.assertNotNull(transportControls); in testControlOnly() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/ |
D | HearingAidServiceTest.java | 45 import org.junit.Assert; 141 Assert.assertNotNull(mService); in startService() 147 Assert.assertNull(mService); in stopService() 157 Assert.assertNotNull(device); in onReceive() 159 Assert.assertNotNull(queue); in onReceive() 162 Assert.fail("Cannot add Intent to the Connection State queue: " in onReceive() 172 Assert.assertNotNull(intent); in verifyConnectionStateIntent() 173 Assert.assertEquals(BluetoothHearingAid.ACTION_CONNECTION_STATE_CHANGED, in verifyConnectionStateIntent() 175 Assert.assertEquals(device, intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE)); in verifyConnectionStateIntent() 176 Assert.assertEquals(newState, intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1)); in verifyConnectionStateIntent() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/ |
D | RemoteDevicesTest.java | 23 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 …]
|
D | AdapterServiceTest.java | 52 import org.junit.Assert; 107 Assert.assertNotNull(Looper.myLooper()); in setupClass() 113 Assert.assertNotNull(adapterConfig); in setupClass() 114 Assert.assertNotNull("metrics salt is null: " + adapterConfig.toString(), in setupClass() 123 Assert.assertNotNull(Looper.myLooper()); in setUp() 173 Assert.assertNotNull(mAdapterConfig); in setUp() 193 Assert.assertFalse(mAdapterService.getState() == BluetoothAdapter.STATE_ON); in doEnable() 232 Assert.assertTrue(scanMode == BluetoothAdapter.SCAN_MODE_CONNECTABLE in doEnable() 234 Assert.assertTrue(mAdapterService.getState() == BluetoothAdapter.STATE_ON); in doEnable() 238 Assert.assertTrue(mAdapterService.getState() == BluetoothAdapter.STATE_ON); in doDisable() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/ |
D | A2dpServiceTest.java | 46 import org.junit.Assert; 139 Assert.assertNotNull(mA2dpService); in startService() 145 Assert.assertNull(mA2dpService); in stopService() 155 Assert.fail("Cannot add Intent to the Connection State queue: " in onReceive() 163 Assert.fail("Cannot add Intent to the Audio State queue: " + e.getMessage()); in onReceive() 170 Assert.fail("Cannot add Intent to the Codec Config queue: " + e.getMessage()); in onReceive() 179 Assert.assertNotNull(intent); in verifyConnectionStateIntent() 180 Assert.assertEquals(BluetoothA2dp.ACTION_CONNECTION_STATE_CHANGED, in verifyConnectionStateIntent() 182 Assert.assertEquals(device, intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE)); in verifyConnectionStateIntent() 183 Assert.assertEquals(newState, intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1)); in verifyConnectionStateIntent() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetServiceAndStateMachineTest.java | 59 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() 222 Assert.assertNotNull(mHeadsetService); in setUp() 227 Assert.assertNotNull(mHeadsetServiceBinder); in setUp() 248 Assert.assertNull(mHeadsetService); in tearDown() 266 Assert.assertEquals(mHeadsetService, HeadsetService.getHeadsetService()); in testGetHeadsetService() [all …]
|
D | HeadsetServiceTest.java | 45 import org.junit.Assert; 136 Assert.assertNotNull(mCurrentDevice); in setUp() 147 Assert.assertNotNull(mHeadsetService); in setUp() 151 Assert.assertNotNull(mHeadsetServiceBinder); in setUp() 162 Assert.assertNull(mHeadsetService); in tearDown() 177 Assert.assertEquals(mHeadsetService, HeadsetService.getHeadsetService()); in testGetHeadsetService() 180 Assert.assertEquals(BluetoothProfile.STATE_DISCONNECTED, in testGetHeadsetService() 182 Assert.assertEquals(BluetoothHeadset.STATE_AUDIO_DISCONNECTED, in testGetHeadsetService() 238 Assert.assertTrue(mHeadsetService.connect(mCurrentDevice)); in testConnectDevice_connectDeviceBelowLimit() 247 Assert.assertEquals(BluetoothProfile.STATE_CONNECTING, in testConnectDevice_connectDeviceBelowLimit() [all …]
|
D | HeadsetTestUtils.java | 26 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/ |
D | DatabaseManagerTest.java | 19 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/ |
D | HidDeviceTest.java | 44 import org.junit.Assert; 108 Assert.assertNotNull(Looper.myLooper()); in setUp() 122 Assert.assertNotNull(mHidDeviceService); in setUp() 131 Assert.assertEquals(nativeInterface, mHidDeviceNativeInterface); in setUp() 152 Assert.assertNull(mHidDeviceService); in tearDown() 169 Assert.fail("Cannot add Intent to the queue"); in onReceive() 177 Assert.assertNotNull(intent); in waitForIntent() 180 Assert.fail("Cannot obtain an Intent from the queue"); in waitForIntent() 188 Assert.assertNotNull(intent); in verifyConnectionStateIntent() 189 Assert.assertEquals(BluetoothHidDevice.ACTION_CONNECTION_STATE_CHANGED, intent.getAction()); in verifyConnectionStateIntent() [all …]
|
/packages/apps/KeyChain/robotests/src/com/android/keychain/internal/ |
D | GrantsDatabaseTest.java | 27 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/ |
D | BugleDatabaseOperations.java | 43 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/ |
D | NewVoicemailMediaPlayerView.java | 43 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 …]
|
D | NewVoicemailAdapter.java | 43 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/ |
D | PhoneLookupInfoConsolidator.java | 20 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/ |
D | AliasLoaderTest.java | 32 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/ |
D | MediaPlayerWrapperTest.java | 33 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/ |
D | ProtoParsers.java | 23 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 …]
|