Home
last modified time | relevance | path

Searched refs:persistableBundle (Results 1 – 7 of 7) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowCarrierConfigManagerTest.java36 PersistableBundle persistableBundle = carrierConfigManager.getConfigForSubId(-1); in getConfigForSubId_shouldReturnNonNullValue() local
37 assertThat(persistableBundle).isNotNull(); in getConfigForSubId_shouldReturnNonNullValue()
42 PersistableBundle persistableBundle = new PersistableBundle(); in testGetConfigForSubId() local
43 persistableBundle.putString("key1", "test"); in testGetConfigForSubId()
44 persistableBundle.putInt("key2", 100); in testGetConfigForSubId()
45 persistableBundle.putBoolean("key3", true); in testGetConfigForSubId()
47 shadowOf(carrierConfigManager).setConfigForSubId(TEST_ID, persistableBundle); in testGetConfigForSubId()
/external/setupcompat/main/java/com/google/android/setupcompat/internal/
DPersistableBundles.java62 public static Bundle toBundle(PersistableBundle persistableBundle) { in toBundle() argument
64 bundle.putAll(persistableBundle); in toBundle()
100 public static PersistableBundle assertIsValid(PersistableBundle persistableBundle) { in assertIsValid() argument
101 Preconditions.checkNotNull(persistableBundle, "PersistableBundle cannot be null!"); in assertIsValid()
102 for (String key : persistableBundle.keySet()) { in assertIsValid()
103 Object value = persistableBundle.get(key); in assertIsValid()
108 return persistableBundle; in assertIsValid()
/external/setupcompat/main/java/com/google/android/setupcompat/logging/
DCustomEvent.java124 return new PersistableBundle(this.persistableBundle); in values()
144 parcel.writePersistableBundle(persistableBundle); in writeToParcel()
159 && PersistableBundles.equals(persistableBundle, that.persistableBundle) in equals()
165 return ObjectUtils.hashCode(timestampMillis, metricKey, persistableBundle, piiValues); in hashCode()
181 this.persistableBundle = new PersistableBundle(bundle); in CustomEvent()
187 private final PersistableBundle persistableBundle; field in CustomEvent
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowCarrierConfigManager.java22 PersistableBundle persistableBundle = bundles.get(subId); in getConfigForSubId() local
23 if (persistableBundle == null) { in getConfigForSubId()
26 return persistableBundle; in getConfigForSubId()
/external/setupcompat/main/java/com/google/android/setupcompat/logging/internal/
DFooterBarMixinMetrics.java128 PersistableBundle persistableBundle = new PersistableBundle(); in getMetrics() local
129 persistableBundle.putString(EXTRA_PRIMARY_BUTTON_VISIBILITY, primaryButtonVisibility); in getMetrics()
130 persistableBundle.putString(EXTRA_SECONDARY_BUTTON_VISIBILITY, secondaryButtonVisibility); in getMetrics()
131 return persistableBundle; in getMetrics()
DPartnerCustomizedResourceListMetric.java46 PersistableBundle persistableBundle = new PersistableBundle(); in buildLogBundleFromResourceConfigBundle() local
50 persistableBundle.putBoolean(resourceExtra.getString("resourceName", key), true); in buildLogBundleFromResourceConfigBundle()
54 return persistableBundle; in buildLogBundleFromResourceConfigBundle()
/external/setupcompat/main/java/com/google/android/setupcompat/
DPartnerCustomizationLayout.java209 PersistableBundle persistableBundle = in onDetachedFromWindow() local
217 persistableBundle)); in onDetachedFromWindow()