/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | InlinePresentationStyleUtilsTest.java | 26 import android.os.Bundle; 41 Bundle bundle1 = new Bundle(); in testBundleEquals_empty() 42 Bundle bundle2 = new Bundle(); in testBundleEquals_empty() 46 bundle1 = Bundle.EMPTY; in testBundleEquals_empty() 49 bundle2 = Bundle.EMPTY; 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() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/appsearch/external/util/ |
D | BundleUtilTest.java | 22 import android.os.Bundle; 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() 70 Bundle[] inputs = new Bundle[2]; in testDeepEquals_thorough_equal() 80 Bundle[] inputs = new Bundle[2]; in testDeepEquals_thorough_notEqual() 82 Bundle b = createThoroughBundle(); in testDeepEquals_thorough_notEqual() 94 Bundle one = new Bundle(); in testDeepEquals_nestedNotEquals() [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | BundleTest.java | 42 private Parcel getParcelledBundle(Bundle bundle) { in getParcelledBundle() 54 final Bundle source = new Bundle(); in createBundleParcel() 68 private void checkBundle(Bundle b, boolean withFd) { in checkBundle() 76 assertEquals(Bundle.FLAG_HAS_FDS | Bundle.FLAG_HAS_FDS_KNOWN, in checkBundle() 77 b.mFlags & (Bundle.FLAG_HAS_FDS | Bundle.FLAG_HAS_FDS_KNOWN)); in checkBundle() 80 assertEquals(Bundle.FLAG_HAS_FDS_KNOWN, in checkBundle() 81 b.mFlags & (Bundle.FLAG_HAS_FDS | Bundle.FLAG_HAS_FDS_KNOWN)); in checkBundle() 102 Bundle b; in testCreateFromParcel() 109 checkBundle(new Bundle(p), withFd); in testCreateFromParcel() 115 checkBundle(new Bundle(p, length), withFd); in testCreateFromParcel() [all …]
|
D | PerformanceCollectorTest.java | 52 Bundle snapshot = (Bundle)readPrivateField("mPerfSnapshot", mPerfCollector); in testBeginSnapshotNoWriter() 61 Bundle snapshot = mPerfCollector.endSnapshot(); in testEndSnapshotNoWriter() 72 Bundle measurement = (Bundle)readPrivateField("mPerfMeasurement", mPerfCollector); in testStartTimingNoWriter() 81 Bundle iteration = mPerfCollector.addIteration("timing1"); in testAddIterationNoWriter() 94 Bundle timing = mPerfCollector.stopTiming("timing4"); in testStopTimingNoWriter() 112 Bundle snapshot = (Bundle)readPrivateField("mPerfSnapshot", mPerfCollector); in testBeginSnapshot() 123 Bundle snapshot1 = mPerfCollector.endSnapshot(); in testEndSnapshot() 124 Bundle snapshot2 = writer.snapshotResults; in testEndSnapshot() 139 Bundle measurement = (Bundle)readPrivateField("mPerfMeasurement", mPerfCollector); in testStartTiming() 148 Bundle iteration = mPerfCollector.addIteration("timing5"); in testAddIteration() [all …]
|
/frameworks/base/tools/aapt/ |
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 …]
|
/frameworks/base/core/java/android/accounts/ |
D | AbstractAccountAuthenticator.java | 24 import android.os.Bundle; 156 String authTokenType, String[] features, Bundle options) in addAccount() 165 final Bundle result = AbstractAccountAuthenticator.this.addAccount( in addAccount() 187 Account account, Bundle options) throws RemoteException { in confirmCredentials() 193 final Bundle result = AbstractAccountAuthenticator.this.confirmCredentials( in confirmCredentials() 219 Bundle result = new Bundle(); in getAuthTokenLabel() 237 Account account, String authTokenType, Bundle loginOptions) in getAuthToken() 245 final Bundle result = AbstractAccountAuthenticator.this.getAuthToken( in getAuthToken() 265 String authTokenType, Bundle loginOptions) throws RemoteException { in updateCredentials() 272 final Bundle result = AbstractAccountAuthenticator.this.updateCredentials( in updateCredentials() [all …]
|
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() 884 public String bundleToResult(Bundle bundle) throws AuthenticatorException { in getAuthTokenLabel() 927 public Boolean bundleToResult(Bundle bundle) throws AuthenticatorException { 988 public Account[] bundleToResult(Bundle bundle) throws AuthenticatorException { 1027 public boolean addAccountExplicitly(Account account, String password, Bundle userdata) { 1062 public boolean addAccountExplicitly(Account account, String password, Bundle extras, 1249 public Account bundleToResult(Bundle bundle) throws AuthenticatorException { 1352 public AccountManagerFuture<Bundle> removeAccount(final Account account, [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/content/ |
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 …]
|
D | SyncOperationTest.java | 21 import android.os.Bundle; 38 Bundle mEmpty; 45 mEmpty = new Bundle(); in setUp() 54 Bundle b1 = new Bundle(); in testToKey() 55 Bundle b2 = new Bundle(); in testToKey() 111 Bundle b1 = new Bundle(); in testConversionToExtras() 147 Bundle extras = new Bundle(); in testFailedPeriodicConversion() 160 Bundle b1 = new Bundle(); in testScheduleAsEjIsInExtras()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/ |
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() 80 public static int getCompanionDeviceVersion(Bundle b) { in getCompanionDeviceVersion() 84 public static String getCompressionAlg(Bundle b) { in getCompressionAlg() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
D | TestAccountType2Authenticator.java | 25 import android.os.Bundle; 47 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() 53 public Bundle addAccount( in addAccount() 58 Bundle options) throws NetworkErrorException { in addAccount() 64 public Bundle confirmCredentials( in confirmCredentials() 67 Bundle options) throws NetworkErrorException { in confirmCredentials() 73 public Bundle getAuthToken( in getAuthToken() 77 Bundle options) throws NetworkErrorException { in getAuthToken() 89 public Bundle updateCredentials( in updateCredentials() 93 Bundle options) throws NetworkErrorException { in updateCredentials() [all …]
|
D | TestAccountType1Authenticator.java | 25 import android.os.Bundle; 47 public Bundle editProperties(AccountAuthenticatorResponse response, String accountType) { in editProperties() 48 Bundle result = new Bundle(); in editProperties() 60 public Bundle addAccount( in addAccount() 65 Bundle options) throws NetworkErrorException { in addAccount() 75 Bundle result = new Bundle(); in addAccount() 105 public Bundle confirmCredentials( in confirmCredentials() 108 Bundle options) throws NetworkErrorException { in confirmCredentials() 112 Bundle result = new Bundle(); in confirmCredentials() 144 public Bundle getAuthToken( in getAuthToken() [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
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() 155 public static Bundle bundleFor(@Nullable Parcelable value) { in bundleFor() 156 final Bundle bundle = new Bundle(); in bundleFor() 166 public static Bundle bundleFor(@Nullable ArrayList<? extends Parcelable> value) { in bundleFor() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/ |
D | BackupManagerMonitorUtilsTest.java | 33 import android.os.Bundle; 68 doThrow(new RemoteException()).when(mMonitorMock).onEvent(any(Bundle.class)); in monitorEvent_monitorOnEventThrows_returnsNull() 73 verify(mMonitorMock).onEvent(any(Bundle.class)); in monitorEvent_monitorOnEventThrows_returnsNull() 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() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/drawer/ |
D | SwitchesProviderTest.java | 36 import android.os.Bundle; 132 final Bundle switchData = mSwitchesProvider.call(METHOD_GET_SWITCH_DATA, "uri" , in getSwitchData_shouldNotReturnPrimarySwitchData() 135 final ArrayList<Bundle> dataList = switchData.getParcelableArrayList(EXTRA_SWITCH_DATA); in getSwitchData_shouldNotReturnPrimarySwitchData() 147 final Bundle switchData = mSwitchesProvider.call(METHOD_GET_SWITCH_DATA, "uri" , in getSwitchData_shouldReturnDataList() 150 final ArrayList<Bundle> dataList = switchData.getParcelableArrayList(EXTRA_SWITCH_DATA); in getSwitchData_shouldReturnDataList() 157 final Bundle extras = new Bundle(); in getSwitchDataByKey_shouldReturnData() 165 final Bundle switchData = mSwitchesProvider.call(METHOD_GET_SWITCH_DATA, "uri" , extras); in getSwitchDataByKey_shouldReturnData() 172 final Bundle extras = new Bundle(); in isChecked_shouldReturnCheckedState() 181 Bundle result = mSwitchesProvider.call(METHOD_IS_CHECKED, "uri" , extras); in isChecked_shouldReturnCheckedState() 193 final Bundle extras = new Bundle(); in getProviderIcon_noImplementInterface_shouldReturnNull() [all …]
|
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/ |
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()
|
/frameworks/base/services/backup/java/com/android/server/backup/utils/ |
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()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
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 …]
|
/frameworks/base/telecomm/java/android/telecom/ |
D | AuthenticatorService.java | 25 import android.os.Bundle; 56 public Bundle editProperties(AccountAuthenticatorResponse accountAuthenticatorResponse, in editProperties() 62 public Bundle addAccount(AccountAuthenticatorResponse accountAuthenticatorResponse, in addAccount() 63 String s, String s2, String[] strings, Bundle bundle) in addAccount() 69 public Bundle confirmCredentials(AccountAuthenticatorResponse accountAuthenticatorResponse, in confirmCredentials() 70 Account account, Bundle bundle) in confirmCredentials() 76 public Bundle getAuthToken(AccountAuthenticatorResponse accountAuthenticatorResponse, in getAuthToken() 77 Account account, String s, Bundle bundle) in getAuthToken() 88 public Bundle updateCredentials(AccountAuthenticatorResponse accountAuthenticatorResponse, in updateCredentials() 89 Account account, String s, Bundle bundle) in updateCredentials() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | InlinePresentationStyleUtils.java | 21 import android.os.Bundle; 41 public static boolean bundleEquals(@NonNull Bundle bundle1, @NonNull Bundle bundle2) { in bundleEquals() 55 final boolean equal = value1 instanceof Bundle && value2 instanceof Bundle in bundleEquals() 56 ? bundleEquals((Bundle) value1, (Bundle) value2) in bundleEquals() 68 public static void filterContentTypes(@Nullable Bundle bundle) { in filterContentTypes() 76 if (o instanceof Bundle) { in filterContentTypes() 77 filterContentTypes((Bundle) o); in filterContentTypes()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ValidateNotificationPeopleTest.java | 33 import android.os.Bundle; 56 Bundle bundle = new Bundle(); in testNoExtra() 64 Bundle bundle = new Bundle(); in testSingleString() 73 Bundle bundle = new Bundle(); in testSingleCharArray() 82 Bundle bundle = new Bundle(); in testSingleCharSequence() 90 Bundle bundle = new Bundle(); in testStringArraySingle() 99 Bundle bundle = new Bundle(); in testStringArrayMultiple() 108 Bundle bundle = new Bundle(); in testStringArrayNulls() 117 Bundle bundle = new Bundle(); in testCharSequenceArrayMultiple() 130 Bundle bundle = new Bundle(); in testMixedCharSequenceArrayList() [all …]
|
/frameworks/base/core/java/android/os/ |
D | PerformanceCollector.java | 88 public void writeEndSnapshot(Bundle results); in writeEndSnapshot() 111 public void writeStopTiming(Bundle results); in writeStopTiming() 283 private Bundle mPerfSnapshot; 284 private Bundle mPerfMeasurement; 354 public Bundle endSnapshot() { in endSnapshot() 371 mPerfMeasurement = new Bundle(); in startTiming() 393 public Bundle addIteration(String label) { in addIteration() 397 Bundle iteration = new Bundle(); in addIteration() 418 public Bundle stopTiming(String label) { in stopTiming() 463 mPerfSnapshot = new Bundle(); in startPerformanceSnapshot() [all …]
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | BridgeContentProvider.java | 31 import android.os.Bundle; 63 public Bundle call(AttributionSource attributionSource, String authority, in call() 64 String arg0, String arg1, Bundle arg2) throws RemoteException { in call() 70 public int delete(AttributionSource attributionSource, Uri arg0, Bundle arg1) in delete() 87 final Bundle bundle = new Bundle(); in getTypeAsync() 98 Bundle arg2) throws RemoteException { in insert() 121 Bundle arg3, ICancellationSignal arg4) throws RemoteException { in query() 128 Bundle arg2) throws RemoteException { in update() 147 Uri arg0, String arg1, Bundle arg2, ICancellationSignal signal) in openTypedAssetFile() 172 final Bundle bundle = new Bundle(); in canonicalizeAsync() [all …]
|
/frameworks/base/media/java/android/media/session/ |
D | ISessionController.aidl | 28 import android.os.Bundle; 39 void sendCommand(String packageName, String command, in Bundle args, in ResultReceiver cb); in sendCommand() 45 Bundle getSessionInfo(); in getSessionInfo() 54 void prepareFromMediaId(String packageName, String mediaId, in Bundle extras); in prepareFromMediaId() 55 void prepareFromSearch(String packageName, String string, in Bundle extras); in prepareFromSearch() 56 void prepareFromUri(String packageName, in Uri uri, in Bundle extras); in prepareFromUri() 58 void playFromMediaId(String packageName, String mediaId, in Bundle extras); in playFromMediaId() 59 void playFromSearch(String packageName, String string, in Bundle extras); in playFromSearch() 60 void playFromUri(String packageName, in Uri uri, in Bundle extras); in playFromUri() 71 void sendCustomAction(String packageName, String action, in Bundle args); in sendCustomAction() [all …]
|
/frameworks/base/test-mock/src/android/test/mock/ |
D | MockIContentProvider.java | 32 import android.os.Bundle; 59 Bundle extras) throws RemoteException { in delete() 72 final Bundle bundle = new Bundle(); in getTypeAsync() 81 ContentValues initialValues, Bundle extras) throws RemoteException { in insert() 105 @Nullable String[] projection, @Nullable Bundle queryArgs, in query() 117 ContentValues values, Bundle extras) throws RemoteException { in update() 122 public Bundle call(@NonNull AttributionSource attributionSource, String authority, in call() 123 String method, String request, Bundle args) throws RemoteException { in call() 139 Uri url, String mimeType, Bundle opts, ICancellationSignal signal) in openTypedAssetFile() 159 final Bundle bundle = new Bundle(); in canonicalizeAsync() [all …]
|