Loading core/java/android/bluetooth/BluetoothGatt.java +8 −0 Original line number Diff line number Diff line Loading @@ -702,6 +702,10 @@ public final class BluetoothGatt implements BluetoothProfile { * @param start Start or stop advertising */ /*package*/ void listen(boolean start) { if (mContext == null || !mContext.getResources(). getBoolean(com.android.internal.R.bool.config_bluetooth_le_peripheral_mode_supported)) { throw new UnsupportedOperationException("BluetoothGatt#listen is blocked"); } if (DBG) Log.d(TAG, "listen() - start: " + start); if (mService == null || mClientIf == 0) return; Loading @@ -728,6 +732,10 @@ public final class BluetoothGatt implements BluetoothProfile { /*package*/ void setAdvData(boolean advData, boolean includeName, boolean includeTxPower, Integer minInterval, Integer maxInterval, Integer appearance, Byte[] manufacturerData) { if (mContext == null || !mContext.getResources(). getBoolean(com.android.internal.R.bool.config_bluetooth_le_peripheral_mode_supported)) { throw new UnsupportedOperationException("BluetoothGatt#setAdvData is blocked"); } if (DBG) Log.d(TAG, "setAdvData()"); if (mService == null || mClientIf == 0) return; Loading core/res/res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -774,6 +774,9 @@ re-validation --> <bool name="config_bluetooth_address_validation">false</bool> <!-- Boolean indicating if current platform supports BLE peripheral mode --> <bool name="config_bluetooth_le_peripheral_mode_supported">false</bool> <!-- The default data-use polling period. --> <integer name="config_datause_polling_period_sec">600</integer> Loading core/res/res/values/symbols.xml +1 −0 Original line number Diff line number Diff line Loading @@ -248,6 +248,7 @@ <java-symbol type="bool" name="config_allowActionMenuItemTextWithIcon" /> <java-symbol type="bool" name="config_bluetooth_address_validation" /> <java-symbol type="bool" name="config_bluetooth_sco_off_call" /> <java-symbol type="bool" name="config_bluetooth_le_peripheral_mode_supported" /> <java-symbol type="bool" name="config_cellBroadcastAppLinks" /> <java-symbol type="bool" name="config_duplicate_port_omadm_wappush" /> <java-symbol type="bool" name="config_enable_emergency_call_while_sim_locked" /> Loading Loading
core/java/android/bluetooth/BluetoothGatt.java +8 −0 Original line number Diff line number Diff line Loading @@ -702,6 +702,10 @@ public final class BluetoothGatt implements BluetoothProfile { * @param start Start or stop advertising */ /*package*/ void listen(boolean start) { if (mContext == null || !mContext.getResources(). getBoolean(com.android.internal.R.bool.config_bluetooth_le_peripheral_mode_supported)) { throw new UnsupportedOperationException("BluetoothGatt#listen is blocked"); } if (DBG) Log.d(TAG, "listen() - start: " + start); if (mService == null || mClientIf == 0) return; Loading @@ -728,6 +732,10 @@ public final class BluetoothGatt implements BluetoothProfile { /*package*/ void setAdvData(boolean advData, boolean includeName, boolean includeTxPower, Integer minInterval, Integer maxInterval, Integer appearance, Byte[] manufacturerData) { if (mContext == null || !mContext.getResources(). getBoolean(com.android.internal.R.bool.config_bluetooth_le_peripheral_mode_supported)) { throw new UnsupportedOperationException("BluetoothGatt#setAdvData is blocked"); } if (DBG) Log.d(TAG, "setAdvData()"); if (mService == null || mClientIf == 0) return; Loading
core/res/res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -774,6 +774,9 @@ re-validation --> <bool name="config_bluetooth_address_validation">false</bool> <!-- Boolean indicating if current platform supports BLE peripheral mode --> <bool name="config_bluetooth_le_peripheral_mode_supported">false</bool> <!-- The default data-use polling period. --> <integer name="config_datause_polling_period_sec">600</integer> Loading
core/res/res/values/symbols.xml +1 −0 Original line number Diff line number Diff line Loading @@ -248,6 +248,7 @@ <java-symbol type="bool" name="config_allowActionMenuItemTextWithIcon" /> <java-symbol type="bool" name="config_bluetooth_address_validation" /> <java-symbol type="bool" name="config_bluetooth_sco_off_call" /> <java-symbol type="bool" name="config_bluetooth_le_peripheral_mode_supported" /> <java-symbol type="bool" name="config_cellBroadcastAppLinks" /> <java-symbol type="bool" name="config_duplicate_port_omadm_wappush" /> <java-symbol type="bool" name="config_enable_emergency_call_while_sim_locked" /> Loading