Home
last modified time | relevance | path

Searched refs:Long (Results 1 – 25 of 815) sorted by relevance

12345678910>>...33

/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DArrayUtilsTest.java160 assertArrayEquals(new Long[] {}, in testConcatEmpty()
161 concatElements(Long.class, null, null)); in testConcatEmpty()
162 assertArrayEquals(new Long[] {}, in testConcatEmpty()
163 concatElements(Long.class, new Long[] {}, null)); in testConcatEmpty()
164 assertArrayEquals(new Long[] {}, in testConcatEmpty()
165 concatElements(Long.class, null, new Long[] {})); in testConcatEmpty()
166 assertArrayEquals(new Long[] {}, in testConcatEmpty()
167 concatElements(Long.class, new Long[] {}, new Long[] {})); in testConcatEmpty()
171 assertArrayEquals(new Long[] { 1L }, in testconcatElements()
172 concatElements(Long.class, new Long[] { 1L }, new Long[] {})); in testconcatElements()
[all …]
/frameworks/base/services/people/java/com/android/server/people/data/
DEventIndex.java95 private static final List<Function<Long, Range<Long>>> TIME_SLOT_FACTORIES =
151 public Range<Long> getMostRecentActiveTimeSlot() { in getMostRecentActiveTimeSlot()
157 Range<Long> lastTimeSlot = in getMostRecentActiveTimeSlot()
159 int numberOfTrailingZeros = Long.numberOfTrailingZeros(mEventBitmaps[slotType]); in getMostRecentActiveTimeSlot()
175 public List<Range<Long>> getActiveTimeSlots() { in getActiveTimeSlots()
176 List<Range<Long>> activeTimeSlots = new ArrayList<>(); in getActiveTimeSlots()
212 if (offset < Long.SIZE) { in addEvent()
229 sb.append(Long.toBinaryString(mEventBitmaps[TIME_SLOT_ONE_DAY])); in toString()
231 sb.append(Long.toBinaryString(mEventBitmaps[TIME_SLOT_FOUR_HOURS])); in toString()
233 sb.append(Long.toBinaryString(mEventBitmaps[TIME_SLOT_ONE_HOUR])); in toString()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiLinkLayerStats.java156 sbuf.append(" BE : ").append(" rx=").append(Long.toString(this.rxmpdu_be)) in toString()
157 .append(" tx=").append(Long.toString(this.txmpdu_be)) in toString()
158 .append(" lost=").append(Long.toString(this.lostmpdu_be)) in toString()
159 .append(" retries=").append(Long.toString(this.retries_be)).append('\n'); in toString()
160 sbuf.append(" BK : ").append(" rx=").append(Long.toString(this.rxmpdu_bk)) in toString()
161 .append(" tx=").append(Long.toString(this.txmpdu_bk)) in toString()
162 .append(" lost=").append(Long.toString(this.lostmpdu_bk)) in toString()
163 .append(" retries=").append(Long.toString(this.retries_bk)).append('\n'); in toString()
164 sbuf.append(" VI : ").append(" rx=").append(Long.toString(this.rxmpdu_vi)) in toString()
165 .append(" tx=").append(Long.toString(this.txmpdu_vi)) in toString()
[all …]
/frameworks/base/core/tests/coretests/src/android/provider/
DSmsProviderTest.java45 Long.toString(new GregorianCalendar(1970, 1, 1, 0, 0, 0).getTimeInMillis()), in testProvider()
46 Long.toString(new GregorianCalendar(1971, 2, 13, 16, 35, 3).getTimeInMillis()), in testProvider()
47 Long.toString(new GregorianCalendar(1978, 10, 22, 0, 1, 0).getTimeInMillis()), in testProvider()
48 Long.toString(new GregorianCalendar(1980, 1, 11, 10, 22, 30).getTimeInMillis()), in testProvider()
49 Long.toString(now - (5 * 24 * 60 * 60 * 1000)), in testProvider()
50 Long.toString(now - (2 * 24 * 60 * 60 * 1000)), in testProvider()
51 Long.toString(now - (5 * 60 * 60 * 1000)), in testProvider()
52 Long.toString(now - (30 * 60 * 1000)), in testProvider()
53 Long.toString(now - (5 * 60 * 1000)), in testProvider()
54 Long.toString(now) in testProvider()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DRoamingConsortiumElementTest.java45 private static final Pair<Integer, Long> TEST_OI1 = new Pair<Integer, Long>(1, 0x12L);
46 private static final Pair<Integer, Long> TEST_OI2 = new Pair<Integer, Long>(2, 0x1234L);
47 private static final Pair<Integer, Long> TEST_OI3 = new Pair<Integer, Long>(4, 0x12345678L);
48 private static final Pair<Integer, Long> TEST_OI4 = new Pair<Integer, Long>(8, 0x1234567890L);
56 private void appendOI(ByteArrayOutputStream stream, Pair<Integer, Long> oi) { in appendOI()
70 private byte[] getTestData(List<Pair<Integer, Long>> ois) throws IOException { in getTestData()
72 for (Pair<Integer, Long> oi : ois) { in getTestData()
85 List<Pair<Integer, Long>> oiList = new ArrayList<>(); in getDefaultTestData()
99 List<Long> oiList = new ArrayList<>(); in getDefaultElement()
/frameworks/base/core/java/com/android/internal/os/
DStoragedUidIoStatsReader.java90 final long fgCharsRead = Long.parseLong(fields[1], 10); in readAbsolute()
91 final long fgCharsWrite = Long.parseLong(fields[2], 10); in readAbsolute()
92 final long fgBytesRead = Long.parseLong(fields[3], 10); in readAbsolute()
93 final long fgBytesWrite = Long.parseLong(fields[4], 10); in readAbsolute()
94 final long bgCharsRead = Long.parseLong(fields[5], 10); in readAbsolute()
95 final long bgCharsWrite = Long.parseLong(fields[6], 10); in readAbsolute()
96 final long bgBytesRead = Long.parseLong(fields[7], 10); in readAbsolute()
97 final long bgBytesWrite = Long.parseLong(fields[8], 10); in readAbsolute()
98 final long fgFsync = Long.parseLong(fields[9], 10); in readAbsolute()
99 final long bgFsync = Long.parseLong(fields[10], 10); in readAbsolute()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DKeySetManagerServiceTest.java57 ArrayMap<String, Long> aliases = pksd.getAliases(); in testPackageKeySetDataConstructorUnassignend()
127 LongSparseArray<ArraySet<Long>> ksMapping = KeySetUtils.getKeySetMapping(mKsms); in testAddSigningKSToPackageEmpty()
129 ArraySet<Long> mapping = ksMapping.get(1); in testAddSigningKSToPackageEmpty()
131 assertTrue(mapping.contains(new Long(1))); in testAddSigningKSToPackageEmpty()
157 LongSparseArray<ArraySet<Long>> ksMapping = KeySetUtils.getKeySetMapping(mKsms); in testAddSigningKSToPackageUpgradeSame()
159 ArraySet<Long> mapping = ksMapping.get(1); in testAddSigningKSToPackageUpgradeSame()
161 assertTrue(mapping.contains(new Long(1))); in testAddSigningKSToPackageUpgradeSame()
192 LongSparseArray<ArraySet<Long>> ksMapping = KeySetUtils.getKeySetMapping(mKsms); in testAddSigningKSToPackageUpgradeDiff()
194 ArraySet<Long> mapping = ksMapping.get(2); in testAddSigningKSToPackageUpgradeDiff()
196 assertTrue(mapping.contains(new Long(2))); in testAddSigningKSToPackageUpgradeDiff()
[all …]
DKeySetUtils.java69 public static LongSparseArray<ArraySet<Long>> getKeySetMapping(KeySetManagerService ksms) in getKeySetMapping()
73 return (LongSparseArray<ArraySet<Long>>) ksField.get(ksms); in getKeySetMapping()
76 public static Long getLastIssuedKeyId(KeySetManagerService ksms) in getLastIssuedKeyId()
80 return (Long) ksField.get(ksms); in getLastIssuedKeyId()
83 public static Long getLastIssuedKeySetId(KeySetManagerService ksms) in getLastIssuedKeySetId()
87 return (Long) ksField.get(ksms); in getLastIssuedKeySetId()
/frameworks/base/core/java/com/android/internal/util/
DCallbackRegistry.java100 removeRemovedCallbacks((i + 1) * Long.SIZE, removedBits); in notifyCallbacks()
123 final int maxNotified = Math.min(Long.SIZE, mCallbacks.size()); in notifyFirst64Locked()
152 final int startCallbackIndex = (remainderIndex + 2) * Long.SIZE; in notifyRecurseLocked()
175 final int startIndex = (remainderIndex + 1) * Long.SIZE; in notifyRemainderLocked()
176 final int endIndex = Math.min(mCallbacks.size(), startIndex + Long.SIZE); in notifyRemainderLocked()
229 if (index < Long.SIZE) { in isRemovedLocked()
237 final int maskIndex = (index / Long.SIZE) - 1; in isRemovedLocked()
244 final long bitMask = 1L << (index % Long.SIZE); in isRemovedLocked()
259 final int endIndex = startIndex + Long.SIZE; in removeRemovedCallbacks()
261 long bitMask = 1L << (Long.SIZE - 1); in removeRemovedCallbacks()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DKeySetManagerService.java65 protected final LongSparseArray<ArraySet<Long>> mKeySetMapping;
119 mKeySetMapping = new LongSparseArray<ArraySet<Long>>(); in KeySetManagerService()
146 ArraySet<Long> pkgKeys = mKeySetMapping.get(pkg.keySetData.getProperSigningKeySet()); in packageIsSignedByLPr()
147 ArraySet<Long> testKeys = mKeySetMapping.get(id); in packageIsSignedByLPr()
174 ArraySet<Long> pkgKeys = mKeySetMapping.get(pkg.keySetData.getProperSigningKeySet()); in packageIsSignedByExactlyLPr()
175 ArraySet<Long> testKeys = mKeySetMapping.get(id); in packageIsSignedByExactlyLPr()
285 ArrayMap<String, Long> prevDefinedKeySets = pkg.keySetData.getAliases(); in addDefinedKeySetsToPackageLPw()
288 Map<String, Long> newKeySetAliases = new ArrayMap<>(); in addDefinedKeySetsToPackageLPw()
332 Long keySetId = p.keySetData.getAliases().get(alias); in getKeySetByAliasAndPackageNameLPr()
387 ArraySet<Long> pkIds = mKeySetMapping.get(id); in getPublicKeysFromKeySetLPr()
[all …]
DPackageKeySetData.java34 private final ArrayMap<String, Long> mKeySetAliases = new ArrayMap<String, Long>();
61 Long ks = mKeySetAliases.get(alias); in addUpgradeKeySet()
88 protected ArrayMap<String, Long> getAliases() { in getAliases()
95 protected void setAliases(Map<String, Long> newAliases) { in setAliases()
/frameworks/base/core/java/android/hardware/camera2/impl/
DFrameNumberTracker.java41 private final LinkedList<Long>[] mSkippedOtherFrameNumbers =
45 private final LinkedList<Long>[] mSkippedFrameNumbers =
49 private final TreeMap<Long, Integer> mFutureErrorMap = new TreeMap<Long, Integer>();
51 private final HashMap<Long, List<CaptureResult>> mPartialResults = new HashMap<>();
56 mSkippedOtherFrameNumbers[i] = new LinkedList<Long>(); in FrameNumberTracker()
57 mSkippedFrameNumbers[i] = new LinkedList<Long>(); in FrameNumberTracker()
65 Long errorFrameNumber = (Long)pair.getKey(); in update()
230 LinkedList<Long> srcList, dstList; in updateCompletedFrameNumber()
/frameworks/base/core/java/com/android/internal/compat/
DCompatibilityChangeConfig.java41 public Set<Long> enabledChanges() { in enabledChanges()
48 public Set<Long> disabledChanges() { in disabledChanges()
67 Set<Long> enabled = toLongSet(enabledArray); in CompatibilityChangeConfig()
68 Set<Long> disabled = toLongSet(disabledArray); in CompatibilityChangeConfig()
72 private static Set<Long> toLongSet(long[] values) { in toLongSet()
73 Set<Long> ret = new HashSet<>(); in toLongSet()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/
DRoamingConsortiumElement.java32 public static final int MAXIMUM_OI_LENGTH = Long.BYTES;
34 private final List<Long> mOIs;
37 public RoamingConsortiumElement(List<Long> ois) { in RoamingConsortiumElement()
52 List<Long> OIs = new ArrayList<Long>(); in parse()
63 public List<Long> getOIs() { in getOIs()
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiLogger.java52 private final HashMap<String, Pair<Long, Integer>> mWarningTimingCache = new HashMap<>();
54 private final HashMap<String, Pair<Long, Integer>> mErrorTimingCache = new HashMap<>();
112 private static String updateLog(HashMap<String, Pair<Long, Integer>> cache, String logMessage) { in updateLog() argument
114 Pair<Long, Integer> timing = cache.get(logMessage); in updateLog()
125 private static String buildMessage(String message, @Nullable Pair<Long, Integer> timing) { in buildMessage() argument
131 private static void increaseLogCount(HashMap<String, Pair<Long, Integer>> cache, in increaseLogCount() argument
133 Pair<Long, Integer> timing = cache.get(message); in increaseLogCount()
139 private static boolean shouldLogNow(@Nullable Pair<Long, Integer> timing, long curTime) { in shouldLogNow() argument
/frameworks/native/services/surfaceflinger/sysprop/api/
DSurfaceFlingerProperties-latest.txt5 type: Long
10 type: Long
56 type: Long
61 type: Long
66 type: Long
120 type: Long
125 type: Long
130 type: Long
DSurfaceFlingerProperties-current.txt5 type: Long
10 type: Long
61 type: Long
76 type: Long
81 type: Long
153 type: Long
158 type: Long
163 type: Long
/frameworks/base/obex/javax/obex/
DHeaderSet.java197 private Long mCount; // 4 byte unsigned integer
205 private Long mLength; // 4 byte unsigend integer
229 private Long[] mIntegerUserDefined; // 4 byte unsigned integer
256 mIntegerUserDefined = new Long[16]; in HeaderSet()
297 if (!(headerValue instanceof Long)) { in setHeader()
304 temp = ((Long)headerValue).longValue(); in setHeader()
308 mCount = (Long)headerValue; in setHeader()
324 if (!(headerValue instanceof Long)) { in setHeader()
331 temp = ((Long)headerValue).longValue(); in setHeader()
335 mLength = (Long)headerValue; in setHeader()
[all …]
/frameworks/base/telecomm/java/android/telecom/
DVoicemail.java29 private final Long mTimestamp;
32 private final Long mId;
33 private final Long mDuration;
41 private Voicemail(Long timestamp, String number, PhoneAccountHandle phoneAccountHandle, Long id, in Voicemail()
42 Long duration, String source, String providerData, Uri uri, Boolean isRead, in Voicemail()
83 private Long mBuilderTimestamp;
86 private Long mBuilderId;
87 private Long mBuilderDuration;
/frameworks/base/services/tests/servicestests/src/com/android/server/compat/
DCompatibilityChangeConfigBuilder.java27 private Set<Long> mEnabled;
28 private Set<Long> mDisabled;
39 CompatibilityChangeConfigBuilder enable(Long id) { in enable()
44 CompatibilityChangeConfigBuilder disable(Long id) { in disable()
/frameworks/base/tests/net/java/android/net/
DNetworkStatsHistoryTest.java94 entry = history.getValues(Long.MIN_VALUE, Long.MAX_VALUE, entry); in testReadOriginalVersion()
432 assertEquals(Long.MIN_VALUE, performVarLong(Long.MIN_VALUE)); in testVarLong()
433 assertEquals(Long.MAX_VALUE, performVarLong(Long.MAX_VALUE)); in testVarLong()
434 assertEquals(Long.MIN_VALUE + 40, performVarLong(Long.MIN_VALUE + 40)); in testVarLong()
435 assertEquals(Long.MAX_VALUE - 40, performVarLong(Long.MAX_VALUE - 40)); in testVarLong()
460 assertIndexBeforeAfter(stats, 0, 0, Long.MIN_VALUE); in testIndexBeforeAfter()
478 assertIndexBeforeAfter(stats, 4, 4, Long.MAX_VALUE); in testIndexBeforeAfter()
502 assertFalse(stats.intersects(Long.MAX_VALUE, Long.MIN_VALUE)); in testIntersects()
504 assertTrue(stats.intersects(Long.MIN_VALUE, Long.MAX_VALUE)); in testIntersects()
508 assertTrue(stats.intersects(TEST_START + DAY_IN_MILLIS, Long.MAX_VALUE)); in testIntersects()
[all …]
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/
DRecurrenceSetTest.java48 null, new Long[] {1203681600000L}); in testRecurrenceSet0()
101 null, new Long[] {1306911600000L, 1306998000000L, 1307084400000L}, null, null); in testRecurrenceSet4()
145 new Long[] {1345507200000L}); in testRecurrenceSet6()
158 new Long[] {1306911600000L, 1306998000000L, 1307102400000L}, in testRecurrentSet7()
160 new Long[] {1338523200000L, 1338609600000L, 1338724800000L}); in testRecurrentSet7()
185 String[] expectedRruleStrs, Long[] expectedRdates, in verifyRecurrenceSetInitialization()
186 String[] expectedExruleStrs, Long[] expectedExdates) { in verifyRecurrenceSetInitialization()
205 private Long[] convertToLong(long[] primitives) { in convertToLong()
209 final Long[] datesLong = new Long[primitives.length]; in convertToLong()
/frameworks/base/media/packages/BluetoothMidiService/tests/unit/src/com/android/bluetoothmidiservice/
DAccumulatingMidiReceiver.java29 ArrayList<Long> mTimestamps = new ArrayList<Long>();
43 Long[] getTimestamps() { in getTimestamps()
44 return mTimestamps.toArray(new Long[mTimestamps.size()]); in getTimestamps()
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DBatteryStateSnapshot.kt17 val timeRemainingMillis: Long,
18 val averageTimeToDischargeMillis: Long,
19 val severeThresholdMillis: Long,
20 val lowThresholdMillis: Long,
/frameworks/base/core/tests/benchmarks/src/android/os/
DFileUtilsBenchmark.java57 copyInternalUserspace(in.getFD(), out.getFD(), Long.MAX_VALUE, null, null, null); in timeRegularUserspace()
66 copyInternalSendfile(in.getFD(), out.getFD(), Long.MAX_VALUE, null, null, null); in timeRegularSendfile()
75 copyInternalUserspace(in.getFD(), out.getFD(), Long.MAX_VALUE, null, null, null); in timePipeSourceUserspace()
84 copyInternalSplice(in.getFD(), out.getFD(), Long.MAX_VALUE, null, null, null); in timePipeSourceSplice()
93 copyInternalUserspace(in.getFD(), out.getFD(), Long.MAX_VALUE, null, null, null); in timePipeSinkUserspace()
102 copyInternalSplice(in.getFD(), out.getFD(), Long.MAX_VALUE, null, null, null); in timePipeSinkSplice()

12345678910>>...33