forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'chip-master' into sdk-microwave-1
- Loading branch information
Showing
28 changed files
with
370 additions
and
48 deletions.
There are no files selected for viewing
This file contains 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 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
1 change: 1 addition & 0 deletions
1
examples/virtual-device-app/android/App/core/common/src/main/res/values/strings.xml
This file contains 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,6 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="matter_on_off_switch" translatable="false">Matter OnOff Switch</string> | ||
<string name="matter_door_lock" translatable="false">Matter Door Lock</string> | ||
<string name="matter_device" translatable="false">Matter Device</string> | ||
<string name="description_icon" translatable="false">icon</string> | ||
</resources> |
5 changes: 5 additions & 0 deletions
5
...e/model/src/main/java/com/matter/virtual/device/app/core/model/databinding/SeekbarData.kt
This file contains 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,5 @@ | ||
package com.matter.virtual.device.app.core.model.databinding | ||
|
||
import androidx.lifecycle.LiveData | ||
|
||
data class SeekbarData(val progress: LiveData<Int>, val min: Int = 0, val max: Int = 100) |
6 changes: 6 additions & 0 deletions
6
...al-device-app/android/App/core/ui/src/main/res/drawable/round_radio_button_checked_24.xml
This file contains 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,6 @@ | ||
<vector android:height="24dp" android:tint="#000000" | ||
android:viewportHeight="24" android:viewportWidth="24" | ||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<path android:fillColor="@android:color/white" android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM12,20c-4.42,0 -8,-3.58 -8,-8s3.58,-8 8,-8 8,3.58 8,8 -3.58,8 -8,8z"/> | ||
<path android:fillColor="@android:color/white" android:pathData="M12,12m-5,0a5,5 0,1 1,10 0a5,5 0,1 1,-10 0"/> | ||
</vector> |
5 changes: 5 additions & 0 deletions
5
examples/virtual-device-app/android/App/core/ui/src/main/res/drawable/round_settings_24.xml
This file contains 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,5 @@ | ||
<vector android:height="24dp" android:tint="#000000" | ||
android:viewportHeight="24" android:viewportWidth="24" | ||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<path android:fillColor="@android:color/white" android:pathData="M19.5,12c0,-0.23 -0.01,-0.45 -0.03,-0.68l1.86,-1.41c0.4,-0.3 0.51,-0.86 0.26,-1.3l-1.87,-3.23c-0.25,-0.44 -0.79,-0.62 -1.25,-0.42l-2.15,0.91c-0.37,-0.26 -0.76,-0.49 -1.17,-0.68l-0.29,-2.31C14.8,2.38 14.37,2 13.87,2h-3.73C9.63,2 9.2,2.38 9.14,2.88L8.85,5.19c-0.41,0.19 -0.8,0.42 -1.17,0.68L5.53,4.96c-0.46,-0.2 -1,-0.02 -1.25,0.42L2.41,8.62c-0.25,0.44 -0.14,0.99 0.26,1.3l1.86,1.41C4.51,11.55 4.5,11.77 4.5,12s0.01,0.45 0.03,0.68l-1.86,1.41c-0.4,0.3 -0.51,0.86 -0.26,1.3l1.87,3.23c0.25,0.44 0.79,0.62 1.25,0.42l2.15,-0.91c0.37,0.26 0.76,0.49 1.17,0.68l0.29,2.31C9.2,21.62 9.63,22 10.13,22h3.73c0.5,0 0.93,-0.38 0.99,-0.88l0.29,-2.31c0.41,-0.19 0.8,-0.42 1.17,-0.68l2.15,0.91c0.46,0.2 1,0.02 1.25,-0.42l1.87,-3.23c0.25,-0.44 0.14,-0.99 -0.26,-1.3l-1.86,-1.41C19.49,12.45 19.5,12.23 19.5,12zM12.04,15.5c-1.93,0 -3.5,-1.57 -3.5,-3.5s1.57,-3.5 3.5,-3.5s3.5,1.57 3.5,3.5S13.97,15.5 12.04,15.5z"/> | ||
</vector> |
54 changes: 54 additions & 0 deletions
54
...al-device-app/android/App/core/ui/src/main/res/layout/layout_item_title_value_seekbar.xml
This file contains 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,54 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<layout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto"> | ||
|
||
<data> | ||
|
||
<variable | ||
name="seekbarData" | ||
type="com.matter.virtual.device.app.core.model.databinding.SeekbarData" /> | ||
</data> | ||
|
||
<androidx.constraintlayout.widget.ConstraintLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginHorizontal="@dimen/device_item_margin_horizontal" | ||
android:layout_marginTop="@dimen/device_item_margin_top" | ||
android:background="@drawable/menu_item_bg" | ||
android:gravity="center_vertical" | ||
android:paddingStart="@dimen/device_item_padding_start" | ||
android:paddingTop="@dimen/device_item_padding_top" | ||
android:paddingEnd="@dimen/device_item_padding_end" | ||
android:paddingBottom="@dimen/device_item_padding_bottom"> | ||
|
||
<TextView | ||
android:id="@+id/title_text" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:textAlignment="viewStart" | ||
android:textSize="@dimen/device_item_text_size" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
|
||
<TextView | ||
android:id="@+id/value_text" | ||
android:layout_width="@dimen/device_item_value_text_width" | ||
android:layout_height="wrap_content" | ||
android:textAlignment="viewStart" | ||
android:textSize="@dimen/device_item_value_text_size" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/title_text" /> | ||
|
||
<SeekBar | ||
android:id="@+id/seekbar" | ||
android:layout_width="@dimen/device_item_seekbar_width" | ||
android:layout_height="@dimen/device_item_seekbar_height" | ||
android:contentDescription="@string/description_seekbar" | ||
android:max="@{seekbarData.max}" | ||
android:min="@{seekbarData.min}" | ||
android:progress="@{seekbarData.progress}" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toEndOf="@+id/value_text" | ||
app:layout_constraintTop_toBottomOf="@+id/title_text" /> | ||
</androidx.constraintlayout.widget.ConstraintLayout> | ||
</layout> |
44 changes: 44 additions & 0 deletions
44
...ice-app/android/App/core/ui/src/main/res/layout/layout_item_title_value_simple_button.xml
This file contains 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,44 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<layout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto"> | ||
|
||
<androidx.constraintlayout.widget.ConstraintLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginHorizontal="@dimen/device_item_margin_horizontal" | ||
android:layout_marginTop="@dimen/device_item_margin_top" | ||
android:background="@drawable/menu_item_bg" | ||
android:gravity="center_vertical" | ||
android:paddingStart="@dimen/device_item_padding_start" | ||
android:paddingTop="@dimen/device_item_padding_top" | ||
android:paddingEnd="@dimen/device_item_padding_end" | ||
android:paddingBottom="@dimen/device_item_padding_bottom"> | ||
|
||
<TextView | ||
android:id="@+id/title_text" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:textAlignment="viewStart" | ||
android:textSize="@dimen/device_item_text_size" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
|
||
<TextView | ||
android:id="@+id/value_text" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:textAlignment="viewStart" | ||
android:textSize="@dimen/device_item_value_text_size" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/title_text" /> | ||
|
||
<ImageView | ||
android:id="@+id/button" | ||
android:layout_width="@dimen/device_item_button_width" | ||
android:layout_height="@dimen/device_item_button_height" | ||
android:contentDescription="@string/description_button" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
</androidx.constraintlayout.widget.ConstraintLayout> | ||
</layout> |
8 changes: 7 additions & 1 deletion
8
examples/virtual-device-app/android/App/core/ui/src/main/res/values/strings.xml
This file contains 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,12 +1,18 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="description_button" translatable="false">button</string> | ||
<string name="description_seekbar" translatable="false">seekbar</string> | ||
|
||
<string name="more_menu_reset" translatable="false">Reset</string> | ||
|
||
<string name="dialog_factory_reset_message">"The Matter device app will be reset and closed. Continue?"</string> | ||
<string name="dialog_user_factory_reset_message">"The commissioning was not completed. The Matter device app will be reset and closed. Continue?"</string> | ||
<string name="dialog_fabric_removed_factory_reset_message">"The fabric was removed. The Matter device app will be reset and closed."</string> | ||
<string name="dialog_fabric_removed_factory_reset_message">"The fabric was removed. The Matter device app will be reset and closed."</string> | ||
|
||
<string name="battery">Battery</string> | ||
<string name="battery_format" translatable="false">%d <small><small>%%</small></small></string> | ||
|
||
<string name="cancel">Cancel</string> | ||
<string name="on_off_switch_power_on">On</string> | ||
<string name="on_off_switch_power_off">Off</string> | ||
</resources> |
This file contains 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 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 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
5 changes: 5 additions & 0 deletions
5
examples/virtual-device-app/android/App/feature/closure/src/main/res/values/strings.xml
This file contains 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,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="door_lock_lock_state">Lock state</string> | ||
<string name="door_lock_send_lock_alarm_event">Send Alarm</string> | ||
</resources> |
This file contains 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 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 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 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 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.