Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 847e6658 authored by Hall Liu's avatar Hall Liu
Browse files

Do not set PROPERTY_IS_RTT in testapps

Functionality moved into framework.

Test: CTS
Change-Id: I1e9d5f9992a7260e81f9034de3f5b91dd46ef3c9
parent 68de30a2
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -116,7 +116,12 @@ public class RttChatbot {
        mHandler = new ReplyHandler(ht.getLooper());
        mReceiverThread = new Thread(() -> {
            while (true) {
                String charsReceived = mRttTextStream.read();
                String charsReceived;
                try {
                    charsReceived = mRttTextStream.read();
                } catch (IOException e) {
                    break;
                }
                if (charsReceived == null) {
                    if (Thread.currentThread().isInterrupted()) {
                        Log.w(LOG_TAG, "Thread interrupted");
+0 −2
Original line number Diff line number Diff line
@@ -286,7 +286,6 @@ public class TestConnectionService extends ConnectionService {
            if (rttTextStream != null) {
                mRttChatbot = new RttChatbot(getApplicationContext(), rttTextStream);
                mRttChatbot.start();
                setConnectionProperties(getConnectionProperties() | PROPERTY_IS_RTT);
                sendRttInitiationSuccess();
            }
        }
@@ -298,7 +297,6 @@ public class TestConnectionService extends ConnectionService {
                Log.i(this, "Accepting RTT request.");
                mRttChatbot = new RttChatbot(getApplicationContext(), textStream);
                mRttChatbot.start();
                setConnectionProperties(getConnectionProperties() | PROPERTY_IS_RTT);
                sendRttInitiationSuccess();
            } else {
                sendRttInitiationFailure(RttModifyStatus.SESSION_MODIFY_REQUEST_FAIL);
+6 −1
Original line number Diff line number Diff line
@@ -93,7 +93,12 @@ public class TestRttActivity extends Activity {
                    }
                    // inner read loop
                    while (true) {
                        String receivedText = rttCall.read();
                        String receivedText;
                        try {
                            receivedText = rttCall.read();
                        } catch (IOException e) {
                            break;
                        }
                        if (receivedText == null) {
                            if (Thread.currentThread().isInterrupted()) {
                                break begin;