Skip to content
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

OboeTester: Display Actual Device Id #2078

Merged
merged 1 commit into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public class StreamConfigurationView extends LinearLayout {

protected Spinner mNativeApiSpinner;
private TextView mActualNativeApiView;
private TextView mActualDeviceIdView;

private TextView mActualMMapView;
private CheckBox mRequestedMMapView;
Expand Down Expand Up @@ -194,6 +195,8 @@ private void initializeViews(Context context) {

mActualNativeApiView = (TextView) findViewById(R.id.actualNativeApi);

mActualDeviceIdView = (TextView) findViewById(R.id.actualDeviceId);

mChannelConversionBox = (CheckBox) findViewById(R.id.checkChannelConversion);

mFormatConversionBox = (CheckBox) findViewById(R.id.checkFormatConversion);
Expand Down Expand Up @@ -447,6 +450,9 @@ void updateDisplay(StreamConfiguration actualConfiguration) {
value = actualConfiguration.getNativeApi();
mActualNativeApiView.setText(StreamConfiguration.convertNativeApiToText(value));

value = actualConfiguration.getDeviceId();
mActualDeviceIdView.setText(String.valueOf(value));

mActualMMapView.setText(yesOrNo(actualConfiguration.isMMap()));
int sharingMode = actualConfiguration.getSharingMode();
boolean isExclusive = (sharingMode == StreamConfiguration.SHARING_MODE_EXCLUSIVE);
Expand Down
5 changes: 5 additions & 0 deletions apps/OboeTester/app/src/main/res/layout/stream_config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@
android:id="@+id/devices_spinner"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/actualDeviceId"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="\?" />

</TableRow>

Expand Down