/cts/tests/tests/text/src/android/text/style/cts/ |
D | TtsSpanTest.java | 26 PersistableBundle bundle; field in TtsSpanTest 29 bundle = new PersistableBundle(); in setUp() 30 bundle.putString("argument.one", "value.one"); in setUp() 31 bundle.putString("argument.two", "value.two"); in setUp() 32 bundle.putLong("argument.three", 3); in setUp() 33 bundle.putLong("argument.four", 4); in setUp() 37 TtsSpan t = new TtsSpan("test.type.one", bundle); in testGetArgs() 47 TtsSpan t = new TtsSpan("test.type.two", bundle); in testGetType() 52 TtsSpan span = new TtsSpan("test.type.three", bundle); in testDescribeContents() 57 TtsSpan span = new TtsSpan("test.type.four", bundle); in testGetSpanTypeId() [all …]
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | ApplicationRestrictionsTest.java | 129 Bundle bundle = new Bundle(); in createBundle0() local 130 bundle.putString("bundle_string", "bundle_string"); in createBundle0() 131 bundle.putInt("bundle_int", 1); in createBundle0() 132 result.putBundle("bundle", bundle); in createBundle0() 139 bundleArray[0].putBundle("bundle_array_bundle", bundle); in createBundle0() 147 private void assertBundle0(Bundle bundle) { in assertBundle0() argument 148 assertEquals(8, bundle.size()); in assertBundle0() 149 assertEquals(false, bundle.getBoolean("boolean_0")); in assertBundle0() 150 assertEquals(true, bundle.getBoolean("boolean_1")); in assertBundle0() 151 assertEquals(0x7fffffff, bundle.getInt("integer")); in assertBundle0() [all …]
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
D | TvTrackInfoTest.java | 33 final Bundle bundle = new Bundle(); in testAudioTrackInfoOp() local 38 .setExtra(bundle) in testAudioTrackInfoOp() 45 assertEquals(bundle.get("testTrue"), info.getExtra().get("testTrue")); in testAudioTrackInfoOp() 58 assertEquals(bundle.get("testTrue"), infoFromParcel.getExtra().get("testTrue")); in testAudioTrackInfoOp() 67 final Bundle bundle = new Bundle(); in testVideoTrackInfoOp() local 68 bundle.putBoolean("testTrue", true); in testVideoTrackInfoOp() 74 .setExtra(bundle) in testVideoTrackInfoOp() 82 assertEquals(bundle.get("testTrue"), info.getExtra().get("testTrue")); in testVideoTrackInfoOp() 96 assertEquals(bundle.get("testTrue"), infoFromParcel.getExtra().get("testTrue")); in testVideoTrackInfoOp() 105 final Bundle bundle = new Bundle(); in testSubtitleTrackInfoOp() local [all …]
|
/cts/tests/tests/voicesettings/common/src/android/voicesettings/common/ |
D | Utils.java | 34 public static final String toBundleString(Bundle bundle) { in toBundleString() argument 35 if (bundle == null) { in toBundleString() 39 if (bundle != null) { in toBundleString() 41 for (String s : bundle.keySet()) { in toBundleString() 42 buf.append("(" + s + " = " + bundle.get(s) + "), "); in toBundleString()
|
/cts/tests/tests/alarmclock/common/src/android/alarmclock/common/ |
D | Utils.java | 38 public static final String toBundleString(Bundle bundle) { in toBundleString() argument 39 if (bundle == null) { in toBundleString() 43 if (bundle != null) { in toBundleString() 45 for (String s : bundle.keySet()) { in toBundleString() 46 buf.append("(" + s + " = " + bundle.get(s) + "), "); in toBundleString()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | MockListener.java | 99 Bundle bundle = new Bundle(); in onCreate() 100 bundle.putStringArrayList(EXTRA_PAYLOAD, mPosted); in onCreate() 101 setResultExtras(bundle); in onCreate() 105 Bundle bundle = new Bundle(); in onCreate() 106 bundle.putInt(EXTRA_INT, mDND); in onCreate() 107 setResultExtras(bundle); in onCreate() 111 Bundle bundle = new Bundle(); in onCreate() 112 bundle.putStringArrayList(EXTRA_PAYLOAD, mOrder); in onCreate() 113 setResultExtras(bundle); in onCreate() 117 Bundle bundle = new Bundle(); in onCreate() [all …]
|
/cts/tests/tests/telephony/src/android/telephony/gsm/cts/ |
D | GsmCellLocationTest.java | 31 Bundle bundle = new Bundle(); in testGsmCellLocation() local 37 gsmCellLocation.fillInNotifierBundle(bundle); in testGsmCellLocation() 38 gsmCellLocation = new GsmCellLocation(bundle); in testGsmCellLocation()
|
/cts/tests/tests/voiceinteraction/common/src/android/voiceinteraction/common/ |
D | Utils.java | 64 public static final String toBundleString(Bundle bundle) { in toBundleString() argument 65 if (bundle == null) { in toBundleString() 69 String testType = bundle.getString(TESTCASE_TYPE); in toBundleString() 73 ArrayList<String> info = bundle.getStringArrayList(TESTINFO); in toBundleString()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | ResultReceiverTest.java | 32 Bundle bundle = new Bundle(); in testResultReceiver() local 34 sender.send(resultCode, bundle); in testResultReceiver() 37 assertSame(bundle, sender.getResultData()); in testResultReceiver()
|
D | MessageTest.java | 69 Bundle bundle = mMessage.getData(); in testAccessMessageProperties() local 70 assertNotNull(bundle); in testAccessMessageProperties() 74 assertNotSame(bundle, mMessage.getData()); in testAccessMessageProperties() 159 Bundle bundle = new Bundle(); in testCopyFrom() local 160 bundle.putInt(KEY, VALUE); in testCopyFrom() 161 message.setData(bundle); in testCopyFrom() 187 Bundle bundle = new Bundle(); in testWriteToParcel() local 188 bundle.putInt(KEY, VALUE); in testWriteToParcel() 189 message.setData(bundle); in testWriteToParcel()
|
D | BundleTest.java | 166 final Bundle bundle = new Bundle(); in testGetBundle() local 167 mBundle.putBundle(KEY, bundle); in testGetBundle() 168 assertTrue(bundle.equals(mBundle.getBundle(KEY))); in testGetBundle() 170 assertBundleEquals(bundle, mBundle.getBundle(KEY)); in testGetBundle() 472 final Bundle bundle = new Bundle(); in testGetParcelable() local 473 mBundle.putParcelable(KEY, bundle); in testGetParcelable() 474 assertTrue(bundle.equals(mBundle.getParcelable(KEY))); in testGetParcelable() 476 assertBundleEquals(bundle, (Bundle) mBundle.getParcelable(KEY)); in testGetParcelable() 594 final Bundle bundle = new Bundle(); in testGetSparseParcelableArray() local 596 sparseArray.put(1006, bundle); in testGetSparseParcelableArray() [all …]
|
/cts/tests/app/src/android/app/cts/ |
D | LocalActivityManagerTestHelper.java | 153 final Bundle bundle = mLocalActivityManager.saveInstanceState(); in testSaveInstanceState() local 154 if (bundle != null) { in testSaveInstanceState() 232 final Bundle bundle = mLocalActivityManager.saveInstanceState(); in testDispatchCreate() local 233 if (bundle == null) { in testDispatchCreate() 238 if (bundle.keySet().size() != 1) { in testDispatchCreate() 243 bundle.putBundle(id, EXPECTED); in testDispatchCreate() 252 mLocalActivityManager.dispatchCreate(bundle); in testDispatchCreate()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | BluetoothChatService.java | 191 Bundle bundle = new Bundle(); in connected() local 192 bundle.putString(DEVICE_NAME, device.getName()); in connected() 193 msg.setData(bundle); in connected() 250 Bundle bundle = new Bundle(); in connectionFailed() local 251 bundle.putString(TOAST, "Unable to connect device"); in connectionFailed() 252 msg.setData(bundle); in connectionFailed() 262 Bundle bundle = new Bundle(); in connectionLost() local 263 bundle.putString(TOAST, "Device connection was lost"); in connectionLost() 264 msg.setData(bundle); in connectionLost()
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | TransitionActivity.java | 38 public void onCreate(Bundle bundle){ in onCreate() argument 39 super.onCreate(bundle); in onCreate()
|
/cts/tests/tests/assist/common/src/android/assist/common/ |
D | Utils.java | 183 public static final String toBundleString(Bundle bundle) { in toBundleString() argument 184 if (bundle == null) { in toBundleString() 188 String testType = bundle.getString(TESTCASE_TYPE); in toBundleString() 192 ArrayList<String> info = bundle.getStringArrayList(TESTINFO); in toBundleString()
|
/cts/tests/tests/animation/src/android/animation/cts/ |
D | LayoutAnimationActivity.java | 31 public void onCreate(Bundle bundle){ in onCreate() argument 32 super.onCreate(bundle); in onCreate()
|
/cts/tests/tests/assist/service/src/android/voiceinteraction/service/ |
D | MainInteractionService.java | 82 Bundle bundle = new Bundle(); in maybeStart() local 83 bundle.putString(Utils.TESTCASE_TYPE, in maybeStart() 85 showSession(bundle, VoiceInteractionSession.SHOW_WITH_ASSIST | in maybeStart()
|
/cts/tests/tests/location/src/android/location/cts/ |
D | LocationTest.java | 492 Bundle bundle = new Bundle(); in createTestLocation() local 493 bundle.putBoolean(TEST_KEY1NAME, TEST_KEY1VALUE); in createTestLocation() 494 bundle.putByte(TEST_KEY2NAME, TEST_KEY2VALUE); in createTestLocation() 495 l.setExtras(bundle); in createTestLocation() 500 private void assertTestBundle(Bundle bundle) { in assertTestBundle() argument 501 assertFalse(bundle.getBoolean(TEST_KEY1NAME)); in assertTestBundle() 502 assertEquals(TEST_KEY2VALUE, bundle.getByte(TEST_KEY2NAME)); in assertTestBundle()
|
/cts/tests/tests/telephony/src/android/telephony/cts/ |
D | SmsManagerTest.java | 390 Bundle bundle = intent.getExtras(); in onReceive() local 391 if (bundle != null) { in onReceive() 392 Object[] obj = (Object[]) bundle.get("pdus"); in onReceive() 393 String format = bundle.getString("format"); in onReceive()
|
/cts/tests/tests/app/src/android/app/cts/ |
D | ServiceTest.java | 134 private void startExpectResult(Intent service, Bundle bundle) { in startExpectResult() argument 135 bundle.putParcelable(LocalService.REPORT_OBJ_NAME, new IBinderParcelable(mStateReceiver)); in startExpectResult() 140 mContext.startService(new Intent(service).putExtras(bundle)); in startExpectResult() 143 mContext.startService(new Intent(service).putExtras(bundle)); in startExpectResult()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/ |
D | MockTvInputService.java | 366 Bundle bundle = sSelectTrackCallback.getBundle(); in onSelectTrack() local 367 if (bundle.getInt(SELECT_TRACK_TYPE) == type in onSelectTrack() 368 && bundle.getString(SELECT_TRACK_ID).equals(trackId)) { in onSelectTrack() 382 Bundle bundle = sSetCaptionEnabledCallback.getBundle(); in onSetCaptionEnabled() local 383 if (bundle.getBoolean(CAPTION_ENABLED) == enabled) { in onSetCaptionEnabled()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/ |
D | DrawActivity.java | 45 public void onCreate(Bundle bundle){ in onCreate() argument 46 super.onCreate(bundle); in onCreate()
|
/cts/tests/tests/util/src/android/util/cts/ |
D | ArrayMapTest.java | 338 Bundle bundle = new Bundle(); in testBasicArrayMap() local 350 bundle.putInt(strKey, i); in testBasicArrayMap() 356 bundle.remove(strKey); in testBasicArrayMap() 383 bundle.writeToParcel(parcel, 0); in testBasicArrayMap() 387 compareBundles(bundle, bundle2); in testBasicArrayMap() 390 dump(bundle, bundle2); in testBasicArrayMap()
|
/cts/tests/tests/database/src/android/database/cts/ |
D | CursorWrapperTest.java | 361 Bundle bundle = cursor.getExtras(); in testGetExtras() local 362 assertSame(Bundle.EMPTY, bundle); in testGetExtras() 394 Bundle bundle = cursorWrapper.respond(b); in testRespond() local 395 assertSame(Bundle.EMPTY, bundle); in testRespond()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | IntentTest.java | 1551 final Bundle bundle = new Bundle(); in testFillIn_extras() local 1552 bundle.putBoolean(TEST_EXTRA_NAME, true); in testFillIn_extras() 1553 sourceIntent.putExtras(bundle); in testFillIn_extras() 1606 Bundle bundle = mIntent.getExtras(); in testHasFileDescriptors() local 1607 assertEquals(bundle != null && bundle.hasFileDescriptors(), mIntent.hasFileDescriptors()); in testHasFileDescriptors() 1610 bundle = mIntent.getExtras(); in testHasFileDescriptors() 1611 assertEquals(bundle != null && bundle.hasFileDescriptors(), mIntent.hasFileDescriptors()); in testHasFileDescriptors() 1697 final Bundle bundle = new Bundle(); in testPutExtras2() local 1698 mIntent.putExtras(bundle); in testPutExtras2() 1701 bundle.putString(TEST_EXTRA_NAME, expected); in testPutExtras2() [all …]
|