/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 | 40 ssize_t processAssets(Bundle* bundle, ZipFile* zip, const sp<const OutputSet>& outputSet); 41 bool processFile(Bundle* bundle, ZipFile* zip, String8 storageName, const sp<const AaptFile>& file); 42 bool okayToCompress(Bundle* bundle, const String8& pathName); 43 ssize_t processJarFiles(Bundle* bundle, ZipFile* zip); 52 status_t writeAPK(Bundle* bundle, const String8& outputFile, const sp<OutputSet>& outputSet) in writeAPK() argument 76 if (bundle->getUpdate()) { in writeAPK() 78 } else if (bundle->getForce()) { in writeAPK() 94 if (bundle->getVerbose()) { in writeAPK() 108 if (bundle->getVerbose()) { in writeAPK() 112 count = processAssets(bundle, zip, outputSet); in writeAPK() [all …]
|
D | Resource.cpp | 220 static status_t parsePackage(Bundle* bundle, const sp<AaptAssets>& assets, in parsePackage() argument 267 … bundle->setRevisionCode(String8(block.getAttributeStringValue(revisionCodeIndex, &len)).string()); in parsePackage() 280 bundle->setManifestMinSdkVersion(minSdk8); in parsePackage() 293 static status_t makeFileResources(Bundle* bundle, const sp<AaptAssets>& assets, in makeFileResources() argument 306 if (bundle->getVerbose()) { in makeFileResources() 344 PreProcessImageWorkUnit(const Bundle* bundle, const sp<AaptAssets>& assets, in PreProcessImageWorkUnit() argument 346 mBundle(bundle), mAssets(assets), mFile(file), mHasErrors(hasErrors) { in PreProcessImageWorkUnit() 364 static status_t preProcessImages(const Bundle* bundle, const sp<AaptAssets>& assets, in preProcessImages() argument 369 if (bundle->getUseCrunchCache() == false) { in preProcessImages() 374 bundle, assets, it.getFile(), &hasErrors); in preProcessImages() [all …]
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | InlinePresentationStyleUtilsTest.java | 126 Bundle bundle = new Bundle(); in testFilterContentTypes_basic() local 127 bundle.putInt("int", 11); in testFilterContentTypes_basic() 128 bundle.putString("str", "test"); in testFilterContentTypes_basic() 129 bundle.putString("null", null); in testFilterContentTypes_basic() 131 InlinePresentationStyleUtils.filterContentTypes(bundle); in testFilterContentTypes_basic() 133 assertEquals(11, bundle.getInt("int")); in testFilterContentTypes_basic() 134 assertEquals("test", bundle.getString("str")); in testFilterContentTypes_basic() 135 assertTrue(bundle.keySet().contains("null")); in testFilterContentTypes_basic() 140 Bundle bundle = new Bundle(); in testFilterContentTypes_binder_removedBinder() local 141 bundle.putInt("int", 11); in testFilterContentTypes_binder_removedBinder() [all …]
|
/frameworks/base/apex/appsearch/framework/java/external/android/app/appsearch/ |
D | AppSearchSchema.java | 55 public AppSearchSchema(@NonNull Bundle bundle) { in AppSearchSchema() argument 56 Objects.requireNonNull(bundle); in AppSearchSchema() 57 mBundle = bundle; in AppSearchSchema() 187 Bundle bundle = new Bundle(); in build() local 188 bundle.putString(AppSearchSchema.SCHEMA_TYPE_FIELD, mSchemaType); in build() 189 bundle.putParcelableArrayList(AppSearchSchema.PROPERTIES_FIELD, mPropertyBundles); in build() 191 return new AppSearchSchema(bundle); in build() 289 PropertyConfig(@NonNull Bundle bundle) { in PropertyConfig() argument 290 mBundle = Objects.requireNonNull(bundle); in PropertyConfig() 511 StringPropertyConfig(@NonNull Bundle bundle) { in StringPropertyConfig() argument [all …]
|
D | SearchResult.java | 61 public SearchResult(@NonNull Bundle bundle) { in SearchResult() argument 62 mBundle = Objects.requireNonNull(bundle); in SearchResult() 210 Bundle bundle = new Bundle(); in build() local 211 bundle.putString(PACKAGE_NAME_FIELD, mPackageName); in build() 212 bundle.putString(DATABASE_NAME_FIELD, mDatabaseName); in build() 213 bundle.putBundle(DOCUMENT_FIELD, mGenericDocument.getBundle()); in build() 214 bundle.putDouble(RANKING_SIGNAL_FIELD, mRankingSignal); in build() 215 bundle.putParcelableArrayList(MATCH_INFOS_FIELD, mMatchInfoBundles); in build() 217 return new SearchResult(bundle); in build() 320 MatchInfo(@NonNull Bundle bundle, @Nullable GenericDocument document) { in MatchInfo() argument [all …]
|
D | StorageInfo.java | 33 StorageInfo(@NonNull Bundle bundle) { in StorageInfo() argument 34 mBundle = Objects.requireNonNull(bundle); in StorageInfo() 103 Bundle bundle = new Bundle(); in build() local 104 bundle.putLong(SIZE_BYTES_FIELD, mSizeBytes); in build() 105 bundle.putInt(ALIVE_DOCUMENTS_COUNT, mAliveDocumentsCount); in build() 106 bundle.putInt(ALIVE_NAMESPACES_COUNT, mAliveNamespacesCount); in build() 107 return new StorageInfo(bundle); in build()
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ValidateNotificationPeopleTest.java | 56 Bundle bundle = new Bundle(); in testNoExtra() local 57 String[] result = ValidateNotificationPeople.getExtraPeople(bundle); in testNoExtra() 64 Bundle bundle = new Bundle(); in testSingleString() local 65 bundle.putString(Notification.EXTRA_PEOPLE_LIST, expected[0]); in testSingleString() 66 String[] result = ValidateNotificationPeople.getExtraPeople(bundle); in testSingleString() 73 Bundle bundle = new Bundle(); in testSingleCharArray() local 74 bundle.putCharArray(Notification.EXTRA_PEOPLE_LIST, expected[0].toCharArray()); in testSingleCharArray() 75 String[] result = ValidateNotificationPeople.getExtraPeople(bundle); in testSingleCharArray() 82 Bundle bundle = new Bundle(); in testSingleCharSequence() local 83 bundle.putCharSequence(Notification.EXTRA_PEOPLE_LIST, new SpannableString(expected[0])); in testSingleCharSequence() [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/services/tests/servicestests/src/com/android/server/pm/ |
D | UserManagerServiceTest.java | 61 Bundle bundle = createBundle(); in testWriteReadApplicationRestrictions() local 62 UserManagerService.writeApplicationRestrictionsLAr(bundle, atomicFile); in testWriteReadApplicationRestrictions() 66 bundle = UserManagerService.readApplicationRestrictionsLAr(atomicFile); in testWriteReadApplicationRestrictions() 67 System.out.println("readApplicationRestrictionsLocked bundle: " + bundle); in testWriteReadApplicationRestrictions() 68 assertBundle(bundle); in testWriteReadApplicationRestrictions() 99 Bundle bundle = new Bundle(); in createBundle() local 100 bundle.putString("bundle_string", "bundle_string"); in createBundle() 101 bundle.putInt("bundle_int", 1); in createBundle() 102 result.putBundle("bundle", bundle); in createBundle() 107 bundleArray[0].putBundle("bundle_array_bundle", bundle); in createBundle() [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/core/tests/coretests/src/android/app/appsearch/external/app/ |
D | SearchSpecTest.java | 43 Bundle bundle = searchSpec.getBundle(); in testGetBundle() local 44 assertThat(bundle.getInt(SearchSpec.TERM_MATCH_TYPE_FIELD)) in testGetBundle() 46 assertThat(bundle.getStringArrayList(SearchSpec.NAMESPACE_FIELD)) in testGetBundle() 48 assertThat(bundle.getStringArrayList(SearchSpec.SCHEMA_FIELD)) in testGetBundle() 50 assertThat(bundle.getStringArrayList(SearchSpec.PACKAGE_NAME_FIELD)) in testGetBundle() 52 assertThat(bundle.getInt(SearchSpec.SNIPPET_COUNT_FIELD)).isEqualTo(5); in testGetBundle() 53 assertThat(bundle.getInt(SearchSpec.SNIPPET_COUNT_PER_PROPERTY_FIELD)).isEqualTo(10); in testGetBundle() 54 assertThat(bundle.getInt(SearchSpec.MAX_SNIPPET_FIELD)).isEqualTo(15); in testGetBundle() 55 assertThat(bundle.getInt(SearchSpec.NUM_PER_PAGE_FIELD)).isEqualTo(42); in testGetBundle() 56 assertThat(bundle.getInt(SearchSpec.ORDER_FIELD)).isEqualTo(SearchSpec.ORDER_ASCENDING); in testGetBundle() [all …]
|
/frameworks/base/packages/SettingsLib/Tile/src/com/android/settingslib/drawer/ |
D | SwitchController.java | 114 final Bundle bundle = metaData.build(); in getBundle() local 120 bundle.putString(META_DATA_PREFERENCE_KEYHINT, getSwitchKey()); in getBundle() 121 bundle.putString(META_DATA_PREFERENCE_SWITCH_URI, uriString); in getBundle() 123 bundle.putString(META_DATA_PREFERENCE_ICON_URI, uriString); in getBundle() 126 bundle.putString(META_DATA_PREFERENCE_TITLE_URI, uriString); in getBundle() 129 bundle.putString(META_DATA_PREFERENCE_SUMMARY_URI, uriString); in getBundle() 131 return bundle; in getBundle() 222 final Bundle bundle = new Bundle(); in build() local 223 bundle.putString(EXTRA_CATEGORY_KEY, mCategory); in build() 226 bundle.putInt(META_DATA_KEY_ORDER, mOrder); in build() [all …]
|
D | SwitchesProvider.java | 100 final Bundle bundle = new Bundle(); in call() local 106 bundle.putParcelableList(EXTRA_SWITCH_DATA, mSwitchDataList); in call() 107 return bundle; in call() 130 bundle.putString(META_DATA_PREFERENCE_TITLE, in call() 132 return bundle; in call() 137 bundle.putString(META_DATA_PREFERENCE_SUMMARY, in call() 139 return bundle; in call() 143 bundle.putBoolean(EXTRA_SWITCH_CHECKED_STATE, controller.isChecked()); in call() 144 return bundle; in call() 153 final Bundle bundle = new Bundle(); in onCheckedChanged() local [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/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/ |
D | BitmapUtil.java | 60 Bundle bundle = new Bundle(); in hardwareBitmapToBundle() local 61 bundle.putParcelable(KEY_BUFFER, bitmap.getHardwareBuffer()); in hardwareBitmapToBundle() 62 bundle.putParcelable(KEY_COLOR_SPACE, colorSpace); in hardwareBitmapToBundle() 64 return bundle; in hardwareBitmapToBundle() 76 public static Bitmap bundleToHardwareBitmap(Bundle bundle) { in bundleToHardwareBitmap() argument 77 if (!bundle.containsKey(KEY_BUFFER) || !bundle.containsKey(KEY_COLOR_SPACE)) { in bundleToHardwareBitmap() 81 HardwareBuffer buffer = bundle.getParcelable(KEY_BUFFER); in bundleToHardwareBitmap() 82 ParcelableColorSpace colorSpace = bundle.getParcelable(KEY_COLOR_SPACE); in bundleToHardwareBitmap()
|
/frameworks/base/packages/SettingsLib/EmergencyNumber/src/com/android/settingslib/emergencynumber/ |
D | EmergencyNumberUtils.java | 114 final Bundle bundle = new Bundle(); in setEmergencyNumberOverride() local 115 bundle.putString(EMERGENCY_GESTURE_CALL_NUMBER, number); in setEmergencyNumberOverride() 117 METHOD_NAME_SET_EMERGENCY_NUMBER_OVERRIDE, null /* args */, bundle); in setEmergencyNumberOverride() 124 final Bundle bundle = new Bundle(); in setEmergencyGestureEnabled() local 125 bundle.putInt(EMERGENCY_SETTING_VALUE, in setEmergencyGestureEnabled() 128 METHOD_NAME_SET_EMERGENCY_GESTURE, null /* args */, bundle); in setEmergencyGestureEnabled() 135 final Bundle bundle = new Bundle(); in setEmergencySoundEnabled() local 136 bundle.putInt(EMERGENCY_SETTING_VALUE, in setEmergencySoundEnabled() 139 METHOD_NAME_SET_EMERGENCY_SOUND, null /* args */, bundle); in setEmergencySoundEnabled() 146 final Bundle bundle = mContext.getContentResolver().call( in getEmergencyGestureEnabled() local [all …]
|
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/partner/ |
D | ResourceEntry.java | 44 public static ResourceEntry fromBundle(@Nullable Bundle bundle) { in fromBundle() argument 45 if (bundle == null in fromBundle() 46 || !bundle.containsKey(KEY_PACKAGE_NAME) in fromBundle() 47 || !bundle.containsKey(KEY_RESOURCE_NAME) in fromBundle() 48 || !bundle.containsKey(KEY_RESOURCE_ID)) { in fromBundle() 52 String packageName = bundle.getString(KEY_PACKAGE_NAME); in fromBundle() 53 String resourceName = bundle.getString(KEY_RESOURCE_NAME); in fromBundle() 54 int resourceId = bundle.getInt(KEY_RESOURCE_ID); in fromBundle()
|
/frameworks/base/core/java/android/app/ |
D | SharedElementCallback.java | 184 Bundle bundle = new Bundle(); in onCaptureSharedElementSnapshot() local 186 bundle.putParcelable(BUNDLE_SNAPSHOT_BITMAP, bitmap); in onCaptureSharedElementSnapshot() 189 bundle.putParcelable(BUNDLE_SNAPSHOT_HARDWARE_BUFFER, hardwareBuffer); in onCaptureSharedElementSnapshot() 192 bundle.putInt(BUNDLE_SNAPSHOT_COLOR_SPACE, cs.getId()); in onCaptureSharedElementSnapshot() 195 bundle.putString(BUNDLE_SNAPSHOT_IMAGE_SCALETYPE, in onCaptureSharedElementSnapshot() 201 bundle.putFloatArray(BUNDLE_SNAPSHOT_IMAGE_MATRIX, values); in onCaptureSharedElementSnapshot() 203 return bundle; in onCaptureSharedElementSnapshot() 236 Bundle bundle = (Bundle) snapshot; in onCreateSnapshotView() local 237 HardwareBuffer buffer = bundle.getParcelable(BUNDLE_SNAPSHOT_HARDWARE_BUFFER); in onCreateSnapshotView() 238 Bitmap bitmap = bundle.getParcelable(BUNDLE_SNAPSHOT_BITMAP); in onCreateSnapshotView() [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()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | TestAccessPointBuilder.java | 72 Bundle bundle = new Bundle(); in build() local 82 bundle.putString(AccessPoint.KEY_SSID, ssid); in build() 83 bundle.putParcelable(AccessPoint.KEY_CONFIG, wifiConfig); in build() 84 bundle.putParcelable(AccessPoint.KEY_NETWORKINFO, mNetworkInfo); in build() 85 bundle.putParcelable(AccessPoint.KEY_WIFIINFO, mWifiInfo); in build() 87 bundle.putString(AccessPoint.KEY_PASSPOINT_UNIQUE_ID, mFqdn); in build() 90 bundle.putString(AccessPoint.KEY_PROVIDER_FRIENDLY_NAME, mProviderFriendlyName); in build() 93 bundle.putParcelableArray(AccessPoint.KEY_SCANRESULTS, in build() 97 bundle.putParcelableArrayList(AccessPoint.KEY_SCOREDNETWORKCACHE, mScoredNetworkCache); in build() 99 bundle.putInt(AccessPoint.KEY_SECURITY, mSecurity); in build() [all …]
|
/frameworks/base/services/backup/java/com/android/server/backup/utils/ |
D | BackupManagerMonitorUtils.java | 57 Bundle bundle = new Bundle(); in monitorEvent() local 58 bundle.putInt(BackupManagerMonitor.EXTRA_LOG_EVENT_ID, id); in monitorEvent() 59 bundle.putInt(BackupManagerMonitor.EXTRA_LOG_EVENT_CATEGORY, category); in monitorEvent() 61 bundle.putString(EXTRA_LOG_EVENT_PACKAGE_NAME, in monitorEvent() 63 bundle.putInt(BackupManagerMonitor.EXTRA_LOG_EVENT_PACKAGE_VERSION, in monitorEvent() 65 bundle.putLong(BackupManagerMonitor.EXTRA_LOG_EVENT_PACKAGE_LONG_VERSION, in monitorEvent() 69 bundle.putAll(extras); in monitorEvent() 71 monitor.onEvent(bundle); in monitorEvent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | HeadsUpStatusBarView.java | 70 Bundle bundle = new Bundle(); in onSaveInstanceState() local 71 bundle.putParcelable(HEADS_UP_STATUS_BAR_VIEW_SUPER_PARCELABLE, in onSaveInstanceState() 73 bundle.putInt(VISIBILITY, getVisibility()); in onSaveInstanceState() 74 bundle.putFloat(ALPHA, getAlpha()); in onSaveInstanceState() 76 return bundle; in onSaveInstanceState() 86 Bundle bundle = (Bundle) state; in onRestoreInstanceState() local 87 Parcelable superState = bundle.getParcelable(HEADS_UP_STATUS_BAR_VIEW_SUPER_PARCELABLE); in onRestoreInstanceState() 89 if (bundle.containsKey(VISIBILITY)) { in onRestoreInstanceState() 90 setVisibility(bundle.getInt(VISIBILITY)); in onRestoreInstanceState() 92 if (bundle.containsKey(ALPHA)) { in onRestoreInstanceState() [all …]
|
/frameworks/base/core/java/android/service/controls/templates/ |
D | ControlTemplate.java | 192 static ControlTemplate createTemplateFromBundle(@Nullable Bundle bundle) { in createTemplateFromBundle() argument 193 if (bundle == null) { in createTemplateFromBundle() 197 int type = bundle.getInt(KEY_TEMPLATE_TYPE, TYPE_ERROR); in createTemplateFromBundle() 201 return new ToggleTemplate(bundle); in createTemplateFromBundle() 203 return new RangeTemplate(bundle); in createTemplateFromBundle() 205 return new ThumbnailTemplate(bundle); in createTemplateFromBundle() 207 return new ToggleRangeTemplate(bundle); in createTemplateFromBundle() 209 return new TemperatureControlTemplate(bundle); in createTemplateFromBundle() 211 return new StatelessTemplate(bundle); in createTemplateFromBundle()
|