/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | ArrayUtilsTest.java | 160 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/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiLinkLayerStats.java | 156 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 …]
|
D | DeletedEphemeralSsidsStoreData.java | 40 private Map<String, Long> mSsidToTimeMap; 78 mSsidToTimeMap = (Map<String, Long>) value; in deserializeData() 116 public Map<String, Long> getSsidToTimeMap() { in getSsidToTimeMap() 118 return new HashMap<String, Long>(); in getSsidToTimeMap() 123 public void setSsidToTimeMap(Map<String, Long> ssidMap) { in setSsidToTimeMap()
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
D | SmsProviderTest.java | 45 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/ |
D | RoamingConsortiumElementTest.java | 43 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() 68 private byte[] getTestData(List<Pair<Integer, Long>> ois) throws IOException { in getTestData() 70 for (Pair<Integer, Long> oi : ois) { in getTestData() 83 List<Pair<Integer, Long>> oiList = new ArrayList<>(); in getDefaultTestData() 97 List<Long> oiList = new ArrayList<>(); in getDefaultElement()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | StoragedUidIoStatsReader.java | 90 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/ |
D | KeySetManagerServiceTest.java | 57 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 …]
|
D | KeySetUtils.java | 69 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/ |
D | CallbackRegistry.java | 100 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/ |
D | KeySetManagerService.java | 62 protected final LongSparseArray<ArraySet<Long>> mKeySetMapping; 116 mKeySetMapping = new LongSparseArray<ArraySet<Long>>(); in KeySetManagerService() 143 ArraySet<Long> pkgKeys = mKeySetMapping.get(pkg.keySetData.getProperSigningKeySet()); in packageIsSignedByLPr() 144 ArraySet<Long> testKeys = mKeySetMapping.get(id); in packageIsSignedByLPr() 171 ArraySet<Long> pkgKeys = mKeySetMapping.get(pkg.keySetData.getProperSigningKeySet()); in packageIsSignedByExactlyLPr() 172 ArraySet<Long> testKeys = mKeySetMapping.get(id); in packageIsSignedByExactlyLPr() 284 ArrayMap<String, Long> prevDefinedKeySets = pkg.keySetData.getAliases(); in addDefinedKeySetsToPackageLPw() 287 ArrayMap<String, Long> newKeySetAliases = new ArrayMap<String, Long>(); in addDefinedKeySetsToPackageLPw() 334 Long keySetId = p.keySetData.getAliases().get(alias); in getKeySetByAliasAndPackageNameLPr() 389 ArraySet<Long> pkIds = mKeySetMapping.get(id); in getPublicKeysFromKeySetLPr() [all …]
|
D | PackageKeySetData.java | 32 private final ArrayMap<String, Long> mKeySetAliases = new ArrayMap<String, Long>(); 59 Long ks = mKeySetAliases.get(alias); in addUpgradeKeySet() 86 protected ArrayMap<String, Long> getAliases() { in getAliases() 93 protected void setAliases(ArrayMap<String, Long> newAliases) { in setAliases()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/ |
D | RoamingConsortiumElement.java | 32 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/timedetector/ |
D | SimpleTimeDetectorStrategy.java | 52 @Nullable private TimestampedValue<Long> mLastNitzTime; 56 @Nullable private TimestampedValue<Long> mLastSystemClockTime; 60 @Nullable private TimestampedValue<Long> mLastSystemClockTimeSet; 76 TimestampedValue<Long> newNitzUtcTime = timeSignal.getUtcTime(); in suggestTime() 92 final TimestampedValue<Long> newUtcTime = newNitzUtcTime; in suggestTime() 96 private static boolean validateNewNitzTime(TimestampedValue<Long> newNitzUtcTime, in validateNewNitzTime() 97 TimestampedValue<Long> lastNitzTime) { in validateNewNitzTime() 115 TimestampedValue<Long> time, boolean sendNetworkBroadcast) { in setSystemClockIfRequired() 193 TimestampedValue<Long> newTime, boolean sendNetworkBroadcast, in adjustAndSetDeviceSystemClock()
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | HdmiLogger.java | 52 private final HashMap<String, Pair<Long, Integer>> mWarningTimingCache = new HashMap<>(); 54 private final HashMap<String, Pair<Long, Integer>> mErrorTimingCache = new HashMap<>(); 108 private static String updateLog(HashMap<String, Pair<Long, Integer>> cache, String logMessage) { in updateLog() argument 110 Pair<Long, Integer> timing = cache.get(logMessage); in updateLog() 121 private static String buildMessage(String message, @Nullable Pair<Long, Integer> timing) { in buildMessage() argument 127 private static void increaseLogCount(HashMap<String, Pair<Long, Integer>> cache, in increaseLogCount() argument 129 Pair<Long, Integer> timing = cache.get(message); in increaseLogCount() 135 private static boolean shouldLogNow(@Nullable Pair<Long, Integer> timing, long curTime) { in shouldLogNow() argument
|
/frameworks/base/cmds/statsd/tools/loadtest/src/com/android/statsd/loadtest/ |
D | BatteryStatsParser.java | 61 Long time = getTime(lineMatcher.group(1)); in parseLine() 76 private Long getTime(String group) { in getTime() 94 time += Long.parseLong(matches[0]) * 60 * 60 * 1000; // hours in getTime() 99 time += Long.parseLong(matches[0]) * 60 * 1000; // minutes in getTime() 104 time += Long.parseLong(matches[0]) * 1000; // seconds in getTime() 109 time += Long.parseLong(group); // milliseconds in getTime()
|
/frameworks/base/obex/javax/obex/ |
D | HeaderSet.java | 197 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/ |
D | Voicemail.java | 29 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/packages/SystemUI/src/com/android/systemui/power/ |
D | BatteryStateSnapshot.kt | 17 val timeRemainingMillis: Long, 18 val averageTimeToDischargeMillis: Long, 19 val severeThresholdMillis: Long, 20 val lowThresholdMillis: Long,
|
/frameworks/base/core/java/android/app/timedetector/ |
D | TimeSignal.java | 50 private final TimestampedValue<Long> mUtcTime; 52 public TimeSignal(String sourceId, TimestampedValue<Long> utcTime) { in TimeSignal() 59 TimestampedValue<Long> utcTime = in createFromParcel() 60 TimestampedValue.readFromParcel(in, null /* classLoader */, Long.class); in createFromParcel() 81 public TimestampedValue<Long> getUtcTime() { in getUtcTime()
|
/frameworks/base/core/tests/benchmarks/src/android/os/ |
D | FileUtilsBenchmark.java | 57 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()
|
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/ |
D | RecurrenceSetTest.java | 48 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/tests/net/java/android/net/ |
D | NetworkStatsHistoryTest.java | 94 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/base/packages/StatementService/src/com/android/statementservice/retriever/ |
D | WebContent.java | 29 private final Long mExpireTimeMillis; 31 public WebContent(String content, Long expireTimeMillis) { in WebContent() 39 public Long getExpireTimeMillis() { in getExpireTimeMillis()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | LongSparseLongArrayTest.java | 80 final HashMap<Long, Long> map = new HashMap<Long, Long>(); in testFuzz() 100 for (Map.Entry<Long, Long> e : map.entrySet()) { in testFuzz()
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/ |
D | LongArrayList.java | 45 extends AbstractProtobufList<Long> 125 public Long get(int index) { in get() 141 public Long set(int index, Long element) { in set() 155 public void add(int index, Long element) { in add() 198 public boolean addAll(Collection<? extends Long> collection) { in addAll() 247 public Long remove(int index) { in remove()
|