/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
ReduceByOpTest.java | 49 @Test(dataProvider = "StreamTestData<Integer>", dataProviderClass = StreamTestDataProvider.class) 50 public void testOps(String name, TestData.OfRef<Integer> data) { 51 Map<Boolean,List<Integer>> gbResult = data.stream().collect(groupingBy(LambdaTestHelpers.forPredicate(pEven, true, false))); 52 Map<Boolean, Integer> result = data.stream().collect(groupingBy(LambdaTestHelpers.forPredicate(pEven, true, false), reducing(0, rPlus))); 54 for (Map.Entry<Boolean, Integer> entry : result.entrySet()) { 60 int uniqueSize = data.into(new HashSet<Integer>()).size(); 61 Map<Integer, List<Integer>> mgResult = exerciseTerminalOps(data, s -> s.collect(groupingBy(mId))); 62 Map<Integer, Integer> miResult = exerciseTerminalOps(data, s -> s.collect(groupingBy(mId, reducing(0, e -> 1, Integer:: (…) [all...] |
TabulatorsTest.java | 287 @Test(dataProvider = "StreamTestData<Integer>", dataProviderClass = StreamTestDataProvider.class) 288 public void testReduce(String name, TestData.OfRef<Integer> data) throws ReflectiveOperationException { 289 assertCollect(data, Collectors.reducing(0, Integer::sum), 290 s -> s.reduce(0, Integer::sum)); 291 assertCollect(data, Collectors.reducing(Integer.MAX_VALUE, Integer::min), 292 s -> s.min(Integer::compare).orElse(Integer.MAX_VALUE)); 293 assertCollect(data, Collectors.reducing(Integer.MIN_VALUE, Integer::max) [all...] |
/external/chromium-trace/catapult/third_party/gsutil/third_party/pyasn1/test/type/ |
test_namedtype.py | 15 self.e = namedtype.NamedType('age', univ.Integer()) 18 assert n == 'age' or t == univ.Integer(), 'unpack fails' 24 namedtype.OptionalNamedType('age', univ.Integer(0)), 50 univ.Integer.tagSet: univ.Integer(0), 60 univ.Integer.tagSet: univ.Integer(0) 73 assert self.e.getPositionNearType(univ.Integer.tagSet, 1) == 1 80 namedtype.NamedType('age', univ.Integer(0))
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue139/ |
MergeValueTest.java | 31 Map<String, Integer> map = (Map<String, Integer>) yaml.load(simple); 33 assertEquals(new Integer(2), map.get("key")); 65 Map<String, Integer> common = (Map<String, Integer>) map.get("common"); 66 Map<String, Integer> production = (Map<String, Integer>) map.get("production"); 67 assertEquals(new Integer(2), common.get("key")); 68 assertEquals(new Integer(3), production.get("key"));
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/types/ |
MergeTagTest.java | 35 assertEquals(new Integer(1), center.get("x")); 36 assertEquals(new Integer(2), center.get("y")); 40 assertEquals(left.get("x").getClass().toString(), new Integer(0), left.get("x")); 41 assertEquals(new Integer(2), left.get("y")); 45 assertEquals(new Integer(10), big.get("r")); 49 assertEquals(new Integer(1), small.get("r")); 53 assertEquals(new Integer(1), explicit.get("x")); 54 assertEquals(new Integer(2), explicit.get("y")); 55 assertEquals(new Integer(10), explicit.get("r"));
|
/frameworks/base/packages/SettingsProvider/res/values/ |
defaults.xml | 21 <integer name="def_screen_off_timeout">60000</integer> 22 <integer name="def_sleep_timeout">-1</integer> 33 <integer name="def_screen_brightness">102</integer> 53 <integer name="def_wifi_sleep_policy">2</integer> 69 <integer name="def_power_sounds_enabled">1</integer> [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
SortedMapTestBase.java | 43 SortedMap<Integer, Integer> map; 44 SortedMap<Integer, Integer> ref; 77 Set<Map.Entry<Integer, Integer>> refSet = ref.entrySet(); 78 Set<Map.Entry<Integer, Integer>> mapSet = map.entrySet(); 79 for (Map.Entry<Integer, Integer> e : refSet) [all...] |
/libcore/jsr166-tests/src/test/java/jsr166/ |
ThreadLocalTest.java | 25 static ThreadLocal<Integer> tl = new ThreadLocal<Integer>() { 26 public Integer initialValue() { 31 static InheritableThreadLocal<Integer> itl = 32 new InheritableThreadLocal<Integer>() { 33 protected Integer initialValue() { 37 protected Integer childValue(Integer parentValue) { 38 return new Integer(parentValue.intValue() + 1);
|
AtomicReferenceFieldUpdaterTest.java | 17 volatile Integer x = null; 18 protected volatile Integer protectedField; 19 private volatile Integer privateField; 21 Integer w; 39 // AtomicReferenceFieldUpdater<AtomicReferenceFieldUpdaterTest,Integer> a = 41 // (AtomicReferenceFieldUpdaterTest.class, Integer.class, "privateField"); 49 // AtomicReferenceFieldUpdater<AtomicReferenceFieldUpdaterTest,Integer> a = 51 // (AtomicReferenceFieldUpdaterTest.class, Integer.class, "protectedField"); 66 // AtomicReferenceFieldUpdater<AtomicReferenceFieldUpdaterTest,Integer> a = 68 // (AtomicReferenceFieldUpdaterTest.class, Integer.class, "x") [all...] |
/packages/providers/ContactsProvider/tests/assets/upgradeTest/ |
contacts2_1108.sql | 3 CREATE TABLE _sync_state (_id INTEGER PRIMARY KEY,account_name TEXT NOT NULL,account_type TEXT NOT NULL,data TEXT,UNIQUE(account_name, account_type)); 4 CREATE TABLE _sync_state_metadata (version INTEGER); 14 CREATE TABLE accounts (_id INTEGER PRIMARY KEY AUTOINCREMENT,account_name TEXT, account_type TEXT, data_set TEXT); 15 CREATE TABLE contacts (_id INTEGER PRIMARY KEY AUTOINCREMENT,name_raw_contact_id INTEGER REFERENCES raw_contacts(_id),photo_id INTEGER REFERENCES data(_id),photo_file_id INTEGER REFERENCES photo_files(_id),custom_ringtone TEXT,send_to_voicemail INTEGER NOT NULL DEFAULT 0,times_contacted INTEGER NOT NULL DEFAULT 0,last_time_contacted INTEGER,starred INTEGER NOT NULL DEFAULT 0,pinned INTEGER NOT NULL DEFAULT 0,has_phone_number INTEGER NOT (…) [all...] |
/dalvik/dx/src/com/android/dx/command/findusages/ |
FindUsages.java | 36 private final Set<Integer> methodIds; 37 private final Set<Integer> fieldIds; 48 Set<Integer> typeStringIndexes = new HashSet<Integer>(); 49 Set<Integer> memberNameIndexes = new HashSet<Integer>(); 67 methodIds = new HashSet<Integer>(); 68 fieldIds = new HashSet<Integer>(); 154 private Set<Integer> getFieldIds(Dex dex, Set<Integer> memberNameIndexes, int declaringType) [all...] |
/dalvik/dx/src/com/android/dx/io/instructions/ |
AddressMap.java | 27 private final HashMap<Integer,Integer> map; 33 map = new HashMap<Integer,Integer>(); 41 Integer value = map.get(keyAddress);
|
/external/clang/test/Sema/ |
builtins-overflow.c | 17 __builtin_add_overflow(c, 1, &r); // expected-error {{operand argument to overflow builtin must be an integer ('const char *' invalid)}} 18 __builtin_add_overflow(1, c, &r); // expected-error {{operand argument to overflow builtin must be an integer ('const char *' invalid)}} 19 __builtin_add_overflow(1, 1, 3); // expected-error {{result argument to overflow builtin must be a pointer to a non-const integer ('int' invalid)}} 20 __builtin_add_overflow(1, 1, &f); // expected-error {{result argument to overflow builtin must be a pointer to a non-const integer ('float *' invalid)}} 21 __builtin_add_overflow(1, 1, &q); // expected-error {{result argument to overflow builtin must be a pointer to a non-const integer ('const unsigned int *' invalid)}}
|
/external/dexmaker/src/dx/java/com/android/dx/io/instructions/ |
AddressMap.java | 28 private final HashMap<Integer,Integer> map; 34 map = new HashMap<Integer,Integer>(); 42 Integer value = map.get(keyAddress);
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
TestIntegerSortedSetGenerator.java | 26 * Create integer sets for testing collections that are sorted by natural 35 @Override protected abstract SortedSet<Integer> create(Integer[] elements); 38 @Override public List<Integer> order(List<Integer> insertionOrder) {
|
/external/jcommander/src/main/java/com/beust/jcommander/converters/ |
IntegerConverter.java | 24 * Convert a string to an integer. 28 public class IntegerConverter extends BaseConverter<Integer> { 34 public Integer convert(String value) { 36 return Integer.parseInt(value); 38 throw new ParameterException(getErrorString(value, "an integer"));
|
/external/mockito/src/org/mockito/internal/verification/argumentmatching/ |
ArgumentMatchingTool.java | 20 public Integer[] getSuspiciouslyNotMatchingArgsIndexes(List<Matcher> matchers, Object[] arguments) {
22 return new Integer[0];
25 List<Integer> suspicious = new LinkedList<Integer>();
36 return suspicious.toArray(new Integer[0]);
|
/external/snakeyaml/src/test/java/examples/ |
CustomMapExampleTest.java | 30 Map<Integer, String> data = (Map<Integer, String>) yaml 35 assertEquals(new Integer(1), keys[0]); 36 assertEquals(new Integer(2), keys[1]); 37 assertEquals(new Integer(3), keys[2]);
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue124/ |
Bean124.java | 23 private List<Integer> numbers; 27 this.numbers = new ArrayList<Integer>(3); 33 public Bean124(String a, List<Integer> numbers) { 47 public List<Integer> getNumbers() { 51 public void setNumbers(List<Integer> numbers) {
|
/external/testng/src/test/java/test/testng387/ |
FailedDPTest.java | 20 static final List<Integer> primes = Arrays.asList(2, 3, 5, 7); 26 public Iterator<Integer[]> getData() { 27 List<Integer[]> list = new ArrayList<>(); 29 list.add(new Integer[] { i }); 39 public void isNotPrime(Integer i) throws Exception {
|
/frameworks/base/core/java/android/util/ |
IntProperty.java | 23 * <code>Integer</code> class. 27 public abstract class IntProperty<T> extends Property<T, Integer> { 30 super(Integer.class, name); 34 * A type-specific variant of {@link #set(Object, Integer)} that is faster when dealing 40 final public void set(T object, Integer value) {
|
/frameworks/base/packages/SystemUI/res/values-land/ |
dimens.xml | 23 <integer name="notification_panel_layout_gravity">@integer/standard_notification_panel_layout_gravity</integer> 34 <integer name="quick_settings_num_columns">4</integer>
|
/packages/apps/Camera2/src/com/android/camera/processing/memory/ |
ByteBufferDirectPool.java | 22 * Resource pool for large, directly allocated byte buffers. The integer key 25 public final class ByteBufferDirectPool extends SimpleLruResourcePool<Integer, ByteBuffer> { 31 protected ByteBuffer create(Integer bytes) { 36 protected ByteBuffer recycle(Integer integer, ByteBuffer byteBuffer) {
|
/packages/apps/Messaging/res/values/ |
constants.xml | 67 <integer name="mediapicker_transition_duration">600</integer><!-- ms --> 68 <integer name="asyncimage_transition_duration">300</integer><!-- ms --> 69 <integer name="compose_transition_duration">300</integer><!-- ms --> 70 <integer name="camera_shutter_duration">200</integer><!-- ms --> 73 <integer name="snackbar_translation_duration_ms">300</integer> [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
InputDeviceCriteria.java | 26 Integer.parseInt("0000010000000", 2); 28 Integer.parseInt("0000000000100", 2); 30 Integer.parseInt("0000000001000", 2); 32 Integer.parseInt("0000001000000", 2); 34 Integer.parseInt("0000000001100", 2);
|