Home
last modified time | relevance | path

Searched refs:Integer (Results 1 – 25 of 2059) sorted by relevance

12345678910>>...83

/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DCallbackRegistryTest.java31 final Integer callback1 = 1;
32 final Integer callback2 = 2;
33 final Integer callback3 = 3;
34 CallbackRegistry<Integer, CallbackRegistryTest, Integer> registry;
39 Integer argValue;
41 private void addNotifyCount(Integer callback) { in addNotifyCount()
53 CallbackRegistry.NotifierCallback<Integer, CallbackRegistryTest, Integer> notifier = in testAddListener()
54 new CallbackRegistry.NotifierCallback<Integer, CallbackRegistryTest, Integer>() { in testAddListener()
56 public void onNotifyCallback(Integer callback, CallbackRegistryTest sender, in testAddListener()
57 int arg, Integer arg2) { in testAddListener()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DCameraUtilsTypeReferenceTest.java39 private class SpecificClass extends GenericClass<Integer> {}
48 implements GenericInterface<Integer>, GenericInterface2<T> {}
106 TypeReference<Integer> typeRefInt = new TypeReference<Integer>() {{ }}; in testTypeReferences()
107 TypeReference<Integer> typeRefInt2 = new TypeReference<Integer>() {{ }}; in testTypeReferences()
111 Integer.class, typeRefInt.getType()); in testTypeReferences()
120 TypeReference<Integer> typeRefTypeVar = createTypeRefWithTypeVar(); in testTypeReferences()
143 TypeReference<Integer> intToken = new TypeReference<Integer>() {{ }}; in testRawTypes()
144 assertRawTypeEquals(intToken, Integer.class); in testRawTypes()
146 TypeReference<List<Integer>> listToken = new TypeReference<List<Integer>>() {{ }}; in testRawTypes()
149 TypeReference<List<List<Integer>>> listListToken = in testRawTypes()
[all …]
/frameworks/base/core/java/android/hardware/camera2/
DCaptureResult.java455 public static final Key<Integer> COLOR_CORRECTION_MODE =
456 new Key<Integer>("android.colorCorrection.mode", int.class);
544 public static final Key<Integer> COLOR_CORRECTION_ABERRATION_MODE =
545 new Key<Integer>("android.colorCorrection.aberrationMode", int.class);
601 public static final Key<Integer> CONTROL_AE_ANTIBANDING_MODE =
602 new Key<Integer>("android.control.aeAntibandingMode", int.class);
635 public static final Key<Integer> CONTROL_AE_EXPOSURE_COMPENSATION =
636 new Key<Integer>("android.control.aeExposureCompensation", int.class);
739 public static final Key<Integer> CONTROL_AE_MODE =
740 new Key<Integer>("android.control.aeMode", int.class);
[all …]
DCaptureRequest.java1052 public static final Key<Integer> COLOR_CORRECTION_MODE =
1053 new Key<Integer>("android.colorCorrection.mode", int.class);
1141 public static final Key<Integer> COLOR_CORRECTION_ABERRATION_MODE =
1142 new Key<Integer>("android.colorCorrection.aberrationMode", int.class);
1198 public static final Key<Integer> CONTROL_AE_ANTIBANDING_MODE =
1199 new Key<Integer>("android.control.aeAntibandingMode", int.class);
1232 public static final Key<Integer> CONTROL_AE_EXPOSURE_COMPENSATION =
1233 new Key<Integer>("android.control.aeExposureCompensation", int.class);
1336 public static final Key<Integer> CONTROL_AE_MODE =
1337 new Key<Integer>("android.control.aeMode", int.class);
[all …]
DCameraCharacteristics.java774 public static final Key<android.util.Range<Integer>[]> CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES =
775 …w Key<android.util.Range<Integer>[]>("android.control.aeAvailableTargetFpsRanges", new TypeReferen…
795 public static final Key<android.util.Range<Integer>> CONTROL_AE_COMPENSATION_RANGE =
796 …new Key<android.util.Range<Integer>>("android.control.aeCompensationRange", new TypeReference<andr…
964 public static final Key<Integer> CONTROL_MAX_REGIONS_AE =
965 new Key<Integer>("android.control.maxRegionsAe", int.class);
981 public static final Key<Integer> CONTROL_MAX_REGIONS_AWB =
982 new Key<Integer>("android.control.maxRegionsAwb", int.class);
998 public static final Key<Integer> CONTROL_MAX_REGIONS_AF =
999 new Key<Integer>("android.control.maxRegionsAf", int.class);
[all …]
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/
DWapPushTest.java499 Integer.toString(mAppIdValue), in utAddPackage()
500 Integer.toString(mContentTypeValue), in utAddPackage()
509 assertTrue(wpman.verifyData(Integer.toString(mAppIdValue), in utAddPackage()
510 Integer.toString(mContentTypeValue), in utAddPackage()
536 iwapman.deletePackage(Integer.toString(mAppIdValue), in testAddPackage1()
537 Integer.toString(mContentTypeValue), mPackageName, mClassName); in testAddPackage1()
539 iwapman.deletePackage(Integer.toString(mAppIdValue), in testAddPackage1()
540 Integer.toString(mContentTypeValue), mPackageName, mClassName); in testAddPackage1()
542 iwapman.deletePackage(Integer.toString(mAppIdValue), in testAddPackage1()
543 Integer.toString(mContentTypeValue), mPackageName, mClassName); in testAddPackage1()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DGestureLauncherServiceTest.java221 final ArgumentCaptor<Integer> intervalCaptor = ArgumentCaptor.forClass(Integer.class); in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOffInteractive()
224 List<Integer> intervals = intervalCaptor.getAllValues(); in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOffInteractive()
228 final ArgumentCaptor<Integer> tapCountCaptor = ArgumentCaptor.forClass(Integer.class); in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOffInteractive()
231 List<Integer> tapCounts = tapCountCaptor.getAllValues(); in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOffInteractive()
265 final ArgumentCaptor<Integer> intervalCaptor = ArgumentCaptor.forClass(Integer.class); in testInterceptPowerKeyDown_intervalMidBoundsCameraPowerGestureOffInteractive()
268 List<Integer> intervals = intervalCaptor.getAllValues(); in testInterceptPowerKeyDown_intervalMidBoundsCameraPowerGestureOffInteractive()
272 final ArgumentCaptor<Integer> tapCountCaptor = ArgumentCaptor.forClass(Integer.class); in testInterceptPowerKeyDown_intervalMidBoundsCameraPowerGestureOffInteractive()
275 List<Integer> tapCounts = tapCountCaptor.getAllValues(); in testInterceptPowerKeyDown_intervalMidBoundsCameraPowerGestureOffInteractive()
311 final ArgumentCaptor<Integer> intervalCaptor = ArgumentCaptor.forClass(Integer.class); in testInterceptPowerKeyDown_intervalOutOfBoundsCameraPowerGestureOffInteractive()
314 List<Integer> intervals = intervalCaptor.getAllValues(); in testInterceptPowerKeyDown_intervalOutOfBoundsCameraPowerGestureOffInteractive()
[all …]
/frameworks/base/core/java/android/app/
DAppOpsManagerInternal.java43 QuadFunction<Integer, Integer, String, Boolean, Integer> superImpl); in checkOperation() argument
56 QuadFunction<Integer, Integer, Integer, String, Integer> superImpl); in checkAudioOperation() argument
68 TriFunction<Integer, Integer, String, Integer> superImpl); in noteOperation() argument
/frameworks/base/apct-tests/perftests/core/src/android/util/
DArraySetPerfTest.java44 ArraySet<Integer> set = new ArraySet<>(); in testValueAt_InBounds()
56 ArraySet<Integer> set = new ArraySet<>(); in testValueAt_OutOfBounds_Negative()
75 ArraySet<Integer> set = new ArraySet<>(); in testValueAt_OutOfBounds_EdgeCase()
95 Predicate<Integer> predicate = (i) -> i % 2 == 0; in testRemoveIf_Small_Base()
98 ArraySet<Integer> set = new ArraySet<>(); in testRemoveIf_Small_Base()
109 Predicate<Integer> predicate = (i) -> false; in testRemoveIf_Small_RemoveNothing()
112 ArraySet<Integer> set = new ArraySet<>(); in testRemoveIf_Small_RemoveNothing()
124 Predicate<Integer> predicate = (i) -> true; in testRemoveIf_Small_RemoveAll()
127 ArraySet<Integer> set = new ArraySet<>(); in testRemoveIf_Small_RemoveAll()
139 Predicate<Integer> predicate = (i) -> i % 2 == 0; in testRemoveIf_Small_RemoveHalf()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DMockResources.java23 private HashMap<Integer, Boolean> mBooleanValues;
24 private HashMap<Integer, Integer> mIntegerValues;
25 private HashMap<Integer, String> mStringValues;
26 private HashMap<Integer, CharSequence> mTextValues;
27 private HashMap<Integer, int[]> mIntArrayValues;
30 mBooleanValues = new HashMap<Integer, Boolean>(); in MockResources()
31 mIntegerValues = new HashMap<Integer, Integer>(); in MockResources()
32 mStringValues = new HashMap<Integer, String>(); in MockResources()
33 mTextValues = new HashMap<Integer, CharSequence>(); in MockResources()
34 mIntArrayValues = new HashMap<Integer, int[]>(); in MockResources()
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
DEnvReverbTest.java55 …private static HashMap<Integer, EnvironmentalReverb> sInstances = new HashMap<Integer, Environment…
281 public void setParameter(Integer value) { in setParameter()
285 public Integer getParameter() { in getParameter()
286 return new Integer(0); in getParameter()
302 public void setParameter(Integer value) { in setParameter()
309 public Integer getParameter() { in getParameter()
311 return new Integer(mReverb.getRoomLevel()); in getParameter()
313 return new Integer(0); in getParameter()
324 public void setParameter(Integer value) { in setParameter()
331 public Integer getParameter() { in getParameter()
[all …]
/frameworks/base/services/core/java/com/android/server/locksettings/
DPasswordSlotManager.java55 private Map<Integer, String> mSlotMap;
58 private Set<Integer> mActiveSlots;
78 public void refreshActiveSlots(Set<Integer> activeSlots) throws RuntimeException { in refreshActiveSlots()
80 mActiveSlots = new HashSet<Integer>(activeSlots); in refreshActiveSlots()
85 final HashSet<Integer> slotsToDelete = new HashSet<Integer>(); in refreshActiveSlots()
86 for (Map.Entry<Integer, String> entry : mSlotMap.entrySet()) { in refreshActiveSlots()
92 for (Integer slot : slotsToDelete) { in refreshActiveSlots()
97 for (Integer slot : activeSlots) { in refreshActiveSlots()
137 public Set<Integer> getUsedSlots() { in getUsedSlots()
155 protected Map<Integer, String> loadSlotMap(InputStream stream) throws IOException { in loadSlotMap()
[all …]
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
DMarshalQueryableNativeByteToInteger.java30 public class MarshalQueryableNativeByteToInteger implements MarshalQueryable<Integer> {
34 private class MarshalerNativeByteToInteger extends Marshaler<Integer> {
35 protected MarshalerNativeByteToInteger(TypeReference<Integer> typeReference, in MarshalerNativeByteToInteger()
41 public void marshal(Integer value, ByteBuffer buffer) { in marshal()
46 public Integer unmarshal(ByteBuffer buffer) { in unmarshal()
58 public Marshaler<Integer> createMarshaler(TypeReference<Integer> managedType, in createMarshaler()
64 public boolean isTypeMappingSupported(TypeReference<Integer> managedType, int nativeType) { in isTypeMappingSupported()
65 return (Integer.class.equals(managedType.getType()) in isTypeMappingSupported()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DCallQualityMetrics.java62 private ArrayList<Pair<CallQuality, Integer>> mUlSnapshots = new ArrayList<>();
65 private ArrayList<Pair<CallQuality, Integer>> mDlSnapshots = new ArrayList<>();
83 private Pair<CallQuality, Integer> mWorstSsWithGoodDlQuality;
84 private Pair<CallQuality, Integer> mBestSsWithGoodDlQuality;
85 private Pair<CallQuality, Integer> mWorstSsWithBadDlQuality;
86 private Pair<CallQuality, Integer> mBestSsWithBadDlQuality;
87 private Pair<CallQuality, Integer> mWorstSsWithGoodUlQuality;
88 private Pair<CallQuality, Integer> mBestSsWithGoodUlQuality;
89 private Pair<CallQuality, Integer> mWorstSsWithBadUlQuality;
90 private Pair<CallQuality, Integer> mBestSsWithBadUlQuality;
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DEvents.java139 sb.append(SHOW_REASONS[(Integer) list[0]]).append(" keyguard=").append(list[1]); in writeEvent()
148 sb.append(DISMISS_REASONS[(Integer) list[0]]); in writeEvent()
152 (Integer) list[0]); in writeEvent()
153 sb.append(AudioSystem.streamToString((Integer) list[0])); in writeEvent()
157 (Integer) list[0]); in writeEvent()
158 sb.append(AudioSystem.streamToString((Integer) list[0])).append(' ') in writeEvent()
159 .append(iconStateToString((Integer) list[1])); in writeEvent()
163 (Integer) list[1]); in writeEvent()
168 sb.append(AudioSystem.streamToString((Integer) list[0])).append(' ') in writeEvent()
173 (Integer) list[0]); in writeEvent()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DStaticMetadata.java216 Integer hwLevel = getValueFromKeyNonNull( in getHardwareLevelChecked()
254 Integer value = getValueFromKeyNonNull(CameraCharacteristics.SYNC_MAX_LATENCY); in getSyncMaxLatency()
286 Integer hwLevel = getValueFromKeyNonNull( in isHardwareLevelLimitedOrBetter()
306 Integer value = mCharacteristics.get(CameraCharacteristics.REQUEST_PARTIAL_RESULT_COUNT); in getPartialResultCount()
423 Key<Integer> key = CameraCharacteristics.LENS_INFO_FOCUS_DISTANCE_CALIBRATION; in getFocusDistanceCalibrationChecked()
424 Integer calibration = getValueFromKeyNonNull(key); in getFocusDistanceCalibrationChecked()
443 Integer regionCount = mCharacteristics.get(CameraCharacteristics.CONTROL_MAX_REGIONS_AE); in getAeMaxRegionsChecked()
456 Integer regionCount = mCharacteristics.get(CameraCharacteristics.CONTROL_MAX_REGIONS_AWB); in getAwbMaxRegionsChecked()
469 Integer regionCount = mCharacteristics.get(CameraCharacteristics.CONTROL_MAX_REGIONS_AF); in getAfMaxRegionsChecked()
512 List<Integer> antiBandingModes = in isAntiBandingOffModeSupported()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DNitzData.java47 private final Integer mDstOffset;
53 private NitzData(String originalString, int zoneOffsetMillis, Integer dstOffsetMillis, in NitzData()
81 int year = 2000 + Integer.parseInt(nitzSubs[0]); in parse()
91 int month = Integer.parseInt(nitzSubs[1]) - 1; in parse()
94 int date = Integer.parseInt(nitzSubs[2]); in parse()
97 int hour = Integer.parseInt(nitzSubs[3]); in parse()
100 int minute = Integer.parseInt(nitzSubs[4]); in parse()
103 int second = Integer.parseInt(nitzSubs[5]); in parse()
108 int totalUtcOffsetQuarterHours = Integer.parseInt(nitzSubs[6]); in parse()
114 Integer dstAdjustmentHours = in parse()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DPasswordSlotManagerTests.java59 Set<Integer> expected = new HashSet<Integer>(); in testBasicSlotUse()
66 expected = new HashSet<Integer>(); in testBasicSlotUse()
85 Set<Integer> actual = new HashSet<Integer>(); in testMergeSlots()
90 Set<Integer> expected = new HashSet<Integer>(); in testMergeSlots()
108 final HashMap<Integer, String> expected = new HashMap<Integer, String>(); in testSerialization()
113 final Map<Integer, String> map = mManager.loadSlotMap( in testSerialization()
128 Set<Integer> expected = new HashSet<Integer>(); in testSaving()
/frameworks/native/libs/vr/libdisplay/include/private/dvr/
Ddisplay_protocol.h57 template <typename Integer>
60 using Base = Flags<Integer>;
61 using Type = Integer;
64 Flags(const Integer& value) : value_{value} {} in Flags()
68 Integer value() const { return value_; } in value()
70 operator Integer() const { return value_; } in Integer() function
72 bool IsSet(Integer bits) const { return (value_ & bits) == bits; } in IsSet()
73 bool IsClear(Integer bits) const { return (value_ & bits) == 0; } in IsClear()
75 void Set(Integer bits) { value_ |= bits; } in Set()
76 void Clear(Integer bits) { value_ &= ~bits; } in Clear()
[all …]
/frameworks/base/core/tests/coretests/src/android/graphics/
DFontTestUtil.java84 private static final List<Pair<Integer, Boolean>> sStyleList;
85 private static final Map<Pair<Integer, Boolean>, String> sFontMap;
86 private static final Map<Pair<Integer, Boolean>, Integer> sTtcMap;
87 private static final Map<Pair<Integer, Boolean>, String> sVariationSettingsMap;
132 ArrayList<Pair<Integer, Boolean>> styles = new ArrayList<>();
153 HashMap<Pair<Integer, Boolean>, String> map = new HashMap<>();
154 HashMap<Pair<Integer, Boolean>, Integer> ttcMap = new HashMap<>();
155 HashMap<Pair<Integer, Boolean>, String> variationMap = new HashMap<>();
156 HashMap<Character, Pair<Integer, Boolean>> reverseMap = new HashMap<>();
205 public static List<Pair<Integer, Boolean>> getAllStyles() { in getAllStyles()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DRoamingConsortiumElementTest.java43 private static final Pair<Integer, Long> TEST_OI1 = new Pair<Integer, Long>(1, 0x12L);
44 private static final Pair<Integer, Long> TEST_OI2 = new Pair<Integer, Long>(2, 0x1234L);
45 private static final Pair<Integer, Long> TEST_OI3 = new Pair<Integer, Long>(4, 0x12345678L);
46 private static final Pair<Integer, Long> TEST_OI4 = new Pair<Integer, Long>(8, 0x1234567890L);
54 private void appendOI(ByteArrayOutputStream stream, Pair<Integer, Long> oi) { in appendOI() argument
68 private byte[] getTestData(List<Pair<Integer, Long>> ois) throws IOException { in getTestData() argument
70 for (Pair<Integer, Long> oi : ois) { in getTestData()
83 List<Pair<Integer, Long>> oiList = new ArrayList<>(); in getDefaultTestData()
/frameworks/base/core/tests/benchmarks/src/android/util/
DStreamsBenchmark.java50 calls.put(i, r.nextInt(Integer.MAX_VALUE)); in setUp()
85 List<Pair<Integer, Integer>> callsList = in timeStreams()
88 (Pair<Integer, Integer> pair) -> pair.second).reversed()) in timeStreams()
94 for (Pair<Integer, Integer> uidCalls : callsList) { in timeStreams()
104 private static List<Pair<Integer, Integer>> getOpenSessionCallsList( in getOpenSessionCallsList()
106 ArrayList<Pair<Integer, Integer>> list = new ArrayList<>(openSessionCalls.size()); in getOpenSessionCallsList()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DTileLayoutTest.java138 ArgumentCaptor<Integer> left1 = ArgumentCaptor.forClass(Integer.class); in testMeasureLayout_CallsLayoutOnTilesWithNeighboredBounds()
139 ArgumentCaptor<Integer> top1 = ArgumentCaptor.forClass(Integer.class); in testMeasureLayout_CallsLayoutOnTilesWithNeighboredBounds()
140 ArgumentCaptor<Integer> right1 = ArgumentCaptor.forClass(Integer.class); in testMeasureLayout_CallsLayoutOnTilesWithNeighboredBounds()
141 ArgumentCaptor<Integer> bottom1 = ArgumentCaptor.forClass(Integer.class); in testMeasureLayout_CallsLayoutOnTilesWithNeighboredBounds()
144 ArgumentCaptor<Integer> left2 = ArgumentCaptor.forClass(Integer.class); in testMeasureLayout_CallsLayoutOnTilesWithNeighboredBounds()
145 ArgumentCaptor<Integer> top2 = ArgumentCaptor.forClass(Integer.class); in testMeasureLayout_CallsLayoutOnTilesWithNeighboredBounds()
146 ArgumentCaptor<Integer> right2 = ArgumentCaptor.forClass(Integer.class); in testMeasureLayout_CallsLayoutOnTilesWithNeighboredBounds()
147 ArgumentCaptor<Integer> bottom2 = ArgumentCaptor.forClass(Integer.class); in testMeasureLayout_CallsLayoutOnTilesWithNeighboredBounds()
/frameworks/opt/net/ims/src/java/com/android/ims/
DImsUt.java85 private HashMap<Integer, Message> mPendingCmds =
86 new HashMap<Integer, Message>();
110 Map.Entry<Integer, Message>[] entries = in close()
113 for (Map.Entry<Integer, Message> entry : entries) { in close()
182 mPendingCmds.put(Integer.valueOf(id), result); in queryCallBarring()
211 mPendingCmds.put(Integer.valueOf(id), result); in queryCallForward()
239 mPendingCmds.put(Integer.valueOf(id), result); in queryCallWaiting()
266 mPendingCmds.put(Integer.valueOf(id), result); in queryCLIR()
292 mPendingCmds.put(Integer.valueOf(id), result); in queryCLIP()
318 mPendingCmds.put(Integer.valueOf(id), result); in queryCOLR()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCellSignalStrengthCdmaTest.java52 assertEquals(Integer.MAX_VALUE, css.getCdmaDbm()); in testInvalidConstructor()
53 assertEquals(Integer.MAX_VALUE, css.getCdmaEcio()); in testInvalidConstructor()
54 assertEquals(Integer.MAX_VALUE, css.getEvdoDbm()); in testInvalidConstructor()
55 assertEquals(Integer.MAX_VALUE, css.getEvdoEcio()); in testInvalidConstructor()
56 assertEquals(Integer.MAX_VALUE, css.getEvdoSnr()); in testInvalidConstructor()
62 assertEquals(Integer.MAX_VALUE, css.getCdmaDbm()); in testDefaultConstructor()
63 assertEquals(Integer.MAX_VALUE, css.getCdmaEcio()); in testDefaultConstructor()
64 assertEquals(Integer.MAX_VALUE, css.getEvdoDbm()); in testDefaultConstructor()
65 assertEquals(Integer.MAX_VALUE, css.getEvdoEcio()); in testDefaultConstructor()
66 assertEquals(Integer.MAX_VALUE, css.getEvdoSnr()); in testDefaultConstructor()

12345678910>>...83