Home
last modified time | relevance | path

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

1234567891011

/frameworks/base/tools/aapt/
DMain.cpp27 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 …]
DMain.h31 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 …]
DPackage.cpp40 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 …]
DResource.cpp220 static status_t parsePackage(Bundle* bundle, const sp<AaptAssets>& assets, in parsePackage() argument
267bundle->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 …]
DCommand.cpp123 int doList(Bundle* bundle) in doList() argument
131 if (bundle->getFileSpecCount() != 1) { in doList()
135 zipFileName = bundle->getFileSpecEntry(0); in doList()
144 if (bundle->getVerbose()) { in doList()
157 if (bundle->getVerbose()) { in doList()
183 if (bundle->getVerbose()) { in doList()
193 if (bundle->getAndroidList()) { in doList()
725 int doDump(Bundle* bundle) in doDump() argument
729 if (bundle->getFileSpecCount() < 1) { in doDump()
734 if (bundle->getFileSpecCount() < 2) { in doDump()
[all …]
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DValidateNotificationPeopleTest.java43 Bundle bundle = new Bundle(); in testNoExtra() local
44 String[] result = ValidateNotificationPeople.getExtraPeople(bundle); in testNoExtra()
51 Bundle bundle = new Bundle(); in testSingleString() local
52 bundle.putString(Notification.EXTRA_PEOPLE_LIST, expected[0]); in testSingleString()
53 String[] result = ValidateNotificationPeople.getExtraPeople(bundle); in testSingleString()
60 Bundle bundle = new Bundle(); in testSingleCharArray() local
61 bundle.putCharArray(Notification.EXTRA_PEOPLE_LIST, expected[0].toCharArray()); in testSingleCharArray()
62 String[] result = ValidateNotificationPeople.getExtraPeople(bundle); in testSingleCharArray()
69 Bundle bundle = new Bundle(); in testSingleCharSequence() local
70 bundle.putCharSequence(Notification.EXTRA_PEOPLE_LIST, new SpannableString(expected[0])); in testSingleCharSequence()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerServiceTest.java57 Bundle bundle = createBundle(); in testWriteReadApplicationRestrictions() local
58 UserManagerService.writeApplicationRestrictionsLAr(bundle, atomicFile); in testWriteReadApplicationRestrictions()
62 bundle = UserManagerService.readApplicationRestrictionsLAr(atomicFile); in testWriteReadApplicationRestrictions()
63 System.out.println("readApplicationRestrictionsLocked bundle: " + bundle); in testWriteReadApplicationRestrictions()
64 assertBundle(bundle); in testWriteReadApplicationRestrictions()
87 Bundle bundle = new Bundle(); in createBundle() local
88 bundle.putString("bundle_string", "bundle_string"); in createBundle()
89 bundle.putInt("bundle_int", 1); in createBundle()
90 result.putBundle("bundle", bundle); in createBundle()
95 bundleArray[0].putBundle("bundle_array_bundle", bundle); in createBundle()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DSyncResultReceiver.java134 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/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/partner/
DResourceEntry.java44 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/packages/SettingsLib/src/com/android/settingslib/wifi/
DTestAccessPointBuilder.java73 Bundle bundle = new Bundle(); in build() local
83 bundle.putString(AccessPoint.KEY_SSID, ssid); in build()
84 bundle.putParcelable(AccessPoint.KEY_CONFIG, wifiConfig); in build()
85 bundle.putParcelable(AccessPoint.KEY_NETWORKINFO, mNetworkInfo); in build()
86 bundle.putParcelable(AccessPoint.KEY_WIFIINFO, mWifiInfo); in build()
88 bundle.putString(AccessPoint.KEY_FQDN, mFqdn); in build()
91 bundle.putString(AccessPoint.KEY_PROVIDER_FRIENDLY_NAME, mProviderFriendlyName); in build()
94 bundle.putParcelableArray(AccessPoint.KEY_SCANRESULTS, in build()
98 bundle.putParcelableArrayList(AccessPoint.KEY_SCOREDNETWORKCACHE, mScoredNetworkCache); in build()
100 bundle.putInt(AccessPoint.KEY_SECURITY, mSecurity); in build()
[all …]
/frameworks/base/core/java/android/app/
DSharedElementCallback.java185 Bundle bundle = new Bundle(); in onCaptureSharedElementSnapshot() local
187 bundle.putParcelable(BUNDLE_SNAPSHOT_BITMAP, bitmap); in onCaptureSharedElementSnapshot()
190 bundle.putParcelable(BUNDLE_SNAPSHOT_GRAPHIC_BUFFER, graphicBuffer); in onCaptureSharedElementSnapshot()
193 bundle.putInt(BUNDLE_SNAPSHOT_COLOR_SPACE, cs.getId()); in onCaptureSharedElementSnapshot()
196 bundle.putString(BUNDLE_SNAPSHOT_IMAGE_SCALETYPE, in onCaptureSharedElementSnapshot()
202 bundle.putFloatArray(BUNDLE_SNAPSHOT_IMAGE_MATRIX, values); in onCaptureSharedElementSnapshot()
204 return bundle; in onCaptureSharedElementSnapshot()
237 Bundle bundle = (Bundle) snapshot; in onCreateSnapshotView() local
238 GraphicBuffer buffer = bundle.getParcelable(BUNDLE_SNAPSHOT_GRAPHIC_BUFFER); in onCreateSnapshotView()
239 Bitmap bitmap = bundle.getParcelable(BUNDLE_SNAPSHOT_BITMAP); in onCreateSnapshotView()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DBackupManagerMonitorUtils.java57 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/services/core/java/com/android/server/pm/
DProcessLoggingHandler.java51 Bundle bundle = msg.getData(); in handleMessage() local
52 String processName = bundle.getString("processName"); in handleMessage()
53 int uid = bundle.getInt("uid"); in handleMessage()
54 String seinfo = bundle.getString("seinfo"); in handleMessage()
55 String apkFile = bundle.getString("apkFile"); in handleMessage()
56 int pid = bundle.getInt("pid"); in handleMessage()
57 long startTimestamp = bundle.getLong("startTimestamp"); in handleMessage()
64 Bundle bundle = msg.getData(); in handleMessage() local
65 mProcessLoggingBaseApkHashes.remove(bundle.getString("apkFile")); in handleMessage()
/frameworks/base/core/java/android/speech/tts/
DTextToSpeech.java1895 Bundle bundle = new Bundle();
1896 copyIntParam(bundle, params, Engine.KEY_PARAM_STREAM);
1897 copyIntParam(bundle, params, Engine.KEY_PARAM_SESSION_ID);
1898 copyStringParam(bundle, params, Engine.KEY_PARAM_UTTERANCE_ID);
1899 copyFloatParam(bundle, params, Engine.KEY_PARAM_VOLUME);
1900 copyFloatParam(bundle, params, Engine.KEY_PARAM_PAN);
1903 copyStringParam(bundle, params, Engine.KEY_FEATURE_NETWORK_SYNTHESIS);
1904 copyStringParam(bundle, params, Engine.KEY_FEATURE_EMBEDDED_SYNTHESIS);
1905 copyIntParam(bundle, params, Engine.KEY_FEATURE_NETWORK_TIMEOUT_MS);
1906 copyIntParam(bundle, params, Engine.KEY_FEATURE_NETWORK_RETRIES_COUNT);
[all …]
/frameworks/layoutlib/bridge/src/android/animation/
DAnimationThread.java59 public int compareTo(MessageBundle bundle) { in compareTo() argument
60 if (mUptimeMillis < bundle.mUptimeMillis) { in compareTo()
118 MessageBundle bundle = mQueue.poll(); in run() local
119 if (bundle == null) { in run()
125 if (currentTime < bundle.mUptimeMillis) { in run()
127 sleep(bundle.mUptimeMillis - currentTime); in run()
154 bundle.mTarget.handleMessage(bundle.mMessage); in run()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DHeadsUpStatusBarView.java118 Bundle bundle = new Bundle(); in onSaveInstanceState() local
119 bundle.putParcelable(HEADS_UP_STATUS_BAR_VIEW_SUPER_PARCELABLE, in onSaveInstanceState()
121 bundle.putBoolean(FIRST_LAYOUT, mFirstLayout); in onSaveInstanceState()
122 bundle.putInt(VISIBILITY, getVisibility()); in onSaveInstanceState()
123 bundle.putFloat(ALPHA, getAlpha()); in onSaveInstanceState()
125 return bundle; in onSaveInstanceState()
135 Bundle bundle = (Bundle) state; in onRestoreInstanceState() local
136 Parcelable superState = bundle.getParcelable(HEADS_UP_STATUS_BAR_VIEW_SUPER_PARCELABLE); in onRestoreInstanceState()
138 mFirstLayout = bundle.getBoolean(FIRST_LAYOUT, true); in onRestoreInstanceState()
139 if (bundle.containsKey(VISIBILITY)) { in onRestoreInstanceState()
[all …]
/frameworks/base/tools/bit/
Dadb.h41 string get_bundle_string(const ResultsBundle& bundle, bool* found, ...);
42 int32_t get_bundle_int(const ResultsBundle& bundle, bool* found, ...);
43 float get_bundle_float(const ResultsBundle& bundle, bool* found, ...);
44 double get_bundle_double(const ResultsBundle& bundle, bool* found, ...);
45 int64_t get_bundle_long(const ResultsBundle& bundle, bool* found, ...);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/aware/
DCapabilities.java47 Bundle bundle = new Bundle(); in toPublicCharacteristics() local
48 bundle.putInt(Characteristics.KEY_MAX_SERVICE_NAME_LENGTH, maxServiceNameLen); in toPublicCharacteristics()
49 bundle.putInt(Characteristics.KEY_MAX_SERVICE_SPECIFIC_INFO_LENGTH, in toPublicCharacteristics()
51 bundle.putInt(Characteristics.KEY_MAX_MATCH_FILTER_LENGTH, maxMatchFilterLen); in toPublicCharacteristics()
52 return new Characteristics(bundle); in toPublicCharacteristics()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSignalStrengthTest.java100 PersistableBundle bundle = new PersistableBundle(); in testParcelUnparcel() local
101 bundle.putIntArray( in testParcelUnparcel()
104 bundle.putIntArray( in testParcelUnparcel()
107 bundle.putIntArray( in testParcelUnparcel()
110 bundle.putIntArray( in testParcelUnparcel()
114 s.updateLevel(bundle, null); in testParcelUnparcel()
180 PersistableBundle bundle = new PersistableBundle(); in createSignalStrengthLteReportRsrq() local
181 bundle.putInt( in createSignalStrengthLteReportRsrq()
184 bundle.putIntArray( in createSignalStrengthLteReportRsrq()
187 bundle.putIntArray( in createSignalStrengthLteReportRsrq()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/
DRestrictionsManagerTest.java72 Bundle bundle = RestrictionsManager.convertRestrictionsToBundle(manifestRestrictions); in testConvertRestrictionsToBundle() local
73 assertEquals(6, bundle.size()); in testConvertRestrictionsToBundle()
74 Bundle childBundle = bundle.getBundle("bundle_key"); in testConvertRestrictionsToBundle()
77 Parcelable[] childBundleArray = bundle.getParcelableArray("bundle_array_key"); in testConvertRestrictionsToBundle()
84 Bundle bundle = RestrictionsManager.convertRestrictionsToBundle(manifestRestrictions); in testConvertRestrictionsToBundle_bundleArray() local
85 assertEquals(6, bundle.size()); in testConvertRestrictionsToBundle_bundleArray()
86 Parcelable[] array = bundle.getParcelableArray("bundle_array_key"); in testConvertRestrictionsToBundle_bundleArray()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DNotificationFilterTest.java143 Bundle bundle = new Bundle(); in testSuppressSystemAlertNotification() local
144 bundle.putStringArray(Notification.EXTRA_FOREGROUND_APPS, new String[]{"something"}); in testSuppressSystemAlertNotification()
145 sbn.getNotification().extras = bundle; in testSuppressSystemAlertNotification()
153 Bundle bundle = new Bundle(); in testDoNotSuppressSystemAlertNotification() local
154 bundle.putStringArray(Notification.EXTRA_FOREGROUND_APPS, new String[]{"something"}); in testDoNotSuppressSystemAlertNotification()
155 sbn.getNotification().extras = bundle; in testDoNotSuppressSystemAlertNotification()
181 Bundle bundle = new Bundle(); in testDoNotSuppressMalformedSystemAlertNotification() local
182 bundle.putStringArray(Notification.EXTRA_FOREGROUND_APPS, new String[]{}); in testDoNotSuppressMalformedSystemAlertNotification()
183 sbn.getNotification().extras = bundle; in testDoNotSuppressMalformedSystemAlertNotification()
209 Bundle bundle = new Bundle(); in initStatusBarNotification() local
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DBiometricDialogView.java251 public void onSaveState(Bundle bundle) { in onSaveState() argument
252 bundle.putInt(KEY_TRY_AGAIN_VISIBILITY, mTryAgainButton.getVisibility()); in onSaveState()
253 bundle.putInt(KEY_CONFIRM_VISIBILITY, mPositiveButton.getVisibility()); in onSaveState()
254 bundle.putBoolean(KEY_CONFIRM_ENABLED, mPositiveButton.isEnabled()); in onSaveState()
255 bundle.putInt(KEY_STATE, mState); in onSaveState()
256 bundle.putInt(KEY_ERROR_TEXT_VISIBILITY, mErrorText.getVisibility()); in onSaveState()
257 bundle.putCharSequence(KEY_ERROR_TEXT_STRING, mErrorText.getText()); in onSaveState()
258 bundle.putBoolean(KEY_ERROR_TEXT_IS_TEMPORARY, mHandler.hasMessages(MSG_RESET_MESSAGE)); in onSaveState()
259 bundle.putInt(KEY_ERROR_TEXT_COLOR, mErrorText.getCurrentTextColor()); in onSaveState()
424 public void setBundle(Bundle bundle) { in setBundle() argument
[all …]
/frameworks/base/core/java/android/service/watchdog/
DExplicitHealthCheckService.java168 Bundle bundle = new Bundle(); in notifyHealthCheckPassed() local
169 bundle.putString(EXTRA_HEALTH_CHECK_PASSED_PACKAGE, packageName); in notifyHealthCheckPassed()
170 mCallback.sendResult(bundle); in notifyHealthCheckPassed()
307 Bundle bundle = new Bundle(); in getSupportedPackages() local
308 bundle.putParcelableArrayList(EXTRA_SUPPORTED_PACKAGES, new ArrayList<>(packages)); in getSupportedPackages()
309 callback.sendResult(bundle); in getSupportedPackages()
319 Bundle bundle = new Bundle(); in getRequestedPackages() local
320 bundle.putStringArrayList(EXTRA_REQUESTED_PACKAGES, new ArrayList<>(packages)); in getRequestedPackages()
321 callback.sendResult(bundle); in getRequestedPackages()
/frameworks/native/libs/binder/
DBufferedTextOutput.cpp45 , bundle(0) { in BufferState()
84 int32_t bundle; member
187 } else if (*(txt-1) == '\n' && !b->bundle) { in print()
215 if (b->atFront && !b->bundle) { in print()
240 b->bundle++; in pushBundle()
247 b->bundle--; in popBundle()
248 LOG_FATAL_IF(b->bundle < 0, in popBundle()
250 if (b->bundle < 0) b->bundle = 0; in popBundle()
252 if (b->bundle == 0) { in popBundle()
/frameworks/base/core/java/android/view/textclassifier/intent/
DTemplateIntentFactory.java124 Bundle bundle = new Bundle(); in nameVariantsToBundle() local
131 bundle.putInt(namedVariant.getName(), namedVariant.getInt()); in nameVariantsToBundle()
134 bundle.putLong(namedVariant.getName(), namedVariant.getLong()); in nameVariantsToBundle()
137 bundle.putFloat(namedVariant.getName(), namedVariant.getFloat()); in nameVariantsToBundle()
140 bundle.putDouble(namedVariant.getName(), namedVariant.getDouble()); in nameVariantsToBundle()
143 bundle.putBoolean(namedVariant.getName(), namedVariant.getBool()); in nameVariantsToBundle()
146 bundle.putString(namedVariant.getName(), namedVariant.getString()); in nameVariantsToBundle()
154 return bundle; in nameVariantsToBundle()

1234567891011