Home
last modified time | relevance | path

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

12345678910>>...19

/frameworks/base/wifi/java/android/net/wifi/
DWifiLinkLayerStats.java131 sbuf.append(" BE : ").append(" rx=").append(Long.toString(this.rxmpdu_be)) in toString()
132 .append(" tx=").append(Long.toString(this.txmpdu_be)) in toString()
133 .append(" lost=").append(Long.toString(this.lostmpdu_be)) in toString()
134 .append(" retries=").append(Long.toString(this.retries_be)).append('\n'); in toString()
135 sbuf.append(" BK : ").append(" rx=").append(Long.toString(this.rxmpdu_bk)) in toString()
136 .append(" tx=").append(Long.toString(this.txmpdu_bk)) in toString()
137 .append(" lost=").append(Long.toString(this.lostmpdu_bk)) in toString()
138 .append(" retries=").append(Long.toString(this.retries_bk)).append('\n'); in toString()
139 sbuf.append(" VI : ").append(" rx=").append(Long.toString(this.rxmpdu_vi)) in toString()
140 .append(" tx=").append(Long.toString(this.txmpdu_vi)) in toString()
[all …]
/frameworks/base/packages/Osu/src/com/android/hotspot2/pps/
DHomeSP.java13 private final Map<String, Long> mSSIDs; // SSID, HESSID, [0,N]
17 private final HashSet<Long> mRoamingConsortiums; // [0,N]
18 private final Set<Long> mMatchAnyOIs; // [0,N]
19 private final List<Long> mMatchAllOIs; // [0,N]
35 public HomeSP(Map<String, Long> ssidMap, in HomeSP()
37 /*@NotNull*/ HashSet<Long> roamingConsortiums, in HomeSP()
39 /*@NotNull*/ Set<Long> matchAnyOIs, in HomeSP()
40 /*@NotNull*/ List<Long> matchAllOIs, in HomeSP()
68 public HomeSP(Map<String, Long> ssidMap, in HomeSP()
70 /*@NotNull*/ HashSet<Long> roamingConsortiums, in HomeSP()
[all …]
/frameworks/base/core/tests/coretests/src/android/provider/
DSmsProviderTest.java44 Long.toString(new GregorianCalendar(1970, 1, 1, 0, 0, 0).getTimeInMillis()), in testProvider()
45 Long.toString(new GregorianCalendar(1971, 2, 13, 16, 35, 3).getTimeInMillis()), in testProvider()
46 Long.toString(new GregorianCalendar(1978, 10, 22, 0, 1, 0).getTimeInMillis()), in testProvider()
47 Long.toString(new GregorianCalendar(1980, 1, 11, 10, 22, 30).getTimeInMillis()), in testProvider()
48 Long.toString(now - (5 * 24 * 60 * 60 * 1000)), in testProvider()
49 Long.toString(now - (2 * 24 * 60 * 60 * 1000)), in testProvider()
50 Long.toString(now - (5 * 60 * 60 * 1000)), in testProvider()
51 Long.toString(now - (30 * 60 * 1000)), in testProvider()
52 Long.toString(now - (5 * 60 * 1000)), in testProvider()
53 Long.toString(now) in testProvider()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DKeySetManagerServiceTest.java56 ArrayMap<String, Long> aliases = pksd.getAliases(); in testPackageKeySetDataConstructorUnassignend()
126 LongSparseArray<ArraySet<Long>> ksMapping = KeySetUtils.getKeySetMapping(mKsms); in testAddSigningKSToPackageEmpty()
128 ArraySet<Long> mapping = ksMapping.get(1); in testAddSigningKSToPackageEmpty()
130 assertTrue(mapping.contains(new Long(1))); in testAddSigningKSToPackageEmpty()
156 LongSparseArray<ArraySet<Long>> ksMapping = KeySetUtils.getKeySetMapping(mKsms); in testAddSigningKSToPackageUpgradeSame()
158 ArraySet<Long> mapping = ksMapping.get(1); in testAddSigningKSToPackageUpgradeSame()
160 assertTrue(mapping.contains(new Long(1))); in testAddSigningKSToPackageUpgradeSame()
191 LongSparseArray<ArraySet<Long>> ksMapping = KeySetUtils.getKeySetMapping(mKsms); in testAddSigningKSToPackageUpgradeDiff()
193 ArraySet<Long> mapping = ksMapping.get(2); in testAddSigningKSToPackageUpgradeDiff()
195 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()
DPackageManagerSettingsTests.java219 LongSparseArray<ArraySet<Long>> ksMapping = KeySetUtils.getKeySetMapping(ksms); in verifyKeySetMetaData()
220 ArraySet<Long> mapping = ksMapping.get(1); in verifyKeySetMetaData()
222 assertTrue(mapping.contains(new Long(1))); in verifyKeySetMetaData()
225 assertTrue(mapping.contains(new Long(2))); in verifyKeySetMetaData()
228 assertTrue(mapping.contains(new Long(3))); in verifyKeySetMetaData()
231 assertTrue(mapping.contains(new Long(1))); in verifyKeySetMetaData()
232 assertTrue(mapping.contains(new Long(2))); in verifyKeySetMetaData()
235 assertEquals(new Long(3), KeySetUtils.getLastIssuedKeyId(ksms)); in verifyKeySetMetaData()
236 assertEquals(new Long(4), KeySetUtils.getLastIssuedKeySetId(ksms)); in verifyKeySetMetaData()
243 assertEquals(new Long(4), ps.keySetData.getAliases().get("AB")); in verifyKeySetMetaData()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DKeySetManagerService.java60 protected final LongSparseArray<ArraySet<Long>> mKeySetMapping;
114 mKeySetMapping = new LongSparseArray<ArraySet<Long>>(); in KeySetManagerService()
141 ArraySet<Long> pkgKeys = mKeySetMapping.get(pkg.keySetData.getProperSigningKeySet()); in packageIsSignedByLPr()
142 ArraySet<Long> testKeys = mKeySetMapping.get(id); in packageIsSignedByLPr()
169 ArraySet<Long> pkgKeys = mKeySetMapping.get(pkg.keySetData.getProperSigningKeySet()); in packageIsSignedByExactlyLPr()
170 ArraySet<Long> testKeys = mKeySetMapping.get(id); in packageIsSignedByExactlyLPr()
282 ArrayMap<String, Long> prevDefinedKeySets = pkg.keySetData.getAliases(); in addDefinedKeySetsToPackageLPw()
285 ArrayMap<String, Long> newKeySetAliases = new ArrayMap<String, Long>(); in addDefinedKeySetsToPackageLPw()
332 Long keySetId = p.keySetData.getAliases().get(alias); in getKeySetByAliasAndPackageNameLPr()
352 ArraySet<Long> pkIds = mKeySetMapping.get(id); in getPublicKeysFromKeySetLPr()
[all …]
DPackageKeySetData.java32 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/data-binding/baseLibrary/src/main/java/android/databinding/
DCallbackRegistry.java98 removeRemovedCallbacks((i + 1) * Long.SIZE, removedBits); in notifyCallbacks()
121 final int maxNotified = Math.min(Long.SIZE, mCallbacks.size()); in notifyFirst64()
149 final int startCallbackIndex = (remainderIndex + 2) * Long.SIZE; in notifyRecurse()
172 final int startIndex = (remainderIndex + 1) * Long.SIZE; in notifyRemainder()
173 final int endIndex = Math.min(mCallbacks.size(), startIndex + Long.SIZE); in notifyRemainder()
226 if (index < Long.SIZE) { in isRemoved()
234 final int maskIndex = (index / Long.SIZE) - 1; in isRemoved()
241 final long bitMask = 1L << (index % Long.SIZE); in isRemoved()
257 final int endIndex = startIndex + Long.SIZE; in removeRemovedCallbacks()
259 long bitMask = 1L << (Long.SIZE - 1); in removeRemovedCallbacks()
[all …]
/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/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/pps/
DHomeSP.java35 private final Map<String, Long> mSSIDs; // SSID, HESSID, [0,N]
39 private final HashSet<Long> mRoamingConsortiums; // [0,N]
40 private final Set<Long> mMatchAnyOIs; // [0,N]
41 private final List<Long> mMatchAllOIs; // [0,N]
57 public HomeSP(Map<String, Long> ssidMap, in HomeSP()
59 /*@NotNull*/ HashSet<Long> roamingConsortiums, in HomeSP()
61 /*@NotNull*/ Set<Long> matchAnyOIs, in HomeSP()
62 /*@NotNull*/ List<Long> matchAllOIs, in HomeSP()
90 public HomeSP(Map<String, Long> ssidMap, in HomeSP()
92 /*@NotNull*/ HashSet<Long> roamingConsortiums, in HomeSP()
[all …]
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiLogger.java54 private final HashMap<String, Pair<Long, Integer>> mWarningTimingCache = new HashMap<>();
56 private final HashMap<String, Pair<Long, Integer>> mErrorTimingCache = new HashMap<>();
110 private static String updateLog(HashMap<String, Pair<Long, Integer>> cache, String logMessage) { in updateLog() argument
112 Pair<Long, Integer> timing = cache.get(logMessage); in updateLog()
123 private static String buildMessage(String message, @Nullable Pair<Long, Integer> timing) { in buildMessage() argument
129 private static void increaseLogCount(HashMap<String, Pair<Long, Integer>> cache, in increaseLogCount() argument
131 Pair<Long, Integer> timing = cache.get(message); in increaseLogCount()
137 private static boolean shouldLogNow(@Nullable Pair<Long, Integer> timing, long curTime) { in shouldLogNow() argument
/frameworks/base/core/tests/coretests/src/android/net/
DNetworkStatsHistoryTest.java82 entry = history.getValues(Long.MIN_VALUE, Long.MAX_VALUE, entry); in testReadOriginalVersion()
406 assertEquals(Long.MIN_VALUE, performVarLong(Long.MIN_VALUE)); in testVarLong()
407 assertEquals(Long.MAX_VALUE, performVarLong(Long.MAX_VALUE)); in testVarLong()
408 assertEquals(Long.MIN_VALUE + 40, performVarLong(Long.MIN_VALUE + 40)); in testVarLong()
409 assertEquals(Long.MAX_VALUE - 40, performVarLong(Long.MAX_VALUE - 40)); in testVarLong()
433 assertIndexBeforeAfter(stats, 0, 0, Long.MIN_VALUE); in testIndexBeforeAfter()
451 assertIndexBeforeAfter(stats, 4, 4, Long.MAX_VALUE); in testIndexBeforeAfter()
474 assertFalse(stats.intersects(Long.MAX_VALUE, Long.MIN_VALUE)); in testIntersects()
476 assertTrue(stats.intersects(Long.MIN_VALUE, Long.MAX_VALUE)); in testIntersects()
480 assertTrue(stats.intersects(TEST_START + DAY_IN_MILLIS, Long.MAX_VALUE)); in testIntersects()
[all …]
/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/ex/common/java/com/android/common/contacts/
DDataUsageStatUpdater.java127 final Set<Long> contactIds = new HashSet<Long>(cursor.getCount()); in updateWithAddress()
128 final Set<Long> dataIds = new HashSet<Long>(cursor.getCount()); in updateWithAddress()
177 final Set<Long> contactIds = new HashSet<Long>(cursor.getCount()); in updateWithPhoneNumber()
178 final Set<Long> dataIds = new HashSet<Long>(cursor.getCount()); in updateWithPhoneNumber()
198 private boolean update(Collection<Long> contactIds, Collection<Long> dataIds, String type) { in update()
/frameworks/base/core/tests/coretests/src/android/util/
DLongSparseLongArrayTest.java77 final HashMap<Long, Long> map = new HashMap<Long, Long>(); in testFuzz()
97 for (Map.Entry<Long, Long> e : map.entrySet()) { in testFuzz()
/frameworks/base/media/java/android/media/
DSubtitleTrack.java135 for(Iterator<Pair<Long, Cue> > it = in updateActiveCues()
137 Pair<Long, Cue> event = it.next(); in updateActiveCues()
397 private SortedMap<Long, Vector<Cue> > mCues;
456 public Iterable<Pair<Long, Cue>> entriesBetween( in entriesBetween()
458 return new Iterable<Pair<Long, Cue> >() { in entriesBetween()
460 public Iterator<Pair<Long, Cue> > iterator() { in entriesBetween()
473 SortedMap<Long, Vector<Cue>> tail = null; in nextTimeAfter()
488 class EntryIterator implements Iterator<Pair<Long, Cue> > {
495 public Pair<Long, Cue> next() { in next()
499 mLastEntry = new Pair<Long, Cue>( in next()
[all …]
/frameworks/base/core/java/android/hardware/camera2/legacy/
DRequestQueue.java42 private final List<Long> mJpegSurfaceIds;
44 public RequestQueue(List<Long> jpegSurfaceIds) { in RequestQueue()
55 public synchronized Pair<BurstHolder, Long> getNext() { in getNext()
67 Pair<BurstHolder, Long> ret = new Pair<BurstHolder, Long>(next, mCurrentFrameNumber); in getNext()
DPerfMeasurement.java65 private ArrayList<Long> mCollectedGpuDurations = new ArrayList<>();
66 private ArrayList<Long> mCollectedCpuDurations = new ArrayList<>();
67 private ArrayList<Long> mCollectedTimestamps = new ArrayList<>();
72 private Queue<Long> mTimestampQueue = new LinkedList<>();
73 private Queue<Long> mCpuDurationsQueue = new LinkedList<>();
/frameworks/base/core/java/com/android/server/
DBootReceiver.java144 HashMap<String, Long> timestamps = readTimestamps(); in logBootEvents()
152 String now = Long.toString(System.currentTimeMillis()); in logBootEvents()
188 HashMap<String, Long> timestamps = readTimestamps(); in logBootEvents()
206 DropBoxManager db, HashMap<String, Long> timestamps, in addFileToDropBox()
212 DropBoxManager db, HashMap<String, Long> timestamps, in addFileWithFootersToDropBox()
233 HashMap<String, Long> timestamps, String headers, int maxSize, String tag) in addAuditErrorsToDropBox()
265 HashMap<String, Long> timestamps, String headers, int maxSize, String tag) in addFsckErrorsToDropBox()
292 private static HashMap<String, Long> readTimestamps() { in readTimestamps()
294 HashMap<String, Long> timestamps = new HashMap<String, Long>(); in readTimestamps()
320 final long timestamp = Long.valueOf(parser.getAttributeValue( in readTimestamps()
[all …]
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
DWebContent.java29 private final Long mExpireTimeMillis;
31 public WebContent(String content, Long expireTimeMillis) { in WebContent()
39 public Long getExpireTimeMillis() { in getExpireTimeMillis()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DPasspointManagementObjectManagerTest.java85 HashMap<String, Long> ssidMap = new HashMap<>(); in addMoFromWifiConfig()
87 HashSet<Long> roamingConsortiums = new HashSet<Long>(); in addMoFromWifiConfig()
89 Set<Long> matchAnyOIs = new HashSet<Long>(); in addMoFromWifiConfig()
90 List<Long> matchAllOIs = new ArrayList<Long>(); in addMoFromWifiConfig()
103 HomeSP newHomeSP = new HomeSP(Collections.<String, Long>emptyMap(), fqdn, in addMoFromWifiConfig()
105 Collections.<Long>emptySet(), Collections.<Long>emptyList(), in addMoFromWifiConfig()
/frameworks/base/core/java/android/app/backup/
DBlobBackupHelper.java90 private ArrayMap<String, Long> readOldState(ParcelFileDescriptor oldStateFd) { in readOldState()
91 final ArrayMap<String, Long> state = new ArrayMap<String, Long>(); in readOldState()
132 private void writeBackupState(ArrayMap<String, Long> state, ParcelFileDescriptor stateFile) { in writeBackupState()
245 final ArrayMap<String, Long> oldState = readOldState(oldStateFd); in performBackup()
246 final ArrayMap<String, Long> newState = new ArrayMap<String, Long>(); in performBackup()
257 Long oldChecksum = oldState.get(key); in performBackup()
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
DObjectViewer.java126 view.setText(Long.toString(info.getCompressedSize())); in onResume()
128 view.setText(Long.toString(info.getThumbPixWidth())); in onResume()
130 view.setText(Long.toString(info.getThumbPixHeight())); in onResume()
132 view.setText(Long.toString(info.getThumbCompressedSize())); in onResume()
134 view.setText(Long.toString(info.getImagePixWidth())); in onResume()
136 view.setText(Long.toString(info.getImagePixHeight())); in onResume()
138 view.setText(Long.toString(info.getImagePixDepth())); in onResume()
140 view.setText(Long.toString(info.getSequenceNumber())); in onResume()

12345678910>>...19