Home
last modified time | relevance | path

Searched refs:bundle (Results 1 – 25 of 149) sorted by relevance

123456

/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DImeEvent.java119 final Bundle bundle = new Bundle(); in toBundle() local
120 bundle.putString("mEventName", mEventName); in toBundle()
121 bundle.putInt("mNestLevel", mNestLevel); in toBundle()
122 bundle.putString("mThreadName", mThreadName); in toBundle()
123 bundle.putInt("mThreadId", mThreadId); in toBundle()
124 bundle.putBoolean("mIsMainThread", mIsMainThread); in toBundle()
125 bundle.putLong("mEnterTimestamp", mEnterTimestamp); in toBundle()
126 bundle.putLong("mExitTimestamp", mExitTimestamp); in toBundle()
127 bundle.putLong("mEnterWallTime", mEnterWallTime); in toBundle()
128 bundle.putLong("mExitWallTime", mExitWallTime); in toBundle()
[all …]
DImeCommand.java45 private ImeCommand(@NonNull Bundle bundle) { in ImeCommand() argument
46 mName = bundle.getString(NAME_KEY); in ImeCommand()
47 mId = bundle.getLong(ID_KEY); in ImeCommand()
48 mDispatchToMainThread = bundle.getBoolean(DISPATCH_TO_MAIN_THREAD_KEY); in ImeCommand()
49 mExtras = bundle.getParcelable(EXTRA_KEY); in ImeCommand()
52 static ImeCommand fromBundle(@NonNull Bundle bundle) { in fromBundle() argument
53 return new ImeCommand(bundle); in fromBundle()
57 final Bundle bundle = new Bundle(); in toBundle() local
58 bundle.putString(NAME_KEY, mName); in toBundle()
59 bundle.putLong(ID_KEY, mId); in toBundle()
[all …]
DImeState.java54 final Bundle bundle = new Bundle(); in toBundle() local
55 bundle.putBoolean("mHasInputBinding", mHasInputBinding); in toBundle()
56 bundle.putBoolean("mHasDummyInputConnection", mHasDummyInputConnection); in toBundle()
57 return bundle; in toBundle()
61 static ImeState fromBundle(@Nullable Bundle bundle) { in fromBundle() argument
62 if (bundle == null) { in fromBundle()
65 final boolean hasInputBinding = bundle.getBoolean("mHasInputBinding"); in fromBundle()
66 final boolean hasDummyInputConnection = bundle.getBoolean("mHasDummyInputConnection"); in fromBundle()
DImeLayoutInfo.java141 void writeToBundle(@NonNull Bundle bundle) { in writeToBundle() argument
142 bundle.putParcelable(NEW_LAYOUT_KEY, mNewLayout); in writeToBundle()
143 bundle.putParcelable(OLD_LAYOUT_KEY, mOldLayout); in writeToBundle()
144 bundle.putParcelable(VIEW_ORIGIN_ON_SCREEN_KEY, mViewOriginOnScreen); in writeToBundle()
145 bundle.putParcelable(DISPLAY_SIZE_KEY, mDisplaySize); in writeToBundle()
146 bundle.putParcelable(SYSTEM_WINDOW_INSET_KEY, mSystemWindowInset); in writeToBundle()
147 bundle.putParcelable(STABLE_INSET_KEY, mStableInset); in writeToBundle()
150 static ImeLayoutInfo readFromBundle(@NonNull Bundle bundle) { in readFromBundle() argument
151 final Rect newLayout = bundle.getParcelable(NEW_LAYOUT_KEY); in readFromBundle()
152 final Rect oldLayout = bundle.getParcelable(OLD_LAYOUT_KEY); in readFromBundle()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DMediaMetricsTest.java52 final Bundle bundle = item.toBundle(); in testBasicItem() local
54 assertEquals(1, bundle.getInt("int")); in testBasicItem()
55 assertEquals(2, bundle.getLong("long")); in testBasicItem()
56 assertEquals("ABCD", bundle.getString("string")); in testBasicItem()
57 assertEquals(3.1, bundle.getDouble("double"), 1e-6 /* delta */); in testBasicItem()
59 assertEquals("Key", bundle.getString(MediaMetrics.Item.BUNDLE_KEY)); in testBasicItem()
60 assertEquals(-1, bundle.getInt(MediaMetrics.Item.BUNDLE_PID)); // default PID in testBasicItem()
61 assertEquals(-1, bundle.getInt(MediaMetrics.Item.BUNDLE_UID)); // default UID in testBasicItem()
62 assertEquals(0, bundle.getChar(MediaMetrics.Item.BUNDLE_VERSION)); in testBasicItem()
63 assertEquals(key.length() + 1, bundle.getChar(MediaMetrics.Item.BUNDLE_KEY_SIZE)); in testBasicItem()
[all …]
/cts/tests/tests/os/src/android/os/cts/
DPersistableBundleTest.java30 PersistableBundle bundle = new PersistableBundle(); in testWriteToStreamAndReadFromStream() local
31 bundle.putBoolean("boolean", true); in testWriteToStreamAndReadFromStream()
32 bundle.putBooleanArray("boolean_array", new boolean[] {false}); in testWriteToStreamAndReadFromStream()
33 bundle.putDouble("double", 1.23); in testWriteToStreamAndReadFromStream()
34 bundle.putDoubleArray("double_array", new double[] {2.34, 3.45}); in testWriteToStreamAndReadFromStream()
35 bundle.putInt("int", 1); in testWriteToStreamAndReadFromStream()
36 bundle.putIntArray("int_array", new int[] {2}); in testWriteToStreamAndReadFromStream()
37 bundle.putLong("long", 12345L); in testWriteToStreamAndReadFromStream()
38 bundle.putLongArray("long_array", new long[] {1234567L, 2345678L}); in testWriteToStreamAndReadFromStream()
39 bundle.putString("string", "abc123"); in testWriteToStreamAndReadFromStream()
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DBlockedNumberService.java68 Bundle bundle; in onHandleIntent() local
72 bundle = insertBlockedNumber(intent.getStringExtra(PHONE_NUMBER_EXTRA)); in onHandleIntent()
75 bundle = deleteBlockedNumber(Uri.parse(intent.getStringExtra(URI_EXTRA))); in onHandleIntent()
78 bundle = new Bundle(); in onHandleIntent()
82 receiver.send(0, bundle); in onHandleIntent()
92 Bundle bundle = new Bundle(); in insertBlockedNumber() local
93 bundle.putString(URI_EXTRA, uri.toString()); in insertBlockedNumber()
99 bundle.putBoolean(FAIL_EXTRA, true); in insertBlockedNumber()
103 bundle.putBoolean(FAIL_EXTRA, true); in insertBlockedNumber()
105 return bundle; in insertBlockedNumber()
[all …]
DBroadcastUtils.java36 public static final String toBundleString(Bundle bundle) { in toBundleString() argument
37 if (bundle == null) { in toBundleString()
41 if (bundle != null) { in toBundleString()
43 for (String s : bundle.keySet()) { in toBundleString()
44 buf.append("(" + s + " = " + bundle.get(s) + "), "); in toBundleString()
/cts/tests/tests/assist/src/android/assist/cts/
DScreenshotTest.java50 Bundle bundle = new Bundle(); in testRedScreenshot() local
51 bundle.putInt(Utils.SCREENSHOT_COLOR_KEY, Color.RED); in testRedScreenshot()
52 start3pApp(TEST_CASE_TYPE, bundle); in testRedScreenshot()
71 Bundle bundle = new Bundle(); in testGreenScreenshot() local
72 bundle.putInt(Utils.SCREENSHOT_COLOR_KEY, Color.GREEN); in testGreenScreenshot()
73 start3pApp(TEST_CASE_TYPE, bundle); in testGreenScreenshot()
92 Bundle bundle = new Bundle(); in testBlueScreenshot() local
93 bundle.putInt(Utils.SCREENSHOT_COLOR_KEY, Color.BLUE); in testBlueScreenshot()
94 start3pApp(TEST_CASE_TYPE, bundle); in testBlueScreenshot()
DTextViewTest.java84 Bundle bundle = new Bundle(); in scrollTestApp() local
86 bundle.putString(Utils.EXTRA_REMOTE_CALLBACK_ACTION, Utils.SCROLL_TEXTVIEW_ACTION); in scrollTestApp()
88 bundle.putString(Utils.EXTRA_REMOTE_CALLBACK_ACTION, Utils.SCROLL_SCROLLVIEW_ACTION); in scrollTestApp()
90 bundle.putInt(Utils.SCROLL_X_POSITION, scrollX); in scrollTestApp()
91 bundle.putInt(Utils.SCROLL_Y_POSITION, scrollY); in scrollTestApp()
92 m3pActivityCallback.sendResult(bundle); in scrollTestApp()
DLifecycleTest.java100 Bundle bundle = new Bundle(); in testLayerDoesNotTriggerLifecycleMethods() local
101 bundle.putString(Utils.EXTRA_REMOTE_CALLBACK_ACTION, Utils.HIDE_LIFECYCLE_ACTIVITY); in testLayerDoesNotTriggerLifecycleMethods()
102 m3pActivityCallback.sendResult(bundle); in testLayerDoesNotTriggerLifecycleMethods()
124 Bundle bundle = new Bundle(); in testNoUiLayerDoesNotTriggerLifecycleMethods() local
125 bundle.putString(Utils.EXTRA_REMOTE_CALLBACK_ACTION, Utils.HIDE_LIFECYCLE_ACTIVITY); in testNoUiLayerDoesNotTriggerLifecycleMethods()
126 m3pActivityCallback.sendResult(bundle); in testNoUiLayerDoesNotTriggerLifecycleMethods()
134 protected void onAction(Bundle bundle, String action) { in onAction() argument
151 super.onAction(bundle, action); in onAction()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DApplicationRestrictionsTest.java241 Bundle bundle = new Bundle(); in createBundle0() local
242 bundle.putString("bundle_string", "bundle_string"); in createBundle0()
243 bundle.putInt("bundle_int", 1); in createBundle0()
244 result.putBundle("bundle", bundle); in createBundle0()
251 bundleArray[0].putBundle("bundle_array_bundle", bundle); in createBundle0()
259 private void assertBundle0(Bundle bundle) { in assertBundle0() argument
260 assertEquals(8, bundle.size()); in assertBundle0()
261 assertEquals(false, bundle.getBoolean("boolean_0")); in assertBundle0()
262 assertEquals(true, bundle.getBoolean("boolean_1")); in assertBundle0()
263 assertEquals(0x7fffffff, bundle.getInt("integer")); in assertBundle0()
[all …]
/cts/tests/tests/assist/common/src/android/assist/common/
DBaseRemoteCallbackActivity.java42 Bundle bundle = new Bundle(); in notify() local
43 bundle.putString(Utils.EXTRA_REMOTE_CALLBACK_ACTION, action); in notify()
44 callback.sendResult(bundle); in notify()
66 Bundle bundle = new Bundle(); in registerReceivingCallback() local
67bundle.putString(Utils.EXTRA_REMOTE_CALLBACK_ACTION, Utils.EXTRA_REMOTE_CALLBACK_RECEIVING_ACTION); in registerReceivingCallback()
68 bundle.putParcelable(Utils.EXTRA_REMOTE_CALLBACK_RECEIVING, mRemoteCallback); in registerReceivingCallback()
69 remoteCallback.sendResult(bundle); in registerReceivingCallback()
/cts/tests/tests/security/src/android/security/cts/
DAmbiguousBundlesTest.java170 Bundle bundle = parcel.readBundle(); in test_android_CVE_2020_0082()
172 return bundle; in test_android_CVE_2020_0082()
239 Bundle bundle = new Bundle(); in test_android_CVE_2017_13310()
240 parcelledDataField.set(bundle, parcel); in test_android_CVE_2017_13310()
241 return bundle; in test_android_CVE_2017_13310()
363 Bundle bundle = new Bundle(); in test_android_CVE_2018_9339()
364 parcelledDataField.set(bundle, parcel); in test_android_CVE_2018_9339()
365 return bundle; in test_android_CVE_2018_9339()
426 Bundle bundle = new Bundle(); in test_android_CVE_2017_0806()
427 parcelledDataField.set(bundle, parcel); in test_android_CVE_2017_0806()
[all …]
DParcelableExceptionTest.java40 Bundle bundle = createBundle("java.io.FileOutputStream", filePath); in test_CVE_2017_0871() local
41 sendBundleToSystem(bundle); in test_CVE_2017_0871()
54 Bundle bundle = new Bundle(); in createBundle() local
57 parcelledDataField.set(bundle, data); in createBundle()
58 return bundle; in createBundle()
/cts/tests/tests/assist/service/src/android/assist/service/
DMainInteractionSession.java70 Bundle bundle = new Bundle(); in onCreate()
71 bundle.putString(Utils.EXTRA_REMOTE_CALLBACK_ACTION, Utils.HIDE_SESSION_COMPLETE); in onCreate()
72 mRemoteCallback.sendResult(bundle); in onCreate()
124 Bundle bundle = new Bundle(); in onShow()
125bundle.putString(Utils.EXTRA_REMOTE_CALLBACK_ACTION, Utils.BROADCAST_CONTENT_VIEW_HEIGHT); in onShow()
126 bundle.putInt(Utils.EXTRA_CONTENT_VIEW_HEIGHT, mContentView.getHeight()); in onShow()
127 bundle.putInt(Utils.EXTRA_CONTENT_VIEW_WIDTH, mContentView.getWidth()); in onShow()
128 bundle.putParcelable(Utils.EXTRA_DISPLAY_POINT, displayPoint); in onShow()
129 mRemoteCallback.sendResult(bundle); in onShow()
219 Bundle bundle = new Bundle(); in maybeBroadcastResults() local
[all …]
DMainInteractionService.java71 Bundle bundle = new Bundle(); in notify() local
72 bundle.putString(Utils.EXTRA_REMOTE_CALLBACK_ACTION, action); in notify()
73 mRemoteCallback.sendResult(bundle); in notify()
95 Bundle bundle = new Bundle(); in maybeStart() local
96 bundle.putString(Utils.TESTCASE_TYPE, in maybeStart()
98 bundle.putParcelable(Utils.EXTRA_REMOTE_CALLBACK, in maybeStart()
100 showSession(bundle, VoiceInteractionSession.SHOW_WITH_ASSIST | in maybeStart()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DProvisioningTest.java110 PersistableBundle bundle = loadBundle(mContext); in testVerifyAdminExtraBundle() local
111 assertNotNull(bundle); in testVerifyAdminExtraBundle()
112 assertEquals(ADMIN_EXTRAS_BUNDLE_VALUE_1, bundle.getString(ADMIN_EXTRAS_BUNDLE_KEY_1)); in testVerifyAdminExtraBundle()
159 private static void saveBundle(Context context, PersistableBundle bundle) { in saveBundle() argument
160 if (bundle == null) { in saveBundle()
166 .putString(ADMIN_EXTRAS_BUNDLE_KEY_1, bundle.getString(ADMIN_EXTRAS_BUNDLE_KEY_1)) in saveBundle()
172 PersistableBundle bundle = new PersistableBundle(); in loadBundle() local
173 bundle.putString(ADMIN_EXTRAS_BUNDLE_KEY_1, in loadBundle()
175 return bundle; in loadBundle()
DDummyCrossProfileViewEventActivity.java48 final Bundle bundle = getIntent().getExtras(); in onStart() local
50 (long)bundle.get(CalendarContract.EXTRA_EVENT_ID), in onStart()
51 (long)bundle.get(CalendarContract.EXTRA_EVENT_BEGIN_TIME), in onStart()
52 (long)bundle.get(CalendarContract.EXTRA_EVENT_END_TIME), in onStart()
53 (boolean)bundle.get(CalendarContract.EXTRA_EVENT_ALL_DAY), in onStart()
/cts/hostsidetests/devicepolicy/app/TransferOwnerIncomingApp/src/com/android/cts/transferowner/
DDeviceAndProfileOwnerTransferIncomingTest.java47 public void onTransferOwnershipComplete(Context context, PersistableBundle bundle) { in onTransferOwnershipComplete() argument
103 PersistableBundle bundle = mDevicePolicyManager.getTransferOwnershipBundle(); in testTransferOwnershipBundleLoaded() local
104 assertNotNull(bundle); in testTransferOwnershipBundleLoaded()
105 assertTrue(bundle.getBoolean(ARE_PARAMETERS_SAVED)); in testTransferOwnershipBundleLoaded()
110 PersistableBundle bundle = mDevicePolicyManager.getTransferOwnershipBundle(); in testTransferOwnershipEmptyBundleLoaded() local
111 assertNotNull(bundle); in testTransferOwnershipEmptyBundleLoaded()
112 assertTrue(bundle.isEmpty()); in testTransferOwnershipEmptyBundleLoaded()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DByodProvisioningTestActivity.java87 Bundle bundle = new Bundle(); in getTestTermsIntent() local
88 bundle.putString(DevicePolicyManager.EXTRA_PROVISIONING_DISCLAIMER_HEADER, in getTestTermsIntent()
90 bundle.putParcelable(DevicePolicyManager.EXTRA_PROVISIONING_DISCLAIMER_CONTENT, in getTestTermsIntent()
95 new Bundle[] { bundle }); in getTestTermsIntent()
102 PersistableBundle bundle = new PersistableBundle(); in getTestLogoIntent() local
103 bundle.putBoolean(DeviceAdminTestReceiver.KEY_BUNDLE_WIPE_IMMEDIATELY, true); in getTestLogoIntent()
108 .putExtra(DevicePolicyManager.EXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE, bundle); in getTestLogoIntent()
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DImsMmTelManagerTest.java166 PersistableBundle bundle = new PersistableBundle(); in testAdvancedCallingSetting() local
167 bundle.putBoolean(CarrierConfigManager.KEY_EDITABLE_ENHANCED_4G_LTE_BOOL, true); in testAdvancedCallingSetting()
168 bundle.putBoolean(CarrierConfigManager.KEY_HIDE_ENHANCED_4G_LTE_BOOL, false); in testAdvancedCallingSetting()
169 overrideCarrierConfig(bundle); in testAdvancedCallingSetting()
232 PersistableBundle bundle = new PersistableBundle(); in testVoWiFiSetting() local
234 bundle.putBoolean(KEY_CARRIER_VOLTE_OVERRIDE_WFC_PROVISIONING_BOOL, false); in testVoWiFiSetting()
235 bundle.putBoolean(CarrierConfigManager.KEY_CARRIER_VOLTE_PROVISIONING_REQUIRED_BOOL, false); in testVoWiFiSetting()
236 overrideCarrierConfig(bundle); in testVoWiFiSetting()
330 PersistableBundle bundle = new PersistableBundle(); in testVoWiFiModeSetting() local
331 bundle.putBoolean(KEY_EDITABLE_WFC_MODE_BOOL, true); in testVoWiFiModeSetting()
[all …]
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvTrackInfoTest.java67 final Bundle bundle = new Bundle(); in newAudioTrack_everything() local
77 .setExtra(bundle) in newAudioTrack_everything()
119 final Bundle bundle = new Bundle(); in newVideoTrack_everything() local
120 bundle.putBoolean("testTrue", true); in newVideoTrack_everything()
130 .setExtra(bundle) in newVideoTrack_everything()
151 final Bundle bundle = new Bundle(); in newSubtitleTrack_default() local
152 bundle.putBoolean("testTrue", true); in newSubtitleTrack_default()
170 final Bundle bundle = new Bundle(); in newSubtitleTrack_everything() local
171 bundle.putBoolean("testTrue", true); in newSubtitleTrack_everything()
177 .setExtra(bundle) in newSubtitleTrack_everything()
/cts/tests/app/src/android/app/cts/
DActivityManagerFgsBgStartTest.java81 Bundle bundle = new Bundle(); in testFgsLocationStartFromBG() local
82 bundle.putInt(LocalForegroundServiceLocation.EXTRA_FOREGROUND_SERVICE_TYPE, in testFgsLocationStartFromBG()
87 PACKAGE_NAME_APP1, PACKAGE_NAME_APP1, 0, bundle); in testFgsLocationStartFromBG()
103 PACKAGE_NAME_APP1, PACKAGE_NAME_APP1, 0, bundle); in testFgsLocationStartFromBG()
107 PACKAGE_NAME_APP1, PACKAGE_NAME_APP1, 0, bundle); in testFgsLocationStartFromBG()
160 Bundle bundle = new Bundle(); in testFgsLocationStartFromBGTwoProcesses() local
161 bundle.putInt(LocalForegroundServiceLocation.EXTRA_FOREGROUND_SERVICE_TYPE, in testFgsLocationStartFromBGTwoProcesses()
167 PACKAGE_NAME_APP1, PACKAGE_NAME_APP2, 0, bundle); in testFgsLocationStartFromBGTwoProcesses()
193 PACKAGE_NAME_APP1, PACKAGE_NAME_APP2, 0, bundle); in testFgsLocationStartFromBGTwoProcesses()
349 Bundle bundle = new Bundle(); in testFgsLocationStartFromBGWithBind() local
[all …]
/cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/
DAppRestrictionsDelegateTest.java130 private void assertBundle0(Bundle bundle) { in assertBundle0() argument
131 assertEquals(1, bundle.size()); in assertBundle0()
132 assertEquals("value", bundle.getString("dummyString")); in assertBundle0()
143 private void assertBundle1(Bundle bundle) { in assertBundle1() argument
144 assertEquals(1, bundle.size()); in assertBundle1()
145 assertEquals(1, bundle.getInt("dummyInt")); in assertBundle1()

123456