summaryrefslogtreecommitdiffstats
path: root/src-ambient/incall/CallCreditListenerImpl.java
blob: 13fcb30532cde66d55f056df2f98ea38c7269383 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package com.android.phone.common.incall;

import android.content.ComponentName;
import android.os.RemoteException;
import android.util.Log;

import com.cyanogen.ambient.incall.extension.GetCreditInfoResult;
import com.cyanogen.ambient.incall.extension.ICallCreditListener;

public class CallCreditListenerImpl extends ICallCreditListener.Stub {
    private static final String TAG = "CallCreditListener";
    private ComponentName mComponentName;

    public static CallCreditListenerImpl getInstance(ComponentName componentName) {
        return new CallCreditListenerImpl(componentName);
    }

    private CallCreditListenerImpl(ComponentName cn) {
        mComponentName = cn;
    }

    @Override
    public void creditInfoUpdated(GetCreditInfoResult gcir)
            throws RemoteException {
        Log.d(TAG, "getting creditInfoUpdated for: " + mComponentName + " gcir: " + gcir);
        CallMethodHelper.updateCreditInfo(mComponentName, gcir);
    }
}