blob: dfd2e3dd46b8e8635a55d3ba74bbbf3f5ed4e532 [file] [log] [blame]
// device/bluetooth/public/mojom/test/fake_bluetooth.mojom-lite-for-compile.js is auto generated by mojom_bindings_generator.py, do not edit
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'use strict';
goog.require('mojo.internal');
goog.require('mojo.internal.interfaceSupport');
goog.require('bluetooth.mojom.UUID');
goog.provide('bluetooth.mojom.HCI_SUCCESS');
/**
* @const { !number }
* @export
*/
bluetooth.mojom.HCI_SUCCESS = 0x0000;
goog.provide('bluetooth.mojom.HCI_CONNECTION_TIMEOUT');
/**
* @const { !number }
* @export
*/
bluetooth.mojom.HCI_CONNECTION_TIMEOUT = 0x0008;
goog.provide('bluetooth.mojom.GATT_SUCCESS');
/**
* @const { !number }
* @export
*/
bluetooth.mojom.GATT_SUCCESS = 0x0000;
goog.provide('bluetooth.mojom.GATT_INVALID_HANDLE');
/**
* @const { !number }
* @export
*/
bluetooth.mojom.GATT_INVALID_HANDLE = 0x0001;
goog.provide('bluetooth.mojom.CentralState');
goog.provide('bluetooth.mojom.CentralStateSpec');
/**
* @const { {$: !mojo.internal.MojomType} }
* @export
*/
bluetooth.mojom.CentralStateSpec = { $: mojo.internal.Enum() };
/**
* @enum {number}
* @export
*/
bluetooth.mojom.CentralState = {
ABSENT: 0,
POWERED_ON: 1,
POWERED_OFF: 2,
MIN_VALUE: 0,
MAX_VALUE: 2,
};
goog.provide('bluetooth.mojom.WriteType');
goog.provide('bluetooth.mojom.WriteTypeSpec');
/**
* @const { {$: !mojo.internal.MojomType} }
* @export
*/
bluetooth.mojom.WriteTypeSpec = { $: mojo.internal.Enum() };
/**
* @enum {number}
* @export
*/
bluetooth.mojom.WriteType = {
kNone: 0,
kWriteDefaultDeprecated: 1,
kWriteWithResponse: 2,
kWriteWithoutResponse: 3,
MIN_VALUE: 0,
MAX_VALUE: 3,
};
goog.provide('bluetooth.mojom.FakeBluetooth');
goog.provide('bluetooth.mojom.FakeBluetoothReceiver');
goog.provide('bluetooth.mojom.FakeBluetoothCallbackRouter');
goog.provide('bluetooth.mojom.FakeBluetoothInterface');
goog.provide('bluetooth.mojom.FakeBluetoothRemote');
goog.provide('bluetooth.mojom.FakeBluetoothPendingReceiver');
/**
* @implements {mojo.internal.interfaceSupport.PendingReceiver}
* @export
*/
bluetooth.mojom.FakeBluetoothPendingReceiver = class {
/**
* @param {!MojoHandle|!mojo.internal.interfaceSupport.Endpoint} handle
*/
constructor(handle) {
/** @public {!mojo.internal.interfaceSupport.Endpoint} */
this.handle = mojo.internal.interfaceSupport.getEndpointForReceiver(handle);
}
/** @param {string=} scope */
bindInBrowser(scope = 'context') {
mojo.internal.interfaceSupport.bind(
this.handle,
bluetooth.mojom.FakeBluetooth.$interfaceName,
scope);
}
};
/** @interface */
bluetooth.mojom.FakeBluetoothInterface = class {
/**
* @param { !boolean } available
* @return {!Promise}
*/
setLESupported(available) {}
/**
* @param { !bluetooth.mojom.CentralState } state
* @return {!Promise<{
fakeCentral: !bluetooth.mojom.FakeCentralRemote,
* }>}
*/
simulateCentral(state) {}
/**
* @return {!Promise<{
consumed: !boolean,
* }>}
*/
allResponsesConsumed() {}
};
/**
* @export
* @implements { bluetooth.mojom.FakeBluetoothInterface }
*/
bluetooth.mojom.FakeBluetoothRemote = class {
/** @param {MojoHandle|mojo.internal.interfaceSupport.Endpoint=} handle */
constructor(handle = undefined) {
/**
* @private {!mojo.internal.interfaceSupport.InterfaceRemoteBase<!bluetooth.mojom.FakeBluetoothPendingReceiver>}
*/
this.proxy =
new mojo.internal.interfaceSupport.InterfaceRemoteBase(
bluetooth.mojom.FakeBluetoothPendingReceiver,
handle);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper<!bluetooth.mojom.FakeBluetoothPendingReceiver>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy);
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.proxy.getConnectionErrorEventRouter();
}
/**
* @param { !boolean } available
* @return {!Promise}
*/
setLESupported(
available) {
return this.proxy.sendMessage(
1891146814,
bluetooth.mojom.FakeBluetooth_SetLESupported_ParamsSpec.$,
bluetooth.mojom.FakeBluetooth_SetLESupported_ResponseParamsSpec.$,
[
available
]);
}
/**
* @param { !bluetooth.mojom.CentralState } state
* @return {!Promise<{
fakeCentral: !bluetooth.mojom.FakeCentralRemote,
* }>}
*/
simulateCentral(
state) {
return this.proxy.sendMessage(
1622919207,
bluetooth.mojom.FakeBluetooth_SimulateCentral_ParamsSpec.$,
bluetooth.mojom.FakeBluetooth_SimulateCentral_ResponseParamsSpec.$,
[
state
]);
}
/**
* @return {!Promise<{
consumed: !boolean,
* }>}
*/
allResponsesConsumed() {
return this.proxy.sendMessage(
478277978,
bluetooth.mojom.FakeBluetooth_AllResponsesConsumed_ParamsSpec.$,
bluetooth.mojom.FakeBluetooth_AllResponsesConsumed_ResponseParamsSpec.$,
[
]);
}
};
/**
* An object which receives request messages for the FakeBluetooth
* mojom interface. Must be constructed over an object which implements that
* interface.
*
* @export
*/
bluetooth.mojom.FakeBluetoothReceiver = class {
/**
* @param {!bluetooth.mojom.FakeBluetoothInterface } impl
*/
constructor(impl) {
/** @private {!mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal<!bluetooth.mojom.FakeBluetoothRemote>} */
this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(
bluetooth.mojom.FakeBluetoothRemote);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!bluetooth.mojom.FakeBluetoothRemote>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
this.helper_internal_.registerHandler(
1891146814,
bluetooth.mojom.FakeBluetooth_SetLESupported_ParamsSpec.$,
bluetooth.mojom.FakeBluetooth_SetLESupported_ResponseParamsSpec.$,
impl.setLESupported.bind(impl));
this.helper_internal_.registerHandler(
1622919207,
bluetooth.mojom.FakeBluetooth_SimulateCentral_ParamsSpec.$,
bluetooth.mojom.FakeBluetooth_SimulateCentral_ResponseParamsSpec.$,
impl.simulateCentral.bind(impl));
this.helper_internal_.registerHandler(
478277978,
bluetooth.mojom.FakeBluetooth_AllResponsesConsumed_ParamsSpec.$,
bluetooth.mojom.FakeBluetooth_AllResponsesConsumed_ResponseParamsSpec.$,
impl.allResponsesConsumed.bind(impl));
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
}
};
/**
* @export
*/
bluetooth.mojom.FakeBluetooth = class {
/**
* @return {!string}
*/
static get $interfaceName() {
return "bluetooth.mojom.FakeBluetooth";
}
/**
* Returns a remote for this interface which sends messages to the browser.
* The browser must have an interface request binder registered for this
* interface and accessible to the calling document's frame.
*
* @return {!bluetooth.mojom.FakeBluetoothRemote}
* @export
*/
static getRemote() {
let remote = new bluetooth.mojom.FakeBluetoothRemote;
remote.$.bindNewPipeAndPassReceiver().bindInBrowser();
return remote;
}
};
/**
* An object which receives request messages for the FakeBluetooth
* mojom interface and dispatches them as callbacks. One callback receiver exists
* on this object for each message defined in the mojom interface, and each
* receiver can have any number of listeners added to it.
*
* @export
*/
bluetooth.mojom.FakeBluetoothCallbackRouter = class {
constructor() {
this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(
bluetooth.mojom.FakeBluetoothRemote);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!bluetooth.mojom.FakeBluetoothRemote>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
this.router_ = new mojo.internal.interfaceSupport.CallbackRouter;
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.setLESupported =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
1891146814,
bluetooth.mojom.FakeBluetooth_SetLESupported_ParamsSpec.$,
bluetooth.mojom.FakeBluetooth_SetLESupported_ResponseParamsSpec.$,
this.setLESupported.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.simulateCentral =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
1622919207,
bluetooth.mojom.FakeBluetooth_SimulateCentral_ParamsSpec.$,
bluetooth.mojom.FakeBluetooth_SimulateCentral_ResponseParamsSpec.$,
this.simulateCentral.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.allResponsesConsumed =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
478277978,
bluetooth.mojom.FakeBluetooth_AllResponsesConsumed_ParamsSpec.$,
bluetooth.mojom.FakeBluetooth_AllResponsesConsumed_ResponseParamsSpec.$,
this.allResponsesConsumed.createReceiverHandler(true /* expectsResponse */));
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
}
/**
* @param {number} id An ID returned by a prior call to addListener.
* @return {boolean} True iff the identified listener was found and removed.
* @export
*/
removeListener(id) {
return this.router_.removeListener(id);
}
};
goog.provide('bluetooth.mojom.FakeCentral');
goog.provide('bluetooth.mojom.FakeCentralReceiver');
goog.provide('bluetooth.mojom.FakeCentralCallbackRouter');
goog.provide('bluetooth.mojom.FakeCentralInterface');
goog.provide('bluetooth.mojom.FakeCentralRemote');
goog.provide('bluetooth.mojom.FakeCentralPendingReceiver');
/**
* @implements {mojo.internal.interfaceSupport.PendingReceiver}
* @export
*/
bluetooth.mojom.FakeCentralPendingReceiver = class {
/**
* @param {!MojoHandle|!mojo.internal.interfaceSupport.Endpoint} handle
*/
constructor(handle) {
/** @public {!mojo.internal.interfaceSupport.Endpoint} */
this.handle = mojo.internal.interfaceSupport.getEndpointForReceiver(handle);
}
/** @param {string=} scope */
bindInBrowser(scope = 'context') {
mojo.internal.interfaceSupport.bind(
this.handle,
bluetooth.mojom.FakeCentral.$interfaceName,
scope);
}
};
/** @interface */
bluetooth.mojom.FakeCentralInterface = class {
/**
* @param { !string } address
* @param { !string } name
* @param { !Object<!number, !Array<!number>> } manufacturerData
* @param { !Array<!bluetooth.mojom.UUID> } knownServiceUuids
* @return {!Promise}
*/
simulatePreconnectedPeripheral(address, name, manufacturerData, knownServiceUuids) {}
/**
* @param { !bluetooth.mojom.ScanResult } result
* @return {!Promise}
*/
simulateAdvertisementReceived(result) {}
/**
* @param { !bluetooth.mojom.CentralState } state
* @return {!Promise}
*/
setState(state) {}
/**
* @param { !string } address
* @param { !number } code
* @return {!Promise<{
success: !boolean,
* }>}
*/
setNextGATTConnectionResponse(address, code) {}
/**
* @param { !string } address
* @param { !number } code
* @return {!Promise<{
success: !boolean,
* }>}
*/
setNextGATTDiscoveryResponse(address, code) {}
/**
* @param { !string } address
* @return {!Promise<{
success: !boolean,
* }>}
*/
simulateGATTDisconnection(address) {}
/**
* @param { !string } address
* @return {!Promise<{
success: !boolean,
* }>}
*/
simulateGATTServicesChanged(address) {}
/**
* @param { !string } peripheralAddress
* @param { !bluetooth.mojom.UUID } serviceUuid
* @return {!Promise<{
serviceId: ?string,
* }>}
*/
addFakeService(peripheralAddress, serviceUuid) {}
/**
* @param { !string } serviceId
* @param { !string } peripheralAddress
* @return {!Promise<{
success: !boolean,
* }>}
*/
removeFakeService(serviceId, peripheralAddress) {}
/**
* @param { !bluetooth.mojom.UUID } characteristicUuid
* @param { !bluetooth.mojom.CharacteristicProperties } properties
* @param { !string } serviceId
* @param { !string } peripheralAddress
* @return {!Promise<{
characteristicId: ?string,
* }>}
*/
addFakeCharacteristic(characteristicUuid, properties, serviceId, peripheralAddress) {}
/**
* @param { !string } identifier
* @param { !string } serviceId
* @param { !string } peripheralAddress
* @return {!Promise<{
success: !boolean,
* }>}
*/
removeFakeCharacteristic(identifier, serviceId, peripheralAddress) {}
/**
* @param { !bluetooth.mojom.UUID } descriptorUuid
* @param { !string } characteristicId
* @param { !string } serviceId
* @param { !string } peripheralAddress
* @return {!Promise<{
descriptorId: ?string,
* }>}
*/
addFakeDescriptor(descriptorUuid, characteristicId, serviceId, peripheralAddress) {}
/**
* @param { !string } descriptorId
* @param { !string } characteristicId
* @param { !string } serviceId
* @param { !string } peripheralAddress
* @return {!Promise<{
success: !boolean,
* }>}
*/
removeFakeDescriptor(descriptorId, characteristicId, serviceId, peripheralAddress) {}
/**
* @param { !number } gattCode
* @param { ?Array<!number> } value
* @param { !string } characteristicId
* @param { !string } serviceId
* @param { !string } peripheralAddress
* @return {!Promise<{
success: !boolean,
* }>}
*/
setNextReadCharacteristicResponse(gattCode, value, characteristicId, serviceId, peripheralAddress) {}
/**
* @param { !number } gattCode
* @param { !string } characteristicId
* @param { !string } serviceId
* @param { !string } peripheralAddress
* @return {!Promise<{
success: !boolean,
* }>}
*/
setNextWriteCharacteristicResponse(gattCode, characteristicId, serviceId, peripheralAddress) {}
/**
* @param { !number } gattCode
* @param { !string } characteristicId
* @param { !string } serviceId
* @param { !string } peripheralAddress
* @return {!Promise<{
success: !boolean,
* }>}
*/
setNextSubscribeToNotificationsResponse(gattCode, characteristicId, serviceId, peripheralAddress) {}
/**
* @param { !number } gattCode
* @param { !string } characteristicId
* @param { !string } serviceId
* @param { !string } peripheralAddress
* @return {!Promise<{
success: !boolean,
* }>}
*/
setNextUnsubscribeFromNotificationsResponse(gattCode, characteristicId, serviceId, peripheralAddress) {}
/**
* @param { !string } characteristicId
* @param { !string } serviceId
* @param { !string } peripheralAddress
* @return {!Promise<{
success: !boolean,
isNotifying: !boolean,
* }>}
*/
isNotifying(characteristicId, serviceId, peripheralAddress) {}
/**
* @param { !string } characteristicId
* @param { !string } serviceId
* @param { !string } peripheralAddress
* @return {!Promise<{
success: !boolean,
value: ?Array<!number>,
writeType: !bluetooth.mojom.WriteType,
* }>}
*/
getLastWrittenCharacteristicValue(characteristicId, serviceId, peripheralAddress) {}
/**
* @param { !number } gattCode
* @param { ?Array<!number> } value
* @param { !string } descriptorId
* @param { !string } characteristicId
* @param { !string } serviceId
* @param { !string } peripheralAddress
* @return {!Promise<{
success: !boolean,
* }>}
*/
setNextReadDescriptorResponse(gattCode, value, descriptorId, characteristicId, serviceId, peripheralAddress) {}
/**
* @param { !number } gattCode
* @param { !string } descriptorId
* @param { !string } characteristicId
* @param { !string } serviceId
* @param { !string } peripheralAddress
* @return {!Promise<{
success: !boolean,
* }>}
*/
setNextWriteDescriptorResponse(gattCode, descriptorId, characteristicId, serviceId, peripheralAddress) {}
/**
* @param { !string } descriptorId
* @param { !string } characteristicId
* @param { !string } serviceId
* @param { !string } peripheralAddress
* @return {!Promise<{
success: !boolean,
value: ?Array<!number>,
* }>}
*/
getLastWrittenDescriptorValue(descriptorId, characteristicId, serviceId, peripheralAddress) {}
};
/**
* @export
* @implements { bluetooth.mojom.FakeCentralInterface }
*/
bluetooth.mojom.FakeCentralRemote = class {
/** @param {MojoHandle|mojo.internal.interfaceSupport.Endpoint=} handle */
constructor(handle = undefined) {
/**
* @private {!mojo.internal.interfaceSupport.InterfaceRemoteBase<!bluetooth.mojom.FakeCentralPendingReceiver>}
*/
this.proxy =
new mojo.internal.interfaceSupport.InterfaceRemoteBase(
bluetooth.mojom.FakeCentralPendingReceiver,
handle);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper<!bluetooth.mojom.FakeCentralPendingReceiver>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy);
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.proxy.getConnectionErrorEventRouter();
}
/**
* @param { !string } address
* @param { !string } name
* @param { !Object<!number, !Array<!number>> } manufacturerData
* @param { !Array<!bluetooth.mojom.UUID> } knownServiceUuids
* @return {!Promise}
*/
simulatePreconnectedPeripheral(
address,
name,
manufacturerData,
knownServiceUuids) {
return this.proxy.sendMessage(
1005034829,
bluetooth.mojom.FakeCentral_SimulatePreconnectedPeripheral_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SimulatePreconnectedPeripheral_ResponseParamsSpec.$,
[
address,
name,
manufacturerData,
knownServiceUuids
]);
}
/**
* @param { !bluetooth.mojom.ScanResult } result
* @return {!Promise}
*/
simulateAdvertisementReceived(
result) {
return this.proxy.sendMessage(
574658760,
bluetooth.mojom.FakeCentral_SimulateAdvertisementReceived_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SimulateAdvertisementReceived_ResponseParamsSpec.$,
[
result
]);
}
/**
* @param { !bluetooth.mojom.CentralState } state
* @return {!Promise}
*/
setState(
state) {
return this.proxy.sendMessage(
645435713,
bluetooth.mojom.FakeCentral_SetState_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SetState_ResponseParamsSpec.$,
[
state
]);
}
/**
* @param { !string } address
* @param { !number } code
* @return {!Promise<{
success: !boolean,
* }>}
*/
setNextGATTConnectionResponse(
address,
code) {
return this.proxy.sendMessage(
10024404,
bluetooth.mojom.FakeCentral_SetNextGATTConnectionResponse_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SetNextGATTConnectionResponse_ResponseParamsSpec.$,
[
address,
code
]);
}
/**
* @param { !string } address
* @param { !number } code
* @return {!Promise<{
success: !boolean,
* }>}
*/
setNextGATTDiscoveryResponse(
address,
code) {
return this.proxy.sendMessage(
314610508,
bluetooth.mojom.FakeCentral_SetNextGATTDiscoveryResponse_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SetNextGATTDiscoveryResponse_ResponseParamsSpec.$,
[
address,
code
]);
}
/**
* @param { !string } address
* @return {!Promise<{
success: !boolean,
* }>}
*/
simulateGATTDisconnection(
address) {
return this.proxy.sendMessage(
448144864,
bluetooth.mojom.FakeCentral_SimulateGATTDisconnection_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SimulateGATTDisconnection_ResponseParamsSpec.$,
[
address
]);
}
/**
* @param { !string } address
* @return {!Promise<{
success: !boolean,
* }>}
*/
simulateGATTServicesChanged(
address) {
return this.proxy.sendMessage(
1094932088,
bluetooth.mojom.FakeCentral_SimulateGATTServicesChanged_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SimulateGATTServicesChanged_ResponseParamsSpec.$,
[
address
]);
}
/**
* @param { !string } peripheralAddress
* @param { !bluetooth.mojom.UUID } serviceUuid
* @return {!Promise<{
serviceId: ?string,
* }>}
*/
addFakeService(
peripheralAddress,
serviceUuid) {
return this.proxy.sendMessage(
1676394582,
bluetooth.mojom.FakeCentral_AddFakeService_ParamsSpec.$,
bluetooth.mojom.FakeCentral_AddFakeService_ResponseParamsSpec.$,
[
peripheralAddress,
serviceUuid
]);
}
/**
* @param { !string } serviceId
* @param { !string } peripheralAddress
* @return {!Promise<{
success: !boolean,
* }>}
*/
removeFakeService(
serviceId,
peripheralAddress) {
return this.proxy.sendMessage(
1155684243,
bluetooth.mojom.FakeCentral_RemoveFakeService_ParamsSpec.$,
bluetooth.mojom.FakeCentral_RemoveFakeService_ResponseParamsSpec.$,
[
serviceId,
peripheralAddress
]);
}
/**
* @param { !bluetooth.mojom.UUID } characteristicUuid
* @param { !bluetooth.mojom.CharacteristicProperties } properties
* @param { !string } serviceId
* @param { !string } peripheralAddress
* @return {!Promise<{
characteristicId: ?string,
* }>}
*/
addFakeCharacteristic(
characteristicUuid,
properties,
serviceId,
peripheralAddress) {
return this.proxy.sendMessage(
177784507,
bluetooth.mojom.FakeCentral_AddFakeCharacteristic_ParamsSpec.$,
bluetooth.mojom.FakeCentral_AddFakeCharacteristic_ResponseParamsSpec.$,
[
characteristicUuid,
properties,
serviceId,
peripheralAddress
]);
}
/**
* @param { !string } identifier
* @param { !string } serviceId
* @param { !string } peripheralAddress
* @return {!Promise<{
success: !boolean,
* }>}
*/
removeFakeCharacteristic(
identifier,
serviceId,
peripheralAddress) {
return this.proxy.sendMessage(
1375236152,
bluetooth.mojom.FakeCentral_RemoveFakeCharacteristic_ParamsSpec.$,
bluetooth.mojom.FakeCentral_RemoveFakeCharacteristic_ResponseParamsSpec.$,
[
identifier,
serviceId,
peripheralAddress
]);
}
/**
* @param { !bluetooth.mojom.UUID } descriptorUuid
* @param { !string } characteristicId
* @param { !string } serviceId
* @param { !string } peripheralAddress
* @return {!Promise<{
descriptorId: ?string,
* }>}
*/
addFakeDescriptor(
descriptorUuid,
characteristicId,
serviceId,
peripheralAddress) {
return this.proxy.sendMessage(
1617746834,
bluetooth.mojom.FakeCentral_AddFakeDescriptor_ParamsSpec.$,
bluetooth.mojom.FakeCentral_AddFakeDescriptor_ResponseParamsSpec.$,
[
descriptorUuid,
characteristicId,
serviceId,
peripheralAddress
]);
}
/**
* @param { !string } descriptorId
* @param { !string } characteristicId
* @param { !string } serviceId
* @param { !string } peripheralAddress
* @return {!Promise<{
success: !boolean,
* }>}
*/
removeFakeDescriptor(
descriptorId,
characteristicId,
serviceId,
peripheralAddress) {
return this.proxy.sendMessage(
606827553,
bluetooth.mojom.FakeCentral_RemoveFakeDescriptor_ParamsSpec.$,
bluetooth.mojom.FakeCentral_RemoveFakeDescriptor_ResponseParamsSpec.$,
[
descriptorId,
characteristicId,
serviceId,
peripheralAddress
]);
}
/**
* @param { !number } gattCode
* @param { ?Array<!number> } value
* @param { !string } characteristicId
* @param { !string } serviceId
* @param { !string } peripheralAddress
* @return {!Promise<{
success: !boolean,
* }>}
*/
setNextReadCharacteristicResponse(
gattCode,
value,
characteristicId,
serviceId,
peripheralAddress) {
return this.proxy.sendMessage(
1957093422,
bluetooth.mojom.FakeCentral_SetNextReadCharacteristicResponse_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SetNextReadCharacteristicResponse_ResponseParamsSpec.$,
[
gattCode,
value,
characteristicId,
serviceId,
peripheralAddress
]);
}
/**
* @param { !number } gattCode
* @param { !string } characteristicId
* @param { !string } serviceId
* @param { !string } peripheralAddress
* @return {!Promise<{
success: !boolean,
* }>}
*/
setNextWriteCharacteristicResponse(
gattCode,
characteristicId,
serviceId,
peripheralAddress) {
return this.proxy.sendMessage(
1214785801,
bluetooth.mojom.FakeCentral_SetNextWriteCharacteristicResponse_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SetNextWriteCharacteristicResponse_ResponseParamsSpec.$,
[
gattCode,
characteristicId,
serviceId,
peripheralAddress
]);
}
/**
* @param { !number } gattCode
* @param { !string } characteristicId
* @param { !string } serviceId
* @param { !string } peripheralAddress
* @return {!Promise<{
success: !boolean,
* }>}
*/
setNextSubscribeToNotificationsResponse(
gattCode,
characteristicId,
serviceId,
peripheralAddress) {
return this.proxy.sendMessage(
1902190910,
bluetooth.mojom.FakeCentral_SetNextSubscribeToNotificationsResponse_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SetNextSubscribeToNotificationsResponse_ResponseParamsSpec.$,
[
gattCode,
characteristicId,
serviceId,
peripheralAddress
]);
}
/**
* @param { !number } gattCode
* @param { !string } characteristicId
* @param { !string } serviceId
* @param { !string } peripheralAddress
* @return {!Promise<{
success: !boolean,
* }>}
*/
setNextUnsubscribeFromNotificationsResponse(
gattCode,
characteristicId,
serviceId,
peripheralAddress) {
return this.proxy.sendMessage(
371678381,
bluetooth.mojom.FakeCentral_SetNextUnsubscribeFromNotificationsResponse_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SetNextUnsubscribeFromNotificationsResponse_ResponseParamsSpec.$,
[
gattCode,
characteristicId,
serviceId,
peripheralAddress
]);
}
/**
* @param { !string } characteristicId
* @param { !string } serviceId
* @param { !string } peripheralAddress
* @return {!Promise<{
success: !boolean,
isNotifying: !boolean,
* }>}
*/
isNotifying(
characteristicId,
serviceId,
peripheralAddress) {
return this.proxy.sendMessage(
1346121788,
bluetooth.mojom.FakeCentral_IsNotifying_ParamsSpec.$,
bluetooth.mojom.FakeCentral_IsNotifying_ResponseParamsSpec.$,
[
characteristicId,
serviceId,
peripheralAddress
]);
}
/**
* @param { !string } characteristicId
* @param { !string } serviceId
* @param { !string } peripheralAddress
* @return {!Promise<{
success: !boolean,
value: ?Array<!number>,
writeType: !bluetooth.mojom.WriteType,
* }>}
*/
getLastWrittenCharacteristicValue(
characteristicId,
serviceId,
peripheralAddress) {
return this.proxy.sendMessage(
688769195,
bluetooth.mojom.FakeCentral_GetLastWrittenCharacteristicValue_ParamsSpec.$,
bluetooth.mojom.FakeCentral_GetLastWrittenCharacteristicValue_ResponseParamsSpec.$,
[
characteristicId,
serviceId,
peripheralAddress
]);
}
/**
* @param { !number } gattCode
* @param { ?Array<!number> } value
* @param { !string } descriptorId
* @param { !string } characteristicId
* @param { !string } serviceId
* @param { !string } peripheralAddress
* @return {!Promise<{
success: !boolean,
* }>}
*/
setNextReadDescriptorResponse(
gattCode,
value,
descriptorId,
characteristicId,
serviceId,
peripheralAddress) {
return this.proxy.sendMessage(
1728074268,
bluetooth.mojom.FakeCentral_SetNextReadDescriptorResponse_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SetNextReadDescriptorResponse_ResponseParamsSpec.$,
[
gattCode,
value,
descriptorId,
characteristicId,
serviceId,
peripheralAddress
]);
}
/**
* @param { !number } gattCode
* @param { !string } descriptorId
* @param { !string } characteristicId
* @param { !string } serviceId
* @param { !string } peripheralAddress
* @return {!Promise<{
success: !boolean,
* }>}
*/
setNextWriteDescriptorResponse(
gattCode,
descriptorId,
characteristicId,
serviceId,
peripheralAddress) {
return this.proxy.sendMessage(
1898144907,
bluetooth.mojom.FakeCentral_SetNextWriteDescriptorResponse_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SetNextWriteDescriptorResponse_ResponseParamsSpec.$,
[
gattCode,
descriptorId,
characteristicId,
serviceId,
peripheralAddress
]);
}
/**
* @param { !string } descriptorId
* @param { !string } characteristicId
* @param { !string } serviceId
* @param { !string } peripheralAddress
* @return {!Promise<{
success: !boolean,
value: ?Array<!number>,
* }>}
*/
getLastWrittenDescriptorValue(
descriptorId,
characteristicId,
serviceId,
peripheralAddress) {
return this.proxy.sendMessage(
2033038120,
bluetooth.mojom.FakeCentral_GetLastWrittenDescriptorValue_ParamsSpec.$,
bluetooth.mojom.FakeCentral_GetLastWrittenDescriptorValue_ResponseParamsSpec.$,
[
descriptorId,
characteristicId,
serviceId,
peripheralAddress
]);
}
};
/**
* An object which receives request messages for the FakeCentral
* mojom interface. Must be constructed over an object which implements that
* interface.
*
* @export
*/
bluetooth.mojom.FakeCentralReceiver = class {
/**
* @param {!bluetooth.mojom.FakeCentralInterface } impl
*/
constructor(impl) {
/** @private {!mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal<!bluetooth.mojom.FakeCentralRemote>} */
this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(
bluetooth.mojom.FakeCentralRemote);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!bluetooth.mojom.FakeCentralRemote>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
this.helper_internal_.registerHandler(
1005034829,
bluetooth.mojom.FakeCentral_SimulatePreconnectedPeripheral_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SimulatePreconnectedPeripheral_ResponseParamsSpec.$,
impl.simulatePreconnectedPeripheral.bind(impl));
this.helper_internal_.registerHandler(
574658760,
bluetooth.mojom.FakeCentral_SimulateAdvertisementReceived_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SimulateAdvertisementReceived_ResponseParamsSpec.$,
impl.simulateAdvertisementReceived.bind(impl));
this.helper_internal_.registerHandler(
645435713,
bluetooth.mojom.FakeCentral_SetState_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SetState_ResponseParamsSpec.$,
impl.setState.bind(impl));
this.helper_internal_.registerHandler(
10024404,
bluetooth.mojom.FakeCentral_SetNextGATTConnectionResponse_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SetNextGATTConnectionResponse_ResponseParamsSpec.$,
impl.setNextGATTConnectionResponse.bind(impl));
this.helper_internal_.registerHandler(
314610508,
bluetooth.mojom.FakeCentral_SetNextGATTDiscoveryResponse_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SetNextGATTDiscoveryResponse_ResponseParamsSpec.$,
impl.setNextGATTDiscoveryResponse.bind(impl));
this.helper_internal_.registerHandler(
448144864,
bluetooth.mojom.FakeCentral_SimulateGATTDisconnection_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SimulateGATTDisconnection_ResponseParamsSpec.$,
impl.simulateGATTDisconnection.bind(impl));
this.helper_internal_.registerHandler(
1094932088,
bluetooth.mojom.FakeCentral_SimulateGATTServicesChanged_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SimulateGATTServicesChanged_ResponseParamsSpec.$,
impl.simulateGATTServicesChanged.bind(impl));
this.helper_internal_.registerHandler(
1676394582,
bluetooth.mojom.FakeCentral_AddFakeService_ParamsSpec.$,
bluetooth.mojom.FakeCentral_AddFakeService_ResponseParamsSpec.$,
impl.addFakeService.bind(impl));
this.helper_internal_.registerHandler(
1155684243,
bluetooth.mojom.FakeCentral_RemoveFakeService_ParamsSpec.$,
bluetooth.mojom.FakeCentral_RemoveFakeService_ResponseParamsSpec.$,
impl.removeFakeService.bind(impl));
this.helper_internal_.registerHandler(
177784507,
bluetooth.mojom.FakeCentral_AddFakeCharacteristic_ParamsSpec.$,
bluetooth.mojom.FakeCentral_AddFakeCharacteristic_ResponseParamsSpec.$,
impl.addFakeCharacteristic.bind(impl));
this.helper_internal_.registerHandler(
1375236152,
bluetooth.mojom.FakeCentral_RemoveFakeCharacteristic_ParamsSpec.$,
bluetooth.mojom.FakeCentral_RemoveFakeCharacteristic_ResponseParamsSpec.$,
impl.removeFakeCharacteristic.bind(impl));
this.helper_internal_.registerHandler(
1617746834,
bluetooth.mojom.FakeCentral_AddFakeDescriptor_ParamsSpec.$,
bluetooth.mojom.FakeCentral_AddFakeDescriptor_ResponseParamsSpec.$,
impl.addFakeDescriptor.bind(impl));
this.helper_internal_.registerHandler(
606827553,
bluetooth.mojom.FakeCentral_RemoveFakeDescriptor_ParamsSpec.$,
bluetooth.mojom.FakeCentral_RemoveFakeDescriptor_ResponseParamsSpec.$,
impl.removeFakeDescriptor.bind(impl));
this.helper_internal_.registerHandler(
1957093422,
bluetooth.mojom.FakeCentral_SetNextReadCharacteristicResponse_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SetNextReadCharacteristicResponse_ResponseParamsSpec.$,
impl.setNextReadCharacteristicResponse.bind(impl));
this.helper_internal_.registerHandler(
1214785801,
bluetooth.mojom.FakeCentral_SetNextWriteCharacteristicResponse_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SetNextWriteCharacteristicResponse_ResponseParamsSpec.$,
impl.setNextWriteCharacteristicResponse.bind(impl));
this.helper_internal_.registerHandler(
1902190910,
bluetooth.mojom.FakeCentral_SetNextSubscribeToNotificationsResponse_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SetNextSubscribeToNotificationsResponse_ResponseParamsSpec.$,
impl.setNextSubscribeToNotificationsResponse.bind(impl));
this.helper_internal_.registerHandler(
371678381,
bluetooth.mojom.FakeCentral_SetNextUnsubscribeFromNotificationsResponse_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SetNextUnsubscribeFromNotificationsResponse_ResponseParamsSpec.$,
impl.setNextUnsubscribeFromNotificationsResponse.bind(impl));
this.helper_internal_.registerHandler(
1346121788,
bluetooth.mojom.FakeCentral_IsNotifying_ParamsSpec.$,
bluetooth.mojom.FakeCentral_IsNotifying_ResponseParamsSpec.$,
impl.isNotifying.bind(impl));
this.helper_internal_.registerHandler(
688769195,
bluetooth.mojom.FakeCentral_GetLastWrittenCharacteristicValue_ParamsSpec.$,
bluetooth.mojom.FakeCentral_GetLastWrittenCharacteristicValue_ResponseParamsSpec.$,
impl.getLastWrittenCharacteristicValue.bind(impl));
this.helper_internal_.registerHandler(
1728074268,
bluetooth.mojom.FakeCentral_SetNextReadDescriptorResponse_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SetNextReadDescriptorResponse_ResponseParamsSpec.$,
impl.setNextReadDescriptorResponse.bind(impl));
this.helper_internal_.registerHandler(
1898144907,
bluetooth.mojom.FakeCentral_SetNextWriteDescriptorResponse_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SetNextWriteDescriptorResponse_ResponseParamsSpec.$,
impl.setNextWriteDescriptorResponse.bind(impl));
this.helper_internal_.registerHandler(
2033038120,
bluetooth.mojom.FakeCentral_GetLastWrittenDescriptorValue_ParamsSpec.$,
bluetooth.mojom.FakeCentral_GetLastWrittenDescriptorValue_ResponseParamsSpec.$,
impl.getLastWrittenDescriptorValue.bind(impl));
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
}
};
/**
* @export
*/
bluetooth.mojom.FakeCentral = class {
/**
* @return {!string}
*/
static get $interfaceName() {
return "bluetooth.mojom.FakeCentral";
}
/**
* Returns a remote for this interface which sends messages to the browser.
* The browser must have an interface request binder registered for this
* interface and accessible to the calling document's frame.
*
* @return {!bluetooth.mojom.FakeCentralRemote}
* @export
*/
static getRemote() {
let remote = new bluetooth.mojom.FakeCentralRemote;
remote.$.bindNewPipeAndPassReceiver().bindInBrowser();
return remote;
}
};
/**
* An object which receives request messages for the FakeCentral
* mojom interface and dispatches them as callbacks. One callback receiver exists
* on this object for each message defined in the mojom interface, and each
* receiver can have any number of listeners added to it.
*
* @export
*/
bluetooth.mojom.FakeCentralCallbackRouter = class {
constructor() {
this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(
bluetooth.mojom.FakeCentralRemote);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!bluetooth.mojom.FakeCentralRemote>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
this.router_ = new mojo.internal.interfaceSupport.CallbackRouter;
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.simulatePreconnectedPeripheral =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
1005034829,
bluetooth.mojom.FakeCentral_SimulatePreconnectedPeripheral_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SimulatePreconnectedPeripheral_ResponseParamsSpec.$,
this.simulatePreconnectedPeripheral.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.simulateAdvertisementReceived =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
574658760,
bluetooth.mojom.FakeCentral_SimulateAdvertisementReceived_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SimulateAdvertisementReceived_ResponseParamsSpec.$,
this.simulateAdvertisementReceived.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.setState =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
645435713,
bluetooth.mojom.FakeCentral_SetState_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SetState_ResponseParamsSpec.$,
this.setState.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.setNextGATTConnectionResponse =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
10024404,
bluetooth.mojom.FakeCentral_SetNextGATTConnectionResponse_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SetNextGATTConnectionResponse_ResponseParamsSpec.$,
this.setNextGATTConnectionResponse.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.setNextGATTDiscoveryResponse =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
314610508,
bluetooth.mojom.FakeCentral_SetNextGATTDiscoveryResponse_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SetNextGATTDiscoveryResponse_ResponseParamsSpec.$,
this.setNextGATTDiscoveryResponse.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.simulateGATTDisconnection =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
448144864,
bluetooth.mojom.FakeCentral_SimulateGATTDisconnection_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SimulateGATTDisconnection_ResponseParamsSpec.$,
this.simulateGATTDisconnection.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.simulateGATTServicesChanged =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
1094932088,
bluetooth.mojom.FakeCentral_SimulateGATTServicesChanged_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SimulateGATTServicesChanged_ResponseParamsSpec.$,
this.simulateGATTServicesChanged.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.addFakeService =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
1676394582,
bluetooth.mojom.FakeCentral_AddFakeService_ParamsSpec.$,
bluetooth.mojom.FakeCentral_AddFakeService_ResponseParamsSpec.$,
this.addFakeService.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.removeFakeService =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
1155684243,
bluetooth.mojom.FakeCentral_RemoveFakeService_ParamsSpec.$,
bluetooth.mojom.FakeCentral_RemoveFakeService_ResponseParamsSpec.$,
this.removeFakeService.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.addFakeCharacteristic =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
177784507,
bluetooth.mojom.FakeCentral_AddFakeCharacteristic_ParamsSpec.$,
bluetooth.mojom.FakeCentral_AddFakeCharacteristic_ResponseParamsSpec.$,
this.addFakeCharacteristic.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.removeFakeCharacteristic =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
1375236152,
bluetooth.mojom.FakeCentral_RemoveFakeCharacteristic_ParamsSpec.$,
bluetooth.mojom.FakeCentral_RemoveFakeCharacteristic_ResponseParamsSpec.$,
this.removeFakeCharacteristic.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.addFakeDescriptor =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
1617746834,
bluetooth.mojom.FakeCentral_AddFakeDescriptor_ParamsSpec.$,
bluetooth.mojom.FakeCentral_AddFakeDescriptor_ResponseParamsSpec.$,
this.addFakeDescriptor.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.removeFakeDescriptor =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
606827553,
bluetooth.mojom.FakeCentral_RemoveFakeDescriptor_ParamsSpec.$,
bluetooth.mojom.FakeCentral_RemoveFakeDescriptor_ResponseParamsSpec.$,
this.removeFakeDescriptor.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.setNextReadCharacteristicResponse =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
1957093422,
bluetooth.mojom.FakeCentral_SetNextReadCharacteristicResponse_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SetNextReadCharacteristicResponse_ResponseParamsSpec.$,
this.setNextReadCharacteristicResponse.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.setNextWriteCharacteristicResponse =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
1214785801,
bluetooth.mojom.FakeCentral_SetNextWriteCharacteristicResponse_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SetNextWriteCharacteristicResponse_ResponseParamsSpec.$,
this.setNextWriteCharacteristicResponse.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.setNextSubscribeToNotificationsResponse =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
1902190910,
bluetooth.mojom.FakeCentral_SetNextSubscribeToNotificationsResponse_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SetNextSubscribeToNotificationsResponse_ResponseParamsSpec.$,
this.setNextSubscribeToNotificationsResponse.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.setNextUnsubscribeFromNotificationsResponse =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
371678381,
bluetooth.mojom.FakeCentral_SetNextUnsubscribeFromNotificationsResponse_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SetNextUnsubscribeFromNotificationsResponse_ResponseParamsSpec.$,
this.setNextUnsubscribeFromNotificationsResponse.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.isNotifying =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
1346121788,
bluetooth.mojom.FakeCentral_IsNotifying_ParamsSpec.$,
bluetooth.mojom.FakeCentral_IsNotifying_ResponseParamsSpec.$,
this.isNotifying.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.getLastWrittenCharacteristicValue =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
688769195,
bluetooth.mojom.FakeCentral_GetLastWrittenCharacteristicValue_ParamsSpec.$,
bluetooth.mojom.FakeCentral_GetLastWrittenCharacteristicValue_ResponseParamsSpec.$,
this.getLastWrittenCharacteristicValue.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.setNextReadDescriptorResponse =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
1728074268,
bluetooth.mojom.FakeCentral_SetNextReadDescriptorResponse_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SetNextReadDescriptorResponse_ResponseParamsSpec.$,
this.setNextReadDescriptorResponse.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.setNextWriteDescriptorResponse =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
1898144907,
bluetooth.mojom.FakeCentral_SetNextWriteDescriptorResponse_ParamsSpec.$,
bluetooth.mojom.FakeCentral_SetNextWriteDescriptorResponse_ResponseParamsSpec.$,
this.setNextWriteDescriptorResponse.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.getLastWrittenDescriptorValue =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
2033038120,
bluetooth.mojom.FakeCentral_GetLastWrittenDescriptorValue_ParamsSpec.$,
bluetooth.mojom.FakeCentral_GetLastWrittenDescriptorValue_ResponseParamsSpec.$,
this.getLastWrittenDescriptorValue.createReceiverHandler(true /* expectsResponse */));
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
}
/**
* @param {number} id An ID returned by a prior call to addListener.
* @return {boolean} True iff the identified listener was found and removed.
* @export
*/
removeListener(id) {
return this.router_.removeListener(id);
}
};
goog.provide('bluetooth.mojom.AppearanceSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.AppearanceSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.PowerSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.PowerSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.ServiceDataMapSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.ServiceDataMapSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.ScanRecordSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.ScanRecordSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.ScanResultSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.ScanResultSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.CharacteristicPropertiesSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.CharacteristicPropertiesSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeBluetooth_SetLESupported_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeBluetooth_SetLESupported_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeBluetooth_SetLESupported_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeBluetooth_SetLESupported_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeBluetooth_SimulateCentral_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeBluetooth_SimulateCentral_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeBluetooth_SimulateCentral_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeBluetooth_SimulateCentral_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeBluetooth_AllResponsesConsumed_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeBluetooth_AllResponsesConsumed_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeBluetooth_AllResponsesConsumed_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeBluetooth_AllResponsesConsumed_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_SimulatePreconnectedPeripheral_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_SimulatePreconnectedPeripheral_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_SimulatePreconnectedPeripheral_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_SimulatePreconnectedPeripheral_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_SimulateAdvertisementReceived_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_SimulateAdvertisementReceived_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_SimulateAdvertisementReceived_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_SimulateAdvertisementReceived_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_SetState_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_SetState_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_SetState_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_SetState_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_SetNextGATTConnectionResponse_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_SetNextGATTConnectionResponse_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_SetNextGATTConnectionResponse_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_SetNextGATTConnectionResponse_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_SetNextGATTDiscoveryResponse_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_SetNextGATTDiscoveryResponse_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_SetNextGATTDiscoveryResponse_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_SetNextGATTDiscoveryResponse_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_SimulateGATTDisconnection_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_SimulateGATTDisconnection_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_SimulateGATTDisconnection_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_SimulateGATTDisconnection_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_SimulateGATTServicesChanged_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_SimulateGATTServicesChanged_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_SimulateGATTServicesChanged_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_SimulateGATTServicesChanged_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_AddFakeService_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_AddFakeService_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_AddFakeService_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_AddFakeService_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_RemoveFakeService_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_RemoveFakeService_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_RemoveFakeService_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_RemoveFakeService_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_AddFakeCharacteristic_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_AddFakeCharacteristic_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_AddFakeCharacteristic_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_AddFakeCharacteristic_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_RemoveFakeCharacteristic_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_RemoveFakeCharacteristic_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_RemoveFakeCharacteristic_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_RemoveFakeCharacteristic_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_AddFakeDescriptor_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_AddFakeDescriptor_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_AddFakeDescriptor_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_AddFakeDescriptor_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_RemoveFakeDescriptor_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_RemoveFakeDescriptor_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_RemoveFakeDescriptor_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_RemoveFakeDescriptor_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_SetNextReadCharacteristicResponse_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_SetNextReadCharacteristicResponse_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_SetNextReadCharacteristicResponse_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_SetNextReadCharacteristicResponse_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_SetNextWriteCharacteristicResponse_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_SetNextWriteCharacteristicResponse_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_SetNextWriteCharacteristicResponse_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_SetNextWriteCharacteristicResponse_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_SetNextSubscribeToNotificationsResponse_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_SetNextSubscribeToNotificationsResponse_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_SetNextSubscribeToNotificationsResponse_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_SetNextSubscribeToNotificationsResponse_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_SetNextUnsubscribeFromNotificationsResponse_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_SetNextUnsubscribeFromNotificationsResponse_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_SetNextUnsubscribeFromNotificationsResponse_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_SetNextUnsubscribeFromNotificationsResponse_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_IsNotifying_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_IsNotifying_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_IsNotifying_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_IsNotifying_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_GetLastWrittenCharacteristicValue_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_GetLastWrittenCharacteristicValue_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_GetLastWrittenCharacteristicValue_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_GetLastWrittenCharacteristicValue_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_SetNextReadDescriptorResponse_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_SetNextReadDescriptorResponse_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_SetNextReadDescriptorResponse_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_SetNextReadDescriptorResponse_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_SetNextWriteDescriptorResponse_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_SetNextWriteDescriptorResponse_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_SetNextWriteDescriptorResponse_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_SetNextWriteDescriptorResponse_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_GetLastWrittenDescriptorValue_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_GetLastWrittenDescriptorValue_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('bluetooth.mojom.FakeCentral_GetLastWrittenDescriptorValue_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
bluetooth.mojom.FakeCentral_GetLastWrittenDescriptorValue_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
mojo.internal.Struct(
bluetooth.mojom.AppearanceSpec.$,
'Appearance',
[
mojo.internal.StructField(
'hasValue', 0,
0,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'value', 1,
0,
mojo.internal.Int8,
0,
false /* nullable */),
],
[[0, 16],]);
goog.provide('bluetooth.mojom.Appearance');
/** @record */
bluetooth.mojom.Appearance = class {
constructor() {
/** @export { !boolean } */
this.hasValue;
/** @export { !number } */
this.value;
}
};
mojo.internal.Struct(
bluetooth.mojom.PowerSpec.$,
'Power',
[
mojo.internal.StructField(
'hasValue', 0,
0,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'value', 1,
0,
mojo.internal.Int8,
0,
false /* nullable */),
],
[[0, 16],]);
goog.provide('bluetooth.mojom.Power');
/** @record */
bluetooth.mojom.Power = class {
constructor() {
/** @export { !boolean } */
this.hasValue;
/** @export { !number } */
this.value;
}
};
mojo.internal.Struct(
bluetooth.mojom.ServiceDataMapSpec.$,
'ServiceDataMap',
[
mojo.internal.StructField(
'serviceData', 0,
0,
mojo.internal.Map(mojo.internal.String, mojo.internal.Array(mojo.internal.Uint8, false), false),
null,
false /* nullable */),
],
[[0, 16],]);
goog.provide('bluetooth.mojom.ServiceDataMap');
/** @record */
bluetooth.mojom.ServiceDataMap = class {
constructor() {
/** @export { !Object<!string, !Array<!number>> } */
this.serviceData;
}
};
mojo.internal.Struct(
bluetooth.mojom.ScanRecordSpec.$,
'ScanRecord',
[
mojo.internal.StructField(
'name', 0,
0,
mojo.internal.String,
null,
true /* nullable */),
mojo.internal.StructField(
'uuids', 8,
0,
mojo.internal.Array(bluetooth.mojom.UUIDSpec.$, false),
null,
true /* nullable */),
mojo.internal.StructField(
'appearance', 16,
0,
bluetooth.mojom.AppearanceSpec.$,
null,
false /* nullable */),
mojo.internal.StructField(
'txPower', 24,
0,
bluetooth.mojom.PowerSpec.$,
null,
false /* nullable */),
mojo.internal.StructField(
'manufacturerData', 32,
0,
mojo.internal.Map(mojo.internal.Uint8, mojo.internal.Array(mojo.internal.Uint8, false), false),
null,
true /* nullable */),
mojo.internal.StructField(
'serviceData', 40,
0,
bluetooth.mojom.ServiceDataMapSpec.$,
null,
true /* nullable */),
],
[[0, 56],]);
goog.provide('bluetooth.mojom.ScanRecord');
/** @record */
bluetooth.mojom.ScanRecord = class {
constructor() {
/** @export { (string|undefined) } */
this.name;
/** @export { (Array<!bluetooth.mojom.UUID>|undefined) } */
this.uuids;
/** @export { !bluetooth.mojom.Appearance } */
this.appearance;
/** @export { !bluetooth.mojom.Power } */
this.txPower;
/** @export { (Object<!number, !Array<!number>>|undefined) } */
this.manufacturerData;
/** @export { (bluetooth.mojom.ServiceDataMap|undefined) } */
this.serviceData;
}
};
mojo.internal.Struct(
bluetooth.mojom.ScanResultSpec.$,
'ScanResult',
[
mojo.internal.StructField(
'deviceAddress', 0,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'rssi', 8,
0,
mojo.internal.Int8,
0,
false /* nullable */),
mojo.internal.StructField(
'scanRecord', 16,
0,
bluetooth.mojom.ScanRecordSpec.$,
null,
false /* nullable */),
],
[[0, 32],]);
goog.provide('bluetooth.mojom.ScanResult');
/** @record */
bluetooth.mojom.ScanResult = class {
constructor() {
/** @export { !string } */
this.deviceAddress;
/** @export { !number } */
this.rssi;
/** @export { !bluetooth.mojom.ScanRecord } */
this.scanRecord;
}
};
mojo.internal.Struct(
bluetooth.mojom.CharacteristicPropertiesSpec.$,
'CharacteristicProperties',
[
mojo.internal.StructField(
'broadcast', 0,
0,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'read', 0,
1,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'writeWithoutResponse', 0,
2,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'write', 0,
3,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'notify', 0,
4,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'indicate', 0,
5,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'authenticatedSignedWrites', 0,
6,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'extendedProperties', 0,
7,
mojo.internal.Bool,
false,
false /* nullable */),
],
[[0, 16],]);
goog.provide('bluetooth.mojom.CharacteristicProperties');
/** @record */
bluetooth.mojom.CharacteristicProperties = class {
constructor() {
/** @export { !boolean } */
this.broadcast;
/** @export { !boolean } */
this.read;
/** @export { !boolean } */
this.writeWithoutResponse;
/** @export { !boolean } */
this.write;
/** @export { !boolean } */
this.notify;
/** @export { !boolean } */
this.indicate;
/** @export { !boolean } */
this.authenticatedSignedWrites;
/** @export { !boolean } */
this.extendedProperties;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeBluetooth_SetLESupported_ParamsSpec.$,
'FakeBluetooth_SetLESupported_Params',
[
mojo.internal.StructField(
'available', 0,
0,
mojo.internal.Bool,
false,
false /* nullable */),
],
[[0, 16],]);
goog.provide('bluetooth.mojom.FakeBluetooth_SetLESupported_Params');
/** @record */
bluetooth.mojom.FakeBluetooth_SetLESupported_Params = class {
constructor() {
/** @export { !boolean } */
this.available;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeBluetooth_SetLESupported_ResponseParamsSpec.$,
'FakeBluetooth_SetLESupported_ResponseParams',
[
],
[[0, 8],]);
goog.provide('bluetooth.mojom.FakeBluetooth_SetLESupported_ResponseParams');
/** @record */
bluetooth.mojom.FakeBluetooth_SetLESupported_ResponseParams = class {
constructor() {
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeBluetooth_SimulateCentral_ParamsSpec.$,
'FakeBluetooth_SimulateCentral_Params',
[
mojo.internal.StructField(
'state', 0,
0,
bluetooth.mojom.CentralStateSpec.$,
0,
false /* nullable */),
],
[[0, 16],]);
goog.provide('bluetooth.mojom.FakeBluetooth_SimulateCentral_Params');
/** @record */
bluetooth.mojom.FakeBluetooth_SimulateCentral_Params = class {
constructor() {
/** @export { !bluetooth.mojom.CentralState } */
this.state;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeBluetooth_SimulateCentral_ResponseParamsSpec.$,
'FakeBluetooth_SimulateCentral_ResponseParams',
[
mojo.internal.StructField(
'fakeCentral', 0,
0,
mojo.internal.InterfaceProxy(bluetooth.mojom.FakeCentralRemote),
null,
false /* nullable */),
],
[[0, 16],]);
goog.provide('bluetooth.mojom.FakeBluetooth_SimulateCentral_ResponseParams');
/** @record */
bluetooth.mojom.FakeBluetooth_SimulateCentral_ResponseParams = class {
constructor() {
/** @export { !bluetooth.mojom.FakeCentralRemote } */
this.fakeCentral;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeBluetooth_AllResponsesConsumed_ParamsSpec.$,
'FakeBluetooth_AllResponsesConsumed_Params',
[
],
[[0, 8],]);
goog.provide('bluetooth.mojom.FakeBluetooth_AllResponsesConsumed_Params');
/** @record */
bluetooth.mojom.FakeBluetooth_AllResponsesConsumed_Params = class {
constructor() {
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeBluetooth_AllResponsesConsumed_ResponseParamsSpec.$,
'FakeBluetooth_AllResponsesConsumed_ResponseParams',
[
mojo.internal.StructField(
'consumed', 0,
0,
mojo.internal.Bool,
false,
false /* nullable */),
],
[[0, 16],]);
goog.provide('bluetooth.mojom.FakeBluetooth_AllResponsesConsumed_ResponseParams');
/** @record */
bluetooth.mojom.FakeBluetooth_AllResponsesConsumed_ResponseParams = class {
constructor() {
/** @export { !boolean } */
this.consumed;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_SimulatePreconnectedPeripheral_ParamsSpec.$,
'FakeCentral_SimulatePreconnectedPeripheral_Params',
[
mojo.internal.StructField(
'address', 0,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'name', 8,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'manufacturerData', 16,
0,
mojo.internal.Map(mojo.internal.Uint16, mojo.internal.Array(mojo.internal.Uint8, false), false),
null,
false /* nullable */),
mojo.internal.StructField(
'knownServiceUuids', 24,
0,
mojo.internal.Array(bluetooth.mojom.UUIDSpec.$, false),
null,
false /* nullable */),
],
[[0, 40],]);
goog.provide('bluetooth.mojom.FakeCentral_SimulatePreconnectedPeripheral_Params');
/** @record */
bluetooth.mojom.FakeCentral_SimulatePreconnectedPeripheral_Params = class {
constructor() {
/** @export { !string } */
this.address;
/** @export { !string } */
this.name;
/** @export { !Object<!number, !Array<!number>> } */
this.manufacturerData;
/** @export { !Array<!bluetooth.mojom.UUID> } */
this.knownServiceUuids;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_SimulatePreconnectedPeripheral_ResponseParamsSpec.$,
'FakeCentral_SimulatePreconnectedPeripheral_ResponseParams',
[
],
[[0, 8],]);
goog.provide('bluetooth.mojom.FakeCentral_SimulatePreconnectedPeripheral_ResponseParams');
/** @record */
bluetooth.mojom.FakeCentral_SimulatePreconnectedPeripheral_ResponseParams = class {
constructor() {
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_SimulateAdvertisementReceived_ParamsSpec.$,
'FakeCentral_SimulateAdvertisementReceived_Params',
[
mojo.internal.StructField(
'result', 0,
0,
bluetooth.mojom.ScanResultSpec.$,
null,
false /* nullable */),
],
[[0, 16],]);
goog.provide('bluetooth.mojom.FakeCentral_SimulateAdvertisementReceived_Params');
/** @record */
bluetooth.mojom.FakeCentral_SimulateAdvertisementReceived_Params = class {
constructor() {
/** @export { !bluetooth.mojom.ScanResult } */
this.result;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_SimulateAdvertisementReceived_ResponseParamsSpec.$,
'FakeCentral_SimulateAdvertisementReceived_ResponseParams',
[
],
[[0, 8],]);
goog.provide('bluetooth.mojom.FakeCentral_SimulateAdvertisementReceived_ResponseParams');
/** @record */
bluetooth.mojom.FakeCentral_SimulateAdvertisementReceived_ResponseParams = class {
constructor() {
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_SetState_ParamsSpec.$,
'FakeCentral_SetState_Params',
[
mojo.internal.StructField(
'state', 0,
0,
bluetooth.mojom.CentralStateSpec.$,
0,
false /* nullable */),
],
[[0, 16],]);
goog.provide('bluetooth.mojom.FakeCentral_SetState_Params');
/** @record */
bluetooth.mojom.FakeCentral_SetState_Params = class {
constructor() {
/** @export { !bluetooth.mojom.CentralState } */
this.state;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_SetState_ResponseParamsSpec.$,
'FakeCentral_SetState_ResponseParams',
[
],
[[0, 8],]);
goog.provide('bluetooth.mojom.FakeCentral_SetState_ResponseParams');
/** @record */
bluetooth.mojom.FakeCentral_SetState_ResponseParams = class {
constructor() {
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_SetNextGATTConnectionResponse_ParamsSpec.$,
'FakeCentral_SetNextGATTConnectionResponse_Params',
[
mojo.internal.StructField(
'address', 0,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'code', 8,
0,
mojo.internal.Uint16,
0,
false /* nullable */),
],
[[0, 24],]);
goog.provide('bluetooth.mojom.FakeCentral_SetNextGATTConnectionResponse_Params');
/** @record */
bluetooth.mojom.FakeCentral_SetNextGATTConnectionResponse_Params = class {
constructor() {
/** @export { !string } */
this.address;
/** @export { !number } */
this.code;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_SetNextGATTConnectionResponse_ResponseParamsSpec.$,
'FakeCentral_SetNextGATTConnectionResponse_ResponseParams',
[
mojo.internal.StructField(
'success', 0,
0,
mojo.internal.Bool,
false,
false /* nullable */),
],
[[0, 16],]);
goog.provide('bluetooth.mojom.FakeCentral_SetNextGATTConnectionResponse_ResponseParams');
/** @record */
bluetooth.mojom.FakeCentral_SetNextGATTConnectionResponse_ResponseParams = class {
constructor() {
/** @export { !boolean } */
this.success;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_SetNextGATTDiscoveryResponse_ParamsSpec.$,
'FakeCentral_SetNextGATTDiscoveryResponse_Params',
[
mojo.internal.StructField(
'address', 0,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'code', 8,
0,
mojo.internal.Uint16,
0,
false /* nullable */),
],
[[0, 24],]);
goog.provide('bluetooth.mojom.FakeCentral_SetNextGATTDiscoveryResponse_Params');
/** @record */
bluetooth.mojom.FakeCentral_SetNextGATTDiscoveryResponse_Params = class {
constructor() {
/** @export { !string } */
this.address;
/** @export { !number } */
this.code;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_SetNextGATTDiscoveryResponse_ResponseParamsSpec.$,
'FakeCentral_SetNextGATTDiscoveryResponse_ResponseParams',
[
mojo.internal.StructField(
'success', 0,
0,
mojo.internal.Bool,
false,
false /* nullable */),
],
[[0, 16],]);
goog.provide('bluetooth.mojom.FakeCentral_SetNextGATTDiscoveryResponse_ResponseParams');
/** @record */
bluetooth.mojom.FakeCentral_SetNextGATTDiscoveryResponse_ResponseParams = class {
constructor() {
/** @export { !boolean } */
this.success;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_SimulateGATTDisconnection_ParamsSpec.$,
'FakeCentral_SimulateGATTDisconnection_Params',
[
mojo.internal.StructField(
'address', 0,
0,
mojo.internal.String,
null,
false /* nullable */),
],
[[0, 16],]);
goog.provide('bluetooth.mojom.FakeCentral_SimulateGATTDisconnection_Params');
/** @record */
bluetooth.mojom.FakeCentral_SimulateGATTDisconnection_Params = class {
constructor() {
/** @export { !string } */
this.address;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_SimulateGATTDisconnection_ResponseParamsSpec.$,
'FakeCentral_SimulateGATTDisconnection_ResponseParams',
[
mojo.internal.StructField(
'success', 0,
0,
mojo.internal.Bool,
false,
false /* nullable */),
],
[[0, 16],]);
goog.provide('bluetooth.mojom.FakeCentral_SimulateGATTDisconnection_ResponseParams');
/** @record */
bluetooth.mojom.FakeCentral_SimulateGATTDisconnection_ResponseParams = class {
constructor() {
/** @export { !boolean } */
this.success;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_SimulateGATTServicesChanged_ParamsSpec.$,
'FakeCentral_SimulateGATTServicesChanged_Params',
[
mojo.internal.StructField(
'address', 0,
0,
mojo.internal.String,
null,
false /* nullable */),
],
[[0, 16],]);
goog.provide('bluetooth.mojom.FakeCentral_SimulateGATTServicesChanged_Params');
/** @record */
bluetooth.mojom.FakeCentral_SimulateGATTServicesChanged_Params = class {
constructor() {
/** @export { !string } */
this.address;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_SimulateGATTServicesChanged_ResponseParamsSpec.$,
'FakeCentral_SimulateGATTServicesChanged_ResponseParams',
[
mojo.internal.StructField(
'success', 0,
0,
mojo.internal.Bool,
false,
false /* nullable */),
],
[[0, 16],]);
goog.provide('bluetooth.mojom.FakeCentral_SimulateGATTServicesChanged_ResponseParams');
/** @record */
bluetooth.mojom.FakeCentral_SimulateGATTServicesChanged_ResponseParams = class {
constructor() {
/** @export { !boolean } */
this.success;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_AddFakeService_ParamsSpec.$,
'FakeCentral_AddFakeService_Params',
[
mojo.internal.StructField(
'peripheralAddress', 0,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'serviceUuid', 8,
0,
bluetooth.mojom.UUIDSpec.$,
null,
false /* nullable */),
],
[[0, 24],]);
goog.provide('bluetooth.mojom.FakeCentral_AddFakeService_Params');
/** @record */
bluetooth.mojom.FakeCentral_AddFakeService_Params = class {
constructor() {
/** @export { !string } */
this.peripheralAddress;
/** @export { !bluetooth.mojom.UUID } */
this.serviceUuid;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_AddFakeService_ResponseParamsSpec.$,
'FakeCentral_AddFakeService_ResponseParams',
[
mojo.internal.StructField(
'serviceId', 0,
0,
mojo.internal.String,
null,
true /* nullable */),
],
[[0, 16],]);
goog.provide('bluetooth.mojom.FakeCentral_AddFakeService_ResponseParams');
/** @record */
bluetooth.mojom.FakeCentral_AddFakeService_ResponseParams = class {
constructor() {
/** @export { (string|undefined) } */
this.serviceId;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_RemoveFakeService_ParamsSpec.$,
'FakeCentral_RemoveFakeService_Params',
[
mojo.internal.StructField(
'serviceId', 0,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'peripheralAddress', 8,
0,
mojo.internal.String,
null,
false /* nullable */),
],
[[0, 24],]);
goog.provide('bluetooth.mojom.FakeCentral_RemoveFakeService_Params');
/** @record */
bluetooth.mojom.FakeCentral_RemoveFakeService_Params = class {
constructor() {
/** @export { !string } */
this.serviceId;
/** @export { !string } */
this.peripheralAddress;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_RemoveFakeService_ResponseParamsSpec.$,
'FakeCentral_RemoveFakeService_ResponseParams',
[
mojo.internal.StructField(
'success', 0,
0,
mojo.internal.Bool,
false,
false /* nullable */),
],
[[0, 16],]);
goog.provide('bluetooth.mojom.FakeCentral_RemoveFakeService_ResponseParams');
/** @record */
bluetooth.mojom.FakeCentral_RemoveFakeService_ResponseParams = class {
constructor() {
/** @export { !boolean } */
this.success;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_AddFakeCharacteristic_ParamsSpec.$,
'FakeCentral_AddFakeCharacteristic_Params',
[
mojo.internal.StructField(
'characteristicUuid', 0,
0,
bluetooth.mojom.UUIDSpec.$,
null,
false /* nullable */),
mojo.internal.StructField(
'properties', 8,
0,
bluetooth.mojom.CharacteristicPropertiesSpec.$,
null,
false /* nullable */),
mojo.internal.StructField(
'serviceId', 16,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'peripheralAddress', 24,
0,
mojo.internal.String,
null,
false /* nullable */),
],
[[0, 40],]);
goog.provide('bluetooth.mojom.FakeCentral_AddFakeCharacteristic_Params');
/** @record */
bluetooth.mojom.FakeCentral_AddFakeCharacteristic_Params = class {
constructor() {
/** @export { !bluetooth.mojom.UUID } */
this.characteristicUuid;
/** @export { !bluetooth.mojom.CharacteristicProperties } */
this.properties;
/** @export { !string } */
this.serviceId;
/** @export { !string } */
this.peripheralAddress;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_AddFakeCharacteristic_ResponseParamsSpec.$,
'FakeCentral_AddFakeCharacteristic_ResponseParams',
[
mojo.internal.StructField(
'characteristicId', 0,
0,
mojo.internal.String,
null,
true /* nullable */),
],
[[0, 16],]);
goog.provide('bluetooth.mojom.FakeCentral_AddFakeCharacteristic_ResponseParams');
/** @record */
bluetooth.mojom.FakeCentral_AddFakeCharacteristic_ResponseParams = class {
constructor() {
/** @export { (string|undefined) } */
this.characteristicId;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_RemoveFakeCharacteristic_ParamsSpec.$,
'FakeCentral_RemoveFakeCharacteristic_Params',
[
mojo.internal.StructField(
'identifier', 0,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'serviceId', 8,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'peripheralAddress', 16,
0,
mojo.internal.String,
null,
false /* nullable */),
],
[[0, 32],]);
goog.provide('bluetooth.mojom.FakeCentral_RemoveFakeCharacteristic_Params');
/** @record */
bluetooth.mojom.FakeCentral_RemoveFakeCharacteristic_Params = class {
constructor() {
/** @export { !string } */
this.identifier;
/** @export { !string } */
this.serviceId;
/** @export { !string } */
this.peripheralAddress;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_RemoveFakeCharacteristic_ResponseParamsSpec.$,
'FakeCentral_RemoveFakeCharacteristic_ResponseParams',
[
mojo.internal.StructField(
'success', 0,
0,
mojo.internal.Bool,
false,
false /* nullable */),
],
[[0, 16],]);
goog.provide('bluetooth.mojom.FakeCentral_RemoveFakeCharacteristic_ResponseParams');
/** @record */
bluetooth.mojom.FakeCentral_RemoveFakeCharacteristic_ResponseParams = class {
constructor() {
/** @export { !boolean } */
this.success;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_AddFakeDescriptor_ParamsSpec.$,
'FakeCentral_AddFakeDescriptor_Params',
[
mojo.internal.StructField(
'descriptorUuid', 0,
0,
bluetooth.mojom.UUIDSpec.$,
null,
false /* nullable */),
mojo.internal.StructField(
'characteristicId', 8,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'serviceId', 16,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'peripheralAddress', 24,
0,
mojo.internal.String,
null,
false /* nullable */),
],
[[0, 40],]);
goog.provide('bluetooth.mojom.FakeCentral_AddFakeDescriptor_Params');
/** @record */
bluetooth.mojom.FakeCentral_AddFakeDescriptor_Params = class {
constructor() {
/** @export { !bluetooth.mojom.UUID } */
this.descriptorUuid;
/** @export { !string } */
this.characteristicId;
/** @export { !string } */
this.serviceId;
/** @export { !string } */
this.peripheralAddress;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_AddFakeDescriptor_ResponseParamsSpec.$,
'FakeCentral_AddFakeDescriptor_ResponseParams',
[
mojo.internal.StructField(
'descriptorId', 0,
0,
mojo.internal.String,
null,
true /* nullable */),
],
[[0, 16],]);
goog.provide('bluetooth.mojom.FakeCentral_AddFakeDescriptor_ResponseParams');
/** @record */
bluetooth.mojom.FakeCentral_AddFakeDescriptor_ResponseParams = class {
constructor() {
/** @export { (string|undefined) } */
this.descriptorId;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_RemoveFakeDescriptor_ParamsSpec.$,
'FakeCentral_RemoveFakeDescriptor_Params',
[
mojo.internal.StructField(
'descriptorId', 0,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'characteristicId', 8,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'serviceId', 16,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'peripheralAddress', 24,
0,
mojo.internal.String,
null,
false /* nullable */),
],
[[0, 40],]);
goog.provide('bluetooth.mojom.FakeCentral_RemoveFakeDescriptor_Params');
/** @record */
bluetooth.mojom.FakeCentral_RemoveFakeDescriptor_Params = class {
constructor() {
/** @export { !string } */
this.descriptorId;
/** @export { !string } */
this.characteristicId;
/** @export { !string } */
this.serviceId;
/** @export { !string } */
this.peripheralAddress;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_RemoveFakeDescriptor_ResponseParamsSpec.$,
'FakeCentral_RemoveFakeDescriptor_ResponseParams',
[
mojo.internal.StructField(
'success', 0,
0,
mojo.internal.Bool,
false,
false /* nullable */),
],
[[0, 16],]);
goog.provide('bluetooth.mojom.FakeCentral_RemoveFakeDescriptor_ResponseParams');
/** @record */
bluetooth.mojom.FakeCentral_RemoveFakeDescriptor_ResponseParams = class {
constructor() {
/** @export { !boolean } */
this.success;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_SetNextReadCharacteristicResponse_ParamsSpec.$,
'FakeCentral_SetNextReadCharacteristicResponse_Params',
[
mojo.internal.StructField(
'gattCode', 0,
0,
mojo.internal.Uint16,
0,
false /* nullable */),
mojo.internal.StructField(
'value', 8,
0,
mojo.internal.Array(mojo.internal.Uint8, false),
null,
true /* nullable */),
mojo.internal.StructField(
'characteristicId', 16,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'serviceId', 24,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'peripheralAddress', 32,
0,
mojo.internal.String,
null,
false /* nullable */),
],
[[0, 48],]);
goog.provide('bluetooth.mojom.FakeCentral_SetNextReadCharacteristicResponse_Params');
/** @record */
bluetooth.mojom.FakeCentral_SetNextReadCharacteristicResponse_Params = class {
constructor() {
/** @export { !number } */
this.gattCode;
/** @export { (Array<!number>|undefined) } */
this.value;
/** @export { !string } */
this.characteristicId;
/** @export { !string } */
this.serviceId;
/** @export { !string } */
this.peripheralAddress;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_SetNextReadCharacteristicResponse_ResponseParamsSpec.$,
'FakeCentral_SetNextReadCharacteristicResponse_ResponseParams',
[
mojo.internal.StructField(
'success', 0,
0,
mojo.internal.Bool,
false,
false /* nullable */),
],
[[0, 16],]);
goog.provide('bluetooth.mojom.FakeCentral_SetNextReadCharacteristicResponse_ResponseParams');
/** @record */
bluetooth.mojom.FakeCentral_SetNextReadCharacteristicResponse_ResponseParams = class {
constructor() {
/** @export { !boolean } */
this.success;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_SetNextWriteCharacteristicResponse_ParamsSpec.$,
'FakeCentral_SetNextWriteCharacteristicResponse_Params',
[
mojo.internal.StructField(
'gattCode', 0,
0,
mojo.internal.Uint16,
0,
false /* nullable */),
mojo.internal.StructField(
'characteristicId', 8,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'serviceId', 16,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'peripheralAddress', 24,
0,
mojo.internal.String,
null,
false /* nullable */),
],
[[0, 40],]);
goog.provide('bluetooth.mojom.FakeCentral_SetNextWriteCharacteristicResponse_Params');
/** @record */
bluetooth.mojom.FakeCentral_SetNextWriteCharacteristicResponse_Params = class {
constructor() {
/** @export { !number } */
this.gattCode;
/** @export { !string } */
this.characteristicId;
/** @export { !string } */
this.serviceId;
/** @export { !string } */
this.peripheralAddress;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_SetNextWriteCharacteristicResponse_ResponseParamsSpec.$,
'FakeCentral_SetNextWriteCharacteristicResponse_ResponseParams',
[
mojo.internal.StructField(
'success', 0,
0,
mojo.internal.Bool,
false,
false /* nullable */),
],
[[0, 16],]);
goog.provide('bluetooth.mojom.FakeCentral_SetNextWriteCharacteristicResponse_ResponseParams');
/** @record */
bluetooth.mojom.FakeCentral_SetNextWriteCharacteristicResponse_ResponseParams = class {
constructor() {
/** @export { !boolean } */
this.success;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_SetNextSubscribeToNotificationsResponse_ParamsSpec.$,
'FakeCentral_SetNextSubscribeToNotificationsResponse_Params',
[
mojo.internal.StructField(
'gattCode', 0,
0,
mojo.internal.Uint16,
0,
false /* nullable */),
mojo.internal.StructField(
'characteristicId', 8,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'serviceId', 16,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'peripheralAddress', 24,
0,
mojo.internal.String,
null,
false /* nullable */),
],
[[0, 40],]);
goog.provide('bluetooth.mojom.FakeCentral_SetNextSubscribeToNotificationsResponse_Params');
/** @record */
bluetooth.mojom.FakeCentral_SetNextSubscribeToNotificationsResponse_Params = class {
constructor() {
/** @export { !number } */
this.gattCode;
/** @export { !string } */
this.characteristicId;
/** @export { !string } */
this.serviceId;
/** @export { !string } */
this.peripheralAddress;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_SetNextSubscribeToNotificationsResponse_ResponseParamsSpec.$,
'FakeCentral_SetNextSubscribeToNotificationsResponse_ResponseParams',
[
mojo.internal.StructField(
'success', 0,
0,
mojo.internal.Bool,
false,
false /* nullable */),
],
[[0, 16],]);
goog.provide('bluetooth.mojom.FakeCentral_SetNextSubscribeToNotificationsResponse_ResponseParams');
/** @record */
bluetooth.mojom.FakeCentral_SetNextSubscribeToNotificationsResponse_ResponseParams = class {
constructor() {
/** @export { !boolean } */
this.success;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_SetNextUnsubscribeFromNotificationsResponse_ParamsSpec.$,
'FakeCentral_SetNextUnsubscribeFromNotificationsResponse_Params',
[
mojo.internal.StructField(
'gattCode', 0,
0,
mojo.internal.Uint16,
0,
false /* nullable */),
mojo.internal.StructField(
'characteristicId', 8,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'serviceId', 16,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'peripheralAddress', 24,
0,
mojo.internal.String,
null,
false /* nullable */),
],
[[0, 40],]);
goog.provide('bluetooth.mojom.FakeCentral_SetNextUnsubscribeFromNotificationsResponse_Params');
/** @record */
bluetooth.mojom.FakeCentral_SetNextUnsubscribeFromNotificationsResponse_Params = class {
constructor() {
/** @export { !number } */
this.gattCode;
/** @export { !string } */
this.characteristicId;
/** @export { !string } */
this.serviceId;
/** @export { !string } */
this.peripheralAddress;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_SetNextUnsubscribeFromNotificationsResponse_ResponseParamsSpec.$,
'FakeCentral_SetNextUnsubscribeFromNotificationsResponse_ResponseParams',
[
mojo.internal.StructField(
'success', 0,
0,
mojo.internal.Bool,
false,
false /* nullable */),
],
[[0, 16],]);
goog.provide('bluetooth.mojom.FakeCentral_SetNextUnsubscribeFromNotificationsResponse_ResponseParams');
/** @record */
bluetooth.mojom.FakeCentral_SetNextUnsubscribeFromNotificationsResponse_ResponseParams = class {
constructor() {
/** @export { !boolean } */
this.success;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_IsNotifying_ParamsSpec.$,
'FakeCentral_IsNotifying_Params',
[
mojo.internal.StructField(
'characteristicId', 0,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'serviceId', 8,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'peripheralAddress', 16,
0,
mojo.internal.String,
null,
false /* nullable */),
],
[[0, 32],]);
goog.provide('bluetooth.mojom.FakeCentral_IsNotifying_Params');
/** @record */
bluetooth.mojom.FakeCentral_IsNotifying_Params = class {
constructor() {
/** @export { !string } */
this.characteristicId;
/** @export { !string } */
this.serviceId;
/** @export { !string } */
this.peripheralAddress;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_IsNotifying_ResponseParamsSpec.$,
'FakeCentral_IsNotifying_ResponseParams',
[
mojo.internal.StructField(
'success', 0,
0,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'isNotifying', 0,
1,
mojo.internal.Bool,
false,
false /* nullable */),
],
[[0, 16],]);
goog.provide('bluetooth.mojom.FakeCentral_IsNotifying_ResponseParams');
/** @record */
bluetooth.mojom.FakeCentral_IsNotifying_ResponseParams = class {
constructor() {
/** @export { !boolean } */
this.success;
/** @export { !boolean } */
this.isNotifying;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_GetLastWrittenCharacteristicValue_ParamsSpec.$,
'FakeCentral_GetLastWrittenCharacteristicValue_Params',
[
mojo.internal.StructField(
'characteristicId', 0,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'serviceId', 8,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'peripheralAddress', 16,
0,
mojo.internal.String,
null,
false /* nullable */),
],
[[0, 32],]);
goog.provide('bluetooth.mojom.FakeCentral_GetLastWrittenCharacteristicValue_Params');
/** @record */
bluetooth.mojom.FakeCentral_GetLastWrittenCharacteristicValue_Params = class {
constructor() {
/** @export { !string } */
this.characteristicId;
/** @export { !string } */
this.serviceId;
/** @export { !string } */
this.peripheralAddress;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_GetLastWrittenCharacteristicValue_ResponseParamsSpec.$,
'FakeCentral_GetLastWrittenCharacteristicValue_ResponseParams',
[
mojo.internal.StructField(
'success', 0,
0,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'value', 8,
0,
mojo.internal.Array(mojo.internal.Uint8, false),
null,
true /* nullable */),
mojo.internal.StructField(
'writeType', 4,
0,
bluetooth.mojom.WriteTypeSpec.$,
0,
false /* nullable */),
],
[[0, 24],]);
goog.provide('bluetooth.mojom.FakeCentral_GetLastWrittenCharacteristicValue_ResponseParams');
/** @record */
bluetooth.mojom.FakeCentral_GetLastWrittenCharacteristicValue_ResponseParams = class {
constructor() {
/** @export { !boolean } */
this.success;
/** @export { !bluetooth.mojom.WriteType } */
this.writeType;
/** @export { (Array<!number>|undefined) } */
this.value;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_SetNextReadDescriptorResponse_ParamsSpec.$,
'FakeCentral_SetNextReadDescriptorResponse_Params',
[
mojo.internal.StructField(
'gattCode', 0,
0,
mojo.internal.Uint16,
0,
false /* nullable */),
mojo.internal.StructField(
'value', 8,
0,
mojo.internal.Array(mojo.internal.Uint8, false),
null,
true /* nullable */),
mojo.internal.StructField(
'descriptorId', 16,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'characteristicId', 24,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'serviceId', 32,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'peripheralAddress', 40,
0,
mojo.internal.String,
null,
false /* nullable */),
],
[[0, 56],]);
goog.provide('bluetooth.mojom.FakeCentral_SetNextReadDescriptorResponse_Params');
/** @record */
bluetooth.mojom.FakeCentral_SetNextReadDescriptorResponse_Params = class {
constructor() {
/** @export { !number } */
this.gattCode;
/** @export { (Array<!number>|undefined) } */
this.value;
/** @export { !string } */
this.descriptorId;
/** @export { !string } */
this.characteristicId;
/** @export { !string } */
this.serviceId;
/** @export { !string } */
this.peripheralAddress;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_SetNextReadDescriptorResponse_ResponseParamsSpec.$,
'FakeCentral_SetNextReadDescriptorResponse_ResponseParams',
[
mojo.internal.StructField(
'success', 0,
0,
mojo.internal.Bool,
false,
false /* nullable */),
],
[[0, 16],]);
goog.provide('bluetooth.mojom.FakeCentral_SetNextReadDescriptorResponse_ResponseParams');
/** @record */
bluetooth.mojom.FakeCentral_SetNextReadDescriptorResponse_ResponseParams = class {
constructor() {
/** @export { !boolean } */
this.success;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_SetNextWriteDescriptorResponse_ParamsSpec.$,
'FakeCentral_SetNextWriteDescriptorResponse_Params',
[
mojo.internal.StructField(
'gattCode', 0,
0,
mojo.internal.Uint16,
0,
false /* nullable */),
mojo.internal.StructField(
'descriptorId', 8,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'characteristicId', 16,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'serviceId', 24,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'peripheralAddress', 32,
0,
mojo.internal.String,
null,
false /* nullable */),
],
[[0, 48],]);
goog.provide('bluetooth.mojom.FakeCentral_SetNextWriteDescriptorResponse_Params');
/** @record */
bluetooth.mojom.FakeCentral_SetNextWriteDescriptorResponse_Params = class {
constructor() {
/** @export { !number } */
this.gattCode;
/** @export { !string } */
this.descriptorId;
/** @export { !string } */
this.characteristicId;
/** @export { !string } */
this.serviceId;
/** @export { !string } */
this.peripheralAddress;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_SetNextWriteDescriptorResponse_ResponseParamsSpec.$,
'FakeCentral_SetNextWriteDescriptorResponse_ResponseParams',
[
mojo.internal.StructField(
'success', 0,
0,
mojo.internal.Bool,
false,
false /* nullable */),
],
[[0, 16],]);
goog.provide('bluetooth.mojom.FakeCentral_SetNextWriteDescriptorResponse_ResponseParams');
/** @record */
bluetooth.mojom.FakeCentral_SetNextWriteDescriptorResponse_ResponseParams = class {
constructor() {
/** @export { !boolean } */
this.success;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_GetLastWrittenDescriptorValue_ParamsSpec.$,
'FakeCentral_GetLastWrittenDescriptorValue_Params',
[
mojo.internal.StructField(
'descriptorId', 0,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'characteristicId', 8,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'serviceId', 16,
0,
mojo.internal.String,
null,
false /* nullable */),
mojo.internal.StructField(
'peripheralAddress', 24,
0,
mojo.internal.String,
null,
false /* nullable */),
],
[[0, 40],]);
goog.provide('bluetooth.mojom.FakeCentral_GetLastWrittenDescriptorValue_Params');
/** @record */
bluetooth.mojom.FakeCentral_GetLastWrittenDescriptorValue_Params = class {
constructor() {
/** @export { !string } */
this.descriptorId;
/** @export { !string } */
this.characteristicId;
/** @export { !string } */
this.serviceId;
/** @export { !string } */
this.peripheralAddress;
}
};
mojo.internal.Struct(
bluetooth.mojom.FakeCentral_GetLastWrittenDescriptorValue_ResponseParamsSpec.$,
'FakeCentral_GetLastWrittenDescriptorValue_ResponseParams',
[
mojo.internal.StructField(
'success', 0,
0,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'value', 8,
0,
mojo.internal.Array(mojo.internal.Uint8, false),
null,
true /* nullable */),
],
[[0, 24],]);
goog.provide('bluetooth.mojom.FakeCentral_GetLastWrittenDescriptorValue_ResponseParams');
/** @record */
bluetooth.mojom.FakeCentral_GetLastWrittenDescriptorValue_ResponseParams = class {
constructor() {
/** @export { !boolean } */
this.success;
/** @export { (Array<!number>|undefined) } */
this.value;
}
};