/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowBundleTest.java | 5 import android.os.Bundle; 14 private final Bundle bundle = new Bundle(); field in class:ShadowBundleTest 18 assertThat(bundle.containsKey("foo")).isFalse(); 19 bundle.putString("foo", "bar"); 20 assertThat(bundle.containsKey("foo")).isTrue(); 25 bundle.putInt("foo", 5); 26 assertThat(bundle.getInt("foo")).isEqualTo(5); 27 assertThat(bundle.getInt("bar")).isEqualTo(0) [all...] |
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
BundleTest.java | 4 import android.os.Bundle; 22 private Bundle bundle; field in class:BundleTest 25 bundle = new Bundle(); 30 assertFalse(bundle.containsKey("foo")); 31 bundle.putString("foo", "bar"); 32 assertTrue(bundle.containsKey("foo")); 37 bundle.putInt("foo", 5); 38 assertEquals(5,bundle.getInt("foo")) [all...] |
/external/jacoco/org.jacoco.core/src/org/jacoco/core/ |
JaCoCo.java | 31 final ResourceBundle bundle = ResourceBundle external variable declarations 33 VERSION = bundle.getString("VERSION"); 34 HOMEURL = bundle.getString("HOMEURL"); 35 RUNTIMEPACKAGE = bundle.getString("RUNTIMEPACKAGE");
|
/toolchain/binutils/binutils-2.27/gas/testsuite/gas/ia64/ |
slot2.l | 2 .*:11: Error: .* must be last in bundle 3 .*:16: Error: .* must be last in bundle
|
label.l | 2 .*:12: Error: Label must be first in a bundle 3 .*:19: Error: Label must be first in a bundle
|
/frameworks/base/tools/aapt/ |
Main.h | 17 #include "Bundle.h" 31 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) [all...] |
Main.cpp | 7 #include "Bundle.h" 30 int doVersion(Bundle* bundle) 32 if (bundle->getFileSpecCount() != 0) { 253 int handleCommand(Bundle* bundle) 256 // bundle->getCommand(), bundle->getVerbose(), bundle->getForce()); 257 //for (int i = 0; i < bundle->getFileSpecCount(); i++ 282 Bundle bundle; local [all...] |
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
ImeCommand.java | 19 import android.os.Bundle; 34 private final Bundle mExtras; 37 @NonNull Bundle extras) { 44 private ImeCommand(@NonNull Bundle bundle) { 45 mName = bundle.getString(NAME_KEY); 46 mId = bundle.getLong(ID_KEY); 47 mDispatchToMainThread = bundle.getBoolean(DISPATCH_TO_MAIN_THREAD_KEY); 48 mExtras = bundle.getParcelable(EXTRA_KEY); 51 static ImeCommand fromBundle(@NonNull Bundle bundle) 56 final Bundle bundle = new Bundle(); local [all...] |
ImeState.java | 19 import android.os.Bundle; 52 Bundle toBundle() { 53 final Bundle bundle = new Bundle(); local 54 bundle.putBoolean("mHasInputBinding", mHasInputBinding); 55 bundle.putBoolean("mHasDummyInputConnection", mHasDummyInputConnection); 56 return bundle; 60 static ImeState fromBundle(@Nullable Bundle bundle) { [all...] |
/cts/hostsidetests/incident/apps/errorsapp/src/com/android/server/cts/errors/ |
ExceptionActivity.java | 20 import android.os.Bundle; 27 public void onCreate(Bundle bundle) { 28 super.onCreate(bundle);
|
/external/jcommander/src/test/resources/ |
MessageBundle_en_US.properties | 20 command = Command from the bundle
|
/toolchain/binutils/binutils-2.27/gas/testsuite/gas/i386/ |
bundle-bad.d | 2 #error-output: bundle-bad.l
|
/frameworks/base/services/core/java/com/android/server/ |
PendingIntentUtils.java | 21 import android.os.Bundle; 29 * Creates a Bundle that can be used to restrict the background PendingIntents. 30 * @param bundle when provided, will merge the extra options to restrict background 31 * PendingIntent into the existing bundle. 32 * @return the created Bundle. 34 public static Bundle createDontSendToRestrictedAppsBundle(@Nullable Bundle bundle) { 37 if (bundle == null) { 40 bundle.putAll(options.toBundle()) [all...] |
/frameworks/support/core/ktx/src/androidTest/java/androidx/core/os/ |
BundleTest.kt | 21 import android.os.Bundle 38 val bundleValue = Bundle() 43 val bundle = bundleOf( 55 "bundle" to bundleValue, 76 assertEquals(25, bundle.size()) 78 assertNull(bundle["null"]) 80 assertEquals(true, bundle["boolean"]) 81 assertEquals(1.toByte(), bundle["byte"]) 82 assertEquals('a', bundle["char"]) 83 assertEquals(1.0, bundle["double"] [all...] |
PersistableBundleTest.kt | 32 val bundle = persistableBundleOf( 48 assertEquals(9, bundle.size()) 50 assertNull(bundle["null"]) 52 assertEquals(1.0, bundle["double"]) 53 assertEquals(1, bundle["int"]) 54 assertEquals(1L, bundle["long"]) 56 assertEquals("hey", bundle["string"]) 58 assertArrayEquals(doubleArrayOf(), bundle["doubleArray"] as DoubleArray, 0.0) 59 assertArrayEquals(intArrayOf(), bundle["intArray"] as IntArray) 60 assertArrayEquals(longArrayOf(), bundle["longArray"] as LongArray [all...] |
/frameworks/base/core/tests/coretests/src/android/app/ |
InstrumentationTest.java | 19 import android.os.Bundle; 27 * Simple stress test for {@link Instrumentation#sendStatus(int, android.os.Bundle)}, to 32 Bundle bundle = new Bundle(); local 33 bundle.putInt("iterations", i); 34 getInstrumentation().sendStatus(-1, bundle);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
SampleBundleClass.java | 28 private static ResourceBundle bundle; field in class:SampleBundleClass 37 bundle = ResourceBundle.getBundle("tests.api.simple.SampleBundleClass"); 40 bundle = null;
|
ResourceBundleTest.java | 44 ResourceBundle bundle = ResourceBundle.getBundle(name); local 45 assertEquals(name, bundle.getBaseBundleName()); 47 bundle = ResourceBundle.getBundle(name, Locale.getDefault()); 48 assertEquals(name, bundle.getBaseBundleName()); 58 ResourceBundle bundle; local 63 bundle = ResourceBundle.getBundle(name, new Locale("fr", "FR", "VAR")); 64 assertEquals("Wrong bundle fr_FR_VAR", "frFRVARValue4", bundle.getString("parent4")); 66 bundle = ResourceBundle.getBundle(name, new Locale("fr", "FR", "v1")); 67 assertEquals("Wrong bundle fr_FR_v1", "frFRValue4", bundle.getString("parent4")) 137 ResourceBundle bundle = ResourceBundle.getBundle(name, Locale local 183 ResourceBundle bundle; local 268 ResourceBundle bundle; local 295 ResourceBundle bundle; local 332 ResourceBundle bundle; local 365 ResourceBundle bundle; local 412 ResourceBundle bundle = ResourceBundle.getBundle( local [all...] |
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
BroadcastUtils.java | 18 import android.os.Bundle; 36 public static final String toBundleString(Bundle bundle) { 37 if (bundle == null) { 38 return "*** Bundle is null ****"; 41 if (bundle != null) { 43 for (String s : bundle.keySet()) { 44 buf.append("(" + s + " = " + bundle.get(s) + "), ");
|
/cts/tests/tests/alarmclock/common/src/android/alarmclock/common/ |
Utils.java | 18 import android.os.Bundle; 40 public static final String toBundleString(Bundle bundle) { 41 if (bundle == null) { 42 return "*** Bundle is null ****"; 45 if (bundle != null) { 47 for (String s : bundle.keySet()) { 48 buf.append("(" + s + " = " + bundle.get(s) + "), ");
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
UResourceBundleIterator.java | 40 private UResourceBundle bundle; field in class:UResourceBundleIterator 44 * Construct a resource bundle iterator for the 45 * given resource bundle 47 * @param bndl The resource bundle to iterate over 50 bundle = bndl; 51 size = bundle.getSize(); 61 return bundle.get(index++); 73 return bundle.getString(index++);
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
UResourceBundleIterator.java | 39 private UResourceBundle bundle; field in class:UResourceBundleIterator 43 * Construct a resource bundle iterator for the 44 * given resource bundle 46 * @param bndl The resource bundle to iterate over 50 bundle = bndl; 51 size = bundle.getSize(); 62 return bundle.get(index++); 75 return bundle.getString(index++);
|
/frameworks/base/tools/bit/ |
adb.h | 41 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/support/room/migration/src/test/java/androidx/room/migration/bundle/ |
FieldBundleTest.java | 17 package androidx.room.migration.bundle; 30 FieldBundle bundle = new FieldBundle("foo", "foo", "text", false); local 32 assertThat(bundle.isSchemaEqual(copy), is(true)); 37 FieldBundle bundle = new FieldBundle("foo", "foo", "text", false); local 39 assertThat(bundle.isSchemaEqual(copy), is(false)); 44 FieldBundle bundle = new FieldBundle("foo", "foo", "text", false); local 46 assertThat(bundle.isSchemaEqual(copy), is(false)); 51 FieldBundle bundle = new FieldBundle("foo", "foo", "text", false); local 53 assertThat(bundle.isSchemaEqual(copy), is(false)); 58 FieldBundle bundle = new FieldBundle("foo", "foo", "text", false) local [all...] |
ForeignKeyBundleTest.java | 17 package androidx.room.migration.bundle; 32 ForeignKeyBundle bundle = new ForeignKeyBundle("table", "onDelete", local 38 assertThat(bundle.isSchemaEqual(other), is(true)); 43 ForeignKeyBundle bundle = new ForeignKeyBundle("table", "onDelete", local 49 assertThat(bundle.isSchemaEqual(other), is(false)); 54 ForeignKeyBundle bundle = new ForeignKeyBundle("table", "onDelete2", local 60 assertThat(bundle.isSchemaEqual(other), is(false)); 65 ForeignKeyBundle bundle = new ForeignKeyBundle("table", "onDelete", local 71 assertThat(bundle.isSchemaEqual(other), is(false)); 76 ForeignKeyBundle bundle = new ForeignKeyBundle("table", "onDelete" local 87 ForeignKeyBundle bundle = new ForeignKeyBundle("table", "onDelete", local [all...] |