Home
last modified time | relevance | path

Searched refs:mBundle (Results 1 – 25 of 51) sorted by relevance

123

/frameworks/base/core/tests/mockingcoretests/src/android/os/
DBundleRecyclingTest.java57 private Bundle mBundle; field in BundleRecyclingTest
63 assertNotNull(mBundle.getString("nonLazy0")); in bundleClear_whenUnparcelledWithoutLazy_recyclesParcelOnce()
65 assertFalse(mBundle.isDefinitelyEmpty()); in bundleClear_whenUnparcelledWithoutLazy_recyclesParcelOnce()
68 mBundle.clear(); in bundleClear_whenUnparcelledWithoutLazy_recyclesParcelOnce()
70 assertTrue(mBundle.isDefinitelyEmpty()); in bundleClear_whenUnparcelledWithoutLazy_recyclesParcelOnce()
76 assertTrue(mBundle.isParcelled()); in bundleClear_whenParcelled_recyclesParcel()
79 mBundle.clear(); in bundleClear_whenParcelled_recyclesParcel()
81 assertTrue(mBundle.isDefinitelyEmpty()); in bundleClear_whenParcelled_recyclesParcel()
84 mBundle.clear(); in bundleClear_whenParcelled_recyclesParcel()
93 assertFalse(mBundle.isEmpty()); in bundleClear_whenUnparcelledWithLazy_recyclesParcel()
[all …]
/frameworks/base/core/java/android/app/time/
DTimeZoneConfiguration.java77 @NonNull private final Bundle mBundle; field in TimeZoneConfiguration
80 this.mBundle = Objects.requireNonNull(builder.mBundle); in TimeZoneConfiguration()
91 dest.writeBundle(mBundle); in writeToParcel()
116 return mBundle.getBoolean(SETTING_AUTO_DETECTION_ENABLED); in isAutoDetectionEnabled()
125 return mBundle.containsKey(SETTING_AUTO_DETECTION_ENABLED); in hasIsAutoDetectionEnabled()
141 return mBundle.getBoolean(SETTING_GEO_DETECTION_ENABLED); in isGeoDetectionEnabled()
150 return mBundle.containsKey(SETTING_GEO_DETECTION_ENABLED); in hasIsGeoDetectionEnabled()
167 return mBundle.kindofEquals(that.mBundle); in equals()
172 return Objects.hash(mBundle); in hashCode()
178 + "mBundle=" + mBundle in toString()
[all …]
DTimeConfiguration.java74 private final Bundle mBundle; field in TimeConfiguration
77 this.mBundle = builder.mBundle; in TimeConfiguration()
88 dest.writeBundle(mBundle); in writeToParcel()
112 return mBundle.getBoolean(SETTING_AUTO_DETECTION_ENABLED); in isAutoDetectionEnabled()
121 return mBundle.containsKey(SETTING_AUTO_DETECTION_ENABLED); in hasIsAutoDetectionEnabled()
134 return mBundle.kindofEquals(that.mBundle); in equals()
139 return Objects.hash(mBundle); in hashCode()
145 + "mBundle=" + mBundle in toString()
150 if (!mBundle.containsKey(setting)) { in enforceSettingPresent()
163 private final Bundle mBundle = new Bundle(); field in TimeConfiguration.Builder
[all …]
/frameworks/base/core/java/com/android/internal/util/
DSyncResultReceiver.java42 private Bundle mBundle; field in SyncResultReceiver
78 return mBundle == null ? null : mBundle.getString(EXTRA); in getStringResult()
87 return mBundle == null ? null : mBundle.getStringArray(EXTRA); in getStringArrayResult()
96 return mBundle == null ? null : mBundle.getParcelable(EXTRA); in getParcelableResult()
105 return mBundle == null ? null : mBundle.getParcelableArrayList(EXTRA); in getParcelableListResult()
116 if (mBundle == null || !mBundle.containsKey(EXTRA)) return defaultValue; in getOptionalExtraIntResult()
118 return mBundle.getInt(EXTRA); in getOptionalExtraIntResult()
124 mBundle = resultData; in send()
/frameworks/base/core/java/android/hardware/radio/
DRadioMetadata.java343 private final Bundle mBundle; field in RadioMetadata
351 List<String> keys = new ArrayList<String>(mBundle.keySet()); in hashCode()
356 objs[2 * i + 1] = mBundle.get(keys.get(i)); in hashCode()
367 Bundle otherBundle = ((RadioMetadata) obj).mBundle; in equals()
368 if (!mBundle.keySet().equals(otherBundle.keySet())) { in equals()
371 for (String key : mBundle.keySet()) { in equals()
374 if (!Arrays.equals(mBundle.getStringArray(key), otherBundle.getStringArray(key))) { in equals()
377 } else if (!Objects.equals(mBundle.get(key), otherBundle.get(key))) { in equals()
385 mBundle = new Bundle(); in RadioMetadata()
389 mBundle = new Bundle(bundle); in RadioMetadata()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSignalStrengthControllerTest.java106 private PersistableBundle mBundle; field in SignalStrengthControllerTest
116 mBundle = mContextFixture.getCarrierConfigBundle(); in setUp()
118 mBundle.putIntArray(CarrierConfigManager.KEY_GSM_RSSI_THRESHOLDS_INT_ARRAY, in setUp()
125 mBundle.putInt(CarrierConfigManager.KEY_GERAN_RSSI_HYSTERESIS_DB_INT, 6); in setUp()
127 mBundle.putInt(CarrierConfigManager.KEY_PARAMETERS_USED_FOR_LTE_SIGNAL_BAR_INT, in setUp()
129 mBundle.putIntArray(CarrierConfigManager.KEY_LTE_RSRP_THRESHOLDS_INT_ARRAY, in setUp()
136 mBundle.putInt(CarrierConfigManager.KEY_EUTRAN_RSRP_HYSTERESIS_DB_INT, 3); in setUp()
138 mBundle.putInt(CarrierConfigManager.KEY_PARAMETERS_USE_FOR_5G_NR_SIGNAL_BAR_INT, in setUp()
140 mBundle.putIntArray(CarrierConfigManager.KEY_5G_NR_SSRSRP_THRESHOLDS_INT_ARRAY, in setUp()
147 mBundle.putInt(CarrierConfigManager.KEY_NGRAN_SSRSRP_HYSTERESIS_DB_INT, 1); in setUp()
[all …]
DNetworkTypeControllerTest.java71 private PersistableBundle mBundle; field in NetworkTypeControllerTest
98 mBundle = mContextFixture.getCarrierConfigBundle(); in setUp()
99 mBundle.putString(CarrierConfigManager.KEY_5G_ICON_CONFIGURATION_STRING, in setUp()
102 mBundle.putInt(CarrierConfigManager.KEY_LTE_PLUS_THRESHOLD_BANDWIDTH_KHZ_INT, 20000); in setUp()
127 mBundle = null; in tearDown()
230 mBundle.putString(CarrierConfigManager.KEY_SHOW_CARRIER_DATA_ICON_PATTERN_STRING, in testUpdateOverrideNetworkTypeLte()
303 mBundle.putBoolean( in testTransitionToCurrentStateIdle_usingUserDataForRrcDetection()
356 mBundle.putBoolean( in testTransitionToCurrentStateLteConnected_usingUserDataForRrcDetection()
414 mBundle.putIntArray(CarrierConfigManager.KEY_ADDITIONAL_NR_ADVANCED_BANDS_INT_ARRAY, in testTransitionToCurrentStateNrConnectedMmwaveWithAdditionalBandAndNoMmwave()
438 mBundle.putIntArray(CarrierConfigManager.KEY_ADDITIONAL_NR_ADVANCED_BANDS_INT_ARRAY, in testTransitionToCurrentStateNrConnectedMmwaveWithAdditionalBandAndNoMmwaveNrNsa()
[all …]
DRatRatcheterTest.java45 private PersistableBundle mBundle; field in RatRatcheterTest
57 mBundle = null; in tearDown()
144 mBundle = mContextFixture.getCarrierConfigBundle(); in testRatchetIsFamily()
145 when(mCarrierConfigManager.getConfigForSubId(anyInt(), any())).thenReturn(mBundle); in testRatchetIsFamily()
146 mBundle.putStringArray(CarrierConfigManager.KEY_RATCHET_RAT_FAMILIES, in testRatchetIsFamily()
163 mBundle = mContextFixture.getCarrierConfigBundle(); in testRatchetIsNotFamily()
164 when(mCarrierConfigManager.getConfigForSubId(anyInt(), any())).thenReturn(mBundle); in testRatchetIsNotFamily()
165 mBundle.putStringArray(CarrierConfigManager.KEY_RATCHET_RAT_FAMILIES, new String[]{}); in testRatchetIsNotFamily()
DMissedIncomingCallSmsFilterTest.java51 private PersistableBundle mBundle; field in MissedIncomingCallSmsFilterTest
56 mBundle = mContextFixture.getCarrierConfigBundle(); in setUp()
63 mBundle = null; in tearDown()
70 mBundle.putStringArray( in testMissedIncomingCallwithCallerId()
73 mBundle.putStringArray( in testMissedIncomingCallwithCallerId()
DDisplayInfoControllerTest.java72 private PersistableBundle mBundle; field in DisplayInfoControllerTest
110 mBundle = mContextFixture.getCarrierConfigBundle(); in setUp()
124 mBundle = null; in tearDown()
189 mBundle.putStringArray( in testIsRoamingOverride_NonRoamingOperator()
210 mBundle.putBoolean(CarrierConfigManager.KEY_FORCE_HOME_NETWORK_BOOL, true); in testIsRoamingOverride_ForceHomeNetwork()
230 mBundle.putStringArray( in testIsRoamingOverride_RoamingOperator()
251 mBundle.putStringArray( in testIsRoamingOverride_NonRoamingGsmOperator()
273 mBundle.putStringArray( in testIsRoamingOverride_RoamingGsmOperator()
293 mBundle.putStringArray( in testIsRoamingOverride_HideRoamingIndicator()
295 mBundle.putBoolean(CarrierConfigManager.KEY_SHOW_ROAMING_INDICATOR_BOOL, false); in testIsRoamingOverride_HideRoamingIndicator()
DCarrierSignalAgentTest.java74 private PersistableBundle mBundle; field in CarrierSignalAgentTest
121 mBundle = mContextFixture.getCarrierConfigBundle(); in setUp()
122 when(mCarrierConfigManager.getConfigForSubId(anyInt(), any())).thenReturn(mBundle); in setUp()
153 mBundle = null; in tearDown()
163 mBundle.putStringArray( in testNotifyManifestReceivers()
215 mBundle.putStringArray( in testLegacyConversionSupport()
335 mBundle.putStringArray( in testNotifyRuntimeReceivers()
370 mBundle.putStringArray( in testNotify()
373 mBundle.putStringArray( in testNotify()
435 mBundle.putStringArray( in testCarrierConfigChange()
[all …]
DCarrierServiceStateTrackerTest.java76 PersistableBundle mBundle; field in CarrierServiceStateTrackerTest
84 mBundle = mContextFixture.getCarrierConfigBundle(); in setUp()
86 when(mCarrierConfigManager.getConfigForSubId(anyInt(), any())).thenReturn(mBundle); in setUp()
108 mBundle.putInt(CarrierConfigManager.KEY_PREF_NETWORK_NOTIFICATION_DELAY_INT, 0); in setDefaultValues()
109 mBundle.putInt(CarrierConfigManager.KEY_EMERGENCY_NOTIFICATION_DELAY_INT, 0); in setDefaultValues()
110 mBundle.putBoolean(CarrierConfigManager.KEY_HIDE_PREFERRED_NETWORK_TYPE_BOOL, false); in setDefaultValues()
117 mBundle = null; in tearDown()
251 mBundle.putBoolean(CarrierConfigManager.KEY_HIDE_PREFERRED_NETWORK_TYPE_BOOL, true); in testSetEnabledNotifications()
/frameworks/base/core/java/android/view/textclassifier/
DTextLanguage.java62 private final Bundle mBundle; field in TextLanguage
70 mBundle = bundle; in TextLanguage()
120 return mBundle; in getExtras()
128 mId, mEntityConfidence, mBundle); in toString()
140 dest.writeBundle(mBundle); in writeToParcel()
157 @Nullable private Bundle mBundle; field in TextLanguage.Builder
190 mBundle = Objects.requireNonNull(bundle); in setExtras()
201 mBundle = mBundle == null ? Bundle.EMPTY : mBundle; in build()
205 mBundle); in build()
311 @Nullable private Bundle mBundle; field in TextLanguage.Request.Builder
[all …]
/frameworks/base/telephony/java/android/telephony/ims/
DSipDelegateImsConfiguration.java366 private final PersistableBundle mBundle; field in SipDelegateImsConfiguration.Builder
375 mBundle = new PersistableBundle(); in Builder()
386 mBundle = config.copyBundle(); in Builder()
395 mBundle.putString(key, value); in addString()
405 mBundle.putInt(key, value); in addInt()
415 mBundle.putBoolean(key, value); in addBoolean()
423 return new SipDelegateImsConfiguration(mVersion, mBundle); in build()
428 private final PersistableBundle mBundle; field in SipDelegateImsConfiguration
432 mBundle = bundle; in SipDelegateImsConfiguration()
437 mBundle = source.readPersistableBundle(); in SipDelegateImsConfiguration()
[all …]
/frameworks/base/tests/OneMedia/src/com/android/onemedia/playback/
DRequestUtils.java44 private Bundle mBundle; field in RequestUtils.ContentBuilder
47 mBundle = new Bundle(); in ContentBuilder()
51 mBundle.putString(EXTRA_KEY_SOURCE, source); in setSource()
60 mBundle.putBundle(EXTRA_KEY_METADATA, metadata); in setMetadata()
65 mBundle.putSerializable(EXTRA_KEY_HEADERS, headers); in setHeaders()
70 return mBundle; in build()
DMediaItem.java27 private Bundle mBundle; field in MediaItem
34 mBundle = in.readBundle(); in MediaItem()
38 return mBundle.getString(MediaMetadata.METADATA_KEY_TITLE); in getTitle()
42 return mBundle.getString(MediaMetadata.METADATA_KEY_ALBUM_ARTIST); in getArtist()
60 dest.writeBundle(mBundle); in writeToParcel()
/frameworks/base/media/java/android/media/
DMediaMetadata.java420 private final Bundle mBundle; field in MediaMetadata
425 mBundle = new Bundle(bundle); in MediaMetadata()
430 mBundle = in.readBundle(); in MediaMetadata()
450 return mBundle.containsKey(key); in containsKey()
462 return mBundle.getCharSequence(key); in getText()
490 return mBundle.getLong(key, 0); in getLong()
503 rating = mBundle.getParcelable(key, android.media.Rating.class); in getRating()
521 bmp = mBundle.getParcelable(key, android.graphics.Bitmap.class); in getBitmap()
553 dest.writeBundle(mBundle); in writeToParcel()
563 return mBundle.size(); in size()
[all …]
DAudioAttributes.java569 private Bundle mBundle; // lazy-initialized, may be null field in AudioAttributes
651 if (mBundle == null) { in getBundle()
652 return mBundle; in getBundle()
654 return new Bundle(mBundle); in getBundle()
772 private Bundle mBundle; field in AudioAttributes.Builder
873 if (mBundle != null) { in build()
874 aa.mBundle = new Bundle(mBundle); in build()
1098 if (mBundle == null) { in addBundle()
1099 mBundle = new Bundle(bundle); in addBundle()
1101 mBundle.putAll(bundle); in addBundle()
[all …]
/frameworks/base/core/java/android/window/
DTaskFragmentOperation.java203 private final Bundle mBundle; field in TaskFragmentOperation
226 mBundle = bundle; in TaskFragmentOperation()
238 mBundle = in.readBundle(getClass().getClassLoader()); in TaskFragmentOperation()
251 dest.writeBundle(mBundle); in writeToParcel()
309 return mBundle; in getBundle()
357 if (mBundle != null) { in toString()
358 sb.append(", bundle=").append(mBundle); in toString()
378 mBundle, mSecondaryFragmentToken, mAnimationParams, mBooleanValue, in hashCode()
392 && Objects.equals(mBundle, other.mBundle) in equals()
420 private Bundle mBundle; field in TaskFragmentOperation.Builder
[all …]
/frameworks/av/drm/libmediadrm/
DDrmMetricsConsumer.cpp191 ExportCounterMetric(metrics.mOpenSessionCounter, mBundle); in consumeFrameworkMetrics()
192 ExportCounterMetric(metrics.mCloseSessionCounter, mBundle); in consumeFrameworkMetrics()
193 ExportEventMetric(metrics.mGetKeyRequestTimeUs, mBundle); in consumeFrameworkMetrics()
194 ExportEventMetric(metrics.mProvideKeyResponseTimeUs, mBundle); in consumeFrameworkMetrics()
195 ExportCounterMetric(metrics.mGetProvisionRequestCounter, mBundle); in consumeFrameworkMetrics()
196 ExportCounterMetric(metrics.mProvideProvisionResponseCounter, mBundle); in consumeFrameworkMetrics()
197 …ExportCounterMetricWithAttributeNames(metrics.mKeyStatusChangeCounter, "KeyStatusChange", mBundle); in consumeFrameworkMetrics()
198 ExportCounterMetricWithAttributeNames(metrics.mEventCounter, "Event", mBundle); in consumeFrameworkMetrics()
199 ExportCounterMetric(metrics.mGetDeviceUniqueIdCounter, mBundle); in consumeFrameworkMetrics()
200 ExportSessionLifespans(metrics.GetSessionLifespans(), mBundle); in consumeFrameworkMetrics()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DMessageQueueTest.java161 Bundle mBundle; in testFieldIntegrity()
179 mBundle = new Bundle(); in testFieldIntegrity()
180 msg.data = mBundle; in testFieldIntegrity()
213 if (newMsg.data == mBundle) { in testFieldIntegrity()
217 if (!newMsg.data.getString("key").equals(mBundle.getString("key"))) { in testFieldIntegrity()
221 newMsg.data.getString("key"), mBundle.getString("key")))); in testFieldIntegrity()
261 if (!msg.data.getString("key").equals(mBundle.getString("key"))) { in testFieldIntegrity()
265 msg.data.getString("key"), mBundle.getString("key"), msg.what))); in testFieldIntegrity()
/frameworks/opt/net/ims/tests/src/com/android/ims/
DImsManagerTest.java100 PersistableBundle mBundle; field in ImsManagerTest
123 mBundle = mContextFixture.getTestCarrierConfigBundle(); in setUp()
157 mBundle.putBoolean(CarrierConfigManager.KEY_EDITABLE_ENHANCED_4G_LTE_BOOL, in setDefaultValues()
159 mBundle.putBoolean(CarrierConfigManager.KEY_EDITABLE_WFC_MODE_BOOL, in setDefaultValues()
161 mBundle.putBoolean(CarrierConfigManager.KEY_EDITABLE_WFC_ROAMING_MODE_BOOL, in setDefaultValues()
163 mBundle.putBoolean(CarrierConfigManager.KEY_CARRIER_DEFAULT_WFC_IMS_ENABLED_BOOL, in setDefaultValues()
165 mBundle.putBoolean(CarrierConfigManager.KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_ENABLED_BOOL, in setDefaultValues()
167 mBundle.putInt(CarrierConfigManager.KEY_CARRIER_DEFAULT_WFC_IMS_MODE_INT, in setDefaultValues()
169 mBundle.putInt(CarrierConfigManager.KEY_CARRIER_DEFAULT_WFC_IMS_ROAMING_MODE_INT, in setDefaultValues()
171 mBundle.putBoolean(CarrierConfigManager.KEY_ENHANCED_4G_LTE_ON_BY_DEFAULT_BOOL, in setDefaultValues()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsCallTest.java54 private Bundle mBundle; field in ImsCallTest
63 mBundle = mTestCallProfile.mCallExtras; in setUp()
69 mBundle = null; in tearDown()
111 mBundle.putString(ImsCallProfile.EXTRA_CALL_RAT_TYPE, in testSetWifiDeprecated()
189 mBundle.putInt(ImsCallProfile.EXTRA_CALL_NETWORK_TYPE, in testSetWifi()
201 mBundle.putString(ImsCallProfile.EXTRA_CALL_RAT_TYPE_ALT, in testSetWifiAlt()
213 mBundle.putString(ImsCallProfile.EXTRA_CALL_RAT_TYPE, in testSetLteNoWifiDeprecated()
225 mBundle.putInt(ImsCallProfile.EXTRA_CALL_NETWORK_TYPE, in testSetLteNoWifi()
237 mBundle.putString(ImsCallProfile.EXTRA_CALL_RAT_TYPE_ALT, in testSetLteNoWifiAlt()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/data/
DDataConfigManagerTest.java46 private PersistableBundle mBundle; field in DataConfigManagerTest
52 mBundle = mContextFixture.getCarrierConfigBundle(); in setUp()
113 mBundle.putPersistableBundle( in testParseAutoDataSwitchScoreTable()
150 mBundle.putStringArray(CarrierConfigManager.KEY_CARRIER_METERED_APN_TYPES_STRINGS, in testMeteredNetworkCapabilities()
152 mBundle.putStringArray(CarrierConfigManager.KEY_CARRIER_METERED_ROAMING_APN_TYPES_STRINGS, in testMeteredNetworkCapabilities()
/frameworks/av/drm/libmediadrm/include/mediadrm/
DDrmMetricsConsumer.h40 DrmMetricsConsumer(os::PersistableBundle *bundle) : mBundle(bundle) {} in DrmMetricsConsumer()
90 os::PersistableBundle *mBundle;

123