Home
last modified time | relevance | path

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

12345678910>>...104

/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/packages/SettingsLib/IllustrationPreference/src/com/android/settingslib/widget/
DColorUtils.java41 private static HashMap<String, Integer> sSysColors;
43 private static HashMap<String, Pair<Integer, Integer>> sFixedColors;
46 sFixedColors.put(".blue600", new Pair<Integer, Integer>(
48 sFixedColors.put(".green600", new Pair<Integer, Integer>(
50 sFixedColors.put(".red600", new Pair<Integer, Integer>(
52 sFixedColors.put(".yellow600", new Pair<Integer, Integer>(
54 sFixedColors.put(".blue400", new Pair<Integer, Integer>(
56 sFixedColors.put(".green400", new Pair<Integer, Integer>(
58 sFixedColors.put(".red400", new Pair<Integer, Integer>(
60 sFixedColors.put(".yellow400", new Pair<Integer, Integer>(
[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.java501 public static final Key<Integer> COLOR_CORRECTION_MODE =
502 new Key<Integer>("android.colorCorrection.mode", int.class);
591 public static final Key<Integer> COLOR_CORRECTION_ABERRATION_MODE =
592 new Key<Integer>("android.colorCorrection.aberrationMode", int.class);
649 public static final Key<Integer> CONTROL_AE_ANTIBANDING_MODE =
650 new Key<Integer>("android.control.aeAntibandingMode", int.class);
683 public static final Key<Integer> CONTROL_AE_EXPOSURE_COMPENSATION =
684 new Key<Integer>("android.control.aeExposureCompensation", int.class);
788 public static final Key<Integer> CONTROL_AE_MODE =
789 new Key<Integer>("android.control.aeMode", int.class);
[all …]
DCaptureRequest.java1082 public static final Key<Integer> COLOR_CORRECTION_MODE =
1083 new Key<Integer>("android.colorCorrection.mode", int.class);
1172 public static final Key<Integer> COLOR_CORRECTION_ABERRATION_MODE =
1173 new Key<Integer>("android.colorCorrection.aberrationMode", int.class);
1230 public static final Key<Integer> CONTROL_AE_ANTIBANDING_MODE =
1231 new Key<Integer>("android.control.aeAntibandingMode", int.class);
1264 public static final Key<Integer> CONTROL_AE_EXPOSURE_COMPENSATION =
1265 new Key<Integer>("android.control.aeExposureCompensation", int.class);
1369 public static final Key<Integer> CONTROL_AE_MODE =
1370 new Key<Integer>("android.control.aeMode", int.class);
[all …]
/frameworks/base/core/java/android/app/
DAppOpsManagerInternal.java56 boolean raw, QuintFunction<Integer, Integer, String, String, Boolean, Integer> in checkOperation() argument
70 QuadFunction<Integer, Integer, Integer, String, Integer> superImpl); in checkAudioOperation() argument
87 @NonNull HeptFunction<Integer, Integer, String, String, Boolean, String, Boolean, in noteOperation() argument
105 @NonNull HexFunction<Integer, AttributionSource, Boolean, String, Boolean, in noteProxyOperation() argument
130 @NonNull UndecFunction<IBinder, Integer, Integer, String, String, Boolean, in startOperation() argument
131 Boolean, String, Boolean, Integer, Integer, SyncNotedAppOp> superImpl); in startOperation()
155 @NonNull UndecFunction<IBinder, Integer, AttributionSource, Boolean, in startProxyOperation() argument
156 Boolean, String, Boolean, Boolean, Integer, Integer, Integer, in startProxyOperation()
170 @NonNull QuintConsumer<IBinder, Integer, Integer, String, String> superImpl) { in finishOperation() argument
186 @NonNull QuadFunction<IBinder, Integer, AttributionSource, Boolean, in finishProxyOperation() argument
/frameworks/base/apct-tests/perftests/core/src/android/util/
DArrayMapPerfTest.java45 BiConsumer<String, Integer> consumer = (s, i) -> { in testForEach_Small()
49 ArrayMap<String, Integer> map = new ArrayMap<>(); in testForEach_Small()
51 map.put(Integer.toString(j), j); in testForEach_Small()
61 BiConsumer<String, Integer> consumer = (s, i) -> { in testForEach_Large()
65 ArrayMap<String, Integer> map = new ArrayMap<>(); in testForEach_Large()
67 map.put(Integer.toString(j), j); in testForEach_Large()
77 BiFunction<Integer, Integer, Integer> function = (k, v) -> 2 * v; in testReplaceAll_Small()
80 ArrayMap<Integer, Integer> map = new ArrayMap<>(); in testReplaceAll_Small()
92 BiFunction<Integer, Integer, Integer> function = (k, v) -> 2 * v; in testReplaceAll_Large()
95 ArrayMap<Integer, Integer> map = new ArrayMap<>(); in testReplaceAll_Large()
DArraySetPerfTest.java45 Consumer<Integer> consumer = (i) -> { in testForEach_Small()
49 ArraySet<Integer> set = new ArraySet<>(); in testForEach_Small()
61 Consumer<Integer> consumer = (i) -> { in testForEach_Large()
65 ArraySet<Integer> set = new ArraySet<>(); in testForEach_Large()
77 ArraySet<Integer> set = new ArraySet<>(); in testValueAt_InBounds()
89 ArraySet<Integer> set = new ArraySet<>(); in testValueAt_OutOfBounds_Negative()
108 ArraySet<Integer> set = new ArraySet<>(); in testValueAt_OutOfBounds_EdgeCase()
128 Predicate<Integer> predicate = (i) -> i % 2 == 0; in testRemoveIf_Small_Base()
131 ArraySet<Integer> set = new ArraySet<>(); in testRemoveIf_Small_Base()
142 Predicate<Integer> predicate = (i) -> false; in testRemoveIf_Small_RemoveNothing()
[all …]
/frameworks/libs/net/common/testutils/devicetests/com/android/testutils/
DDeviceInfoUtils.java52 int res = Integer.compare(this.major, other.major); in compareTo()
54 res = Integer.compare(this.minor, other.minor); in compareTo()
57 res = Integer.compare(this.sub, other.sub); in compareTo()
100 private static Pair<Integer, Integer> getMajorMinorVersion(String version) { in getMajorMinorVersion()
105 final int major = Integer.parseInt(m.group(1)); in getMajorMinorVersion()
106 final int minor = TextUtils.isEmpty(m.group(3)) ? 0 : Integer.parseInt(m.group(3)); in getMajorMinorVersion()
127 final Pair<Integer, Integer> v1 = getMajorMinorVersion(s1); in compareMajorMinorVersion()
128 final Pair<Integer, Integer> v2 = getMajorMinorVersion(s2); in compareMajorMinorVersion()
131 return Integer.compare(v1.second, v2.second); in compareMajorMinorVersion()
133 return Integer.compare(v1.first, v2.first); in compareMajorMinorVersion()
[all …]
/frameworks/base/packages/WAPPushManager/tests/src/com/android/smspush/unitTests/
DWapPushTest.java503 Integer.toString(mAppIdValue), in utAddPackage()
504 Integer.toString(mContentTypeValue), in utAddPackage()
513 assertTrue(wpman.verifyData(Integer.toString(mAppIdValue), in utAddPackage()
514 Integer.toString(mContentTypeValue), in utAddPackage()
540 iwapman.deletePackage(Integer.toString(mAppIdValue), in testAddPackage1()
541 Integer.toString(mContentTypeValue), mPackageName, mClassName); in testAddPackage1()
543 iwapman.deletePackage(Integer.toString(mAppIdValue), in testAddPackage1()
544 Integer.toString(mContentTypeValue), mPackageName, mClassName); in testAddPackage1()
546 iwapman.deletePackage(Integer.toString(mAppIdValue), in testAddPackage1()
547 Integer.toString(mContentTypeValue), mPackageName, mClassName); in testAddPackage1()
[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/services/tests/servicestests/src/com/android/server/job/
DWorkCountTrackerTest.java135 public final List<Integer> pendingMultiTypes = new ArrayList<>();
177 pendingMultiTypes.remove(Integer.valueOf(allWorkTypes)); in removePending()
194 @NonNull List<Pair<Integer, Integer>> minLimits, in recount() argument
195 @NonNull List<Pair<Integer, Integer>> maxLimits) { in recount()
262 @NonNull List<Pair<Integer, Integer>> minLimits, in checkRandom() argument
263 @NonNull List<Pair<Integer, Integer>> maxLimits, in checkRandom()
266 for (Pair<Integer, Integer> minLimit : minLimits) { in checkRandom()
287 for (Pair<Integer, Integer> maxLimit : maxLimits) { in checkRandom()
305 final List<Pair<Integer, Integer>> maxLimits = List.of(Pair.create(WORK_TYPE_BG, 4)); in testRandom1()
306 final List<Pair<Integer, Integer>> minLimits = List.of(Pair.create(WORK_TYPE_BG, 2)); in testRandom1()
[all …]
/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/core/java/com/android/internal/graphics/palette/
DQuantizerMap.java35 private HashMap<Integer, Integer> mColorToCount;
40 final HashMap<Integer, Integer> colorToCount = new HashMap<>(); in quantize()
42 colorToCount.merge(pixel, 1, Integer::sum); in quantize()
47 for (Map.Entry<Integer, Integer> entry : colorToCount.entrySet()) { in quantize()
59 public Map<Integer, Integer> getColorToCount() { in getColorToCount()
/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/d2d/
DMessageTypeAndValueHelper.java39 public static final BiMap<Integer, Integer> MSG_TYPE_TO_DC_MSG_TYPE = new BiMap<>();
46 public static final BiMap<Integer, Integer> RAT_TYPE_TO_DC_NETWORK_TYPE = new BiMap<>();
52 public static final BiMap<Integer, Integer> CODEC_TO_DC_CODEC = new BiMap<>();
58 public static final BiMap<Integer, Integer> BATTERY_STATE_TO_DC_BATTERY_STATE = new BiMap();
64 public static final BiMap<Integer, Integer> COVERAGE_TO_DC_COVERAGE = new BiMap();
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/
DPermissionListAdapter.java41 private List<Integer> mPermissions;
47 private static final Map<Integer, Integer> sTitleMap;
49 final Map<Integer, Integer> map = new ArrayMap<>();
56 private static final Map<Integer, Integer> sSummaryMap;
58 final Map<Integer, Integer> map = new ArrayMap<>();
65 private static final Map<Integer, Integer> sIconMap;
67 final Map<Integer, Integer> map = new ArrayMap<>();
125 void setPermissionType(List<Integer> permissions) { in setPermissionType()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DEvents.java369 final Integer reason = (Integer) list[0]; in logEvent()
386 final Integer reason = (Integer) list[0]; in logEvent()
392 final Integer stream = (Integer) list[0]; in logEvent()
400 final Integer stream = (Integer) list[0]; in logEvent()
402 final Integer iconState = (Integer) list[1]; in logEvent()
410 final Integer level = (Integer) list[1]; in logEvent()
419 sb.append(AudioSystem.streamToString((Integer) list[0])).append(' ') in logEvent()
425 final Integer stream = (Integer) list[0]; in logEvent()
427 final Integer level = (Integer) list[1]; in logEvent()
433 final Integer ringerMode = (Integer) list[0]; in logEvent()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DGestureLauncherServiceTest.java316 final ArgumentCaptor<Integer> intervalCaptor = ArgumentCaptor.forClass(Integer.class); in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOffInteractive()
319 List<Integer> intervals = intervalCaptor.getAllValues(); in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOffInteractive()
323 final ArgumentCaptor<Integer> tapCountCaptor = ArgumentCaptor.forClass(Integer.class); in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOffInteractive()
326 List<Integer> tapCounts = tapCountCaptor.getAllValues(); in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOffInteractive()
361 final ArgumentCaptor<Integer> intervalCaptor = ArgumentCaptor.forClass(Integer.class); in testInterceptPowerKeyDown_intervalMidBoundsCameraPowerGestureOffInteractive()
364 List<Integer> intervals = intervalCaptor.getAllValues(); in testInterceptPowerKeyDown_intervalMidBoundsCameraPowerGestureOffInteractive()
368 final ArgumentCaptor<Integer> tapCountCaptor = ArgumentCaptor.forClass(Integer.class); in testInterceptPowerKeyDown_intervalMidBoundsCameraPowerGestureOffInteractive()
371 List<Integer> tapCounts = tapCountCaptor.getAllValues(); in testInterceptPowerKeyDown_intervalMidBoundsCameraPowerGestureOffInteractive()
408 final ArgumentCaptor<Integer> intervalCaptor = ArgumentCaptor.forClass(Integer.class); in testInterceptPowerKeyDown_intervalOutOfBoundsCameraPowerGestureOffInteractive()
411 List<Integer> intervals = intervalCaptor.getAllValues(); in testInterceptPowerKeyDown_intervalOutOfBoundsCameraPowerGestureOffInteractive()
[all …]
/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/opt/telephony/src/java/com/android/internal/telephony/
DNitzData.java52 private final Integer mDstOffset;
58 private NitzData(String originalString, int zoneOffsetMillis, Integer dstOffsetMillis, in NitzData()
80 int year = 2000 + Integer.parseInt(nitzSubs[0]); in parse()
88 int month = Integer.parseInt(nitzSubs[1]); in parse()
89 int date = Integer.parseInt(nitzSubs[2]); in parse()
90 int hour = Integer.parseInt(nitzSubs[3]); in parse()
91 int minute = Integer.parseInt(nitzSubs[4]); in parse()
92 int second = Integer.parseInt(nitzSubs[5]); in parse()
102 int totalUtcOffsetQuarterHours = Integer.parseInt(nitzSubs[6]); in parse()
108 Integer dstAdjustmentHours = in parse()
[all …]
/frameworks/base/services/core/java/com/android/server/vcn/util/
DMtuUtils.java70 private static final Map<Integer, Integer> AUTH_ALGORITHM_OVERHEAD;
73 final Map<Integer, Integer> map = new ArrayMap<>();
86 private static final Map<Integer, Integer> CRYPT_ALGORITHM_OVERHEAD;
89 final Map<Integer, Integer> map = new ArrayMap<>();
98 private static final Map<Integer, Integer> AUTHCRYPT_ALGORITHM_OVERHEAD;
101 final Map<Integer, Integer> map = new ArrayMap<>();
135 for (Pair<Integer, Integer> encryptionAlgoPair : proposal.getEncryptionAlgorithms()) { in getMtu()
/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/base/services/core/java/com/android/server/pm/
DAppsFilterLocked.java96 protected void dumpForceQueryable(PrintWriter pw, @Nullable Integer filteringAppId, in dumpForceQueryable()
97 ToString<Integer> expandPackages) { in dumpForceQueryable()
104 protected void dumpQueriesViaPackage(PrintWriter pw, @Nullable Integer filteringAppId, in dumpQueriesViaPackage()
105 ToString<Integer> expandPackages) { in dumpQueriesViaPackage()
112 protected void dumpQueriesViaComponent(PrintWriter pw, @Nullable Integer filteringAppId, in dumpQueriesViaComponent()
113 ToString<Integer> expandPackages) { in dumpQueriesViaComponent()
121 @Nullable Integer filteringAppId, int[] users, ToString<Integer> expandPackages) { in dumpQueriesViaImplicitlyQueryable()
128 protected void dumpQueriesViaUsesLibrary(PrintWriter pw, @Nullable Integer filteringAppId, in dumpQueriesViaUsesLibrary()
129 ToString<Integer> expandPackages) { in dumpQueriesViaUsesLibrary()
/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()

12345678910>>...104