1 /*
2  * Copyright (C) 2016 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5  * in compliance with the License. You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software distributed under the License
10  * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11  * or implied. See the License for the specific language governing permissions and limitations under
12  * the License.
13  */
14 
15 package com.android.dialer.logging;
16 
17 import android.app.Activity;
18 import android.widget.QuickContactBadge;
19 import java.util.Collection;
20 
21 /** Default implementation for logging bindings. */
22 public class LoggingBindingsStub implements LoggingBindings {
23 
24   @Override
logImpression(DialerImpression.Type dialerImpression)25   public void logImpression(DialerImpression.Type dialerImpression) {}
26 
27   @Override
logImpression(int dialerImpression)28   public void logImpression(int dialerImpression) {}
29 
30   @Override
logCallImpression( DialerImpression.Type dialerImpression, String callId, long callStartTimeMillis)31   public void logCallImpression(
32       DialerImpression.Type dialerImpression, String callId, long callStartTimeMillis) {}
33 
34   @Override
logInteraction(InteractionEvent.Type interaction)35   public void logInteraction(InteractionEvent.Type interaction) {}
36 
37   @Override
logScreenView(ScreenEvent.Type screenEvent, Activity activity)38   public void logScreenView(ScreenEvent.Type screenEvent, Activity activity) {}
39 
40   @Override
logSpeedDialContactComposition( int counter, int starredContactsCount, int pinnedContactsCount, int multipleNumbersContactsCount, int contactsWithPhotoCount, int contactsWithNameCount, int lightbringerReachableContactsCount)41   public void logSpeedDialContactComposition(
42       int counter,
43       int starredContactsCount,
44       int pinnedContactsCount,
45       int multipleNumbersContactsCount,
46       int contactsWithPhotoCount,
47       int contactsWithNameCount,
48       int lightbringerReachableContactsCount) {}
49 
50   @Override
sendHitEventAnalytics(String category, String action, String label, long value)51   public void sendHitEventAnalytics(String category, String action, String label, long value) {}
52 
53   @Override
logQuickContactOnTouch( QuickContactBadge quickContact, InteractionEvent.Type interactionEvent, boolean shouldPerformClick)54   public void logQuickContactOnTouch(
55       QuickContactBadge quickContact,
56       InteractionEvent.Type interactionEvent,
57       boolean shouldPerformClick) {}
58 
59   @Override
logPeopleApiLookupReportWithError( long latency, int httpResponseCode, PeopleApiLookupError.Type errorType)60   public void logPeopleApiLookupReportWithError(
61       long latency, int httpResponseCode, PeopleApiLookupError.Type errorType) {}
62 
63   @Override
logSuccessfulPeopleApiLookupReport(long latency, int httpResponseCode)64   public void logSuccessfulPeopleApiLookupReport(long latency, int httpResponseCode) {}
65 
66   @Override
logAutoBlockedCall(String phoneNumber)67   public void logAutoBlockedCall(String phoneNumber) {}
68 
69   @Override
logAnnotatedCallLogMetrics(int invalidNumbersInCallLog)70   public void logAnnotatedCallLogMetrics(int invalidNumbersInCallLog) {}
71 
72   @Override
logAnnotatedCallLogMetrics(int numberRowsThatDidPop, int numberRowsThatDidNotPop)73   public void logAnnotatedCallLogMetrics(int numberRowsThatDidPop, int numberRowsThatDidNotPop) {}
74 
75   @Override
logContactsProviderMetrics(Collection<ContactsProviderMatchInfo> matchInfos)76   public void logContactsProviderMetrics(Collection<ContactsProviderMatchInfo> matchInfos) {}
77 }
78