/frameworks/base/tools/aapt/ |
D | Main.cpp | 27 int doVersion(Bundle* bundle) in doVersion() argument 29 if (bundle->getFileSpecCount() != 0) { in doVersion() 250 int handleCommand(Bundle* bundle) in handleCommand() argument 257 switch (bundle->getCommand()) { in handleCommand() 258 case kCommandVersion: return doVersion(bundle); in handleCommand() 259 case kCommandList: return doList(bundle); in handleCommand() 260 case kCommandDump: return doDump(bundle); in handleCommand() 261 case kCommandAdd: return doAdd(bundle); in handleCommand() 262 case kCommandRemove: return doRemove(bundle); in handleCommand() 263 case kCommandPackage: return doPackage(bundle); in handleCommand() [all …]
|
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 …]
|
D | Package.cpp | 42 ssize_t processAssets(Bundle* bundle, ZipFile* zip, const sp<const OutputSet>& outputSet); 43 bool processFile(Bundle* bundle, ZipFile* zip, String8 storageName, const sp<const AaptFile>& file); 44 bool okayToCompress(Bundle* bundle, const String8& pathName); 45 ssize_t processJarFiles(Bundle* bundle, ZipFile* zip); 54 status_t writeAPK(Bundle* bundle, const String8& outputFile, const sp<OutputSet>& outputSet) in writeAPK() argument 78 if (bundle->getUpdate()) { in writeAPK() 80 } else if (bundle->getForce()) { in writeAPK() 96 if (bundle->getVerbose()) { in writeAPK() 110 if (bundle->getVerbose()) { in writeAPK() 114 count = processAssets(bundle, zip, outputSet); in writeAPK() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | DataStallRecoveryStats.java | 178 PersistableBundle bundle = report.getAdditionalInfo(); in DataStallRecoveryStats() 179 mNetworkProbesResult = bundle.getInt(KEY_NETWORK_PROBES_SUCCEEDED_BITMASK); in DataStallRecoveryStats() 180 mNetworkProbesType = bundle.getInt(KEY_NETWORK_PROBES_ATTEMPTED_BITMASK); in DataStallRecoveryStats() 181 mNetworkValidationResult = bundle.getInt(KEY_NETWORK_VALIDATION_RESULT); in DataStallRecoveryStats() 186 PersistableBundle bundle = report.getStallDetails(); in DataStallRecoveryStats() 188 bundle.getInt(KEY_TCP_METRICS_COLLECTION_PERIOD_MILLIS); in DataStallRecoveryStats() 189 mTcpPacketFailRate = bundle.getInt(KEY_TCP_PACKET_FAIL_RATE); in DataStallRecoveryStats() 190 mDnsConsecutiveTimeouts = bundle.getInt(KEY_DNS_CONSECUTIVE_TIMEOUTS); in DataStallRecoveryStats() 440 Bundle bundle = new Bundle(); in getDataStallRecoveryMetricsData() local 443 bundle.putInt("Action", action); in getDataStallRecoveryMetricsData() [all …]
|
/frameworks/libs/systemui/toruslib/torus-wallpaper-settings/src/main/java/com/google/android/torus/settings/storage/ |
D | CustomizedSharedPreferences.kt | 48 val bundle = Bundle() in jsonToBundle() constant 55 bundle.putBoolean(key, obj) in jsonToBundle() 58 bundle.putInt(key, obj) in jsonToBundle() 63 bundle.putFloat(key, obj.toFloat()) in jsonToBundle() 66 bundle.putString(key, obj as String) in jsonToBundle() 73 return bundle in jsonToBundle() 82 private fun bundleToJson(bundle: Bundle): JSONObject { in bundleToJson() 84 for (key in bundle.keySet()) { in bundleToJson() 86 jsonObj.put(key, bundle[key]) in bundleToJson() 103 private var bundle = Bundle() variable [all …]
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
D | SurfaceViewRequestUtils.java | 33 Bundle bundle = new Bundle(); in createSurfaceBundle() local 34 bundle.putBinder(KEY_HOST_TOKEN, surfaceView.getHostToken()); in createSurfaceBundle() 35 bundle.putParcelable(KEY_SURFACE_CONTROL, surfaceView.getSurfaceControl()); in createSurfaceBundle() 36 bundle.putInt(KEY_DISPLAY_ID, surfaceView.getDisplay().getDisplayId()); in createSurfaceBundle() 37 return bundle; in createSurfaceBundle() 44 public static SurfaceControl getSurfaceControl(Bundle bundle) { in getSurfaceControl() argument 45 return bundle.getParcelable(KEY_SURFACE_CONTROL); in getSurfaceControl() 51 public static @Nullable IBinder getHostToken(Bundle bundle) { in getHostToken() argument 52 return bundle.getBinder(KEY_HOST_TOKEN); in getHostToken() 58 public static int getDisplayId(Bundle bundle) { in getDisplayId() argument [all …]
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | InlinePresentationStyleUtilsTest.java | 134 Bundle bundle = new Bundle(); in testFilterContentTypes_basic() local 135 bundle.putInt("int", 11); in testFilterContentTypes_basic() 136 bundle.putString("str", "test"); in testFilterContentTypes_basic() 137 bundle.putString("null", null); in testFilterContentTypes_basic() 139 InlinePresentationStyleUtils.filterContentTypes(bundle); in testFilterContentTypes_basic() 141 assertEquals(11, bundle.getInt("int")); in testFilterContentTypes_basic() 142 assertEquals("test", bundle.getString("str")); in testFilterContentTypes_basic() 143 assertTrue(bundle.keySet().contains("null")); in testFilterContentTypes_basic() 148 Bundle bundle = new Bundle(); in testFilterContentTypes_binder_removedBinder() local 149 bundle.putInt("int", 11); in testFilterContentTypes_binder_removedBinder() [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | SyncResultReceiver.java | 134 final Bundle bundle = new Bundle(); in bundleFor() local 135 bundle.putString(EXTRA, value); in bundleFor() 136 return bundle; in bundleFor() 145 final Bundle bundle = new Bundle(); in bundleFor() local 146 bundle.putStringArray(EXTRA, value); in bundleFor() 147 return bundle; in bundleFor() 156 final Bundle bundle = new Bundle(); in bundleFor() local 157 bundle.putParcelable(EXTRA, value); in bundleFor() 158 return bundle; in bundleFor() 167 final Bundle bundle = new Bundle(); in bundleFor() local [all …]
|
/frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/ |
D | EntryController.java | 91 final Bundle bundle = metaData.build(); in getBundle() local 97 bundle.putString(META_DATA_PREFERENCE_KEYHINT, getKey()); in getBundle() 99 bundle.putString(META_DATA_PREFERENCE_ICON_URI, uriString); in getBundle() 102 bundle.putString(META_DATA_PREFERENCE_TITLE_URI, uriString); in getBundle() 105 bundle.putString(META_DATA_PREFERENCE_SUMMARY_URI, uriString); in getBundle() 108 bundle.putString(META_DATA_PREFERENCE_SWITCH_URI, uriString); in getBundle() 110 return bundle; in getBundle() 207 final Bundle bundle = new Bundle(); in build() local 208 bundle.putString(EXTRA_CATEGORY_KEY, mCategory); in build() 211 bundle.putInt(META_DATA_KEY_ORDER, mOrder); in build() [all …]
|
D | EntriesProvider.java | 116 final Bundle bundle = new Bundle(); in call() local 123 bundle.putParcelableList(EXTRA_ENTRY_DATA, mEntryDataList); in call() 124 return bundle; in call() 126 bundle.putParcelableList(EXTRA_SWITCH_DATA, mEntryDataList); in call() 127 return bundle; in call() 152 bundle.putString(META_DATA_PREFERENCE_TITLE, in call() 154 return bundle; in call() 159 bundle.putString(META_DATA_PREFERENCE_SUMMARY, in call() 161 return bundle; in call() 166 bundle.putBoolean(EXTRA_SWITCH_CHECKED_STATE, in call() [all …]
|
/frameworks/base/services/core/java/com/android/server/ondeviceintelligence/ |
D | BundleUtil.java | 64 @InferenceParams Bundle bundle) { in sanitizeInferenceParams() 65 ensureValidBundle(bundle); in sanitizeInferenceParams() 67 if (!bundle.hasFileDescriptors()) { in sanitizeInferenceParams() 71 for (String key : bundle.keySet()) { in sanitizeInferenceParams() 72 Object obj = bundle.get(key); in sanitizeInferenceParams() 79 bundle.putObject(key, null); in sanitizeInferenceParams() 110 @ResponseParams Bundle bundle) { in sanitizeResponseParams() 111 ensureValidBundle(bundle); in sanitizeResponseParams() 113 if (!bundle.hasFileDescriptors()) { in sanitizeResponseParams() 117 for (String key : bundle.keySet()) { in sanitizeResponseParams() [all …]
|
/frameworks/base/services/companion/java/com/android/server/companion/datatransfer/contextsync/ |
D | CallMetadataSyncData.java | 199 public static Call fromBundle(Bundle bundle) { in fromBundle() argument 201 if (bundle != null) { in fromBundle() 202 call.setId(bundle.getString(CrossDeviceSyncController.EXTRA_CALL_ID)); in fromBundle() 203 call.setCallerId(bundle.getString(EXTRA_CALLER_ID)); in fromBundle() 204 call.setAppIcon(bundle.getByteArray(EXTRA_APP_ICON)); in fromBundle() 205 final String facilitatorName = bundle.getString(EXTRA_FACILITATOR_NAME); in fromBundle() 206 final String facilitatorIdentifier = bundle.getString(EXTRA_FACILITATOR_ID); in fromBundle() 208 bundle.getString(EXTRA_FACILITATOR_EXT_ID); in fromBundle() 211 call.setStatus(bundle.getInt(EXTRA_STATUS)); in fromBundle() 212 call.setDirection(bundle.getInt(EXTRA_DIRECTION)); in fromBundle() [all …]
|
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/util/ |
D | FeatureResolver.java | 67 Bundle bundle; in isSplitNavLayoutFeatureEnabled() local 69 bundle = mResultMap.get(SPLIT_NAV_LAYOUT_FEATURE); in isSplitNavLayoutFeatureEnabled() 71 bundle = getFeatureBundle(SPLIT_NAV_LAYOUT_FEATURE); in isSplitNavLayoutFeatureEnabled() 72 mResultMap.put(SPLIT_NAV_LAYOUT_FEATURE, bundle); in isSplitNavLayoutFeatureEnabled() 74 boolean isSplitNavLayoutFeatureEnabled = bundle != null in isSplitNavLayoutFeatureEnabled() 75 && bundle.getBoolean(VALUE, false); in isSplitNavLayoutFeatureEnabled() 84 Bundle bundle; in getGModalVersion() local 86 bundle = mResultMap.get(G_MODAL_FEATURE); in getGModalVersion() 88 bundle = getFeatureBundle(G_MODAL_FEATURE); in getGModalVersion() 89 mResultMap.put(G_MODAL_FEATURE, bundle); in getGModalVersion() [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | BundleTest.java | 69 private Parcel getParcelledBundle(Bundle bundle) { in getParcelledBundle() argument 72 bundle.writeToParcel(p, 0); in getParcelledBundle() 377 Bundle bundle = new Bundle(); in readWriteLengthMismatch_logsWtf() local 378 bundle.putParcelable("p", parcelable); in readWriteLengthMismatch_logsWtf() 379 bundle.readFromParcel(getParcelledBundle(bundle)); in readWriteLengthMismatch_logsWtf() 380 bundle.setClassLoader(getClass().getClassLoader()); in readWriteLengthMismatch_logsWtf() 381 RuntimeException e = assertThrows(RuntimeException.class, () -> bundle.getParcelable("p")); in readWriteLengthMismatch_logsWtf() 389 Bundle bundle = new Bundle(); in getParcelable_whenThrowingAndNotDefusing_throws() local 390 bundle.putParcelable("key", new CustomParcelable(13, "Tiramisu")); in getParcelable_whenThrowingAndNotDefusing_throws() 391 bundle.readFromParcel(getParcelledBundle(bundle)); in getParcelable_whenThrowingAndNotDefusing_throws() [all …]
|
/frameworks/base/media/java/android/media/ |
D | LoudnessCodecDispatcher.java | 89 Bundle bundle = null; in dispatchLoudnessCodecParameterChange() 91 bundle = new Bundle(params.getPersistableBundle(infoKey)); in dispatchLoudnessCodecParameterChange() 98 if (bundle == null && !params.containsKey(mediaCodecKey)) { in dispatchLoudnessCodecParameterChange() 102 if (bundle == null) { in dispatchLoudnessCodecParameterChange() 104 bundle = new Bundle( in dispatchLoudnessCodecParameterChange() 108 bundle = in dispatchLoudnessCodecParameterChange() 111 bundle)); in dispatchLoudnessCodecParameterChange() 113 if (!bundle.isDefinitelyEmpty()) { in dispatchLoudnessCodecParameterChange() 115 mediaCodec.setParameters(bundle); in dispatchLoudnessCodecParameterChange() 133 private static Bundle filterLoudnessParams(Bundle bundle) { in filterLoudnessParams() argument [all …]
|
/frameworks/base/core/java/android/service/resumeonreboot/ |
D | ResumeOnRebootService.java | 132 Bundle bundle = new Bundle(); 133 bundle.putByteArray(WRAPPED_BLOB_KEY, wrappedBlob); 134 resultCallback.sendResult(bundle); 136 Bundle bundle = new Bundle(); 137 bundle.putParcelable(EXCEPTION_KEY, new ParcelableException(e)); 138 resultCallback.sendResult(bundle); 149 Bundle bundle = new Bundle(); 150 bundle.putByteArray(UNWRAPPED_BLOB_KEY, unwrappedBlob); 151 resultCallback.sendResult(bundle); 153 Bundle bundle = new Bundle(); [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserManagerServiceTest.java | 91 Bundle bundle = createBundle(); in testWriteReadApplicationRestrictions() local 92 UserManagerService.writeApplicationRestrictionsLAr(bundle, atomicFile); in testWriteReadApplicationRestrictions() 96 bundle = UserManagerService.readApplicationRestrictionsLAr(atomicFile); in testWriteReadApplicationRestrictions() 97 System.out.println("readApplicationRestrictionsLocked bundle: " + bundle); in testWriteReadApplicationRestrictions() 98 assertBundle(bundle); in testWriteReadApplicationRestrictions() 129 Bundle bundle = new Bundle(); in createBundle() local 130 bundle.putString("bundle_string", "bundle_string"); in createBundle() 131 bundle.putInt("bundle_int", 1); in createBundle() 132 result.putBundle("bundle", bundle); in createBundle() 137 bundleArray[0].putBundle("bundle_array_bundle", bundle); in createBundle() [all …]
|
/frameworks/base/services/tests/ondeviceintelligencetests/src/com/android/server/ondeviceintelligence/ |
D | InferenceInfoStoreTest.java | 49 Bundle bundle = new Bundle(); in testInferenceInfoParsesFromBundleSuccessfully() local 50 bundle.putByteArray(OnDeviceSandboxedInferenceService.INFERENCE_INFO_BUNDLE_KEY, in testInferenceInfoParsesFromBundleSuccessfully() 52 inferenceInfoStore.addInferenceInfoFromBundle(bundle); in testInferenceInfoParsesFromBundleSuccessfully() 62 PersistableBundle bundle = new PersistableBundle(); in testInferenceInfoParsesFromPersistableBundleSuccessfully() local 63 bundle.putString(OnDeviceSandboxedInferenceService.INFERENCE_INFO_BUNDLE_KEY, in testInferenceInfoParsesFromPersistableBundleSuccessfully() 65 inferenceInfoStore.addInferenceInfoFromBundle(bundle); in testInferenceInfoParsesFromPersistableBundleSuccessfully() 76 PersistableBundle bundle = new PersistableBundle(); in testEvictionAfterMaxAge() local 78 bundle.putString(OnDeviceSandboxedInferenceService.INFERENCE_INFO_BUNDLE_KEY, in testEvictionAfterMaxAge() 81 inferenceInfoStore.addInferenceInfoFromBundle(bundle); in testEvictionAfterMaxAge() 82 bundle.putString(OnDeviceSandboxedInferenceService.INFERENCE_INFO_BUNDLE_KEY, in testEvictionAfterMaxAge() [all …]
|
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/partner/ |
D | ResourceEntry.java | 43 public static ResourceEntry fromBundle(@Nullable Bundle bundle) { in fromBundle() argument 44 if (bundle == null in fromBundle() 45 || !bundle.containsKey(KEY_PACKAGE_NAME) in fromBundle() 46 || !bundle.containsKey(KEY_RESOURCE_NAME) in fromBundle() 47 || !bundle.containsKey(KEY_RESOURCE_ID)) { in fromBundle() 51 String packageName = bundle.getString(KEY_PACKAGE_NAME); in fromBundle() 52 String resourceName = bundle.getString(KEY_RESOURCE_NAME); in fromBundle() 53 int resourceId = bundle.getInt(KEY_RESOURCE_ID); in fromBundle()
|
/frameworks/base/packages/SettingsLib/EmergencyNumber/src/com/android/settingslib/emergencynumber/ |
D | EmergencyNumberUtils.java | 118 final Bundle bundle = new Bundle(); in setEmergencyNumberOverride() local 119 bundle.putString(EMERGENCY_GESTURE_CALL_NUMBER, number); in setEmergencyNumberOverride() 121 METHOD_NAME_SET_EMERGENCY_NUMBER_OVERRIDE, null /* args */, bundle); in setEmergencyNumberOverride() 128 final Bundle bundle = new Bundle(); in setEmergencyGestureEnabled() local 129 bundle.putInt(EMERGENCY_SETTING_VALUE, in setEmergencyGestureEnabled() 132 METHOD_NAME_SET_EMERGENCY_GESTURE, null /* args */, bundle); in setEmergencyGestureEnabled() 139 final Bundle bundle = new Bundle(); in setEmergencySoundEnabled() local 140 bundle.putInt(EMERGENCY_SETTING_VALUE, in setEmergencySoundEnabled() 143 METHOD_NAME_SET_EMERGENCY_SOUND, null /* args */, bundle); in setEmergencySoundEnabled() 150 final Bundle bundle = mContext.getContentResolver().call( in getEmergencyGestureEnabled() local [all …]
|
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/util/ |
D | FeatureResolverTest.java | 77 Bundle bundle = new Bundle(); in testIsSplitNavLayoutFeatureEnabled_whenReturnsTrue() local 78 bundle.putBoolean(VALUE, true); in testIsSplitNavLayoutFeatureEnabled_whenReturnsTrue() 79 doReturn(bundle).when(mContentResolver).call((Uri) any(), any(), any(), any()); in testIsSplitNavLayoutFeatureEnabled_whenReturnsTrue() 88 Bundle bundle = new Bundle(); in testIsSplitNavLayoutFeatureEnabled_whenReturnsFalse() local 89 bundle.putBoolean(VALUE, false); in testIsSplitNavLayoutFeatureEnabled_whenReturnsFalse() 90 doReturn(bundle).when(mContentResolver).call((Uri) any(), any(), any(), any()); in testIsSplitNavLayoutFeatureEnabled_whenReturnsFalse() 108 Bundle bundle = new Bundle(); in testGetGModalVersion_whenVersionNumber1() local 109 bundle.putInt(VALUE, 1); in testGetGModalVersion_whenVersionNumber1() 110 doReturn(bundle).when(mContentResolver).call((Uri) any(), any(), any(), any()); in testGetGModalVersion_whenVersionNumber1() 119 Bundle bundle = new Bundle(); in testGModalVersion_whenVersionNumber0() local [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ValidateNotificationPeopleTest.java | 75 Bundle bundle = new Bundle(); in testNoExtra() local 76 String[] result = ValidateNotificationPeople.getExtraPeople(bundle); in testNoExtra() 83 Bundle bundle = new Bundle(); in testSingleString() local 84 bundle.putString(Notification.EXTRA_PEOPLE_LIST, expected[0]); in testSingleString() 85 String[] result = ValidateNotificationPeople.getExtraPeople(bundle); in testSingleString() 92 Bundle bundle = new Bundle(); in testSingleCharArray() local 93 bundle.putCharArray(Notification.EXTRA_PEOPLE_LIST, expected[0].toCharArray()); in testSingleCharArray() 94 String[] result = ValidateNotificationPeople.getExtraPeople(bundle); in testSingleCharArray() 101 Bundle bundle = new Bundle(); in testSingleCharSequence() local 102 bundle.putCharSequence(Notification.EXTRA_PEOPLE_LIST, new SpannableString(expected[0])); in testSingleCharSequence() [all …]
|
/frameworks/base/services/core/java/com/android/server/vcn/util/ |
D | PersistableBundleUtils.java | 94 (bundle) -> { 95 Objects.requireNonNull(bundle, "PersistableBundle is null"); 96 return bundle.getInt(INTEGER_KEY); 109 (bundle) -> { 110 Objects.requireNonNull(bundle, "PersistableBundle is null"); 111 return bundle.getString(STRING_KEY); 137 public static ParcelUuid toParcelUuid(PersistableBundle bundle) { in toParcelUuid() argument 138 return ParcelUuid.fromString(bundle.getString(PARCEL_UUID_KEY)); in toParcelUuid() 214 public static byte[] toByteArray(PersistableBundle bundle) { in toByteArray() argument 215 Objects.requireNonNull(bundle, "PersistableBundle is null"); in toByteArray() [all …]
|
/frameworks/base/core/java/android/app/admin/ |
D | ProvisioningIntentHelper.java | 111 Bundle bundle = createBundleFromProperties(properties); in createProvisioningIntentFromNdefRecord() local 113 if (!containsRequiredProvisioningExtras(bundle)) { in createProvisioningIntentFromNdefRecord() 118 return createProvisioningIntentFromBundle(bundle); in createProvisioningIntentFromNdefRecord() 136 Bundle bundle = new Bundle(); in createBundleFromProperties() local 140 addPropertyToBundle(propertyName, properties, bundle); in createBundleFromProperties() 142 return bundle; in createBundleFromProperties() 146 String propertyName, Properties properties, Bundle bundle) { in addPropertyToBundle() argument 150 bundle.putParcelable(propertyName, componentName); in addPropertyToBundle() 153 bundle.putParcelable(propertyName, in addPropertyToBundle() 160 bundle.putBoolean(propertyName, in addPropertyToBundle() [all …]
|
/frameworks/base/core/java/android/service/autofill/ |
D | SavedDatasetsInfoCallbackImpl.java | 71 Bundle bundle = new Bundle(/* capacity= */ 1); in onSuccess() local 72 bundle.putInt(EXTRA_RESULT, count); in onSuccess() 73 send(0, bundle); in onSuccess() 79 Bundle bundle = new Bundle(/* capacity= */ 1); in onError() local 80 bundle.putInt(EXTRA_ERROR, error); in onError() 81 send(1, bundle); in onError() 84 private void send(int resultCode, Bundle bundle) { in send() argument 86 mReceiver.send(resultCode, bundle); in send()
|