/aosp12/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
H A D | InlinePresentationStyleUtilsTest.java | 41 Bundle bundle1 = new Bundle(); in testBundleEquals_empty() 42 Bundle bundle2 = new Bundle(); in testBundleEquals_empty() 55 Bundle bundle1 = Bundle.EMPTY; in testBundleEquals_oneIsEmpty() 56 Bundle bundle2 = new Bundle(); in testBundleEquals_oneIsEmpty() 63 Bundle bundle1 = new Bundle(); in testBundleEquals_nestedBundle_equal() 64 Bundle bundle11 = new Bundle(); in testBundleEquals_nestedBundle_equal() 68 Bundle bundle2 = new Bundle(); in testBundleEquals_nestedBundle_equal() 78 Bundle bundle1 = new Bundle(); in testBundleEquals_nestedBundle_unequal() 83 Bundle bundle2 = new Bundle(); in testBundleEquals_nestedBundle_unequal() 91 Bundle bundle1 = new Bundle(); in testBundleEquals_sameKeyDifferentType() [all …]
|
/aosp12/frameworks/base/core/tests/coretests/src/android/app/appsearch/external/util/ |
H A D | BundleUtilTest.java | 40 Bundle one = new Bundle(); in testDeepEquals_self() 47 Bundle one = new Bundle(); in testDeepEquals_simple() 50 Bundle two = new Bundle(); in testDeepEquals_simple() 59 Bundle one = new Bundle(); in testDeepEquals_keyMismatch() 62 Bundle two = new Bundle(); in testDeepEquals_keyMismatch() 94 Bundle one = new Bundle(); in testDeepEquals_nestedNotEquals() 96 Bundle two = new Bundle(); in testDeepEquals_nestedNotEquals() 106 Bundle b1 = new Bundle(); in testDeepEquals_nestedNotEquals() 110 Bundle b2 = new Bundle(); in testDeepEquals_nestedNotEquals() 137 Bundle b1 = new Bundle(); in testDeepEquals_sparseArray() [all …]
|
/aosp12/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | BundleTest.java | 54 final Bundle source = new Bundle(); in createBundleParcel() 149 Bundle bundle1 = new Bundle(); in kindofEquals_bothUnparcelled_same() 153 Bundle bundle2 = new Bundle(); in kindofEquals_bothUnparcelled_same() 162 Bundle bundle1 = new Bundle(); in kindofEquals_bothUnparcelled_different() 166 Bundle bundle2 = new Bundle(); in kindofEquals_bothUnparcelled_different() 175 Bundle bundle1 = new Bundle(); in kindofEquals_bothParcelled_same() 180 Bundle bundle2 = new Bundle(); in kindofEquals_bothParcelled_same() 192 Bundle bundle1 = new Bundle(); in kindofEquals_bothParcelled_different() 197 Bundle bundle2 = new Bundle(); in kindofEquals_bothParcelled_different() 209 Bundle bundle1 = new Bundle(); in kindofEquals_ParcelledUnparcelled_empty() [all …]
|
H A D | PerformanceCollectorTest.java | 52 Bundle snapshot = (Bundle)readPrivateField("mPerfSnapshot", mPerfCollector); in testBeginSnapshotNoWriter() 72 Bundle measurement = (Bundle)readPrivateField("mPerfMeasurement", mPerfCollector); in testStartTimingNoWriter() 112 Bundle snapshot = (Bundle)readPrivateField("mPerfSnapshot", mPerfCollector); in testBeginSnapshot() 139 Bundle measurement = (Bundle)readPrivateField("mPerfMeasurement", mPerfCollector); in testStartTiming() 181 Bundle results = writer.timingResults; in testAddMeasurementLong() 202 Bundle results = writer.timingResults; in testAddMeasurementFloat() 223 Bundle results = writer.timingResults; in testAddMeasurementString() 473 Bundle iteration = (Bundle)iterations.get(i); in verifyTimingBundle() 478 private void assertEqualsBundle(Bundle b1, Bundle b2) { in assertEqualsBundle() 494 public Bundle snapshotResults = new Bundle(); [all …]
|
/aosp12/frameworks/base/core/java/android/accounts/ |
H A D | AbstractAccountAuthenticator.java | 219 Bundle result = new Bundle(); in getAuthTokenLabel() 702 final Bundle result = new Bundle(); in getAccountRemovalAllowed() 723 Bundle result = new Bundle(); in getAccountCredentialsForCloning() 749 Bundle result = new Bundle(); in addAccountFromCredentials() 802 Bundle sessionBundle = new Bundle(); in startAddAccountSession() 806 Bundle result = new Bundle(); in startAddAccountSession() 860 Bundle result = new Bundle(); in startUpdateCredentialsSession() 909 Bundle result = new Bundle(); in finishSession() 918 Bundle result = new Bundle(); in finishSession() 928 Bundle result = new Bundle(); in finishSession() [all …]
|
H A D | AccountManager.java | 42 import android.os.Bundle; 559 public static Bundle sanitizeResult(Bundle result) { in sanitizeResult() 563 final Bundle newResult = new Bundle(result); in sanitizeResult() 1709 final Bundle optionsIn = new Bundle(); 1880 final Bundle optionsIn = new Bundle(); 1951 final Bundle optionsIn = new Bundle(); 1980 final Bundle optionsIn = new Bundle(); 2709 Bundle result = new Bundle(); 3168 final Bundle optionsIn = new Bundle(); 3252 final Bundle optionsIn = new Bundle(); [all …]
|
/aosp12/frameworks/base/tools/aapt/ |
H A D | Main.h | 31 extern int doVersion(Bundle* bundle); 32 extern int doList(Bundle* bundle); 33 extern int doDump(Bundle* bundle); 34 extern int doAdd(Bundle* bundle); 35 extern int doRemove(Bundle* bundle); 36 extern int doPackage(Bundle* bundle); 37 extern int doCrunch(Bundle* bundle); 38 extern int doSingleCrunch(Bundle* bundle); 39 extern int runInDaemonMode(Bundle* bundle); 43 extern android::status_t writeAPK(Bundle* bundle, [all …]
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/content/ |
H A D | SyncManagerTest.java | 20 import android.os.Bundle; 37 Bundle b1 = new Bundle(); in testSyncExtrasEquals_WithNull() 38 Bundle b2 = new Bundle(); in testSyncExtrasEquals_WithNull() 48 Bundle b1 = new Bundle(); in testSyncExtrasEqualsBigger_WithNull() 49 Bundle b2 = new Bundle(); in testSyncExtrasEqualsBigger_WithNull() 62 Bundle b1 = new Bundle(); in testSyncExtrasEqualsFails_WithNull() 66 Bundle b2 = new Bundle(); in testSyncExtrasEqualsFails_WithNull() 79 Bundle b1 = new Bundle(); in testSyncExtrasEqualsFails_differentValues() 80 Bundle b2 = new Bundle(); in testSyncExtrasEqualsFails_differentValues() 93 Bundle b1 = new Bundle(); in testSyncExtrasEqualsFails_differentNulls() [all …]
|
/aosp12/packages/modules/StatsD/tests/apps/statsdapp/src/com/android/server/cts/device/statsd/ |
H A D | StatsdAuthenticator.java | 26 import android.os.Bundle; 61 Bundle result = new Bundle(); in ensureTestAccount() 68 am.addAccountExplicitly(account, "password", new Bundle()); in ensureTestAccount() 96 String authTokenType, String[] requiredFeatures, Bundle options) in addAccount() 98 return new Bundle(); in addAccount() 103 return new Bundle(); in editProperties() 109 return new Bundle(); in updateCredentials() 114 Bundle options) throws NetworkErrorException { in confirmCredentials() 115 return new Bundle(); in confirmCredentials() 121 return new Bundle(); in getAuthToken() [all …]
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
H A D | TestAccountType2Authenticator.java | 25 import android.os.Bundle; 53 public Bundle addAccount( in addAccount() 58 Bundle options) throws NetworkErrorException { in addAccount() 64 public Bundle confirmCredentials( in confirmCredentials() 73 public Bundle getAuthToken( in getAuthToken() 89 public Bundle updateCredentials( in updateCredentials() 99 public Bundle hasFeatures( in hasFeatures() 108 public Bundle startAddAccountSession( in startAddAccountSession() 119 public Bundle startUpdateCredentialsSession( in startUpdateCredentialsSession() 123 Bundle options) in startUpdateCredentialsSession() [all …]
|
H A D | TestAccountType1Authenticator.java | 48 Bundle result = new Bundle(); in editProperties() 75 Bundle result = new Bundle(); in addAccount() 112 Bundle result = new Bundle(); in confirmCredentials() 152 Bundle result = new Bundle(); in getAuthToken() 207 Bundle result = new Bundle(); in updateCredentials() 241 Bundle result = new Bundle(); in hasFeatures() 280 Bundle result = new Bundle(); in startAddAccountSession() 335 Bundle result = new Bundle(); in startUpdateCredentialsSession() 386 Bundle result = new Bundle(); in finishSession() 428 Bundle result = new Bundle(); in isCredentialsUpdateSuggested() [all …]
|
/aosp12/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/ |
H A D | WearPackageArgs.java | 21 import android.os.Bundle; 51 public static String getPackageName(Bundle b) { in getPackageName() 55 public static Bundle setPackageName(Bundle b, String packageName) { in setPackageName() 60 public static Uri getAssetUri(Bundle b) { in getAssetUri() 64 public static Uri getPermUri(Bundle b) { in getPermUri() 68 public static boolean checkPerms(Bundle b) { in checkPerms() 72 public static boolean skipIfSameVersion(Bundle b) { in skipIfSameVersion() 76 public static int getCompanionSdkVersion(Bundle b) { in getCompanionSdkVersion() 84 public static String getCompressionAlg(Bundle b) { in getCompressionAlg() 88 public static int getStartId(Bundle b) { in getStartId() [all …]
|
/aosp12/frameworks/base/core/java/com/android/internal/util/ |
H A D | SyncResultReceiver.java | 20 import android.os.Bundle; 42 private Bundle mBundle; 122 public void send(int resultCode, Bundle resultData) { in send() 133 public static Bundle bundleFor(@Nullable String value) { in bundleFor() 134 final Bundle bundle = new Bundle(); in bundleFor() 144 public static Bundle bundleFor(@Nullable String[] value) { in bundleFor() 145 final Bundle bundle = new Bundle(); in bundleFor() 156 final Bundle bundle = new Bundle(); in bundleFor() 167 final Bundle bundle = new Bundle(); in bundleFor() 178 public static Bundle bundleFor(int value) { in bundleFor() [all …]
|
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/ |
H A D | SwitchesProviderTest.java | 157 final Bundle extras = new Bundle(); in getSwitchDataByKey_shouldReturnData() 172 final Bundle extras = new Bundle(); in isChecked_shouldReturnCheckedState() 193 final Bundle extras = new Bundle(); in getProviderIcon_noImplementInterface_shouldReturnNull() 208 final Bundle extras = new Bundle(); in getProviderIcon_implementInterface_shouldReturnIcon() 223 final Bundle extras = new Bundle(); in getDynamicTitle_noImplementInterface_shouldReturnNull() 238 final Bundle extras = new Bundle(); in getDynamicTitle_implementInterface_shouldReturnTitle() 254 final Bundle extras = new Bundle(); in getDynamicSummary_noImplementInterface_shouldReturnNull() 269 final Bundle extras = new Bundle(); in getDynamicSummary_implementInterface_shouldReturnSummary() 285 final Bundle extras = new Bundle(); in onCheckedChangedSuccess_shouldReturnNoError() 300 final Bundle extras = new Bundle(); in onCheckedChangedFailed_shouldReturnErrorMessage() [all …]
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/ |
H A D | BackupManagerMonitorUtilsTest.java | 33 import android.os.Bundle; 83 ArgumentCaptor<Bundle> bundleCaptor = ArgumentCaptor.forClass(Bundle.class); in monitorEvent_packageAndExtrasAreNull_fillsBundleCorrectly() 85 Bundle eventBundle = bundleCaptor.getValue(); in monitorEvent_packageAndExtrasAreNull_fillsBundleCorrectly() 96 Bundle extras = new Bundle(); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectly() 104 ArgumentCaptor<Bundle> bundleCaptor = ArgumentCaptor.forClass(Bundle.class); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectly() 106 Bundle eventBundle = bundleCaptor.getValue(); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectly() 123 Bundle extras = new Bundle(); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectlyLong() 131 ArgumentCaptor<Bundle> bundleCaptor = ArgumentCaptor.forClass(Bundle.class); in monitorEvent_packageAndExtrasAreNotNull_fillsBundleCorrectlyLong() 147 Bundle bundle = new Bundle(); in putMonitoringExtraString_bundleExists_fillsBundleCorrectly() 169 Bundle bundle = new Bundle(); in putMonitoringExtraLong_bundleExists_fillsBundleCorrectly() [all …]
|
/aosp12/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/accounts/ |
H A D | Authenticator.java | 24 import android.os.Bundle; 33 public Bundle editProperties(AccountAuthenticatorResponse r, String s) { in editProperties() 38 public Bundle addAccount(AccountAuthenticatorResponse r, String s, String s2, String[] strings, in addAccount() 39 Bundle bundle) throws NetworkErrorException { in addAccount() 40 final Bundle result = new Bundle(); in addAccount() 47 public Bundle confirmCredentials(AccountAuthenticatorResponse r, Account account, Bundle bundle) in confirmCredentials() 53 public Bundle getAuthToken(AccountAuthenticatorResponse r, Account account, String s, in getAuthToken() 54 Bundle bundle) throws NetworkErrorException { in getAuthToken() 64 public Bundle updateCredentials(AccountAuthenticatorResponse r, Account account, String s, in updateCredentials() 65 Bundle bundle) throws NetworkErrorException { in updateCredentials() [all …]
|
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/ |
H A D | ExtraSettingsLoaderTest.java | 38 import android.os.Bundle; 107 Bundle bundle = new Bundle(); in testLoadPreference_uriResources_shouldNotLoadStaticResources() 118 Map<Preference, Bundle> preferenceToBundleMap = in testLoadPreference_uriResources_shouldNotLoadStaticResources() 132 Bundle bundle1 = new Bundle(); in testLoadPreference_sortPreferences_byMetadata() 140 Bundle bundle2 = new Bundle(); in testLoadPreference_sortPreferences_byMetadata() 164 Bundle bundle1 = new Bundle(); in testLoadPreference_sortPreferences_byPackageName() 171 Bundle bundle2 = new Bundle(); in testLoadPreference_sortPreferences_byPackageName() 194 Bundle bundle1 = new Bundle(); in testLoadPreference_sortPreferences_prioritizeMetadata() 201 Bundle bundle2 = new Bundle(); in testLoadPreference_sortPreferences_prioritizeMetadata() 225 Bundle bundle = new Bundle(); in testLoadPreference_isTopLevel_topLevelMetadataSet() [all …]
|
/aosp12/packages/apps/Car/libs/car-messenger-common/src/com/android/car/messenger/common/ |
H A D | Conversation.java | 25 import android.os.Bundle; 77 private final Bundle mExtras; 107 public Bundle toBundle() { in toBundle() 108 Bundle bundle = new Bundle(); in toBundle() 265 public Bundle getExtras() { in getExtras() 479 private final Bundle mExtras = new Bundle(); 501 Bundle bundle = new Bundle(); in toBundle() 518 Bundle[] bundles = new Bundle[size]; in getBundleArrayForMessages() 771 private final Bundle mExtras = new Bundle(); 784 Bundle[] bundles = new Bundle[size]; in getBundleArrayForAction() [all …]
|
/aosp12/packages/apps/Contacts/tests/src/com/android/contacts/tests/testauth/ |
H A D | TestAuthenticator.java | 25 import android.os.Bundle; 62 public Bundle addAccount(AccountAuthenticatorResponse response, String accountType, in addAccount() 63 String authTokenType, String[] requiredFeatures, Bundle options) { in addAccount() 67 final Bundle bundle = new Bundle(); in addAccount() 85 String authTokenType, Bundle loginOptions) { in getAuthToken() 89 final Bundle bundle = new Bundle(); in getAuthToken() 98 public Bundle confirmCredentials( in confirmCredentials() 99 AccountAuthenticatorResponse response, Account account, Bundle options) { in confirmCredentials() 124 public Bundle hasFeatures( in hasFeatures() 132 final Bundle result = new Bundle(); in hasFeatures() [all …]
|
/aosp12/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/ |
H A D | BenchmarkResults.java | 18 import android.os.Bundle; 34 public Bundle getStatsToReport() { in getStatsToReport() 35 final Bundle stats = new Bundle(); in getStatsToReport() 40 public Bundle getStatsToLog() { in getStatsToLog() 41 final Bundle stats = new Bundle(); in getStatsToLog() 52 public static Bundle getFailedStatsToReport() { in getFailedStatsToReport() 53 final Bundle stats = new Bundle(); in getFailedStatsToReport() 62 public static Bundle getFailedStatsToLog() { in getFailedStatsToLog() 63 final Bundle stats = new Bundle(); in getFailedStatsToLog()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/password/ |
H A D | SetNewPasswordControllerTest.java | 42 import android.os.Bundle; 94 ArgumentCaptor<Bundle> bundleArgumentCaptor = ArgumentCaptor.forClass(Bundle.class); in launchChooseLockWithFingerprint() 114 ArgumentCaptor<Bundle> bundleArgumentCaptor = ArgumentCaptor.forClass(Bundle.class); in launchChooseLockWithFace() 129 ArgumentCaptor<Bundle> bundleArgumentCaptor = ArgumentCaptor.forClass(Bundle.class); in launchChooseLockWithoutFingerprint_noFingerprintFeature() 143 ArgumentCaptor<Bundle> bundleArgumentCaptor = ArgumentCaptor.forClass(Bundle.class); in launchChooseLockWithoutFace_no_FaceFeature() 162 ArgumentCaptor<Bundle> bundleArgumentCaptor = ArgumentCaptor.forClass(Bundle.class); in launchChooseLockWithoutFingerprint_noFingerprintSensor() 181 ArgumentCaptor<Bundle> bundleArgumentCaptor = ArgumentCaptor.forClass(Bundle.class); in launchChooseLockWithoutFace_noFaceSensor() 200 ArgumentCaptor<Bundle> bundleArgumentCaptor = ArgumentCaptor.forClass(Bundle.class); in launchChooseLockWithoutFingerprint_hasFingerprintEnrolled() 219 ArgumentCaptor<Bundle> bundleArgumentCaptor = ArgumentCaptor.forClass(Bundle.class); in launchChooseLockWithoutFace_hasFaceEnrolled() 238 ArgumentCaptor<Bundle> bundleArgumentCaptor = ArgumentCaptor.forClass(Bundle.class); in launchChooseLockWithoutFingerprint_deviceAdminDisallowFingerprintForKeyguard() [all …]
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
H A D | UserManagerServiceTest.java | 20 import android.os.Bundle; 61 Bundle bundle = createBundle(); in testWriteReadApplicationRestrictions() 89 private Bundle createBundle() { in createBundle() 90 Bundle result = new Bundle(); in createBundle() 99 Bundle bundle = new Bundle(); in createBundle() 104 Bundle[] bundleArray = new Bundle[2]; in createBundle() 105 bundleArray[0] = new Bundle(); in createBundle() 108 bundleArray[1] = new Bundle(); in createBundle() 114 private void assertBundle(Bundle bundle) { in assertBundle() 123 Bundle bundle1 = (Bundle) bundle_array[0]; in assertBundle() [all …]
|
/aosp12/frameworks/base/services/backup/java/com/android/server/backup/utils/ |
H A D | BackupManagerMonitorUtils.java | 28 import android.os.Bundle; 54 Bundle extras) { in monitorEvent() 57 Bundle bundle = new Bundle(); in monitorEvent() 91 public static Bundle putMonitoringExtra(Bundle extras, String key, String value) { in putMonitoringExtra() 93 extras = new Bundle(); in putMonitoringExtra() 108 public static Bundle putMonitoringExtra(Bundle extras, String key, long value) { in putMonitoringExtra() 110 extras = new Bundle(); in putMonitoringExtra() 125 public static Bundle putMonitoringExtra(Bundle extras, String key, boolean value) { in putMonitoringExtra() 127 extras = new Bundle(); in putMonitoringExtra()
|
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/ |
H A D | Authenticator.java | 24 import android.os.Bundle; 37 public Bundle editProperties(AccountAuthenticatorResponse r, String s) { in editProperties() 44 public Bundle addAccount(AccountAuthenticatorResponse r, String s, String s2, String[] strings, in addAccount() 45 Bundle bundle) throws NetworkErrorException { in addAccount() 53 public Bundle confirmCredentials(AccountAuthenticatorResponse r, Account account, Bundle bundle) in confirmCredentials() 61 public Bundle getAuthToken(AccountAuthenticatorResponse r, Account account, String s, in getAuthToken() 62 Bundle bundle) throws NetworkErrorException { in getAuthToken() 76 public Bundle updateCredentials(AccountAuthenticatorResponse r, Account account, String s, in updateCredentials() 77 Bundle bundle) throws NetworkErrorException { in updateCredentials() 84 public Bundle hasFeatures(AccountAuthenticatorResponse r, Account account, String[] strings) in hasFeatures() [all …]
|
/aosp12/packages/modules/ExtServices/java/tests/src/android/ext/services/autofill/ |
H A D | ExactMatchTest.java | 25 import android.os.Bundle; 32 private Bundle last4Bundle() { in last4Bundle() 33 final Bundle bundle = new Bundle(); in last4Bundle() 55 final Bundle last4 = last4Bundle(); in testCalculateScore_succeedMatchMixedCases_last4() 62 final Bundle last4 = last4Bundle(); in testCalculateScore_mismatchDifferentSizes_last4() 70 final Bundle last4 = last4Bundle(); in testCalculateScore_match() 80 final Bundle bundle = new Bundle(); in testCalculateScore_badBundle() 85 final Bundle largeBundle = new Bundle(); in testCalculateScore_badBundle() 89 final Bundle stringBundle = new Bundle(); in testCalculateScore_badBundle()
|