-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Add Android QNN Browserstack test #22434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 20 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
5feb7fe
add qnn instrumentation test
sheetalarkadam 6f34b5f
add qnn browserstack
sheetalarkadam b75440a
skip emulator tests for qnn
sheetalarkadam 71d4f60
skip emulator tests for qnn
sheetalarkadam ffea6f8
changes
sheetalarkadam 34c1849
qnn changes,separate tests out
sheetalarkadam b80f5eb
pass qnn version
sheetalarkadam e87326c
qnn test conditional android test build
sheetalarkadam e8249b7
read qnn version from sdk yaml, cleanup
sheetalarkadam b3ffe4c
add comments
sheetalarkadam aa6bac0
update condtion
sheetalarkadam 6887707
merge conflicts
sheetalarkadam fab730f
remove unused qnn files from test apk, indent fixes
sheetalarkadam 572f3a2
use sdk version as stage variable and syntax fixes
sheetalarkadam 43dea87
exclude libQnnDsp files
sheetalarkadam acca4ba
update comments, var names, formatting,simplify test
sheetalarkadam 5adb321
simplify qnn_sdk_version passing, naming changes
sheetalarkadam 939e180
use default qnn sdk parameter
sheetalarkadam efab87d
pipeline yaml syntax fixes
sheetalarkadam 7c020bd
var quoting, simplify conditionals, add logs
sheetalarkadam d3d8d9f
Merge remote-tracking branch 'origin/main' into sak/add_android_qnn_test
sheetalarkadam a0e6230
update qnn sdk version
sheetalarkadam 827a1bb
resolve conflicts
sheetalarkadam 38e7264
resolve formatting issues
sheetalarkadam File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,4 @@ | |
</activity> | ||
</application> | ||
|
||
</manifest> | ||
</manifest> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
<application | ||
android:allowBackup="true" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:roundIcon="@mipmap/ic_launcher_round" | ||
android:supportsRtl="true" | ||
android:theme="@style/Theme.JavaValidator"> | ||
<activity android:name=".MainActivity" android:exported="true"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
<uses-native-library | ||
skottmckay marked this conversation as resolved.
Show resolved
Hide resolved
|
||
android:name="libcdsprpc.so" | ||
android:required="false" /> | ||
</application> | ||
|
||
</manifest> |
10 changes: 9 additions & 1 deletion
10
java/src/test/android/app/src/main/java/ai/onnxruntime/example/javavalidator/MainActivity.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
package ai.onnxruntime.example.javavalidator | ||
|
||
import android.os.Bundle | ||
import android.system.Os | ||
import androidx.appcompat.app.AppCompatActivity | ||
|
||
/*Empty activity app mainly used for testing*/ | ||
class MainActivity : AppCompatActivity() { | ||
override fun onCreate(savedInstanceState: Bundle?) { | ||
if (BuildConfig.IS_QNN_BUILD) { | ||
val adspLibraryPath = applicationContext.applicationInfo.nativeLibraryDir | ||
// set the path variable to the native library directory | ||
// so that any native libraries downloaded as dependencies | ||
// (like qnn libs) are found | ||
Os.setenv("ADSP_LIBRARY_PATH", adspLibraryPath, true) | ||
} | ||
super.onCreate(savedInstanceState) | ||
} | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.