/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/libs/net/common/devicetests/com/android/testutils/ |
D | TestableNetworkStatsProvider.kt | 28 val defaultTimeoutMs: Long = DEFAULT_TIMEOUT_MS 32 data class OnSetLimit(val iface: String?, val quotaBytes: Long) : CallbackType() 33 data class OnSetAlert(val quotaBytes: Long) : CallbackType() 44 override fun onSetLimit(iface: String, quotaBytes: Long) { in onSetLimit() 48 override fun onSetAlert(quotaBytes: Long) { in onSetAlert() 52 fun expectOnRequestStatsUpdate(token: Int, timeout: Long = defaultTimeoutMs) { in expectOnRequestStatsUpdate() 56 fun expectOnSetLimit(iface: String?, quotaBytes: Long, timeout: Long = defaultTimeoutMs) { in expectOnSetLimit() 60 fun expectOnSetAlert(quotaBytes: Long, timeout: Long = defaultTimeoutMs) { in expectOnSetAlert() 64 fun pollForNextCallback(timeout: Long = defaultTimeoutMs) = in pollForNextCallback() 68 timeout: Long = defaultTimeoutMs, in pollForNextCallback() [all …]
|
D | TestableNetworkCallback.kt | 153 val defaultTimeoutMs: Long = DEFAULT_TIMEOUT 156 constructor(timeoutMs: Long = DEFAULT_TIMEOUT): this(null, timeoutMs) 168 fun pollForNextCallback(timeoutMs: Long = defaultTimeoutMs): CallbackEntry { in pollForNextCallback() 174 open fun assertNoCallback(timeoutMs: Long = defaultTimeoutMs) { in assertNoCallback() 183 timeoutMs: Long = defaultTimeoutMs in expectCallback() 196 timeoutMs: Long = defaultTimeoutMs, in eventuallyExpect() 205 timeoutMs: Long = defaultTimeoutMs, in eventuallyExpectOrNull() 211 timeoutMs: Long = defaultTimeoutMs, in expectCallbackThat() 217 tmt: Long = defaultTimeoutMs, in expectCapabilitiesThat() 227 tmt: Long = defaultTimeoutMs, in expectLinkPropertiesThat() [all …]
|
D | TestableNetworkStatsProviderBinder.kt | 29 data class OnSetLimit(val iface: String?, val quotaBytes: Long) : CallbackType() 30 data class OnSetAlert(val quotaBytes: Long) : CallbackType() 39 override fun onSetLimit(iface: String?, quotaBytes: Long) { in onSetLimit() 43 override fun onSetAlert(quotaBytes: Long) { in onSetAlert() 51 fun expectOnSetLimit(iface: String?, quotaBytes: Long) { in expectOnSetLimit() 55 fun expectOnSetAlert(quotaBytes: Long) { in expectOnSetAlert() 60 fun assertNoCallback(timeout: Long = DEFAULT_TIMEOUT_MS) { in assertNoCallback()
|
/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 …]
|
/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/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/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/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/base/core/java/com/android/internal/compat/ |
D | CompatibilityChangeConfig.java | 41 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/ |
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/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<>(); 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/ |
D | SurfaceFlingerProperties-latest.txt | 5 type: Long 10 type: Long 56 type: Long 61 type: Long 66 type: Long 120 type: Long 125 type: Long 130 type: Long
|
D | SurfaceFlingerProperties-current.txt | 5 type: Long 10 type: Long 56 type: Long 61 type: Long 66 type: Long 124 type: Long 129 type: Long 134 type: Long
|
/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/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/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/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/services/tests/servicestests/src/com/android/server/compat/ |
D | CompatibilityChangeConfigBuilder.java | 27 private Set<Long> mEnabled; 28 private Set<Long> mDisabled; 39 CompatibilityChangeConfigBuilder enable(Long id) { in enable() 44 CompatibilityChangeConfigBuilder disable(Long id) { in disable()
|
/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/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()
|