-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
41c92f1
commit 909e9bc
Showing
11 changed files
with
151 additions
and
3 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="24dp" | ||
android:height="24dp" | ||
android:viewportWidth="24" | ||
android:viewportHeight="24"> | ||
<path | ||
android:fillColor="#44AD00" | ||
android:fillType="evenOdd" | ||
android:pathData="M4.653,4.195C4.913,3.935 5.335,3.935 5.596,4.195C5.856,4.456 5.856,4.878 5.596,5.138C1.69,9.043 1.69,15.375 5.596,19.28C5.856,19.541 5.856,19.963 5.596,20.223C5.335,20.483 4.913,20.483 4.653,20.223C0.227,15.797 0.227,8.621 4.653,4.195ZM19.738,4.195C19.998,3.935 20.42,3.935 20.681,4.195C25.107,8.621 25.107,15.797 20.681,20.223C20.42,20.483 19.998,20.483 19.738,20.223C19.477,19.963 19.477,19.541 19.738,19.28C23.643,15.375 23.643,9.043 19.738,5.138C19.477,4.878 19.477,4.456 19.738,4.195ZM12.666,14.876C14.139,14.876 15.333,13.682 15.333,12.209C15.333,10.736 14.139,9.542 12.666,9.542C11.193,9.542 10,10.736 10,12.209C10,13.682 11.193,14.876 12.666,14.876ZM7.481,6.081C7.22,5.821 6.798,5.821 6.538,6.081C3.153,9.465 3.153,14.953 6.538,18.337C6.798,18.598 7.22,18.598 7.481,18.337C7.741,18.077 7.741,17.655 7.481,17.395C4.617,14.531 4.617,9.888 7.481,7.024C7.741,6.763 7.741,6.341 7.481,6.081ZM18.795,6.081C18.534,5.821 18.112,5.821 17.852,6.081C17.591,6.341 17.591,6.763 17.852,7.024C20.716,9.888 20.716,14.531 17.852,17.395C17.591,17.655 17.591,18.077 17.852,18.337C18.112,18.598 18.534,18.598 18.795,18.337C22.179,14.953 22.179,9.465 18.795,6.081ZM8.423,7.966C8.684,7.706 9.106,7.706 9.366,7.966C9.626,8.227 9.626,8.649 9.366,8.909C7.544,10.732 7.544,13.686 9.366,15.509C9.626,15.769 9.626,16.191 9.366,16.452C9.106,16.712 8.684,16.712 8.423,16.452C6.08,14.109 6.08,10.31 8.423,7.966ZM15.966,7.966C16.226,7.706 16.649,7.706 16.909,7.966C19.252,10.31 19.252,14.109 16.909,16.452C16.649,16.712 16.226,16.712 15.966,16.452C15.706,16.191 15.706,15.769 15.966,15.509C17.789,13.686 17.789,10.732 15.966,8.909C15.706,8.649 15.706,8.227 15.966,7.966Z" /> | ||
</vector> |
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
18 changes: 18 additions & 0 deletions
18
app/src/test/java/io/agora/flat/common/rtc/AgoraRtcTest.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,18 @@ | ||
package io.agora.flat.common.rtc | ||
|
||
import org.junit.Test | ||
|
||
class AgoraRtcTest { | ||
@Test | ||
fun getOverallQuality() { | ||
assert(AgoraRtc.getOverallQuality(0, 0) == NetworkQuality.Unknown) | ||
assert(AgoraRtc.getOverallQuality(1, 0) == NetworkQuality.Excellent) | ||
assert(AgoraRtc.getOverallQuality(2, 0) == NetworkQuality.Good) | ||
assert(AgoraRtc.getOverallQuality(3, 0) == NetworkQuality.Bad) | ||
assert(AgoraRtc.getOverallQuality(0, 1) == NetworkQuality.Excellent) | ||
assert(AgoraRtc.getOverallQuality(0, 2) == NetworkQuality.Good) | ||
assert(AgoraRtc.getOverallQuality(0, 3) == NetworkQuality.Bad) | ||
assert(AgoraRtc.getOverallQuality(1, 2) == NetworkQuality.Good) | ||
assert(AgoraRtc.getOverallQuality(2, 3) == NetworkQuality.Bad) | ||
} | ||
} |