/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
D | ImeEvent.java | 115 final Bundle bundle = new Bundle(); in toBundle() local 116 bundle.putString("mEventName", mEventName); in toBundle() 117 bundle.putInt("mNestLevel", mNestLevel); in toBundle() 118 bundle.putString("mThreadName", mThreadName); in toBundle() 119 bundle.putInt("mThreadId", mThreadId); in toBundle() 120 bundle.putBoolean("mIsMainThread", mIsMainThread); in toBundle() 121 bundle.putLong("mEnterTimestamp", mEnterTimestamp); in toBundle() 122 bundle.putLong("mExitTimestamp", mExitTimestamp); in toBundle() 123 bundle.putLong("mEnterWallTime", mEnterWallTime); in toBundle() 124 bundle.putLong("mExitWallTime", mExitWallTime); in toBundle() [all …]
|
D | ImeCommand.java | 45 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 …]
|
D | ImeState.java | 54 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()
|
D | ImeLayoutInfo.java | 141 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/os/src/android/os/cts/ |
D | PersistableBundleTest.java | 30 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/ |
D | BlockedNumberService.java | 68 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 …]
|
D | BroadcastUtils.java | 36 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/common/device-side/util/src/com/android/compatibility/common/util/ |
D | BlockedNumberService.java | 60 Bundle bundle; in onHandleIntent() local 64 bundle = insertBlockedNumber(intent.getStringExtra(PHONE_NUMBER_EXTRA)); in onHandleIntent() 67 bundle = deleteBlockedNumber(Uri.parse(intent.getStringExtra(URI_EXTRA))); in onHandleIntent() 70 bundle = new Bundle(); in onHandleIntent() 74 receiver.send(0, bundle); in onHandleIntent() 83 Bundle bundle = new Bundle(); in insertBlockedNumber() local 84 bundle.putString(URI_EXTRA, uri.toString()); in insertBlockedNumber() 85 return bundle; in insertBlockedNumber() 92 Bundle bundle = new Bundle(); in deleteBlockedNumber() local 93 bundle.putInt(ROWS_EXTRA, rows); in deleteBlockedNumber() [all …]
|
D | BroadcastUtils.java | 36 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/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() 76 .setExtra(bundle) in testVideoTrackInfoOp() 86 assertEquals(bundle.get("testTrue"), info.getExtra().get("testTrue")); in testVideoTrackInfoOp() 102 assertEquals(bundle.get("testTrue"), infoFromParcel.getExtra().get("testTrue")); in testVideoTrackInfoOp() 111 final Bundle bundle = new Bundle(); in testSubtitleTrackInfoOp() local [all …]
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | ApplicationRestrictionsTest.java | 241 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/src/android/assist/cts/ |
D | ScreenshotTest.java | 46 Bundle bundle = new Bundle(); in testRedScreenshot() local 47 bundle.putInt(Utils.SCREENSHOT_COLOR_KEY, Color.RED); in testRedScreenshot() 48 start3pApp(TEST_CASE_TYPE, bundle); in testRedScreenshot() 66 Bundle bundle = new Bundle(); in testGreenScreenshot() local 67 bundle.putInt(Utils.SCREENSHOT_COLOR_KEY, Color.GREEN); in testGreenScreenshot() 68 start3pApp(TEST_CASE_TYPE, bundle); in testGreenScreenshot() 86 Bundle bundle = new Bundle(); in testBlueScreenshot() local 87 bundle.putInt(Utils.SCREENSHOT_COLOR_KEY, Color.BLUE); in testBlueScreenshot() 88 start3pApp(TEST_CASE_TYPE, bundle); in testBlueScreenshot()
|
D | LifecycleTest.java | 96 Bundle bundle = new Bundle(); in testLayerDoesNotTriggerLifecycleMethods() local 97 bundle.putString(Utils.EXTRA_REMOTE_CALLBACK_ACTION, Utils.HIDE_LIFECYCLE_ACTIVITY); in testLayerDoesNotTriggerLifecycleMethods() 98 m3pActivityCallback.sendResult(bundle); in testLayerDoesNotTriggerLifecycleMethods() 119 Bundle bundle = new Bundle(); in testNoUiLayerDoesNotTriggerLifecycleMethods() local 120 bundle.putString(Utils.EXTRA_REMOTE_CALLBACK_ACTION, Utils.HIDE_LIFECYCLE_ACTIVITY); in testNoUiLayerDoesNotTriggerLifecycleMethods() 121 m3pActivityCallback.sendResult(bundle); in testNoUiLayerDoesNotTriggerLifecycleMethods() 129 protected void onAction(Bundle bundle, String action) { in onAction() argument 146 super.onAction(bundle, action); in onAction()
|
D | TextViewTest.java | 82 Bundle bundle = new Bundle(); in scrollTestApp() local 84 bundle.putString(Utils.EXTRA_REMOTE_CALLBACK_ACTION, Utils.SCROLL_TEXTVIEW_ACTION); in scrollTestApp() 86 bundle.putString(Utils.EXTRA_REMOTE_CALLBACK_ACTION, Utils.SCROLL_SCROLLVIEW_ACTION); in scrollTestApp() 88 bundle.putInt(Utils.SCROLL_X_POSITION, scrollX); in scrollTestApp() 89 bundle.putInt(Utils.SCROLL_Y_POSITION, scrollY); in scrollTestApp() 90 m3pActivityCallback.sendResult(bundle); in scrollTestApp()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | AmbiguousBundlesTest.java | 100 Bundle bundle = new Bundle(); in test_android_CVE_2017_13310() 101 parcelledDataField.set(bundle, parcel); in test_android_CVE_2017_13310() 102 return bundle; in test_android_CVE_2017_13310() 224 Bundle bundle = new Bundle(); in test_android_CVE_2018_9339() 225 parcelledDataField.set(bundle, parcel); in test_android_CVE_2018_9339() 226 return bundle; in test_android_CVE_2018_9339() 287 Bundle bundle = new Bundle(); in test_android_CVE_2017_0806() 288 parcelledDataField.set(bundle, parcel); in test_android_CVE_2017_0806() 289 return bundle; in test_android_CVE_2017_0806() 381 Bundle bundle = new Bundle(); in test_android_CVE_2017_13311() [all …]
|
D | ParcelableExceptionTest.java | 40 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/common/src/android/assist/common/ |
D | BaseRemoteCallbackActivity.java | 42 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 67 …bundle.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/framework/base/windowmanager/src/android/server/wm/lifecycle/ |
D | ActivityLifecycleFreeformTests.java | 71 final Bundle bundle = launchOptions.toBundle(); in testLaunchInFreeform() local 76 mTargetContext.startActivity(firstIntent, bundle); in testLaunchInFreeform() 93 final Bundle bundle = launchOptions.toBundle(); in testMultiLaunchInFreeform() local 98 mTargetContext.startActivity(firstIntent, bundle); in testMultiLaunchInFreeform() 102 mTargetContext.startActivity(secondIntent, bundle); in testMultiLaunchInFreeform() 106 mTargetContext.startActivity(thirdIntent, bundle); in testMultiLaunchInFreeform() 129 final Bundle bundle = launchOptions.toBundle(); in testLaunchOccludingInFreeform() local 134 mTargetContext.startActivity(firstIntent, bundle); in testLaunchOccludingInFreeform() 140 mTargetContext.startActivity(thirdIntent, bundle); in testLaunchOccludingInFreeform() 186 final Bundle bundle = launchOptions.toBundle(); in testLaunchTranslucentInFreeform() local [all …]
|
/cts/tests/tests/assist/service/src/android/assist/service/ |
D | MainInteractionSession.java | 70 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() 118 Bundle bundle = new Bundle(); in onShow() 119 … bundle.putString(Utils.EXTRA_REMOTE_CALLBACK_ACTION, Utils.BROADCAST_CONTENT_VIEW_HEIGHT); in onShow() 120 bundle.putInt(Utils.EXTRA_CONTENT_VIEW_HEIGHT, mContentView.getHeight()); in onShow() 121 bundle.putInt(Utils.EXTRA_CONTENT_VIEW_WIDTH, mContentView.getWidth()); in onShow() 122 bundle.putParcelable(Utils.EXTRA_DISPLAY_POINT, displayPoint); in onShow() 123 mRemoteCallback.sendResult(bundle); in onShow() 213 Bundle bundle = new Bundle(); in maybeBroadcastResults() local [all …]
|
D | MainInteractionService.java | 71 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/ |
D | ProvisioningTest.java | 110 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()
|
D | DummyCrossProfileViewEventActivity.java | 48 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/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | ByodProvisioningTestActivity.java | 87 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/hostsidetests/devicepolicy/app/TransferOwnerIncomingApp/src/com/android/cts/transferowner/ |
D | DeviceAndProfileOwnerTransferIncomingTest.java | 47 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/tests/tests/telephony/current/src/android/telephony/ims/cts/ |
D | ImsMmTelManagerTest.java | 166 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() 240 PersistableBundle bundle = new PersistableBundle(); in testVoWiFiSetting() local 242 bundle.putBoolean(KEY_CARRIER_VOLTE_OVERRIDE_WFC_PROVISIONING_BOOL, false); in testVoWiFiSetting() 243 bundle.putBoolean(CarrierConfigManager.KEY_CARRIER_VOLTE_PROVISIONING_REQUIRED_BOOL, false); in testVoWiFiSetting() 244 overrideCarrierConfig(bundle); in testVoWiFiSetting() 352 PersistableBundle bundle = new PersistableBundle(); in testVoWiFiModeSetting() local 353 bundle.putBoolean(KEY_EDITABLE_WFC_MODE_BOOL, true); in testVoWiFiModeSetting() [all …]
|