Home
last modified time | relevance | path

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

1234

/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DImeEvent.java84 final Bundle bundle = new Bundle(); in toBundle() local
85 bundle.putString("mEventName", mEventName); in toBundle()
86 bundle.putInt("mNestLevel", mNestLevel); in toBundle()
87 bundle.putString("mThreadName", mThreadName); in toBundle()
88 bundle.putInt("mThreadId", mThreadId); in toBundle()
89 bundle.putBoolean("mIsMainThread", mIsMainThread); in toBundle()
90 bundle.putLong("mEnterTimestamp", mEnterTimestamp); in toBundle()
91 bundle.putLong("mExitTimestamp", mExitTimestamp); in toBundle()
92 bundle.putLong("mEnterWallTime", mEnterWallTime); in toBundle()
93 bundle.putLong("mExitWallTime", mExitWallTime); in toBundle()
[all …]
DImeCommand.java44 private ImeCommand(@NonNull Bundle bundle) { in ImeCommand() argument
45 mName = bundle.getString(NAME_KEY); in ImeCommand()
46 mId = bundle.getLong(ID_KEY); in ImeCommand()
47 mDispatchToMainThread = bundle.getBoolean(DISPATCH_TO_MAIN_THREAD_KEY); in ImeCommand()
48 mExtras = bundle.getParcelable(EXTRA_KEY); in ImeCommand()
51 static ImeCommand fromBundle(@NonNull Bundle bundle) { in fromBundle() argument
52 return new ImeCommand(bundle); in fromBundle()
56 final Bundle bundle = new Bundle(); in toBundle() local
57 bundle.putString(NAME_KEY, mName); in toBundle()
58 bundle.putLong(ID_KEY, mId); in toBundle()
[all …]
DImeState.java53 final Bundle bundle = new Bundle(); in toBundle() local
54 bundle.putBoolean("mHasInputBinding", mHasInputBinding); in toBundle()
55 bundle.putBoolean("mHasDummyInputConnection", mHasDummyInputConnection); in toBundle()
56 return bundle; in toBundle()
60 static ImeState fromBundle(@Nullable Bundle bundle) { in fromBundle() argument
61 if (bundle == null) { in fromBundle()
64 final boolean hasInputBinding = bundle.getBoolean("mHasInputBinding"); in fromBundle()
65 final boolean hasDummyInputConnection = bundle.getBoolean("mHasDummyInputConnection"); in fromBundle()
DImeLayoutInfo.java140 void writeToBundle(@NonNull Bundle bundle) { in writeToBundle() argument
141 bundle.putParcelable(NEW_LAYOUT_KEY, mNewLayout); in writeToBundle()
142 bundle.putParcelable(OLD_LAYOUT_KEY, mOldLayout); in writeToBundle()
143 bundle.putParcelable(VIEW_ORIGIN_ON_SCREEN_KEY, mViewOriginOnScreen); in writeToBundle()
144 bundle.putParcelable(DISPLAY_SIZE_KEY, mDisplaySize); in writeToBundle()
145 bundle.putParcelable(SYSTEM_WINDOW_INSET_KEY, mSystemWindowInset); in writeToBundle()
146 bundle.putParcelable(STABLE_INSET_KEY, mStableInset); in writeToBundle()
149 static ImeLayoutInfo readFromBundle(@NonNull Bundle bundle) { in readFromBundle() argument
150 final Rect newLayout = bundle.getParcelable(NEW_LAYOUT_KEY); in readFromBundle()
151 final Rect oldLayout = bundle.getParcelable(OLD_LAYOUT_KEY); in readFromBundle()
[all …]
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvTrackInfoTest.java33 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/common/device-side/util/src/com/android/compatibility/common/util/
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/security/src/android/security/cts/
DAmbiguousBundlesTest.java38 Bundle bundle; in test_android_CVE_2017_13287() local
92 Bundle bundle = new Bundle(); in test_android_CVE_2017_13287()
93 parcelledDataField.set(bundle, parcel); in test_android_CVE_2017_13287()
94 return bundle; in test_android_CVE_2017_13287()
137 bundle = a.make(verifyMe, useMe); in test_android_CVE_2017_13287()
140 bundle = reparcel(bundle); in test_android_CVE_2017_13287()
141 String value1 = bundle.getString("cmd"); in test_android_CVE_2017_13287()
142 bundle = reparcel(bundle); in test_android_CVE_2017_13287()
143 String value2 = bundle.getString("cmd"); in test_android_CVE_2017_13287()
177 protected static void writeBundleSkippingHeaders(Parcel parcel, Bundle bundle) { in writeBundleSkippingHeaders() argument
[all …]
/cts/tests/tests/alarmclock/common/src/android/alarmclock/common/
DUtils.java40 public static final String toBundleString(Bundle bundle) { in toBundleString() argument
41 if (bundle == null) { in toBundleString()
45 if (bundle != null) { in toBundleString()
47 for (String s : bundle.keySet()) { in toBundleString()
48 buf.append("(" + s + " = " + bundle.get(s) + "), "); in toBundleString()
/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/hostsidetests/devicepolicy/app/TransferOwnerIncomingApp/src/com/android/cts/transferowner/
DDeviceAndProfileOwnerTransferIncomingTest.java42 public void onTransferOwnershipComplete(Context context, PersistableBundle bundle) { in onTransferOwnershipComplete() argument
88 PersistableBundle bundle = mDevicePolicyManager.getTransferOwnershipBundle(); in testTransferOwnershipBundleLoaded() local
89 assertNotNull(bundle); in testTransferOwnershipBundleLoaded()
90 assertTrue(bundle.getBoolean(ARE_PARAMETERS_SAVED)); in testTransferOwnershipBundleLoaded()
95 PersistableBundle bundle = mDevicePolicyManager.getTransferOwnershipBundle(); in testTransferOwnershipEmptyBundleLoaded() local
96 assertNotNull(bundle); in testTransferOwnershipEmptyBundleLoaded()
97 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/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DProvisioningTest.java107 PersistableBundle bundle = loadBundle(mContext); in testVerifyAdminExtraBundle() local
108 assertNotNull(bundle); in testVerifyAdminExtraBundle()
109 assertEquals(ADMIN_EXTRAS_BUNDLE_VALUE_1, bundle.getString(ADMIN_EXTRAS_BUNDLE_KEY_1)); in testVerifyAdminExtraBundle()
156 private static void saveBundle(Context context, PersistableBundle bundle) { in saveBundle() argument
157 if (bundle == null) { in saveBundle()
163 .putString(ADMIN_EXTRAS_BUNDLE_KEY_1, bundle.getString(ADMIN_EXTRAS_BUNDLE_KEY_1)) in saveBundle()
169 PersistableBundle bundle = new PersistableBundle(); in loadBundle() local
170 bundle.putString(ADMIN_EXTRAS_BUNDLE_KEY_1, in loadBundle()
172 return bundle; in loadBundle()
/cts/hostsidetests/incident/apps/errorsapp/src/com/android/server/cts/errors/
DExceptionActivity.java27 public void onCreate(Bundle bundle) { in onCreate() argument
28 super.onCreate(bundle); in onCreate()
DNativeActivity.java33 public void onCreate(Bundle bundle) { in onCreate() argument
34 super.onCreate(bundle); in onCreate()
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DSimpleActivity.java24 public void onCreate(Bundle bundle) { in onCreate() argument
25 super.onCreate(bundle); in onCreate()
/cts/tests/framework/base/activitymanager/app/src/android/server/am/
DLaunchEnterPipActivity.java25 protected void onCreate(Bundle bundle) { in onCreate() argument
26 super.onCreate(bundle); in onCreate()
/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()
/cts/tests/app/src/android/app/cts/
DActivityOptionsTest.java27 Bundle bundle = options.toBundle(); in testActivityOptionsBundle_makeBasic() local
29 assertNotNull(bundle); in testActivityOptionsBundle_makeBasic()
/cts/tests/tests/telephony/src/android/telephony/gsm/cts/
DGsmCellLocationTest.java31 Bundle bundle = new Bundle(); in testGsmCellLocation() local
37 gsmCellLocation.fillInNotifierBundle(bundle); in testGsmCellLocation()
38 gsmCellLocation = new GsmCellLocation(bundle); in testGsmCellLocation()
/cts/hostsidetests/incident/apps/procstatsapp/src/com/android/server/cts/procstats/
DSimpleActivity.java29 public void onCreate(Bundle bundle) { in onCreate() argument
30 super.onCreate(bundle); in onCreate()
/cts/tests/tests/voiceinteraction/common/src/android/voiceinteraction/common/
DUtils.java67 public static final String toBundleString(Bundle bundle) { in toBundleString() argument
68 if (bundle == null) { in toBundleString()
72 String testType = bundle.getString(TESTCASE_TYPE); in toBundleString()
76 ArrayList<String> info = bundle.getStringArrayList(TESTINFO); in toBundleString()
/cts/hostsidetests/content/test-apps/CtsSyncInvalidAccountAuthorityTestCases/src/android/content/sync/cts/
DStubAuthenticator.java58 Bundle bundle) throws NetworkErrorException { in addAccount() argument
67 Account account, Bundle bundle) throws NetworkErrorException { in confirmCredentials() argument
73 Account account, String type, Bundle bundle) throws NetworkErrorException { in getAuthToken() argument
84 Account account, String tokenType, Bundle bundle) in updateCredentials() argument
/cts/tests/tests/display/src/android/display/cts/
DScreenOnActivity.java30 public void onCreate(Bundle bundle) { in onCreate() argument
31 super.onCreate(bundle); in onCreate()
/cts/tests/app/app/src/android/app/stubs/
DScreenOnActivity.java30 public void onCreate(Bundle bundle) { in onCreate() argument
31 super.onCreate(bundle); in onCreate()
/cts/tests/tests/os/src/android/os/cts/
DResultReceiverTest.java32 Bundle bundle = new Bundle(); in testResultReceiver() local
34 sender.send(resultCode, bundle); in testResultReceiver()
37 assertSame(bundle, sender.getResultData()); in testResultReceiver()

1234