Home
last modified time | relevance | path

Searched full:bundle (Results 1 – 25 of 4894) sorted by relevance

12345678910>>...196

/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowBundleTest.java5 import android.os.Bundle;
14 private final Bundle bundle = new Bundle(); field in ShadowBundleTest
18 assertThat(bundle.containsKey("foo")).isFalse(); in containsKey()
19 bundle.putString("foo", "bar"); in containsKey()
20 assertThat(bundle.containsKey("foo")).isTrue(); in containsKey()
25 bundle.putInt("foo", 5); in getInt()
26 assertThat(bundle.getInt("foo")).isEqualTo(5); in getInt()
27 assertThat(bundle.getInt("bar")).isEqualTo(0); in getInt()
28 assertThat(bundle.getInt("bar", 7)).isEqualTo(7); in getInt()
33 assertThat(bundle.size()).isEqualTo(0); in size()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowBundleTest.java5 import android.os.Bundle;
14 private final Bundle bundle = new Bundle(); field in ShadowBundleTest
18 assertThat(bundle.containsKey("foo")).isFalse(); in containsKey()
19 bundle.putString("foo", "bar"); in containsKey()
20 assertThat(bundle.containsKey("foo")).isTrue(); in containsKey()
25 bundle.putInt("foo", 5); in getInt()
26 assertThat(bundle.getInt("foo")).isEqualTo(5); in getInt()
27 assertThat(bundle.getInt("bar")).isEqualTo(0); in getInt()
28 assertThat(bundle.getInt("bar", 7)).isEqualTo(7); in getInt()
33 assertThat(bundle.size()).isEqualTo(0); in size()
[all …]
/external/mesa3d/src/panfrost/bifrost/
Dbi_pack.c69 * pushed uniform per bundle. Figure out which one we need in the bundle (the
70 * scheduler needs to ensure we only have one type per bundle), validate
192 bi_bundle *bundle) in bi_assign_fau_idx() argument
195 bi_assign_fau_idx_single(&bundle->regs, clause, bundle->fma, false, true); in bi_assign_fau_idx()
197 bi_assign_fau_idx_single(&bundle->regs, clause, bundle->add, assigned, false); in bi_assign_fau_idx()
456 bi_pack_fma(bi_clause *clause, bi_bundle bundle, bi_registers *regs) in bi_pack_fma() argument
458 if (!bundle.fma) in bi_pack_fma()
461 bool f16 = bundle.fma->dest_type == nir_type_float16; in bi_pack_fma()
462 bool f32 = bundle.fma->dest_type == nir_type_float32; in bi_pack_fma()
463 bool u32 = bundle.fma->dest_type == nir_type_uint32 || in bi_pack_fma()
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/common/src/main/java/com/google/android/exoplayer2/util/
DBundleableUtil.java21 import android.os.Bundle;
34 * Converts a {@link Bundleable} to a {@link Bundle}. It's a convenience wrapper of {@link
38 public static Bundle toNullableBundle(@Nullable Bundleable bundleable) { in toNullableBundle()
43 * Converts a {@link Bundle} to a {@link Bundleable}. It's a convenience wrapper of {@link
48 Bundleable.Creator<T> creator, @Nullable Bundle bundle) { in fromNullableBundle() argument
49 return bundle == null ? null : creator.fromBundle(bundle); in fromNullableBundle()
53 * Converts a {@link Bundle} to a {@link Bundleable}. It's a convenience wrapper of {@link
57 Bundleable.Creator<T> creator, @Nullable Bundle bundle, T defaultValue) { in fromNullableBundle() argument
58 return bundle == null ? defaultValue : creator.fromBundle(bundle); in fromNullableBundle()
61 /** Converts a list of {@link Bundleable} to a list {@link Bundle}. */
[all …]
DBundleUtil.java18 import android.os.Bundle;
24 /** Utilities for {@link Bundle}. */
33 * Gets an {@link IBinder} inside a {@link Bundle} for all Android versions.
35 * @param bundle The bundle to get the {@link IBinder}.
40 public static IBinder getBinder(Bundle bundle, @Nullable String key) { in getBinder() argument
42 return bundle.getBinder(key); in getBinder()
44 return getBinderByReflection(bundle, key); in getBinder()
49 * Puts an {@link IBinder} inside a {@link Bundle} for all Android versions.
51 * @param bundle The bundle to insert the {@link IBinder}.
55 public static void putBinder(Bundle bundle, @Nullable String key, @Nullable IBinder binder) { in putBinder() argument
[all …]
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/common/src/main/java/com/google/android/exoplayer2/util/
DBundleableUtil.java21 import android.os.Bundle;
34 * Converts a {@link Bundleable} to a {@link Bundle}. It's a convenience wrapper of {@link
38 public static Bundle toNullableBundle(@Nullable Bundleable bundleable) { in toNullableBundle()
43 * Converts a {@link Bundle} to a {@link Bundleable}. It's a convenience wrapper of {@link
48 Bundleable.Creator<T> creator, @Nullable Bundle bundle) { in fromNullableBundle() argument
49 return bundle == null ? null : creator.fromBundle(bundle); in fromNullableBundle()
53 * Converts a {@link Bundle} to a {@link Bundleable}. It's a convenience wrapper of {@link
57 Bundleable.Creator<T> creator, @Nullable Bundle bundle, T defaultValue) { in fromNullableBundle() argument
58 return bundle == null ? defaultValue : creator.fromBundle(bundle); in fromNullableBundle()
61 /** Converts a list of {@link Bundleable} to a list {@link Bundle}. */
[all …]
DBundleUtil.java18 import android.os.Bundle;
24 /** Utilities for {@link Bundle}. */
33 * Gets an {@link IBinder} inside a {@link Bundle} for all Android versions.
35 * @param bundle The bundle to get the {@link IBinder}.
40 public static IBinder getBinder(Bundle bundle, @Nullable String key) { in getBinder() argument
42 return bundle.getBinder(key); in getBinder()
44 return getBinderByReflection(bundle, key); in getBinder()
49 * Puts an {@link IBinder} inside a {@link Bundle} for all Android versions.
51 * @param bundle The bundle to insert the {@link IBinder}.
55 public static void putBinder(Bundle bundle, @Nullable String key, @Nullable IBinder binder) { in putBinder() argument
[all …]
/external/setupcompat/main/java/com/google/android/setupcompat/logging/internal/
DMetricBundleConverter.java3 import android.os.Bundle;
11 public static Bundle createBundleForLogging(CustomEvent customEvent) { in createBundleForLogging()
12 Bundle bundle = new Bundle(); in createBundleForLogging() local
13 bundle.putParcelable(MetricBundleKeys.CUSTOM_EVENT_BUNDLE, CustomEvent.toBundle(customEvent)); in createBundleForLogging()
14 return bundle; in createBundleForLogging()
17 public static Bundle createBundleForLoggingCounter(MetricKey counterName, int times) { in createBundleForLoggingCounter()
18 Bundle bundle = new Bundle(); in createBundleForLoggingCounter() local
19 bundle.putParcelable(MetricBundleKeys.METRIC_KEY_BUNDLE, MetricKey.fromMetricKey(counterName)); in createBundleForLoggingCounter()
20 bundle.putInt(MetricBundleKeys.COUNTER_INT, times); in createBundleForLoggingCounter()
21 return bundle; in createBundleForLoggingCounter()
[all …]
/external/curl/lib/
Dconncache.c50 conn->bundle = NULL; in conn_llist_dtor()
67 static void bundle_destroy(struct connectbundle *bundle) in bundle_destroy() argument
69 if(!bundle) in bundle_destroy()
72 Curl_llist_destroy(&bundle->conn_list, NULL); in bundle_destroy()
74 free(bundle); in bundle_destroy()
77 /* Add a connection to a bundle */
78 static void bundle_add_conn(struct connectbundle *bundle, in bundle_add_conn() argument
81 Curl_llist_insert_next(&bundle->conn_list, bundle->conn_list.tail, conn, in bundle_add_conn()
83 conn->bundle = bundle; in bundle_add_conn()
84 bundle->num_connections++; in bundle_add_conn()
[all …]
/external/libtextclassifier/java/src/com/android/textclassifier/
DExtrasUtils.java21 import android.os.Bundle;
56 static Bundle createForeignLanguageExtra(String language, float score, int modelVersion) { in createForeignLanguageExtra()
57 final Bundle bundle = new Bundle(); in createForeignLanguageExtra() local
58 bundle.putString(ENTITY_TYPE, language); in createForeignLanguageExtra()
59 bundle.putFloat(SCORE, score); in createForeignLanguageExtra()
60 bundle.putInt(MODEL_VERSION, modelVersion); in createForeignLanguageExtra()
61 bundle.putString(MODEL_NAME, "langId_v" + modelVersion); in createForeignLanguageExtra()
62 return bundle; in createForeignLanguageExtra()
71 static void putForeignLanguageExtra(Bundle container, Bundle extra) { in putForeignLanguageExtra()
79 * @see #putForeignLanguageExtra(Bundle, Bundle)
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/common/src/test/java/com/google/android/exoplayer2/
DPlaybackExceptionTest.java20 import android.os.Bundle;
56 Bundle bundle = new Bundle(); in bundle_producesExpectedException() local
57 bundle.putInt("0", 5001); // Error code in bundle_producesExpectedException()
58 bundle.putLong("1", 1000); // Timestamp. in bundle_producesExpectedException()
59 bundle.putString("2", "message"); in bundle_producesExpectedException()
60 bundle.putString("3", expectedCause.getClass().getName()); in bundle_producesExpectedException()
61 bundle.putString("4", "cause message"); in bundle_producesExpectedException()
64 expectedException, PlaybackException.CREATOR.fromBundle(bundle)); in bundle_producesExpectedException()
77 Bundle bundle = exception.toBundle(); in exception_producesExpectedBundle() local
78 assertThat(bundle.getInt("0")).isEqualTo(4003); // Error code. in exception_producesExpectedBundle()
[all …]
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/common/src/test/java/com/google/android/exoplayer2/
DPlaybackExceptionTest.java20 import android.os.Bundle;
56 Bundle bundle = new Bundle(); in bundle_producesExpectedException() local
57 bundle.putInt("0", 5001); // Error code in bundle_producesExpectedException()
58 bundle.putLong("1", 1000); // Timestamp. in bundle_producesExpectedException()
59 bundle.putString("2", "message"); in bundle_producesExpectedException()
60 bundle.putString("3", expectedCause.getClass().getName()); in bundle_producesExpectedException()
61 bundle.putString("4", "cause message"); in bundle_producesExpectedException()
64 expectedException, PlaybackException.CREATOR.fromBundle(bundle)); in bundle_producesExpectedException()
77 Bundle bundle = exception.toBundle(); in exception_producesExpectedBundle() local
78 assertThat(bundle.getInt("0")).isEqualTo(4003); // Error code. in exception_producesExpectedBundle()
[all …]
/external/setupcompat/main/java/com/google/android/setupcompat/logging/
DCustomEvent.java24 import android.os.Bundle;
52 MetricKey metricKey, PersistableBundle bundle, PersistableBundle piiValues) { in create() argument
60 // while constructor is used directly only when data is de-serialized from bundle (which in create()
62 PersistableBundles.assertIsValid(bundle), in create()
67 public static CustomEvent create(MetricKey metricKey, PersistableBundle bundle) { in create() argument
71 return create(metricKey, bundle, PersistableBundle.EMPTY); in create()
74 /** Converts {@link Bundle} into {@link CustomEvent}. */
75 public static CustomEvent toCustomEvent(Bundle bundle) { in toCustomEvent() argument
77 bundle.getLong(BUNDLE_KEY_TIMESTAMP, /* defaultValue= */ Long.MIN_VALUE), in toCustomEvent()
78 MetricKey.toMetricKey(bundle.getBundle(BUNDLE_KEY_METRICKEY)), in toCustomEvent()
[all …]
/external/tensorflow/tensorflow/cc/saved_model/
Dsaved_model_bundle_test.cc66 const SavedModelBundle& bundle) { in ValidateAssets() argument
75 bundle.session->Run({}, {"filename_tensor:0"}, {}, &path_outputs)); in ValidateAssets()
83 const SavedModelBundle& bundle) { in CheckSavedModelBundle() argument
84 ValidateAssets(export_dir, bundle); in CheckSavedModelBundle()
86 const auto& signature_def = bundle.GetSignatures().at("regress_x_to_y"); in CheckSavedModelBundle()
101 TF_ASSERT_OK(bundle.session->Run({{input_name, input}}, {output_name}, {}, in CheckSavedModelBundle()
115 SavedModelBundle bundle; in TEST_F() local
123 {kSavedModelTagServe}, &bundle)); in TEST_F()
124 CheckSavedModelBundle(export_dir, bundle); in TEST_F()
129 SavedModelBundle bundle; in TEST_F() local
[all …]
Dsaved_model_bundle_lite_test.cc55 const SavedModelBundleLite& bundle) { in ValidateAssets() argument
64 bundle.GetSession()->Run({}, {"filename_tensor:0"}, {}, &path_outputs)); in ValidateAssets()
72 const SavedModelBundleLite& bundle) { in CheckSavedModelBundle() argument
73 ValidateAssets(export_dir, bundle); in CheckSavedModelBundle()
74 // Retrieve the regression signature from the bundle. in CheckSavedModelBundle()
75 const auto& signature_def = bundle.GetSignatures().at("regress_x_to_y"); in CheckSavedModelBundle()
90 TF_ASSERT_OK(bundle.GetSession()->Run({{input_name, input}}, {output_name}, in CheckSavedModelBundle()
102 bundle.GetSession()->Run(run_options, {{input_name, input}}, in CheckSavedModelBundle()
113 SavedModelBundleLite bundle; in TEST_F() local
121 {kSavedModelTagServe}, &bundle)); in TEST_F()
[all …]
/external/libchrome/components/policy/core/common/
Dpolicy_bundle_unittest.cc69 // Returns true if |bundle| is empty.
70 bool IsEmpty(const PolicyBundle& bundle) { in IsEmpty() argument
71 return bundle.begin() == bundle.end(); in IsEmpty()
77 PolicyBundle bundle; in TEST() local
78 EXPECT_TRUE(IsEmpty(bundle)); in TEST()
80 AddTestPolicies(&bundle.Get( in TEST()
82 EXPECT_FALSE(IsEmpty(bundle)); in TEST()
86 EXPECT_TRUE(bundle.Get(PolicyNamespace(POLICY_DOMAIN_CHROME, in TEST()
89 PolicyBundle::const_iterator it = bundle.begin(); in TEST()
90 ASSERT_TRUE(it != bundle.end()); in TEST()
[all …]
/external/icu/icu4c/source/tools/genrb/
Dreslist.h73 /* Resource bundle root table */
127 void bundle_write_java(struct SRBRoot *bundle, const char *outputDir, const char* outputEnc, char *…
132 void bundle_write_xml(struct SRBRoot *bundle, const char *outputDir,const char* outputEnc, const ch…
139 * for use in non-error cases when no resource is to be added to the bundle.
148 TableResource *table_open(struct SRBRoot *bundle, const char *tag, const struct UString* comment, U…
150 ArrayResource *array_open(struct SRBRoot *bundle, const char *tag, const struct UString* comment, U…
152 struct SResource *string_open(struct SRBRoot *bundle, const char *tag, const UChar *value, int32_t …
154 struct SResource *alias_open(struct SRBRoot *bundle, const char *tag, UChar *value, int32_t len, co…
156 IntVectorResource *intvector_open(struct SRBRoot *bundle, const char *tag, const struct UString* c…
158 struct SResource *int_open(struct SRBRoot *bundle, const char *tag, int32_t value, const struct USt…
[all …]
/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/common/src/main/java/com/google/android/exoplayer2/
DMediaMetadata.java25 import android.os.Bundle;
79 @Nullable private Bundle extras;
359 /** Sets the extras {@link Bundle}. */
360 public Builder setExtras(@Nullable Bundle extras) { in setExtras()
705 * Optional extras {@link Bundle}.
707 * <p>Given the complexities of checking the equality of two {@link Bundle}s, this is not
710 @Nullable public final Bundle extras;
906 public Bundle toBundle() { in toBundle()
907 Bundle bundle = new Bundle(); in toBundle() local
908 bundle.putCharSequence(keyForField(FIELD_TITLE), title); in toBundle()
[all …]
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/common/src/main/java/com/google/android/exoplayer2/
DMediaMetadata.java25 import android.os.Bundle;
79 @Nullable private Bundle extras;
357 /** Sets the extras {@link Bundle}. */
358 public Builder setExtras(@Nullable Bundle extras) { in setExtras()
697 * Optional extras {@link Bundle}.
699 * <p>Given the complexities of checking the equality of two {@link Bundle}s, this is not
702 @Nullable public final Bundle extras;
897 public Bundle toBundle() { in toBundle()
898 Bundle bundle = new Bundle(); in toBundle() local
899 bundle.putCharSequence(keyForField(FIELD_TITLE), title); in toBundle()
[all …]
/external/mesa3d/src/panfrost/midgard/
Dmidgard_ra_pipeline.c30 * of the current bundle. If it is not, it is promoted to a bundle-specific
34 * pipeline (vmul/sadd) lasting the duration of the bundle only. There are two
45 midgard_bundle *bundle, unsigned i, in mir_pipeline_ins() argument
48 midgard_instruction *ins = bundle->instructions[i]; in mir_pipeline_ins()
51 * created at the start of the bundle and are destroyed at the end. So in mir_pipeline_ins()
55 * 2. The index is not live after the bundle. in mir_pipeline_ins()
59 * creation of the bundle, so the pipeline register can exist. #2 is in mir_pipeline_ins()
73 /* Analyze the bundle for a per-byte read mask */ in mir_pipeline_ins()
75 for (unsigned j = 0; j < bundle->instruction_count; ++j) { in mir_pipeline_ins()
76 midgard_instruction *q = bundle->instructions[j]; in mir_pipeline_ins()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DUResourceBundle.java33 * locale. A resource bundle provides a way of accessing locale- specific information in a
34 * data file. You create a resource bundle that manages the resources for a given locale
44 * definition</a>. More on resource bundle concepts and syntax can be found in the <a
77 * UResourceBundle bundle =
83 * UResourceBundle bundle =
99 * {@icu} Creates a resource bundle using the specified base name and locale.
103 * @param localeName the locale for which a resource bundle is desired
104 * @throws MissingResourceException If no resource bundle for the specified base name
106 * @return a resource bundle for the given base name and locale
115 * {@icu} Creates a resource bundle using the specified base name, locale, and class root.
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
DICUResourceBundleTest.java97 …UResourceBundle bundle = UResourceBundle.getBundleInstance("android.icu.impl.data.HolidayBundle", … in TestResourceBundleWrapper() local
98 Object o = bundle.getObject("holidays"); in TestResourceBundleWrapper()
105 bundle = UResourceBundle.getBundleInstance(ICUData.ICU_BASE_NAME, "bogus"); in TestResourceBundleWrapper()
106 if(bundle instanceof UResourceBundle && bundle.getULocale().getName().equals("en_US")){ in TestResourceBundleWrapper()
113 bundle = UResourceBundle.getBundleInstance("bogus", "bogus"); in TestResourceBundleWrapper()
114 if(bundle!=null){ in TestResourceBundleWrapper()
125 // this tests tests loading of root bundle when a resource bundle in TestJB3879()
128 …UResourceBundle bundle = UResourceBundle.getBundleInstance("android/icu/dev/data/testdata", ULocal… in TestJB3879() local
129 if(bundle==null){ in TestJB3879()
130 errln("could not create the resource bundle"); in TestJB3879()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
DICUResourceBundleTest.java94 …UResourceBundle bundle = UResourceBundle.getBundleInstance("com.ibm.icu.impl.data.HolidayBundle", … in TestResourceBundleWrapper() local
95 Object o = bundle.getObject("holidays"); in TestResourceBundleWrapper()
102 bundle = UResourceBundle.getBundleInstance(ICUData.ICU_BASE_NAME, "bogus"); in TestResourceBundleWrapper()
103 if(bundle instanceof UResourceBundle && bundle.getULocale().getName().equals("en_US")){ in TestResourceBundleWrapper()
110 bundle = UResourceBundle.getBundleInstance("bogus", "bogus"); in TestResourceBundleWrapper()
111 if(bundle!=null){ in TestResourceBundleWrapper()
122 // this tests tests loading of root bundle when a resource bundle in TestJB3879()
125 …UResourceBundle bundle = UResourceBundle.getBundleInstance("com/ibm/icu/dev/data/testdata", ULocal… in TestJB3879() local
126 if(bundle==null){ in TestJB3879()
127 errln("could not create the resource bundle"); in TestJB3879()
[all …]
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowAccountManager.java20 import android.os.Bundle;
58 private List<Bundle> addAccountOptionsList = new ArrayList<>();
118 protected boolean addAccountExplicitly(Account account, String password, Bundle userdata) { in addAccountExplicitly()
184 * Bundle will include the Intent and {@link AccountManager#KEY_BOOLEAN_RESULT} will be false.
187 protected AccountManagerFuture<Bundle> removeAccount(
190 AccountManagerCallback<Bundle> callback,
196 new BaseRoboAccountManagerFuture<Bundle>(callback, handler) {
198 public Bundle doWork() {
199 Bundle result = new Bundle();
356 * Returns a bundle that contains the account session bundle under {@link
[all …]
/external/setupcompat/partnerconfig/java/com/google/android/setupcompat/partnerconfig/
DResourceEntry.java25 import android.os.Bundle;
34 * on IPC via the Bundle representation.
57 * Creates a {@code ResourceEntry} object from a provided bundle or the fallback resource if
58 * partner resource not found and the {@code fallbackConfig} key exists in provided bundle.
59 * Returns {@code null} if fallback package is not found or the {@code bundle} doesn't contain
63 * @param bundle the source bundle needs to have all the information for a {@code ResourceEntry}
66 public static ResourceEntry fromBundle(@NonNull Context context, Bundle bundle) { in fromBundle() argument
70 if (!bundle.containsKey(KEY_PACKAGE_NAME) in fromBundle()
71 || !bundle.containsKey(KEY_RESOURCE_NAME) in fromBundle()
72 || !bundle.containsKey(KEY_RESOURCE_ID)) { in fromBundle()
[all …]

12345678910>>...196