BluetoothClass.prototype.hasService = function() {
console.log('Entered BluetoothClass.hasService()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_GAP);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_GAP);
var args = AV.validateMethod(arguments, [
{
BluetoothSocket.prototype.writeData = function() {
console.log('Entered BluetoothSocket.writeData()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_SPP);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_SPP);
var args = AV.validateMethod(arguments, [
{
BluetoothSocket.prototype.readData = function() {
console.log('Entered BluetoothSocket.readData()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_SPP);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_SPP);
var callArgs = {
id : this._id
BluetoothSocket.prototype.close = function() {
console.log('Entered BluetoothSocket.close()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_SPP);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_SPP);
if (_BLUETOOTH_SOCKET_STATE_CLOSED !== this.state) {
var callArgs = {
BluetoothLEDevice.prototype.connect = function() {
console.log('Entered BluetoothLEDevice.connect()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
var args = AV.validateMethod(arguments, [
{
name : 'successCallback',
BluetoothLEDevice.prototype.disconnect = function() {
console.log('Entered BluetoothLEDevice.disconnect()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
var args = AV.validateMethod(arguments, [
{
name : 'successCallback',
BluetoothLEDevice.prototype.getService = function() {
console.log('Entered BluetoothLEDevice.getService()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
var args = AV.validateMethod(arguments, [
{
BluetoothDevice.prototype.connectToServiceByUUID = function() {
console.log('Entered BluetoothDevice.connectToServiceByUUID()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_SPP);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_SPP);
var args = AV.validateMethod(arguments, [
{
BluetoothServiceHandler.prototype.unregister = function() {
console.log('Entered BluetoothServiceHandler.unregister()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_SPP);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_SPP);
var args = AV.validateMethod(arguments, [
{
BluetoothHealthApplication.prototype.unregister = function() {
console.log('Entered BluetoothHealthApplication.unregister()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_HEALTH);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_HEALTH);
var args = AV.validateMethod(arguments, [
{
BluetoothHealthProfileHandler.prototype.registerSinkApplication = function() {
console.log('Entered BluetoothHealthProfileHandler.registerSinkApplication()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_HEALTH);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_HEALTH);
var args = AV.validateMethod(arguments, [
{
BluetoothHealthProfileHandler.prototype.connectToSource = function() {
console.log('Entered BluetoothHealthProfileHandler.connectToSource()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_HEALTH);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_HEALTH);
var args = AV.validateMethod(arguments, [
{
BluetoothHealthChannel.prototype.close = function() {
console.log('Entered BluetoothHealthChannel.close()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_HEALTH);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_HEALTH);
if (this.isConnected) {
var callArgs = {
BluetoothHealthChannel.prototype.sendData = function() {
console.log('Entered BluetoothHealthChannel.sendData()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_HEALTH);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_HEALTH);
var args = AV.validateMethod(arguments, [
{
BluetoothHealthChannel.prototype.setListener = function() {
console.log('Entered BluetoothHealthChannel.setListener()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_HEALTH);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_HEALTH);
var args = AV.validateMethod(arguments, [
{
BluetoothHealthChannel.prototype.unsetListener = function() {
console.log('Entered BluetoothHealthChannel.unsetListener ()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_HEALTH);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_HEALTH);
delete _healthListeners[this._id];
BluetoothLEAdapter.prototype.startScan = function() {
console.log('Entered BluetoothLEAdapter.startScan()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
var args = AV.validateMethod(arguments, [{
name: 'successCallback',
BluetoothLEAdapter.prototype.stopScan = function() {
console.log('Entered BluetoothLEAdapter.stopScan()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
_bleScanListener.removeListener();
BluetoothLEAdapter.prototype.startAdvertise = function() {
console.log('Entered BluetoothLEAdapter.startAdvertise()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
var args = AV.validateMethod(arguments, [{
name: 'advertiseData',
BluetoothLEAdapter.prototype.stopAdvertise = function() {
console.log('Entered BluetoothLEAdapter.stopAdvertise()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
// TODO: when should we call _bleAdvertiseListener.removeListener()?
BluetoothGATTCharacteristic.prototype.readValue = function() {
console.log('Entered BluetoothGATTCharacteristic.readValue()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
var args = AV.validateMethod(arguments, [{
name: 'successCallback',
BluetoothGATTCharacteristic.prototype.writeValue = function() {
console.log('Entered BluetoothGATTCharacteristic.writeValue()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
var args = AV.validateMethod(arguments, [{
name: 'value',
BluetoothGATTCharacteristic.prototype.addValueChangeListener = function() {
console.log('Entered BluetoothGATTCharacteristic.addValueChangeListener()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
var args = AV.validateMethod(arguments, [{
name: 'callback',
BluetoothGATTDescriptor.prototype.readValue = function() {
console.log('Entered BluetoothGATTDescriptor.readValue()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
var args = AV.validateMethod(arguments, [{
name: 'successCallback',
BluetoothGATTDescriptor.prototype.writeValue = function() {
console.log('Entered BluetoothGATTDescriptor.writeValue()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
var args = AV.validateMethod(arguments, [{
name: 'value',
BluetoothAdapter.prototype.setName = function() {
console.log('Entered BluetoothAdapter.setName()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
var args = AV.validateMethod(arguments, [
{
BluetoothAdapter.prototype.setPowered = function() {
console.log('Entered BluetoothAdapter.setPowered()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
var args = AV.validateMethod(arguments, [
{
// This method is deprecated since Tizen 2.3 and will be removed in Tizen 3.0.
BluetoothAdapter.prototype.setVisible = function() {
console.log('Entered BluetoothAdapter.setVisible()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTHMANAGER);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTHMANAGER);
var args = AV.validateMethod(arguments, [
{
BluetoothAdapter.prototype.discoverDevices = function() {
console.log('Entered BluetoothAdapter.discoverDevices()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_GAP);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_GAP);
var args = AV.validateMethod(arguments, [
{
BluetoothAdapter.prototype.stopDiscovery = function() {
console.log('Entered BluetoothAdapter.stopDiscovery()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_GAP);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_GAP);
var args = AV.validateMethod(arguments, [
{
BluetoothAdapter.prototype.getKnownDevices = function() {
console.log('Entered BluetoothAdapter.getKnownDevices()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_GAP);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_GAP);
var args = AV.validateMethod(arguments, [
{
BluetoothAdapter.prototype.getDevice = function() {
console.log('Entered BluetoothAdapter.getDevice()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_GAP);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_GAP);
var args = AV.validateMethod(arguments, [
{
BluetoothAdapter.prototype.createBonding = function() {
console.log('Entered BluetoothAdapter.createBonding()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_GAP);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_GAP);
var args = AV.validateMethod(arguments, [
{
BluetoothAdapter.prototype.destroyBonding = function() {
console.log('Entered BluetoothAdapter.destroyBonding()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_GAP);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_GAP);
var args = AV.validateMethod(arguments, [
{
BluetoothAdapter.prototype.registerRFCOMMServiceByUUID = function() {
console.log('Entered BluetoothAdapter.registerRFCOMMServiceByUUID()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_SPP);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_SPP);
var args = AV.validateMethod(arguments, [
{
BluetoothManager.prototype.getDefaultAdapter = function() {
console.log('Entered BluetoothManager.getDefaultAdapter()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_GAP);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_GAP);
return new BluetoothAdapter();
};
BluetoothManager.prototype.getLEAdapter = function() {
console.log('Entered BluetoothManager.getLEAdapter()');
- xwalk.utils.checkPrivilegeAccess4Ver("2.3.1", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
+ xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
return new BluetoothLEAdapter();
};