1 /*
2  * Copyright (C) 2015 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License
15  */
16 
17 package com.android.server.telecom;
18 
19 /**
20  * Create a container for the Android Logging class so that it can be mocked in testing.
21  */
22 public class SystemLoggingContainer {
23 
v(String TAG, String msg)24     public void v(String TAG, String msg) {
25         android.util.Slog.v(TAG, msg);
26     }
27 
d(String TAG, String msg)28     public void d(String TAG, String msg) {
29         android.util.Slog.d(TAG, msg);
30     }
31 
i(String TAG, String msg)32     public void i(String TAG, String msg) {
33         android.util.Slog.i(TAG, msg);
34     }
35 
w(String TAG, String msg)36     public void w(String TAG, String msg) {
37         android.util.Slog.w(TAG, msg);
38     }
39 
e(String TAG, String msg, Throwable tr)40     public void e(String TAG, String msg, Throwable tr) {
41         android.util.Slog.e(TAG, msg, tr);
42     }
43 
wtf(String TAG, String msg, Throwable tr)44     public void wtf(String TAG, String msg, Throwable tr) {
45         android.util.Slog.wtf(TAG, msg, tr);
46     }
47 }
48