OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.device.bluetooth; | 5 package org.chromium.device.bluetooth; |
6 | 6 |
7 import android.Manifest; | 7 import android.Manifest; |
8 import android.annotation.TargetApi; | 8 import android.annotation.TargetApi; |
9 import android.bluetooth.BluetoothAdapter; | 9 import android.bluetooth.BluetoothAdapter; |
10 import android.bluetooth.BluetoothDevice; | 10 import android.bluetooth.BluetoothDevice; |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 private final Context mContext; | 159 private final Context mContext; |
160 | 160 |
161 public ContextWrapper(Context context) { | 161 public ContextWrapper(Context context) { |
162 mContext = context; | 162 mContext = context; |
163 } | 163 } |
164 | 164 |
165 public boolean chromeHasLocationPermission() { | 165 public boolean chromeHasLocationPermission() { |
166 return LocationUtils.getInstance().chromiumHasLocationPermission(mCo
ntext); | 166 return LocationUtils.getInstance().chromiumHasLocationPermission(mCo
ntext); |
167 } | 167 } |
168 | 168 |
| 169 public boolean isSystemLocationSettingEnabled() { |
| 170 return LocationUtils.getInstance().isSystemLocationSettingEnabled(mC
ontext); |
| 171 } |
| 172 |
169 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter
filter) { | 173 public Intent registerReceiver(BroadcastReceiver receiver, IntentFilter
filter) { |
170 return mContext.registerReceiver(receiver, filter); | 174 return mContext.registerReceiver(receiver, filter); |
171 } | 175 } |
172 | 176 |
173 public void unregisterReceiver(BroadcastReceiver receiver) { | 177 public void unregisterReceiver(BroadcastReceiver receiver) { |
174 mContext.unregisterReceiver(receiver); | 178 mContext.unregisterReceiver(receiver); |
175 } | 179 } |
176 } | 180 } |
177 | 181 |
178 /** | 182 /** |
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 | 583 |
580 public byte[] getValue() { | 584 public byte[] getValue() { |
581 return mDescriptor.getValue(); | 585 return mDescriptor.getValue(); |
582 } | 586 } |
583 | 587 |
584 public boolean setValue(byte[] value) { | 588 public boolean setValue(byte[] value) { |
585 return mDescriptor.setValue(value); | 589 return mDescriptor.setValue(value); |
586 } | 590 } |
587 } | 591 } |
588 } | 592 } |
OLD | NEW |