Loading testapps/src/com/android/server/telecom/testapps/RttChatbot.java +6 −1 Original line number Diff line number Diff line Loading @@ -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"); Loading testapps/src/com/android/server/telecom/testapps/TestConnectionService.java +0 −2 Original line number Diff line number Diff line Loading @@ -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(); } } Loading @@ -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); Loading testapps/src/com/android/server/telecom/testapps/TestRttActivity.java +6 −1 Original line number Diff line number Diff line Loading @@ -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; Loading Loading
testapps/src/com/android/server/telecom/testapps/RttChatbot.java +6 −1 Original line number Diff line number Diff line Loading @@ -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"); Loading
testapps/src/com/android/server/telecom/testapps/TestConnectionService.java +0 −2 Original line number Diff line number Diff line Loading @@ -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(); } } Loading @@ -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); Loading
testapps/src/com/android/server/telecom/testapps/TestRttActivity.java +6 −1 Original line number Diff line number Diff line Loading @@ -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; Loading