Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
art
Commits
cf79a4d5
Commit
cf79a4d5
authored
9 years ago
by
Treehugger Robot
Committed by
Gerrit Code Review
9 years ago
Browse files
Options
Download
Plain Diff
Merge "Add ability to see if a dex file is backed by an oat file."
parents
e16259f9
90671be8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
runtime/native/dalvik_system_DexFile.cc
runtime/native/dalvik_system_DexFile.cc
+11
-0
No files found.
runtime/native/dalvik_system_DexFile.cc
View file @
cf79a4d5
...
...
@@ -539,6 +539,16 @@ static jstring DexFile_getNonProfileGuidedCompilerFilter(JNIEnv* env,
return
env
->
NewStringUTF
(
new_filter_str
.
c_str
());
}
static
jboolean
DexFile_isBackedByOatFile
(
JNIEnv
*
env
,
jclass
,
jobject
cookie
)
{
const
OatFile
*
oat_file
=
nullptr
;
std
::
vector
<
const
DexFile
*>
dex_files
;
if
(
!
ConvertJavaArrayToDexFiles
(
env
,
cookie
,
/*out */
dex_files
,
/* out */
oat_file
))
{
DCHECK
(
env
->
ExceptionCheck
());
return
false
;
}
return
oat_file
!=
nullptr
;
}
static
JNINativeMethod
gMethods
[]
=
{
NATIVE_METHOD
(
DexFile
,
closeDexFile
,
"(Ljava/lang/Object;)Z"
),
NATIVE_METHOD
(
DexFile
,
...
...
@@ -564,6 +574,7 @@ static JNINativeMethod gMethods[] = {
NATIVE_METHOD
(
DexFile
,
getNonProfileGuidedCompilerFilter
,
"(Ljava/lang/String;)Ljava/lang/String;"
),
NATIVE_METHOD
(
DexFile
,
isBackedByOatFile
,
"(Ljava/lang/Object;)Z"
),
NATIVE_METHOD
(
DexFile
,
getDexFileStatus
,
"(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;"
)
};
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment