Home
last modified time | relevance | path

Searched refs:raf (Results 1 – 11 of 11) sorted by relevance

/frameworks/multidex/library/src/androidx/multidex/
DZipUtil.java55 RandomAccessFile raf = new RandomAccessFile(apk, "r"); in getZipCrc() local
57 CentralDirectory dir = findCentralDirectory(raf); in getZipCrc()
59 return computeCrcOfCentralDir(raf, dir); in getZipCrc()
61 raf.close(); in getZipCrc()
66 static CentralDirectory findCentralDirectory(RandomAccessFile raf) throws IOException, in findCentralDirectory() argument
68 long scanOffset = raf.length() - ENDHDR; in findCentralDirectory()
70 throw new ZipException("File too short to be a zip file: " + raf.length()); in findCentralDirectory()
80 raf.seek(scanOffset); in findCentralDirectory()
81 if (raf.readInt() == endSig) { in findCentralDirectory()
95 raf.skipBytes(2); // diskNumber in findCentralDirectory()
[all …]
/frameworks/base/telephony/java/android/telephony/
DRadioAccessFamily.java254 private static int getAdjustedRaf(int raf) { in getAdjustedRaf() argument
255 raf = ((GSM & raf) > 0) ? (GSM | raf) : raf; in getAdjustedRaf()
256 raf = ((WCDMA & raf) > 0) ? (WCDMA | raf) : raf; in getAdjustedRaf()
257 raf = ((CDMA & raf) > 0) ? (CDMA | raf) : raf; in getAdjustedRaf()
258 raf = ((EVDO & raf) > 0) ? (EVDO | raf) : raf; in getAdjustedRaf()
259 raf = ((LTE & raf) > 0) ? (LTE | raf) : raf; in getAdjustedRaf()
260 raf = ((NR & raf) > 0) ? (NR | raf) : raf; in getAdjustedRaf()
262 return raf; in getAdjustedRaf()
270 public static int getHighestRafCapability(int raf) { in getHighestRafCapability() argument
271 if ((LTE & raf) > 0) { in getHighestRafCapability()
[all …]
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/
DAbstractService.java61 RandomAccessFile raf = new RandomAccessFile(resultFile, "rw"); in run() local
62 raf.seek(raf.length()); in run()
63 if (raf.length() == 0) { in run()
64 Log.i(TAG, "Writing 0x42434445 at " + raf.length() + " in " + resultFile.getPath()); in run()
65 raf.writeInt(0x42434445); in run()
67 Log.w(TAG, "Service was restarted appending 0x42434445 twice at " + raf.length() in run()
69 raf.writeInt(0x42434445); in run()
70 raf.writeInt(0x42434445); in run()
72 raf.close(); in run()
79 raf = new RandomAccessFile(resultFile, "rw"); in run()
[all …]
/frameworks/multidex/library/test/src/androidx/multidex/
DZipUtilTest.java68 RandomAccessFile raf = new RandomAccessFile(zipFile, "r"); in testCrcRange() local
69 CentralDirectory dir = ZipUtil.findCentralDirectory(raf); in testCrcRange()
73 raf.seek(dir.offset); in testCrcRange()
75 int read = raf.read(dirData, off, length); in testCrcRange()
82 raf.close(); in testCrcRange()
129 RandomAccessFile raf = new RandomAccessFile(tmp, "r"); in testCrcValue() local
132 dir.size = raf.length(); in testCrcValue()
133 long crc = ZipUtil.computeCrcOfCentralDir(raf, dir); in testCrcValue()
135 raf.close(); in testCrcValue()
159 RandomAccessFile raf = new RandomAccessFile(tmp, "r"); in testInvalidCrcValue() local
[all …]
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestServicesTests2/src/com/android/framework/multidexlegacytestservices/test2/
DServicesTests.java334 RandomAccessFile raf = new RandomAccessFile(zip, "rw"); in tamperAllExtractedZips() local
339 raf.write(zeros, 0, length); in tamperAllExtractedZips()
343 raf.close(); in tamperAllExtractedZips()
357 RandomAccessFile raf = new RandomAccessFile(odex, "rw"); in tamperAllOdex() local
359 raf.seek(savedSizeForOdexHeader); in tamperAllOdex()
360 raf.write(zeros, 0, zeros.length); in tamperAllOdex()
362 raf.close(); in tamperAllOdex()
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsStorage.java371 RandomAccessFile raf = null; in readFile() local
374 raf = new RandomAccessFile(name, "r"); in readFile()
375 stored = new byte[(int) raf.length()]; in readFile()
376 raf.readFully(stored, 0, stored.length); in readFile()
377 raf.close(); in readFile()
381 if (raf != null) { in readFile()
383 raf.close(); in readFile()
395 RandomAccessFile raf = null; in writeFile() local
401 raf = new RandomAccessFile(name, "rws"); in writeFile()
404 raf.setLength(0); in writeFile()
[all …]
/frameworks/base/core/java/android/os/
DRecoverySystem.java213 final RandomAccessFile raf = new RandomAccessFile(packageFile, "r"); in verifyPackage() local
220 raf.seek(fileLen - 6); in verifyPackage()
222 raf.readFully(footer); in verifyPackage()
232 raf.seek(fileLen - (commentSize + 22)); in verifyPackage()
233 raf.readFully(eocd); in verifyPackage()
285 raf.seek(0); in verifyPackage()
314 int read = raf.read(b, off, size); in verifyPackage()
345 raf.close(); in verifyPackage()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DRIL.java2632 public static int convertToNetworkTypeBitMask(int raf) { in convertToNetworkTypeBitMask() argument
2635 if ((raf & android.hardware.radio.V1_0.RadioAccessFamily.GSM) != 0) { in convertToNetworkTypeBitMask()
2638 if ((raf & android.hardware.radio.V1_0.RadioAccessFamily.GPRS) != 0) { in convertToNetworkTypeBitMask()
2641 if ((raf & android.hardware.radio.V1_0.RadioAccessFamily.EDGE) != 0) { in convertToNetworkTypeBitMask()
2645 if ((raf & android.hardware.radio.V1_0.RadioAccessFamily.IS95A) != 0) { in convertToNetworkTypeBitMask()
2648 if ((raf & android.hardware.radio.V1_0.RadioAccessFamily.IS95B) != 0) { in convertToNetworkTypeBitMask()
2651 if ((raf & android.hardware.radio.V1_0.RadioAccessFamily.ONE_X_RTT) != 0) { in convertToNetworkTypeBitMask()
2654 if ((raf & android.hardware.radio.V1_0.RadioAccessFamily.EVDO_0) != 0) { in convertToNetworkTypeBitMask()
2657 if ((raf & android.hardware.radio.V1_0.RadioAccessFamily.EVDO_A) != 0) { in convertToNetworkTypeBitMask()
2660 if ((raf & android.hardware.radio.V1_0.RadioAccessFamily.EVDO_B) != 0) { in convertToNetworkTypeBitMask()
[all …]
DProxyController.java555 int raf = mPhones[i].getRadioAccessFamily(); in completeRadioCapabilityTransaction() local
556 logd("radioAccessFamily[" + i + "]=" + raf); in completeRadioCapabilityTransaction()
557 RadioAccessFamily phoneRC = new RadioAccessFamily(i, raf); in completeRadioCapabilityTransaction()
653 private String getLogicalModemIdFromRaf(int raf) { in getLogicalModemIdFromRaf() argument
657 if (mPhones[phoneId].getRadioAccessFamily() == raf) { in getLogicalModemIdFromRaf()
DSubscriptionController.java2235 int raf; in setDefaultDataSubId() local
2239 raf = proxyController.getMaxRafSupported(); in setDefaultDataSubId()
2243 raf = proxyController.getMinRafSupported(); in setDefaultDataSubId()
2246 + raf); in setDefaultDataSubId()
2247 rafs[phoneId] = new RadioAccessFamily(phoneId, raf); in setDefaultDataSubId()
/frameworks/base/services/core/java/com/android/server/security/
DVerityUtils.java91 try (RandomAccessFile raf = new RandomAccessFile(filePath, "rw")) { in setUpFsverity() argument
92 FileChannel ch = raf.getChannel(); in setUpFsverity()