diff options
| author | wangqi <wangqi@google.com> | 2017-09-27 10:13:49 -0700 |
|---|---|---|
| committer | Eric Erfanian <erfanian@google.com> | 2017-09-28 08:33:56 -0700 |
| commit | e37d60c2e304c599118a59e15ba4991f41cee785 (patch) | |
| tree | b1540b7210b312f8f47e31a2398130fd8850685e /java/com/android/dialer/strictmode/impl/SystemStrictModeModule.java | |
| parent | c3c6126757e3b185587909e6ac9c7c6e897df4f9 (diff) | |
Refactor DialerStrictMode into an interface.
-bypassed violations are no longer logged in AospDialer
The default implementation will use system strict mode and crash on bugfood build same as before.
Bug: 66003745
Test: manual
PiperOrigin-RevId: 170214128
Change-Id: Iab630f19499e90b15eb0b7f0707b4a70c7d81fbe
Diffstat (limited to 'java/com/android/dialer/strictmode/impl/SystemStrictModeModule.java')
| -rw-r--r-- | java/com/android/dialer/strictmode/impl/SystemStrictModeModule.java | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/java/com/android/dialer/strictmode/impl/SystemStrictModeModule.java b/java/com/android/dialer/strictmode/impl/SystemStrictModeModule.java new file mode 100644 index 000000000..6ece874fe --- /dev/null +++ b/java/com/android/dialer/strictmode/impl/SystemStrictModeModule.java @@ -0,0 +1,31 @@ +/* + * Copyright (C) 2017 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.dialer.strictmode.impl; + +import com.android.dialer.strictmode.DialerStrictMode; +import dagger.Binds; +import dagger.Module; +import javax.inject.Singleton; + +/** Module which binds {@link SystemDialerStrictMode}. */ +@Module +public abstract class SystemStrictModeModule { + + @Binds + @Singleton + public abstract DialerStrictMode bindDialerStrictMode(SystemDialerStrictMode impl); +} |
