Home
last modified time | relevance | path

Searched full:dex (Results 1 – 25 of 448) sorted by relevance

12345678910>>...18

/external/zucchini/
Ddisassembler_dex.cc32 // A DEX item specified by an offset, if absent, has a sentinel value of 0 since
33 // 0 is never a valid item offset (it points to magic at start of DEX).
36 // A DEX item specified by an index, if absent, has a sentinel value of
60 case dex::kTypeStringIdItem: in GetItemBaseSize()
61 return sizeof(dex::StringIdItem); in GetItemBaseSize()
62 case dex::kTypeTypeIdItem: in GetItemBaseSize()
63 return sizeof(dex::TypeIdItem); in GetItemBaseSize()
64 case dex::kTypeProtoIdItem: in GetItemBaseSize()
65 return sizeof(dex::ProtoIdItem); in GetItemBaseSize()
66 case dex::kTypeFieldIdItem: in GetItemBaseSize()
[all …]
Ddisassembler_dex.h21 // For consistency, let "canonical order" of DEX data types be the order defined
22 // in https://source.android.com/devices/tech/dalvik/dex-format "Type Codes"
257 using MapItemMap = std::map<uint16_t, const dex::MapItem*>;
264 const dex::HeaderItem* header_ = nullptr;
267 dex::MapItem string_map_item_ = {};
268 dex::MapItem type_map_item_ = {};
269 dex::MapItem proto_map_item_ = {};
270 dex::MapItem field_map_item_ = {};
271 dex::MapItem method_map_item_ = {};
272 dex::MapItem class_def_map_item_ = {};
[all …]
/external/google-smali/baksmali/src/main/java/com/android/tools/smali/baksmali/
DDexInputCommand.java50 * This class implements common functionality for commands that need to load a dex file based on
60 …@Parameter(description = "A dex/apk/oat/odex file. For apk or oat files that contain multiple dex
62 "e.g. \"app.apk/classes2.dex\". For more information, see \"baksmali help input\".")
76 * Parses a dex file input from the user and loads the given dex file.
78 …* In some cases, the input file can contain multiple dex files. If this is the case, you can refer…
79 * dex file with a slash, followed by the entry name, optionally in quotes.
85 * For example, to refer to the "/system/framework/framework.jar:classes2.dex" entry within the
88 * framework/arm/framework.oat/"/system/framework/framework.jar:classes2.dex"
89 * framework/arm/framework.oat/system/framework/framework.jar:classes2.dex
90 * framework/arm/framework.oat/framework/framework.jar:classes2.dex
[all …]
DHelpCommand.java95 … String registerInfoHelp = "Apks and oat files can contain multiple dex files. In order to " + in run()
96 … "specify a particular dex file, the basic syntax is to treat the apk/oat file as a " + in run()
97 … "directory. For example, to load the \"classes2.dex\" entry from \"app.apk\", you can " + in run()
98 "use \"app.apk/classes2.dex\".\n" + in run()
100 … "For ease of use, you can also specify a partial path to the dex file to load. For " + in run()
101 … "example, to load a entry named \"/system/framework/framework.jar:classes2.dex\" from " + in run()
103 "\"framework.oat/classes2.dex\"\n" + in run()
104 "\"framework.oat/framework.jar:classes2.dex\"\n" + in run()
105 "\"framework.oat/framework/framework.jar:classes2.dex\"\n" + in run()
106 "\"framework.oat/system/framework/framework.jar:classes2.dex\"\n" + in run()
[all …]
/external/google-smali/dexlib2/src/main/java/com/android/tools/smali/dexlib2/
DDexFileFactory.java73 * Loads a dex/apk/odex/oat file.
75 …* For oat files with multiple dex files, the first will be opened. For zip/apk files, the "classes…
83 …leNotFoundException If file does not exist, if file is a zip file but does not have a "classes.dex"
84 * entry, or if file is an oat file that has no dex entries.
85 …s UnsupportedFileTypeException If file is not a valid dex/zip/odex/oat file, or if the "classes.de…
86 * in a zip file is not a valid dex file
96 … return new DexEntryFinder(file.getPath(), container).findEntry("classes.dex", true).getDexFile(); in loadDexFile()
132 … throw new DexFileNotFoundException("Oat file %s contains no dex files", file.getName()); in loadDexFile()
139 …throw new UnsupportedFileTypeException("%s is not an apk, dex, odex or oat file.", file.getPath()); in loadDexFile()
143 * Loads a dex entry from a container format (zip/oat)
[all …]
/external/google-smali/dexlib2/src/main/java/com/android/tools/smali/dexlib2/util/
DDexUtil.java48 …* Reads in the dex header from the given input stream and verifies that it is valid and a supporte…
52 * @param inputStream An input stream that is positioned at a dex header
53 * @return The dex version
54 * @throws NotADexFile If the file is not a dex file
55 * @throws InvalidFile If the header appears to be a dex file, but is not valid for some reason
56 * @throws UnsupportedFile If the dex header is valid, but uses unsupported functionality
76 * Verifies that the dex header is valid and a supported version
78 * @param buf A byte array containing at least the first 44 bytes of a dex file
79 * @param offset The offset within the array to the dex header
80 * @return The dex version
[all …]
/external/google-smali/dexlib2/src/test/java/com/android/tools/smali/dexlib2/
DDexEntryFinderTest.java61 entries.put("/system/framework/framework.jar:classes2.dex", dexFile2); in testNormalStuff()
85 … testFinder.findEntry("/system/framework/framework.jar:classes2.dex", true).getDexFile()); in testNormalStuff()
87 assertEntryNotFound(testFinder, "system/framework/framework.jar:classes2.dex", true); in testNormalStuff()
88 assertEntryNotFound(testFinder, "framework.jar:classes2.dex", true); in testNormalStuff()
89 assertEntryNotFound(testFinder, "classes2.dex", true); in testNormalStuff()
92 … testFinder.findEntry("system/framework/framework.jar:classes2.dex", false).getDexFile()); in testNormalStuff()
94 testFinder.findEntry("/framework/framework.jar:classes2.dex", false).getDexFile()); in testNormalStuff()
95 …Assert.assertEquals(dexFile2, testFinder.findEntry("framework/framework.jar:classes2.dex", false).… in testNormalStuff()
96 …Assert.assertEquals(dexFile2, testFinder.findEntry("/framework.jar:classes2.dex", false).getDexFil… in testNormalStuff()
97 …Assert.assertEquals(dexFile2, testFinder.findEntry("framework.jar:classes2.dex", false).getDexFile… in testNormalStuff()
[all …]
/external/vogar/src/vogar/android/
DInstallApkTask.java46 // We can't put multiple dex files in one apk. in execute()
47 // We can't just give dex multiple jars with conflicting class names in execute()
50 // 1. d8 to create a dex in execute()
51 // 2. aapt the dex to create apk in execute()
54 File dex = createDex(action, jar); in execute() local
55 File apk = createApk(action, dex); in execute()
66 File dex = run.localFile(action, "classes.dex"); in createDex() local
73 // because everything gets bundled into classes.dex. in createDex()
76 …run.androidSdk.dex(run.multidex, dex, localTempDir, classesToDex, dependentCp, run.toolchain.getDe… in createDex()
77 return dex; in createDex()
[all …]
/external/bazelbuild-rules_android/rules/
Ddex.bzl15 """Bazel Dex Commands."""
55 dex_archive = _get_dx_artifact(ctx, jar.basename + ".dex.zip")
67 …dex_archives_dict = {d.jar: d.dex for d in info.dex_archives_dict.get("".join(incremental_dexopts)…
139 progress_message = "Merging dex shards for %s." % ctx.label,
186 args.add("--main-dex-list", main_dex_list)
213 # non-.dex files. A subsequent TrimDexZip action will filter out all non-.dex files.
214 classes_dex_intermediate = _get_dx_artifact(ctx, "intermediate_classes.dex.zip")
218 args.add("--dex")
222 args.add("--multi-dex")
224 args.add(main_dex_list, format = "--main-dex-list=%s")
[all …]
/external/ltp/testcases/misc/math/float/
Dthread_code.c154 static void compute_normal(TH_DATA * th_data, double *din, double *dex, in compute_normal() argument
160 e = dex[index]; in compute_normal()
168 static void compute_atan2_hypot(TH_DATA * th_data, double *din, double *dex, in compute_atan2_hypot() argument
174 e = dex[index]; in compute_atan2_hypot()
181 static void compute_modf(TH_DATA * th_data, double *din, double *dex, in compute_modf() argument
190 e = dex[index]; in compute_modf()
210 static void compute_fmod_pow(TH_DATA * th_data, double *din, double *dex, in compute_fmod_pow() argument
216 e = dex[index]; in compute_fmod_pow()
224 static void compute_frexp_lgamma(TH_DATA * th_data, double *din, double *dex, in compute_frexp_lgamma() argument
234 e = dex[index]; in compute_frexp_lgamma()
[all …]
/external/zucchini/aosp/include/components/zucchini/
Ddisassembler_dex.h21 // For consistency, let "canonical order" of DEX data types be the order defined
22 // in https://source.android.com/devices/tech/dalvik/dex-format "Type Codes"
257 using MapItemMap = std::map<uint16_t, const dex::MapItem*>;
264 const dex::HeaderItem* header_ = nullptr;
267 dex::MapItem string_map_item_ = {};
268 dex::MapItem type_map_item_ = {};
269 dex::MapItem proto_map_item_ = {};
270 dex::MapItem field_map_item_ = {};
271 dex::MapItem method_map_item_ = {};
272 dex::MapItem class_def_map_item_ = {};
[all …]
/external/cronet/stable/build/android/
Dmethod_count.py12 from pylib.dex import dex_parser
19 # Signatures of all methods from all seen dex files.
35 """Add dex stats from an .apk/.jar/.aab/.zip."""
38 if not re.match(r'.*classes\d*\.dex$', subpath):
44 """Add dex stats from a .dex file."""
50 """Add dex stats from another DexStatsCollector."""
59 """Returns total number of unique methods across encountered dex files."""
74 """Returns number of bytes of dirty RAM is consumed from all dex files."""
75 # Dex Cache was optimized in Android Oreo:
76 # https://source.android.com/devices/tech/dalvik/improvements#dex-cache-removal
/external/angle/build/android/
Dmethod_count.py12 from pylib.dex import dex_parser
19 # Signatures of all methods from all seen dex files.
35 """Add dex stats from an .apk/.jar/.aab/.zip."""
38 if not re.match(r'.*classes\d*\.dex$', subpath):
44 """Add dex stats from a .dex file."""
50 """Add dex stats from another DexStatsCollector."""
59 """Returns total number of unique methods across encountered dex files."""
74 """Returns number of bytes of dirty RAM is consumed from all dex files."""
75 # Dex Cache was optimized in Android Oreo:
76 # https://source.android.com/devices/tech/dalvik/improvements#dex-cache-removal
/external/cronet/tot/build/android/
Dmethod_count.py12 from pylib.dex import dex_parser
19 # Signatures of all methods from all seen dex files.
35 """Add dex stats from an .apk/.jar/.aab/.zip."""
38 if not re.match(r'.*classes\d*\.dex$', subpath):
44 """Add dex stats from a .dex file."""
50 """Add dex stats from another DexStatsCollector."""
59 """Returns total number of unique methods across encountered dex files."""
74 """Returns number of bytes of dirty RAM is consumed from all dex files."""
75 # Dex Cache was optimized in Android Oreo:
76 # https://source.android.com/devices/tech/dalvik/improvements#dex-cache-removal
/external/bazelbuild-rules_android/mobile_install/
Dtransform.bzl37 def dex(
44 """Dex a list of Jars.
49 path and the Jar to Dex.
69 the Dex shards.
88 utils.dex(ctx, jar, out_dex_shards, deps, desugar)
127 """Merges all dex files in the transitive deps to a dex per shard.
129 Given a list of dex files (and resources.zips) this will create an
130 action per shard that runs dex_shard_merger on all dex files within that
135 data: A list of lists, where the inner list contains dex shards.
139 A list of merged dex shards.
/external/google-smali/smali-integration-tests/src/test/smali/junit-tests/
DTestSuite.smali7 #device/emulator, and then zip up the classes.dex containing this class
10 #dx --dex --output=classes.dex junit-4.6.jar
11 #zip junit-4.6.zip classes.dex
13 #java -jar smali.jar --dex --output=classes.dex .
14 #zip smali-junit-tests.zip classes.dex
/external/bazelbuild-rules_android/src/tools/ak/dex/
DBUILD4 # Package for dex compilation module
16 ":dex",
22 name = "dex",
23 srcs = ["dex.go"],
24 importpath = "src/tools/ak/dex/dex",
/external/angle/build/android/gyp/
Ddex.py63 parser.add_argument('--output', required=True, help='Dex output path.')
73 '--dex-inputs', action='append', help='GN-list of .jars with .dex files.')
75 '--dex-inputs-filearg',
77 help='GN-list of .jars with .dex files (added to depfile).')
80 help='Path of directory to put intermediate dex files.')
83 help='Allow numerous dex files within output.')
218 """Creates a .dex.jar with 4-byte aligned files.
221 dex_files: List of dex files.
227 name = 'classes{}.dex'.format(i + 1 if i > 0 else '')
260 never hit), update _IGNORE_SERVICE_ENTRIES in dex.py.
[all …]
/external/cronet/stable/build/android/pylib/dex/
Ddex_parser.py5 """Utilities for optimistically parsing dex files.
7 This file is not meant to provide a generic tool for analyzing dex files.
8 A DexFile class that exposes access to several memory items in the dex format
21 # https://source.android.com/devices/tech/dalvik/dex-format#header-item
193 # https://source.android.com/devices/tech/dalvik/dex-format#type-codes
277 See https://source.android.com/devices/tech/dalvik/dex-format#mutf-8
280 …com/platform/dalvik/+/fe107fb6e3f308ac5174ebdc5a794ee880c741d9/dx/src/com/android/dex/Mutf8.java#34
326 """Represents a single dex file.
328 Parses and exposes access to dex file structure and contents, as described
329 at https://source.android.com/devices/tech/dalvik/dex-format
[all …]
/external/cronet/tot/build/android/pylib/dex/
Ddex_parser.py5 """Utilities for optimistically parsing dex files.
7 This file is not meant to provide a generic tool for analyzing dex files.
8 A DexFile class that exposes access to several memory items in the dex format
21 # https://source.android.com/devices/tech/dalvik/dex-format#header-item
193 # https://source.android.com/devices/tech/dalvik/dex-format#type-codes
277 See https://source.android.com/devices/tech/dalvik/dex-format#mutf-8
280 …com/platform/dalvik/+/fe107fb6e3f308ac5174ebdc5a794ee880c741d9/dx/src/com/android/dex/Mutf8.java#34
326 """Represents a single dex file.
328 Parses and exposes access to dex file structure and contents, as described
329 at https://source.android.com/devices/tech/dalvik/dex-format
[all …]
/external/angle/build/android/pylib/dex/
Ddex_parser.py5 """Utilities for optimistically parsing dex files.
7 This file is not meant to provide a generic tool for analyzing dex files.
8 A DexFile class that exposes access to several memory items in the dex format
21 # https://source.android.com/devices/tech/dalvik/dex-format#header-item
193 # https://source.android.com/devices/tech/dalvik/dex-format#type-codes
277 See https://source.android.com/devices/tech/dalvik/dex-format#mutf-8
280 …com/platform/dalvik/+/fe107fb6e3f308ac5174ebdc5a794ee880c741d9/dx/src/com/android/dex/Mutf8.java#34
326 """Represents a single dex file.
328 Parses and exposes access to dex file structure and contents, as described
329 at https://source.android.com/devices/tech/dalvik/dex-format
[all …]
/external/cronet/tot/build/android/gyp/
Ddex.py56 parser.add_argument('--output', required=True, help='Dex output path.')
66 '--dex-inputs', action='append', help='GN-list of .jars with .dex files.')
68 '--dex-inputs-filearg',
70 help='GN-list of .jars with .dex files (added to depfile).')
73 help='Path of directory to put intermediate dex files.')
76 help='Allow numerous dex files within output.')
211 """Creates a .dex.jar with 4-byte aligned files.
214 dex_files: List of dex files.
220 name = 'classes{}.dex'.format(i + 1 if i > 0 else '')
250 never hit), update _IGNORE_SERVICE_ENTRIES in dex.py.
[all …]
/external/cronet/stable/build/android/gyp/
Ddex.py56 parser.add_argument('--output', required=True, help='Dex output path.')
66 '--dex-inputs', action='append', help='GN-list of .jars with .dex files.')
68 '--dex-inputs-filearg',
70 help='GN-list of .jars with .dex files (added to depfile).')
73 help='Path of directory to put intermediate dex files.')
76 help='Allow numerous dex files within output.')
211 """Creates a .dex.jar with 4-byte aligned files.
214 dex_files: List of dex files.
220 name = 'classes{}.dex'.format(i + 1 if i > 0 else '')
250 never hit), update _IGNORE_SERVICE_ENTRIES in dex.py.
[all …]
/external/google-smali/dexlib2/
DVdexVersions.txt8 - dex file count + dex location checksum
21 - changed layout of post-dex data in the vdex file.
24 - adds offset to QuickeningInfo structure before each dex file
30 - Add shared separate data section for compact dex
36 - added separate version for dex section
/external/cronet/tot/build/android/docs/
Djava_toolchain.md4 files and turns them into a `classes.dex` file.
24 * Device `.jar`: Used to produce `.dex.jar`, which is used on-device.
29 ## From Source to Final Dex
119 * [d8] converts `.jar` files containing `.class` files into `.dex.jar` files
120 containing `classes.dex` files.
121 * Dexing is incremental - it will reuse dex'ed classes from a previous build if
123 * These per-library `.dex.jar` files are used directly by [incremental install],
147 * [d8] merges all library `.dex.jar` files into a final `.mergeddex.jar`.
161 different from itself, then Android will add that package's `classes.dex` to the
166 ### Difference in Final Dex
[all …]

12345678910>>...18