History log of /packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/TranscriptionService.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
9fbb81d83f24d6f7ad9832bc16c3a41065eb9337 14-Jan-2018 mdooley <mdooley@google.com> Make sure that voicemail transcriptions are processed serially

Since we are now using the AlarmManager to decide when to poll
for voicemail transcriptions, we need to ensure that we don't
start transcribing a voicemail until polling for the previous
one ends.

This cl postpones a voicemail transcription task if there is an alarm
set to poll for a transcription result. After a transcription result
is received (or we give up) the db is scanned for any pending transcriptions
and the next one is started.

Bug: 70242961
Test: manual and updated unit tests
PiperOrigin-RevId: 181899975
Change-Id: I7b8fb696164980cf710aa58a79418c6954e2b4d2
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/TranscriptionService.java
ad2ea23c5762bee680a74d56664644b578625cd2 13-Dec-2017 mdooley <mdooley@google.com> Cleanup. Changing voicemail_transcription_enabled to voicemail_transcription_available

Follow the convention that features allowed by server configuration flags use the
word 'available' and when a feature is allowed by the user via settings then use the
word 'enabled'

Bug: 37340510
Test: manual and updated unit tests
PiperOrigin-RevId: 178831467
Change-Id: I5691fd7db45a70908d32cdac2b049fe76e6a0680
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/TranscriptionService.java
7e1a0d155eecc8a407e11f91605db135911c8eb6 17-Nov-2017 mdooley <mdooley@google.com> Refactoring and adding TOS check before transcribing

This cl just adds a check before starting a transcription job
to verify that the user has accepted the appropriate TOS. Its
a rather big cl just because it had to expose some TOS acceptance
details that were previously encapsulated in the VoicemailTosMessageCreator.

Bug: 69267260
Test: manual and unit tests
PiperOrigin-RevId: 176132370
Change-Id: Ic28fb197a07f9df7a9b5f1729c84566cba0890fc
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/TranscriptionService.java
22ff338e7383592443da291587442deb5f4e6758 17-Nov-2017 mdooley <mdooley@google.com> Don't transcribe voicemail unless carrier allows OTT transcription

Added a carrier config and check to see if the carrier allows over
the top voicemail transcription, and if not do not attempt transcription.

Bug: 68951869
Test: manual and unit test
PiperOrigin-RevId: 176065849
Change-Id: I69df1f2867420d7fdcc7f0a31e0e6c26da67abb1
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/TranscriptionService.java
ec1a970dec22d68773f8ae9dbde6f17df6154e03 28-Oct-2017 mdooley <mdooley@google.com> internal change

Bug: 62423454
Test: manual and updated unit test
PiperOrigin-RevId: 173731907
Change-Id: Ic73600197b1c4fa6ac0937a8c38b048cd8faded8
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/TranscriptionService.java
9abbf7ff9b31dd3420fd2b304b63703b87d843f6 05-Sep-2017 mdooley <mdooley@google.com> Fixing transcription crashes caused by job stoppage

Apparently, scheduling a new job when one is already running (even using the enqueue api) causes the running job to be stopped. We weren't handling that case correctly. This cl makes sure no more work is attempted after a job is stopped by cancelling any
active transcription task. We request that stopped task be rescheduled by the job scheduler, so it will get run eventually.

I was able to verify this fix by sending a new voicemail while backfill old transcription tasks were running.

Bug: 64908823,63524274,65129734,63803709
Test: manual and unit tests
PiperOrigin-RevId: 167617191
Change-Id: Icc92997c2687e61bef9b3b7f9ff572da2cb4ed2e
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/TranscriptionService.java
2ca4318cc1ee57dda907ba2069bd61d162b1baef 31-Aug-2017 Eric Erfanian <erfanian@google.com> Update Dialer source to latest internal Google revision.

Previously, Android's Dialer app was developed in an internal Google
source control system and only exported to public during AOSP drops.

The Dialer team is now switching to a public development model similar
to the telephony team.

This CL represents all internal Google changes that were committed to
Dialer between the public O release and today's tip of tree on internal
master. This CL squashes those changes into a single commit.
In subsequent changes, changes will be exported on a per-commit basis.

Test: make, flash install, run
Merged-In: I45270eaa8ce732d71a1bd84b08c7fa0e99af3160
Change-Id: I529aaeb88535b9533c0ae4ef4e6c1222d4e0f1c8
PiperOrigin-RevId: 167068436
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/TranscriptionService.java