Add API for getting location of odex or oat file

Add an API for getting the file path of odex or oat file given a dex
path.

Bug 28251566

Change-Id: I000ee92a1ff2f84e7ea52c9be0a9200ed653f46b
diff --git a/dalvik/src/main/java/dalvik/system/DexFile.java b/dalvik/src/main/java/dalvik/system/DexFile.java
index 9fa2bb1..0a01a13 100644
--- a/dalvik/src/main/java/dalvik/system/DexFile.java
+++ b/dalvik/src/main/java/dalvik/system/DexFile.java
@@ -501,4 +501,12 @@
      */
     public static native String getDexFileStatus(String fileName, String instructionSet)
         throws FileNotFoundException;
+
+    /**
+     * Returns the full file path of the optimized dex file {@code fileName}.  The returned string
+     * is the full file name including path of optimized dex file, if it exists.
+     * @hide
+     */
+    public static native String getDexFileOutputPath(String fileName, String instructionSet)
+        throws FileNotFoundException;
 }