Home
last modified time | relevance | path

Searched refs:raf (Results 1 – 18 of 18) 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()
267 public static int getNetworkTypeFromRaf(int raf) { in getNetworkTypeFromRaf() argument
268 raf = getAdjustedRaf(raf); in getNetworkTypeFromRaf()
[all …]
/frameworks/base/ravenwood/runtime-helper-src/framework/com/android/platform/test/ravenwood/nativesubstitution/
DParcelFileDescriptor_host.java73 final RandomAccessFile raf = new RandomAccessFile(file, modeString); in native_open$ravenwood() local
77 raf.setLength(0); in native_open$ravenwood()
80 raf.seek(raf.length()); in native_open$ravenwood()
89 final FileDescriptor fd = raf.getFD(); in native_open$ravenwood()
91 sActive.put(fd, raf); in native_open$ravenwood()
97 final RandomAccessFile raf; in native_close$ravenwood() local
99 raf = sActive.remove(fd); in native_close$ravenwood()
102 if (raf != null) { in native_close$ravenwood()
103 raf.close(); in native_close$ravenwood()
/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/apct-tests/perftests/core/src/android/libcore/regression/
DBulkPerfTest.java107 RandomAccessFile raf = new RandomAccessFile(tmpFile, "rw"); in newBuffer() local
108 raf.setLength(size); in newBuffer()
109 FileChannel fc = raf.getChannel(); in newBuffer()
DByteBufferPerfTest.java104 RandomAccessFile raf = new RandomAccessFile(tmpFile, "rw"); in newBuffer() local
105 raf.setLength(8192 * 8); in newBuffer()
106 FileChannel fc = raf.getChannel(); in newBuffer()
/frameworks/base/ravenwood/runtime-test/test/com/android/ravenwood/runtimetest/
DOsTest.java46 try (var raf = new RandomAccessFile(file, "rw")) { in withTestFile() argument
47 var fd = raf.getFD(); in withTestFile()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DRILUtils.java1484 public static int convertHalNetworkTypeBitMask(int raf) { in convertHalNetworkTypeBitMask() argument
1487 if ((raf & android.hardware.radio.V1_0.RadioAccessFamily.GSM) != 0) { in convertHalNetworkTypeBitMask()
1490 if ((raf & android.hardware.radio.V1_0.RadioAccessFamily.GPRS) != 0) { in convertHalNetworkTypeBitMask()
1493 if ((raf & android.hardware.radio.V1_0.RadioAccessFamily.EDGE) != 0) { in convertHalNetworkTypeBitMask()
1497 if ((raf & android.hardware.radio.V1_0.RadioAccessFamily.IS95A) != 0) { in convertHalNetworkTypeBitMask()
1500 if ((raf & android.hardware.radio.V1_0.RadioAccessFamily.IS95B) != 0) { in convertHalNetworkTypeBitMask()
1503 if ((raf & android.hardware.radio.V1_0.RadioAccessFamily.ONE_X_RTT) != 0) { in convertHalNetworkTypeBitMask()
1506 if ((raf & android.hardware.radio.V1_0.RadioAccessFamily.EVDO_0) != 0) { in convertHalNetworkTypeBitMask()
1509 if ((raf & android.hardware.radio.V1_0.RadioAccessFamily.EVDO_A) != 0) { in convertHalNetworkTypeBitMask()
1512 if ((raf & android.hardware.radio.V1_0.RadioAccessFamily.EVDO_B) != 0) { in convertHalNetworkTypeBitMask()
[all …]
DProxyController.java588 int raf = mPhones[i].getRadioAccessFamily(); in completeRadioCapabilityTransaction() local
589 logd("radioAccessFamily[" + i + "]=" + raf); in completeRadioCapabilityTransaction()
590 RadioAccessFamily phoneRC = new RadioAccessFamily(i, raf); in completeRadioCapabilityTransaction()
698 private String getLogicalModemIdFromRaf(int raf) { in getLogicalModemIdFromRaf() argument
702 if (mPhones[phoneId].getRadioAccessFamily() == raf) { in getLogicalModemIdFromRaf()
DRadioModemProxy.java319 halRc.raf = rc.getRadioAccessFamily(); in setRadioCapability()
328 halRc.raf = rc.getRadioAccessFamily(); in setRadioCapability()
DRIL.java5845 int raf = RadioAccessFamily.RAF_UNKNOWN; in makeStaticRadioCapability() local
5850 raf = RadioAccessFamily.rafTypeFromString(rafString); in makeStaticRadioCapability()
5852 RadioCapability rc = new RadioCapability(mPhoneId.intValue(), 0, 0, raf, in makeStaticRadioCapability()
5854 if (RILJ_LOGD) riljLog("Faking RIL_REQUEST_GET_RADIO_CAPABILITY response using " + raf); in makeStaticRadioCapability()
/frameworks/base/core/java/android/os/
DRecoverySystem.java289 final RandomAccessFile raf = new RandomAccessFile(packageFile, "r"); in verifyPackage() local
296 raf.seek(fileLen - 6); in verifyPackage()
298 raf.readFully(footer); in verifyPackage()
308 raf.seek(fileLen - (commentSize + 22)); in verifyPackage()
309 raf.readFully(eocd); in verifyPackage()
361 raf.seek(0); in verifyPackage()
390 int read = raf.read(b, off, size); in verifyPackage()
421 raf.close(); in verifyPackage()
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsStorage.java296 try (RandomAccessFile raf = new RandomAccessFile(path, "r")) { in readFile() argument
297 data = new byte[(int) raf.length()]; in readFile()
298 raf.readFully(data, 0, data.length); in readFile()
299 raf.close(); in readFile()
358 try (RandomAccessFile raf = new RandomAccessFile(path, "rws")) { in deleteFile() argument
359 final int fileSize = (int) raf.length(); in deleteFile()
360 raf.write(new byte[fileSize]); in deleteFile()
/frameworks/base/mime/java-res/
Dandroid.mime.types105 ?image/x-fuji-raf raf
/frameworks/base/services/core/java/com/android/server/pm/
DApkChecksums.java835 try (RandomAccessFile raf = new RandomAccessFile(file, "r")) { in calculatePartialChecksumsIfRequested() argument
838 signatureInfo = ApkSignatureSchemeV3Verifier.findSignature(raf); in calculatePartialChecksumsIfRequested()
841 signatureInfo = ApkSignatureSchemeV2Verifier.findSignature(raf); in calculatePartialChecksumsIfRequested()
853 raf.getFD(), signatureInfo); in calculatePartialChecksumsIfRequested()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/subscription/
DSubscriptionManagerService.java3169 int raf = mSlotIndexToSubId.getOrDefault(phoneId, in remapRafIfApplicable() local
3172 rafs[phoneId] = new RadioAccessFamily(phoneId, raf); in remapRafIfApplicable()