@TargetApi(Build.VERSION_CODES.LOLLIPOP) public static String[] getABIList21() { final String[] abis = Build.SUPPORTED_ABIS; if (abis == null || abis.length == 0) return getABIList(); return abis; }
int start_section = buffer.position(); int length = buffer.getInt(); String vendor = getString(buffer); if (vendor.equals("aeabi")) { tag = getUleb128(buffer); if (tag == 6) { // CPU_arch int arch = getUleb128(buffer); elf.att_arch = CPU_archs[arch]; } else if (tag == 27) { // ABI_HardFP_use getUleb128(buffer); elf.att_fpu = true; } else { getString(buffer); else getUleb128(buffer);
if (!readHeader(in, elf)) return null; in.close(); in = new RandomAccessFile(file, "r"); if (!readSection(in, elf)) return null; in.close(); in = new RandomAccessFile(file, "r"); if (!readArmAttributes(in, elf)) return null; break;
if (!readHeader(in, elf)) return null; in.close(); in = new RandomAccessFile(file, "r"); if (!readSection(in, elf)) return null; in.close(); in = new RandomAccessFile(file, "r"); if (!readArmAttributes(in, elf)) return null; break; e.printStackTrace(); } finally { close(in);
abis = getABIList21(); else abis = getABIList(); boolean elfHasMips = false; boolean elfIs64bits = false; final File lib = searchLibrary(context.getApplicationInfo()); if (lib != null && (elf = readLib(lib)) != null) { elfHasX86 = elf.e_machine == EM_386 || elf.e_machine == EM_X86_64; elfHasArm = elf.e_machine == EM_ARM || elf.e_machine == EM_AARCH64; close(br); close(fileReader); Log.w(TAG, "Failed to parse: " + line); } finally { close(br); close(fileReader);
public static byte[] getThumbnail(Media media, int i_width, int i_height) { media.addOption(":no-audio"); media.addOption(":no-spu"); media.addOption(":no-osd"); media.addOption(":input-fast-seek"); return nativeGetThumbnail(media, i_width, i_height); }
/** * Get a media thumbnail. * @return a bytearray with the RGBA thumbnail data inside. */ public static byte[] getThumbnail(LibVLC libVLC, Uri uri, int i_width, int i_height) { /* dvd thumbnails can work only with dvdsimple demux */ if (uri.getLastPathSegment().endsWith(".iso")) uri = Uri.parse("dvdsimple://" + uri.getEncodedPath()); final Media media = new Media(libVLC, uri); byte[] bytes = getThumbnail(media, i_width, i_height); media.release(); return bytes; }
abis = getABIList21(); else abis = getABIList(); boolean elfHasMips = false; boolean elfIs64bits = false; final File lib = searchLibrary(context.getApplicationInfo()); if (lib != null && (elf = readLib(lib)) != null) { elfHasX86 = elf.e_machine == EM_386 || elf.e_machine == EM_X86_64; elfHasArm = elf.e_machine == EM_ARM || elf.e_machine == EM_AARCH64;
public static byte[] getThumbnail(Media media, int i_width, int i_height) { media.addOption(":no-audio"); media.addOption(":no-spu"); media.addOption(":no-osd"); media.addOption(":input-fast-seek"); return nativeGetThumbnail(media, i_width, i_height); }
/** * Get a media thumbnail. * @return a bytearray with the RGBA thumbnail data inside. */ public static byte[] getThumbnail(LibVLC libVLC, Uri uri, int i_width, int i_height) { /* dvd thumbnails can work only with dvdsimple demux */ if (uri.getLastPathSegment().endsWith(".iso")) uri = Uri.parse("dvdsimple://" + uri.getEncodedPath()); final Media media = new Media(libVLC, uri); byte[] bytes = getThumbnail(media, i_width, i_height); media.release(); return bytes; }
final File lib = searchLibrary(context.getApplicationInfo()); if (lib == null) return true; ElfData elf = readLib(lib); if (elf == null) { Log.e(TAG, "WARNING: Unable to read libvlcjni.so; cannot check device ABI!"); abis = getABIList21(); else abis = getABIList();
if (!readHeader(in, elf)) return null; in.close(); in = new RandomAccessFile(file, "r"); if (!readSection(in, elf)) return null; in.close(); in = new RandomAccessFile(file, "r"); if (!readArmAttributes(in, elf)) return null; break;
int start_section = buffer.position(); int length = buffer.getInt(); String vendor = getString(buffer); if (vendor.equals("aeabi")) { tag = getUleb128(buffer); if (tag == 6) { // CPU_arch int arch = getUleb128(buffer); elf.att_arch = CPU_archs[arch]; } else if (tag == 27) { // ABI_HardFP_use getUleb128(buffer); elf.att_fpu = true; } else { getString(buffer); else getUleb128(buffer);
@TargetApi(Build.VERSION_CODES.LOLLIPOP) public static String[] getABIList21() { final String[] abis = Build.SUPPORTED_ABIS; if (abis == null || abis.length == 0) return getABIList(); return abis; }
public static byte[] getThumbnail(Media media, int i_width, int i_height) { media.addOption(":no-audio"); media.addOption(":no-spu"); media.addOption(":no-osd"); media.addOption(":input-fast-seek"); return nativeGetThumbnail(media, i_width, i_height); }
/** * Get a media thumbnail. * @return a bytearray with the RGBA thumbnail data inside. */ public static byte[] getThumbnail(LibVLC libVLC, Uri uri, int i_width, int i_height) { /* dvd thumbnails can work only with dvdsimple demux */ if (uri.getLastPathSegment().endsWith(".iso")) uri = Uri.parse("dvdsimple://" + uri.getEncodedPath()); final Media media = new Media(libVLC, uri); byte[] bytes = getThumbnail(media, i_width, i_height); media.release(); return bytes; }
abis = getABIList21(); else abis = getABIList(); boolean elfHasMips = false; boolean elfIs64bits = false; final File lib = searchLibrary(context.getApplicationInfo()); if (lib != null && (elf = readLib(lib)) != null) { elfHasX86 = elf.e_machine == EM_386 || elf.e_machine == EM_X86_64; elfHasArm = elf.e_machine == EM_ARM || elf.e_machine == EM_AARCH64;
if (!readHeader(in, elf)) return null; in.close(); in = new RandomAccessFile(file, "r"); if (!readSection(in, elf)) return null; in.close(); in = new RandomAccessFile(file, "r"); if (!readArmAttributes(in, elf)) return null; break;
int start_section = buffer.position(); int length = buffer.getInt(); String vendor = getString(buffer); if (vendor.equals("aeabi")) { tag = getUleb128(buffer); if (tag == 6) { // CPU_arch int arch = getUleb128(buffer); elf.att_arch = CPU_archs[arch]; } else if (tag == 27) { // ABI_HardFP_use getUleb128(buffer); elf.att_fpu = true; } else { getString(buffer); else getUleb128(buffer);
@TargetApi(Build.VERSION_CODES.LOLLIPOP) public static String[] getABIList21() { final String[] abis = Build.SUPPORTED_ABIS; if (abis == null || abis.length == 0) return getABIList(); return abis; }