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.java252 private static int getAdjustedRaf(int raf) { in getAdjustedRaf() argument
253 raf = ((GSM & raf) > 0) ? (GSM | raf) : raf; in getAdjustedRaf()
254 raf = ((WCDMA & raf) > 0) ? (WCDMA | raf) : raf; in getAdjustedRaf()
255 raf = ((CDMA & raf) > 0) ? (CDMA | raf) : raf; in getAdjustedRaf()
256 raf = ((EVDO & raf) > 0) ? (EVDO | raf) : raf; in getAdjustedRaf()
257 raf = ((LTE & raf) > 0) ? (LTE | raf) : raf; in getAdjustedRaf()
258 raf = ((NR & raf) > 0) ? (NR | raf) : raf; in getAdjustedRaf()
260 return raf; in getAdjustedRaf()
265 public static int getNetworkTypeFromRaf(int raf) { in getNetworkTypeFromRaf() argument
266 raf = getAdjustedRaf(raf); in getNetworkTypeFromRaf()
[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.java373 RandomAccessFile raf = null; in readFile() local
376 raf = new RandomAccessFile(name, "r"); in readFile()
377 stored = new byte[(int) raf.length()]; in readFile()
378 raf.readFully(stored, 0, stored.length); in readFile()
379 raf.close(); in readFile()
383 if (raf != null) { in readFile()
385 raf.close(); in readFile()
408 RandomAccessFile raf = null; in writeFile() local
414 raf = new RandomAccessFile(name, "rws"); in writeFile()
417 raf.setLength(0); in writeFile()
[all …]
/frameworks/base/core/java/android/os/
DRecoverySystem.java225 final RandomAccessFile raf = new RandomAccessFile(packageFile, "r"); in verifyPackage() local
232 raf.seek(fileLen - 6); in verifyPackage()
234 raf.readFully(footer); in verifyPackage()
244 raf.seek(fileLen - (commentSize + 22)); in verifyPackage()
245 raf.readFully(eocd); in verifyPackage()
297 raf.seek(0); in verifyPackage()
326 int read = raf.read(b, off, size); in verifyPackage()
357 raf.close(); in verifyPackage()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DProxyController.java578 int raf = mPhones[i].getRadioAccessFamily(); in completeRadioCapabilityTransaction() local
579 logd("radioAccessFamily[" + i + "]=" + raf); in completeRadioCapabilityTransaction()
580 RadioAccessFamily phoneRC = new RadioAccessFamily(i, raf); in completeRadioCapabilityTransaction()
676 private String getLogicalModemIdFromRaf(int raf) { in getLogicalModemIdFromRaf() argument
680 if (mPhones[phoneId].getRadioAccessFamily() == raf) { in getLogicalModemIdFromRaf()
DRIL.java3125 public static int convertToNetworkTypeBitMask(int raf) { in convertToNetworkTypeBitMask() argument
3128 if ((raf & android.hardware.radio.V1_0.RadioAccessFamily.GSM) != 0) { in convertToNetworkTypeBitMask()
3131 if ((raf & android.hardware.radio.V1_0.RadioAccessFamily.GPRS) != 0) { in convertToNetworkTypeBitMask()
3134 if ((raf & android.hardware.radio.V1_0.RadioAccessFamily.EDGE) != 0) { in convertToNetworkTypeBitMask()
3138 if ((raf & android.hardware.radio.V1_0.RadioAccessFamily.IS95A) != 0) { in convertToNetworkTypeBitMask()
3141 if ((raf & android.hardware.radio.V1_0.RadioAccessFamily.IS95B) != 0) { in convertToNetworkTypeBitMask()
3144 if ((raf & android.hardware.radio.V1_0.RadioAccessFamily.ONE_X_RTT) != 0) { in convertToNetworkTypeBitMask()
3147 if ((raf & android.hardware.radio.V1_0.RadioAccessFamily.EVDO_0) != 0) { in convertToNetworkTypeBitMask()
3150 if ((raf & android.hardware.radio.V1_0.RadioAccessFamily.EVDO_A) != 0) { in convertToNetworkTypeBitMask()
3153 if ((raf & android.hardware.radio.V1_0.RadioAccessFamily.EVDO_B) != 0) { in convertToNetworkTypeBitMask()
[all …]
DSubscriptionController.java2434 int raf; in setDefaultDataSubId() local
2438 raf = proxyController.getMaxRafSupported(); in setDefaultDataSubId()
2442 raf = proxyController.getMinRafSupported(); in setDefaultDataSubId()
2445 + raf); in setDefaultDataSubId()
2446 rafs[phoneId] = new RadioAccessFamily(phoneId, raf); in setDefaultDataSubId()
/frameworks/base/mime/java-res/
Dandroid.mime.types89 ?image/x-fuji-raf raf