summaryrefslogtreecommitdiff
path: root/java/com/android/voicemail/impl/OmtpService.java
diff options
context:
space:
mode:
authorEric Erfanian <erfanian@google.com>2017-03-20 08:50:25 -0700
committerEric Erfanian <erfanian@google.com>2017-03-20 09:03:10 -0700
commit06b6b56e9eaa91ebf757ea641e38a9c885fa40bd (patch)
tree6a0f9f0809cc02004f4be6ef9d20cbced397c3d1 /java/com/android/voicemail/impl/OmtpService.java
parent9a090c89e7a0c43a668bd6e2ac5e5e680f323aed (diff)
Update AOSP Dialer source from internal google3 repository at
cl/150622237 Test: make, treehugger, on device testing. This CL updates the AOSP Dialer source with all the changes that have gone into the private google3 repository. This includes all the changes from cl/150392808 (3/16/2017) to cl/150622237 (3/20/2017). This goal of these drops is to keep the AOSP source in sync with the internal google3 repository. Currently these sync are done by hand with very minor modifications to the internal source code. See the Android.mk file for list of modifications. Our current goal is to do frequent drops (daily if possible) and eventually switched to an automated process. Change-Id: Id53e0e580a4ef73760a8afb7bb8c265ee27ad535
Diffstat (limited to 'java/com/android/voicemail/impl/OmtpService.java')
-rw-r--r--java/com/android/voicemail/impl/OmtpService.java69
1 files changed, 0 insertions, 69 deletions
diff --git a/java/com/android/voicemail/impl/OmtpService.java b/java/com/android/voicemail/impl/OmtpService.java
deleted file mode 100644
index 8b69731b9..000000000
--- a/java/com/android/voicemail/impl/OmtpService.java
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * Copyright (C) 2016 The Android Open Source Project
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License
- */
-
-package com.android.voicemail.impl;
-
-import android.content.Intent;
-import android.telecom.PhoneAccountHandle;
-import android.telephony.VisualVoicemailService;
-import android.telephony.VisualVoicemailSms;
-import com.android.dialer.logging.Logger;
-import com.android.dialer.logging.nano.DialerImpression;
-import com.android.voicemail.impl.sync.VvmAccountManager;
-
-public class OmtpService extends VisualVoicemailService {
-
- private static final String TAG = "VvmOmtpService";
-
- public static final String ACTION_SMS_RECEIVED = "com.android.vociemailomtp.sms.sms_received";
-
- public static final String EXTRA_VOICEMAIL_SMS = "extra_voicemail_sms";
-
- @Override
- public void onCellServiceConnected(
- VisualVoicemailTask task, final PhoneAccountHandle phoneAccountHandle) {
- VvmLog.i(TAG, "onCellServiceConnected");
- Logger.get(this).logImpression(DialerImpression.Type.VVM_UNBUNDLED_EVENT_RECEIVED);
- ActivationTask.start(OmtpService.this, phoneAccountHandle, null);
- task.finish();
- }
-
- @Override
- public void onSmsReceived(VisualVoicemailTask task, final VisualVoicemailSms sms) {
- VvmLog.i(TAG, "onSmsReceived");
- Logger.get(this).logImpression(DialerImpression.Type.VVM_UNBUNDLED_EVENT_RECEIVED);
- Intent intent = new Intent(ACTION_SMS_RECEIVED);
- intent.setPackage(getPackageName());
- intent.putExtra(EXTRA_VOICEMAIL_SMS, sms);
- sendBroadcast(intent);
- task.finish();
- }
-
- @Override
- public void onSimRemoved(
- final VisualVoicemailTask task, final PhoneAccountHandle phoneAccountHandle) {
- VvmLog.i(TAG, "onSimRemoved");
- Logger.get(this).logImpression(DialerImpression.Type.VVM_UNBUNDLED_EVENT_RECEIVED);
- VvmAccountManager.removeAccount(this, phoneAccountHandle);
- task.finish();
- }
-
- @Override
- public void onStopped(VisualVoicemailTask task) {
- VvmLog.i(TAG, "onStopped");
- Logger.get(this).logImpression(DialerImpression.Type.VVM_UNBUNDLED_EVENT_RECEIVED);
- }
-}