summaryrefslogtreecommitdiff
path: root/telecomm/java/android/telecom/Log.java
diff options
context:
space:
mode:
authorTyler Gunn <tgunn@google.com>2021-02-05 11:12:57 -0800
committerTyler Gunn <tgunn@google.com>2021-02-25 23:08:29 +0000
commitd582184178c1c68aa67bbc82d82f6a2c498e684b (patch)
tree5485901dd943affd9571b53167cbd583ddc04ca8 /telecomm/java/android/telecom/Log.java
parent3341199c3336dc9528715a4c880600788b07fb04 (diff)
CallDiagnosticService API
The CallDiagnosticService API is an OEM-backed API which allows an OEM provided app to monitor the state of ongoing telephony calls on the device and to help the user navigate connectivity or audio issues related to these calls. It also provides a means for the app to send and receive device to device messages between devices during an ongoing call (where supported) in order to facilitate a better calling experience. Test: Added new CTS test suite for API. Test: Manual test of CDS behavior using telecom command line option to override the active CDS to the telecom test app implementation. Bug: 163085177 Change-Id: I1f37408d2aa6c630f0f9e3d6b6eb8a390d804d7e
Diffstat (limited to 'telecomm/java/android/telecom/Log.java')
-rw-r--r--telecomm/java/android/telecom/Log.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/telecomm/java/android/telecom/Log.java b/telecomm/java/android/telecom/Log.java
index 2a4fdcb1475d..922eddb6ac3e 100644
--- a/telecomm/java/android/telecom/Log.java
+++ b/telecomm/java/android/telecom/Log.java
@@ -522,7 +522,7 @@ public class Log {
return "";
}
return Arrays.stream(packageName.split("\\."))
- .map(s -> s.substring(0,1))
+ .map(s -> s.length() == 0 ? "" : s.substring(0, 1))
.collect(Collectors.joining(""));
}
}