Home
last modified time | relevance | path

Searched refs:PersistableBundle (Results 1 – 25 of 563) sorted by relevance

12345678910>>...23

/packages/modules/Permission/SafetyLabel/tests/java/com/android/permission/safetylabel/
DSafetyLabelTestPersistableBundles.kt19 import android.os.PersistableBundle in <lambda>()
43 fun createNonVersionedEmptyMetadataPersistableBundle(): PersistableBundle { in <lambda>()
44 return PersistableBundle() in <lambda>()
53 ): PersistableBundle { in <lambda>()
54 return PersistableBundle().apply { in <lambda>()
68 ): PersistableBundle { in <lambda>()
78 fun createInvalidMetadataPersistableBundle(): PersistableBundle { in <lambda>()
87 fun createMetadataPersistableBundleWithInvalidSafetyLabel(): PersistableBundle { in <lambda>()
97 fun createMetadataPersistableBundleWithoutVersion(): PersistableBundle { in <lambda>()
104 fun createMetadataPersistableBundleInvalidVersion(): PersistableBundle { in <lambda>()
[all …]
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DAppMetadata.kt19 import android.os.PersistableBundle
24 fun createEmptyAppMetadata(): PersistableBundle { in createEmptyAppMetadata()
25 return PersistableBundle() in createEmptyAppMetadata()
29 fun createDefaultAppMetadata(): PersistableBundle { in createDefaultAppMetadata()
31 PersistableBundle().apply { putIntArray(KEY_PURPOSES, (1..7).toList().toIntArray()) } in createDefaultAppMetadata()
34 PersistableBundle().apply { in createDefaultAppMetadata()
39 PersistableBundle().apply { putPersistableBundle(LOCATION_CATEGORY, locationBundle) } in createDefaultAppMetadata()
42 PersistableBundle().apply { putPersistableBundle(KEY_DATA_SHARED, dataSharedBundle) } in createDefaultAppMetadata()
45 PersistableBundle().apply { in createDefaultAppMetadata()
50 return PersistableBundle().apply { in createDefaultAppMetadata()
[all …]
/packages/modules/Uwb/framework/java/android/uwb/
DIUwbRangingCallbacks.aidl19 import android.os.PersistableBundle;
46 in PersistableBundle parameters); in onRangingOpenFailed()
60 in PersistableBundle parameters); in onRangingStarted()
71 in PersistableBundle parameters); in onRangingStartFailed()
80 in PersistableBundle parameters); in onRangingReconfigured()
91 in PersistableBundle parameters); in onRangingReconfigureFailed()
103 in PersistableBundle parameters); in onRangingStopped()
114 in PersistableBundle parameters); in onRangingStopFailed()
125 in PersistableBundle parameters); in onRangingClosed()
145 void onControleeAdded(in SessionHandle sessionHandle, in PersistableBundle parameters); in onControleeAdded()
[all …]
DIUwbAdapter.aidl21 import android.os.PersistableBundle;
95 PersistableBundle getSpecificationInfo(in String chipId); in getSpecificationInfo()
124 in PersistableBundle parameters, in openRanging()
142 in PersistableBundle parameters); in startRanging()
159 in PersistableBundle parameters); in reconfigureRanging()
200 void addControlee(in SessionHandle sessionHandle, in PersistableBundle params); in addControlee()
215 void removeControlee(in SessionHandle sessionHandle, in PersistableBundle params); in removeControlee()
238 void pause(in SessionHandle sessionHandle, in PersistableBundle params); in pause()
256 void resume(in SessionHandle sessionHandle, in PersistableBundle params); in resume()
277 in PersistableBundle params, in byte[] data); in sendData()
[all …]
DRangingSession.java27 import android.os.PersistableBundle;
248 void onOpenFailed(@Reason int reason, @NonNull PersistableBundle params); in onOpenFailed()
258 void onStarted(@NonNull PersistableBundle sessionInfo); in onStarted()
270 void onStartFailed(@Reason int reason, @NonNull PersistableBundle params); in onStartFailed()
277 void onReconfigured(@NonNull PersistableBundle params); in onReconfigured()
285 void onReconfigureFailed(@Reason int reason, @NonNull PersistableBundle params); in onReconfigureFailed()
293 void onStopped(@Reason int reason, @NonNull PersistableBundle parameters); in onStopped()
301 void onStopFailed(@Reason int reason, @NonNull PersistableBundle params); in onStopFailed()
310 void onClosed(@Reason int reason, @NonNull PersistableBundle parameters); in onClosed()
324 default void onControleeAdded(@NonNull PersistableBundle parameters) {} in onControleeAdded()
[all …]
DRangingManager.java23 import android.os.PersistableBundle;
62 @NonNull PersistableBundle params, in openSession()
121 PersistableBundle parameters) { in onRangingOpenFailed()
137 public void onRangingReconfigured(SessionHandle sessionHandle, PersistableBundle parameters) { in onRangingReconfigured()
153 @RangingChangeReason int reason, PersistableBundle params) { in onRangingReconfigureFailed()
168 public void onRangingStarted(SessionHandle sessionHandle, PersistableBundle parameters) { in onRangingStarted()
183 PersistableBundle params) { in onRangingStartFailed()
198 PersistableBundle params) { in onRangingStopped()
213 PersistableBundle parameters) { in onRangingStopFailed()
228 PersistableBundle params) { in onRangingClosed()
[all …]
DUwbManager.java36 import android.os.PersistableBundle;
226 public abstract void onProfileAdfsProvisioned(@NonNull PersistableBundle params); in onProfileAdfsProvisioned()
236 @Reason int reason, @NonNull PersistableBundle params); in onProfileAdfsProvisionFailed()
275 public void onProfileAdfsProvisioned(@NonNull PersistableBundle params) { in onProfileAdfsProvisioned()
293 @NonNull PersistableBundle params) { in onProfileAdfsProvisionFailed()
373 void onSessionStatusNotificationReceived(@NonNull PersistableBundle sessionStatusBundle); in onSessionStatusNotificationReceived()
380 void onDeviceStatusNotificationReceived(@NonNull PersistableBundle deviceStatusBundle); in onDeviceStatusNotificationReceived()
389 @NonNull PersistableBundle openSessionBundle); in onSessionConfigurationComplete()
406 boolean onCheckPointedTarget(@NonNull PersistableBundle pointedTargetBundle); in onCheckPointedTarget()
528 public PersistableBundle getSpecificationInfo() { in getSpecificationInfo()
[all …]
/packages/modules/Wifi/framework/tests/src/android/net/wifi/util/
DPersistableBundleUtilsTest.java24 import android.os.PersistableBundle;
39 private PersistableBundle createTestBundle() { in createTestBundle()
40 PersistableBundle bundle = new PersistableBundle(); in createTestBundle()
47 private PersistableBundle createNestedTestBundle(int depth) { in createNestedTestBundle()
48 PersistableBundle bundle = createTestBundle(); in createNestedTestBundle()
59 PersistableBundle bundle1 = createTestBundle(); in testHashCode()
60 PersistableBundle bundle2 = createTestBundle(); in testHashCode()
72 PersistableBundle bundle1 = createNestedTestBundle(10); in testHashCode_nested()
73 PersistableBundle bundle2 = createNestedTestBundle(10); in testHashCode_nested()
82 PersistableBundle bundle1 = createTestBundle(); in testHashCode_different()
[all …]
/packages/modules/OnDevicePersonalization/tests/cts/endtoend/src/com/android/ondevicepersonalization/cts/e2e/
DCtsOdpManagerTests.java33 import android.os.PersistableBundle;
130 PersistableBundle.EMPTY, in testExecuteThrowsIfComponentNameMissing()
162 PersistableBundle.EMPTY, in testExecuteThrowsIfExecutorMissing()
178 PersistableBundle.EMPTY, in testExecuteThrowsIfReceiverMissing()
194 PersistableBundle.EMPTY, in testExecuteThrowsIfPackageNameMissing()
210 PersistableBundle.EMPTY, in testExecuteThrowsIfClassNameMissing()
223 PersistableBundle.EMPTY, in testExecuteReturnsIllegalStateIfServiceNotEnrolled()
238 PersistableBundle.EMPTY, in testExecuteReturnsNameNotFoundIfServiceNotInstalled()
254 PersistableBundle.EMPTY, in testExecuteReturnsClassNotFoundIfServiceClassNotFound()
269 PersistableBundle.EMPTY, in testExecuteNoOp()
[all …]
/packages/services/Car/packages/ScriptExecutor/tests/functional/src/com/android/car/scriptexecutortest/functional/
DScriptExecutorFunctionalTest.java28 import android.os.PersistableBundle;
53 private PersistableBundle mInterimResult;
54 private PersistableBundle mFinalResult;
61 public void onScriptFinished(PersistableBundle result) { in onScriptFinished()
67 public void onSuccess(PersistableBundle interimResult) { in onSuccess()
81 public void onMetricsReport(PersistableBundle report, PersistableBundle stateToPersist) { in onMetricsReport()
93 private final PersistableBundle mEmptyPublishedData = new PersistableBundle();
94 private final PersistableBundle mEmptyIterimResult = new PersistableBundle();
178 PersistableBundle nestedBundle = mListener.mInterimResult.getPersistableBundle( in invokeScript_supportsNestedTables()
200 PersistableBundle nestedBundle = mListener.mInterimResult.getPersistableBundle( in invokeScript_supportsDeeplyNestedTables()
[all …]
/packages/modules/Connectivity/tests/common/java/android/net/
DConnectivityDiagnosticsManagerTest.java40 import android.os.PersistableBundle;
101 final PersistableBundle bundle = new PersistableBundle(); in createSampleConnectivityReport()
114 PersistableBundle.EMPTY); in createDefaultConnectivityReport()
121 null, PersistableBundle.EMPTY)); in testPersistableBundleEquals()
124 PersistableBundle.EMPTY, null)); in testPersistableBundleEquals()
127 PersistableBundle.EMPTY, PersistableBundle.EMPTY)); in testPersistableBundleEquals()
129 final PersistableBundle a = new PersistableBundle(); in testPersistableBundleEquals()
132 final PersistableBundle b = new PersistableBundle(); in testPersistableBundleEquals()
135 final PersistableBundle c = new PersistableBundle(); in testPersistableBundleEquals()
139 ConnectivityDiagnosticsManager.persistableBundleEquals(PersistableBundle.EMPTY, a)); in testPersistableBundleEquals()
[all …]
/packages/modules/Permission/PermissionController/tests/mocking/src/com/android/permissioncontroller/tests/mocking/safetylabel/
DAppsSafetyLabelHistoryTest.kt20 import android.os.PersistableBundle
238 fun createDataSharedNoSharing(): PersistableBundle { in createDataSharedNoSharing()
239 return PersistableBundle() in createDataSharedNoSharing()
242 fun createDataSharedWithLocationNoAds(): PersistableBundle { in createDataSharedWithLocationNoAds()
244 PersistableBundle().apply { in createDataSharedWithLocationNoAds()
247 PersistableBundle().apply { in createDataSharedWithLocationNoAds()
256 return PersistableBundle().apply { in createDataSharedWithLocationNoAds()
261 fun createDataSharedWithLocationWithAds(): PersistableBundle { in createDataSharedWithLocationWithAds()
263 PersistableBundle().apply { in createDataSharedWithLocationWithAds()
266 PersistableBundle().apply { in createDataSharedWithLocationWithAds()
[all …]
/packages/modules/Uwb/androidx_backend/tests/src/androidx/core/uwb/backend/impl/internal/
DRangingControllerTest.java39 import android.os.PersistableBundle;
79 private ArgumentCaptor<PersistableBundle> mBundleArgumentCaptor;
212 any(PersistableBundle.class),
218 pfRangingSessionCallback.value.onStarted(new PersistableBundle());
222 .start(any(PersistableBundle.class));
245 new PersistableBundle());
250 any(PersistableBundle.class),
279 any(PersistableBundle.class),
286 new PersistableBundle());
290 .start(any(PersistableBundle.class));
[all …]
DRangingControleeTest.java38 import android.os.PersistableBundle;
75 private ArgumentCaptor<PersistableBundle> mBundleArgumentCaptor;
183 any(PersistableBundle.class),
189 pfRangingSessionCallback.value.onStarted(new PersistableBundle());
193 .start(any(PersistableBundle.class));
215 new PersistableBundle());
220 any(PersistableBundle.class),
248 any(PersistableBundle.class),
255 new PersistableBundle());
259 .start(any(PersistableBundle.class));
[all …]
/packages/services/Car/packages/ScriptExecutor/tests/unit/src/com/android/car/scriptexecutortest/unit/
DJniUtilsTest.java21 import android.os.PersistableBundle;
56 private static final PersistableBundle PERSISTABLE_BUNDLE_VALUE = new PersistableBundle();
77 long luaEnginePtr, PersistableBundle bundle); in nativePushBundleToLuaTableCaller()
81 long luaEnginePtr, List<PersistableBundle> bundleList); in nativePushBundleListToLuaTableCaller()
135 PersistableBundle bundle = new PersistableBundle(); in pushBundleToLuaTable_valuesOfDifferentTypes()
157 PersistableBundle bundle = new PersistableBundle(); in pushBundleToLuaTable_wrongKey()
170 PersistableBundle bundle = new PersistableBundle(); in pushBundleToLuaTable_arrays()
194 PersistableBundle bundle1 = new PersistableBundle(); in pushBundleListToLuaTable_makesArrayOfTables()
195 PersistableBundle bundle2 = new PersistableBundle(); in pushBundleListToLuaTable_makesArrayOfTables()
198 List<PersistableBundle> bundleList = new ArrayList<>(); in pushBundleListToLuaTable_makesArrayOfTables()
[all …]
/packages/modules/Uwb/service/support_lib/src/com/google/uwb/support/oemextension/
DSessionConfigParams.java19 import android.os.PersistableBundle;
36 private final PersistableBundle mFiraOpenSessionParamsBundle;
44 PersistableBundle firaOpenSessionParamsBundle) { in SessionConfigParams()
62 public PersistableBundle getFiraOpenSessionParamsBundle() { in getFiraOpenSessionParamsBundle()
66 public PersistableBundle toBundle() { in toBundle()
67 PersistableBundle bundle = new PersistableBundle(); in toBundle()
75 public static boolean isSessionConfigParams(PersistableBundle bundle) { in isSessionConfigParams()
79 public static SessionConfigParams fromBundle(PersistableBundle bundle) { in fromBundle()
88 private static SessionConfigParams parseVersion1(PersistableBundle bundle) { in parseVersion1()
100 private RequiredParam<PersistableBundle> mOpenSessionParamsBundle = new RequiredParam<>();
[all …]
/packages/modules/IPsec/src/java/android/net/eap/
DEapSessionConfig.java23 import android.os.PersistableBundle;
86 public static EapSessionConfig fromPersistableBundle(@NonNull PersistableBundle in) { in fromPersistableBundle()
91 PersistableBundle eapIdBundle = in.getPersistableBundle(EAP_ID_KEY); in fromPersistableBundle()
96 PersistableBundle configsBundle = in.getPersistableBundle(EAP_METHOD_CONFIGS_KEY); in fromPersistableBundle()
116 public PersistableBundle toPersistableBundle() { in toPersistableBundle()
117 final PersistableBundle result = new PersistableBundle(); in toPersistableBundle()
120 final PersistableBundle configsBundle = in toPersistableBundle()
458 public static EapMethodConfig fromPersistableBundle(PersistableBundle in) { in fromPersistableBundle()
484 protected PersistableBundle toPersistableBundle() { in toPersistableBundle()
485 final PersistableBundle result = new PersistableBundle(); in toPersistableBundle()
[all …]
/packages/services/Telephony/src/com/android/phone/
DImsProvisioningLoader.java21 import android.os.PersistableBundle;
59 private SparseArray<PersistableBundle> mSubIdBundleArray = new SparseArray<>();
96 PersistableBundle subIdBundle = mSubIdBundleArray.get(subId, null); in initCache()
110 subIdBundle = new PersistableBundle(); in initCache()
128 PersistableBundle subIdBundle = null; in getImsProvisioningStatus()
148 PersistableBundle subIdBundle = mSubIdBundleArray.get(subId, null); in setImsFeatureProvisioning()
157 int capability, PersistableBundle subIdBundle) { in getProvisioningStatusFromSubIdBundle()
164 PersistableBundle regTechBundle = subIdBundle.getPersistableBundle( in getProvisioningStatusFromSubIdBundle()
171 PersistableBundle capabilityBundle = regTechBundle.getPersistableBundle( in getProvisioningStatusFromSubIdBundle()
182 int capability, PersistableBundle subIdBundle, int newStatus) { in setProvisioningStatusToSubIdBundle()
[all …]
/packages/modules/Uwb/framework/api/
Dsystem-current.txt53 method @NonNull public android.os.PersistableBundle getRangingMeasurementMetadata();
83 …wb.RangingMeasurement.Builder setRangingMeasurementMetadata(@NonNull android.os.PersistableBundle);
92 method @NonNull public android.os.PersistableBundle getRangingReportMetadata();
101 … android.uwb.RangingReport.Builder addRangingReportMetadata(@NonNull android.os.PersistableBundle);
106 …anifest.permission.UWB_PRIVILEGED) public void addControlee(@NonNull android.os.PersistableBundle);
108 …droid.Manifest.permission.UWB_PRIVILEGED) public void pause(@NonNull android.os.PersistableBundle);
110 …Manifest.permission.UWB_PRIVILEGED) public void reconfigure(@NonNull android.os.PersistableBundle);
111 …fest.permission.UWB_PRIVILEGED) public void removeControlee(@NonNull android.os.PersistableBundle);
112 …roid.Manifest.permission.UWB_PRIVILEGED) public void resume(@NonNull android.os.PersistableBundle);
113 … void sendData(@NonNull android.uwb.UwbAddress, @NonNull android.os.PersistableBundle, @NonNull by…
[all …]
/packages/apps/CarrierConfig/src/com/android/carrierconfig/
DDefaultCarrierConfigService.java22 import android.os.PersistableBundle;
90 public PersistableBundle onLoadConfig(@Nullable CarrierIdentifier id) { in onLoadConfig()
106 return new PersistableBundle(); in onLoadConfig()
110 PersistableBundle loadConfig(XmlPullParser parser, @Nullable CarrierIdentifier id) { in loadConfig()
111 PersistableBundle config = new PersistableBundle(); in loadConfig()
125 PersistableBundle vendorConfig = readConfigFromXml(vendorInput, null, sku); in loadConfig()
137 PersistableBundle configByCarrierId = new PersistableBundle(); in loadConfig()
138 PersistableBundle configBySpecificCarrierId = new PersistableBundle(); in loadConfig()
139 PersistableBundle configByMccMncFallBackCarrierId = new PersistableBundle(); in loadConfig()
177 config = new PersistableBundle(); in loadConfig()
[all …]
/packages/modules/OnDevicePersonalization/tests/frameworktests/src/android/adservices/ondevicepersonalization/
DEventUrlProviderTest.java26 import android.os.PersistableBundle;
46 PersistableBundle params = new PersistableBundle(); in testGetEventUrlWithEmptyResponse()
56 PersistableBundle params = new PersistableBundle(); in testGetEventUrlReturnsResponseFromService()
66 PersistableBundle params = new PersistableBundle(); in testGetEventUrlWithRedirectReturnsResponseFromService()
78 PersistableBundle params = new PersistableBundle(); in testGetEventUrlThrowsOnError()
94 PersistableBundle eventParams = params.getParcelable( in onRequest()
95 Constants.EXTRA_EVENT_PARAMS, PersistableBundle.class); in onRequest()
DOnDevicePersonalizationManagerTest.java34 import android.os.PersistableBundle;
93 PersistableBundle params = new PersistableBundle(); in testExecuteSuccess()
111 PersistableBundle params = new PersistableBundle(); in testExecuteUnknownError()
127 PersistableBundle params = new PersistableBundle(); in testExecuteServiceError()
144 PersistableBundle params = new PersistableBundle(); in testExecuteErrorWithCode()
167 PersistableBundle params = new PersistableBundle(); in testExecuteErrorWithMessage()
185 PersistableBundle params = new PersistableBundle(); in testExecuteCatchesIaeFromService()
201 PersistableBundle params = new PersistableBundle(); in testExecuteCatchesNpeFromService()
217 PersistableBundle params = new PersistableBundle(); in testExecuteCatchesOtherExceptions()
245 PersistableBundle params; in execute()
/packages/modules/OnDevicePersonalization/tests/frameworktests/src/com/android/ondevicepersonalization/internal/util/
DPersistableBundleUtilsTest.java24 import android.os.PersistableBundle;
44 PersistableBundleUtils.toByteArray(PersistableBundle.EMPTY)) in testNullOrEmptyInput()
51 PersistableBundle bundle = new PersistableBundle(); in testRoundTrip()
56 PersistableBundle nestedBundle = new PersistableBundle(); in testRoundTrip()
62 PersistableBundle deserialized = PersistableBundleUtils.fromByteArray(serialized); in testRoundTrip()
78 PersistableBundle bundle = new PersistableBundle(); in testRoundTripLarge()
84 PersistableBundle deserialized = PersistableBundleUtils.fromByteArray(serialized); in testRoundTripLarge()
/packages/modules/Uwb/service/java/com/android/server/uwb/
DUwbServiceImpl.java32 import android.os.PersistableBundle;
173 PersistableBundle bundle = getSpecificationInfo(null); in dumpPowerStats()
275 public PersistableBundle getSpecificationInfo(String chipId) throws RemoteException { in getSpecificationInfo()
295 PersistableBundle parameters, in openRanging()
308 public void startRanging(SessionHandle sessionHandle, PersistableBundle parameters) in startRanging()
315 public void reconfigureRanging(SessionHandle sessionHandle, PersistableBundle parameters) in reconfigureRanging()
342 public void addControlee(SessionHandle sessionHandle, PersistableBundle params) { in addControlee()
348 public void removeControlee(SessionHandle sessionHandle, PersistableBundle params) { in removeControlee()
354 public void pause(SessionHandle sessionHandle, PersistableBundle params) { in pause()
360 public void resume(SessionHandle sessionHandle, PersistableBundle params) { in resume()
[all …]
/packages/modules/OnDevicePersonalization/framework/java/android/adservices/ondevicepersonalization/
DEventInputParcel.java22 import android.os.PersistableBundle;
44 @NonNull private PersistableBundle mParameters = PersistableBundle.EMPTY;
64 @NonNull PersistableBundle parameters) { in EventInputParcel()
88 public @NonNull PersistableBundle getParameters() { in getParameters()
118PersistableBundle parameters = (PersistableBundle) in.readTypedObject(PersistableBundle.CREATOR); in EventInputParcel()
151 private @NonNull PersistableBundle mParameters;
176 public @NonNull Builder setParameters(@NonNull PersistableBundle value) { in setParameters()
192 mParameters = PersistableBundle.EMPTY; in build()

12345678910>>...23