IBluetoothGatt.json 36 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327
  1. {
  2. "imports": [
  3. "android.app.PendingIntent",
  4. "android.bluetooth.BluetoothDevice",
  5. "android.bluetooth.BluetoothGattService",
  6. "android.bluetooth.le.AdvertiseSettings",
  7. "android.bluetooth.le.AdvertiseData",
  8. "android.bluetooth.le.AdvertisingSetParameters",
  9. "android.bluetooth.le.PeriodicAdvertisingParameters",
  10. "android.bluetooth.le.ScanFilter",
  11. "android.bluetooth.le.ScanResult",
  12. "android.bluetooth.le.ScanSettings",
  13. "android.bluetooth.le.ResultStorageDescriptor",
  14. "android.os.ParcelUuid",
  15. "android.os.WorkSource",
  16. "android.bluetooth.IBluetoothGattCallback",
  17. "android.bluetooth.IBluetoothGattServerCallback",
  18. "android.bluetooth.le.IAdvertisingSetCallback",
  19. "android.bluetooth.le.IPeriodicAdvertisingCallback",
  20. "android.bluetooth.le.IScannerCallback"
  21. ],
  22. "name": "IBluetoothGatt",
  23. "statements": [
  24. {
  25. "id": "getDevicesMatchingConnectionStates",
  26. "type": "method",
  27. "params": [
  28. {
  29. "tag": "in",
  30. "id": "states",
  31. "type": "int[]",
  32. "tid": 0
  33. }
  34. ],
  35. "return": "List<BluetoothDevice>"
  36. },
  37. {
  38. "id": "registerScanner",
  39. "type": "method",
  40. "params": [
  41. {
  42. "tag": "in",
  43. "id": "callback",
  44. "type": "IScannerCallback",
  45. "tid": -1
  46. },
  47. {
  48. "tag": "in",
  49. "id": "workSource",
  50. "type": "WorkSource",
  51. "tid": -1
  52. }
  53. ],
  54. "return": "void"
  55. },
  56. {
  57. "id": "unregisterScanner",
  58. "type": "method",
  59. "params": [
  60. {
  61. "tag": "in",
  62. "id": "scannerId",
  63. "type": "int",
  64. "tid": 0
  65. }
  66. ],
  67. "return": "void"
  68. },
  69. {
  70. "id": "startScan",
  71. "type": "method",
  72. "params": [
  73. {
  74. "tag": "in",
  75. "id": "scannerId",
  76. "type": "int",
  77. "tid": 0
  78. },
  79. {
  80. "tag": "in",
  81. "id": "settings",
  82. "type": "ScanSettings",
  83. "tid": -1
  84. },
  85. {
  86. "tag": "in",
  87. "id": "filters",
  88. "type": "List<ScanFilter>",
  89. "tid": 0
  90. },
  91. {
  92. "tag": "in",
  93. "id": "scanStorages",
  94. "type": "List",
  95. "tid": 0
  96. },
  97. {
  98. "tag": "in",
  99. "id": "callingPackage",
  100. "type": "String",
  101. "tid": 0
  102. }
  103. ],
  104. "return": "void"
  105. },
  106. {
  107. "id": "startScanForIntent",
  108. "type": "method",
  109. "params": [
  110. {
  111. "tag": "in",
  112. "id": "intent",
  113. "type": "PendingIntent",
  114. "tid": -1
  115. },
  116. {
  117. "tag": "in",
  118. "id": "settings",
  119. "type": "ScanSettings",
  120. "tid": -1
  121. },
  122. {
  123. "tag": "in",
  124. "id": "filters",
  125. "type": "List<ScanFilter>",
  126. "tid": 0
  127. },
  128. {
  129. "tag": "in",
  130. "id": "callingPackage",
  131. "type": "String",
  132. "tid": 0
  133. }
  134. ],
  135. "return": "void"
  136. },
  137. {
  138. "id": "stopScanForIntent",
  139. "type": "method",
  140. "params": [
  141. {
  142. "tag": "in",
  143. "id": "intent",
  144. "type": "PendingIntent",
  145. "tid": -1
  146. },
  147. {
  148. "tag": "in",
  149. "id": "callingPackage",
  150. "type": "String",
  151. "tid": 0
  152. }
  153. ],
  154. "return": "void"
  155. },
  156. {
  157. "id": "stopScan",
  158. "type": "method",
  159. "params": [
  160. {
  161. "tag": "in",
  162. "id": "scannerId",
  163. "type": "int",
  164. "tid": 0
  165. }
  166. ],
  167. "return": "void"
  168. },
  169. {
  170. "id": "flushPendingBatchResults",
  171. "type": "method",
  172. "params": [
  173. {
  174. "tag": "in",
  175. "id": "scannerId",
  176. "type": "int",
  177. "tid": 0
  178. }
  179. ],
  180. "return": "void"
  181. },
  182. {
  183. "id": "startAdvertisingSet",
  184. "type": "method",
  185. "params": [
  186. {
  187. "tag": "in",
  188. "id": "parameters",
  189. "type": "AdvertisingSetParameters",
  190. "tid": -1
  191. },
  192. {
  193. "tag": "in",
  194. "id": "advertiseData",
  195. "type": "AdvertiseData",
  196. "tid": -1
  197. },
  198. {
  199. "tag": "in",
  200. "id": "scanResponse",
  201. "type": "AdvertiseData",
  202. "tid": -1
  203. },
  204. {
  205. "tag": "in",
  206. "id": "periodicParameters",
  207. "type": "PeriodicAdvertisingParameters",
  208. "tid": -1
  209. },
  210. {
  211. "tag": "in",
  212. "id": "periodicData",
  213. "type": "AdvertiseData",
  214. "tid": -1
  215. },
  216. {
  217. "tag": "in",
  218. "id": "duration",
  219. "type": "int",
  220. "tid": 0
  221. },
  222. {
  223. "tag": "in",
  224. "id": "maxExtAdvEvents",
  225. "type": "int",
  226. "tid": 0
  227. },
  228. {
  229. "tag": "in",
  230. "id": "callback",
  231. "type": "IAdvertisingSetCallback",
  232. "tid": -1
  233. }
  234. ],
  235. "return": "void"
  236. },
  237. {
  238. "id": "stopAdvertisingSet",
  239. "type": "method",
  240. "params": [
  241. {
  242. "tag": "in",
  243. "id": "callback",
  244. "type": "IAdvertisingSetCallback",
  245. "tid": -1
  246. }
  247. ],
  248. "return": "void"
  249. },
  250. {
  251. "id": "getOwnAddress",
  252. "type": "method",
  253. "params": [
  254. {
  255. "tag": "in",
  256. "id": "advertiserId",
  257. "type": "int",
  258. "tid": 0
  259. }
  260. ],
  261. "return": "void"
  262. },
  263. {
  264. "id": "enableAdvertisingSet",
  265. "type": "method",
  266. "params": [
  267. {
  268. "tag": "in",
  269. "id": "advertiserId",
  270. "type": "int",
  271. "tid": 0
  272. },
  273. {
  274. "tag": "in",
  275. "id": "enable",
  276. "type": "boolean",
  277. "tid": 0
  278. },
  279. {
  280. "tag": "in",
  281. "id": "duration",
  282. "type": "int",
  283. "tid": 0
  284. },
  285. {
  286. "tag": "in",
  287. "id": "maxExtAdvEvents",
  288. "type": "int",
  289. "tid": 0
  290. }
  291. ],
  292. "return": "void"
  293. },
  294. {
  295. "id": "setAdvertisingData",
  296. "type": "method",
  297. "params": [
  298. {
  299. "tag": "in",
  300. "id": "advertiserId",
  301. "type": "int",
  302. "tid": 0
  303. },
  304. {
  305. "tag": "in",
  306. "id": "data",
  307. "type": "AdvertiseData",
  308. "tid": -1
  309. }
  310. ],
  311. "return": "void"
  312. },
  313. {
  314. "id": "setScanResponseData",
  315. "type": "method",
  316. "params": [
  317. {
  318. "tag": "in",
  319. "id": "advertiserId",
  320. "type": "int",
  321. "tid": 0
  322. },
  323. {
  324. "tag": "in",
  325. "id": "data",
  326. "type": "AdvertiseData",
  327. "tid": -1
  328. }
  329. ],
  330. "return": "void"
  331. },
  332. {
  333. "id": "setAdvertisingParameters",
  334. "type": "method",
  335. "params": [
  336. {
  337. "tag": "in",
  338. "id": "advertiserId",
  339. "type": "int",
  340. "tid": 0
  341. },
  342. {
  343. "tag": "in",
  344. "id": "parameters",
  345. "type": "AdvertisingSetParameters",
  346. "tid": -1
  347. }
  348. ],
  349. "return": "void"
  350. },
  351. {
  352. "id": "setPeriodicAdvertisingParameters",
  353. "type": "method",
  354. "params": [
  355. {
  356. "tag": "in",
  357. "id": "advertiserId",
  358. "type": "int",
  359. "tid": 0
  360. },
  361. {
  362. "tag": "in",
  363. "id": "parameters",
  364. "type": "PeriodicAdvertisingParameters",
  365. "tid": -1
  366. }
  367. ],
  368. "return": "void"
  369. },
  370. {
  371. "id": "setPeriodicAdvertisingData",
  372. "type": "method",
  373. "params": [
  374. {
  375. "tag": "in",
  376. "id": "advertiserId",
  377. "type": "int",
  378. "tid": 0
  379. },
  380. {
  381. "tag": "in",
  382. "id": "data",
  383. "type": "AdvertiseData",
  384. "tid": -1
  385. }
  386. ],
  387. "return": "void"
  388. },
  389. {
  390. "id": "setPeriodicAdvertisingEnable",
  391. "type": "method",
  392. "params": [
  393. {
  394. "tag": "in",
  395. "id": "advertiserId",
  396. "type": "int",
  397. "tid": 0
  398. },
  399. {
  400. "tag": "in",
  401. "id": "enable",
  402. "type": "boolean",
  403. "tid": 0
  404. }
  405. ],
  406. "return": "void"
  407. },
  408. {
  409. "id": "registerSync",
  410. "type": "method",
  411. "params": [
  412. {
  413. "tag": "in",
  414. "id": "scanResult",
  415. "type": "ScanResult",
  416. "tid": -1
  417. },
  418. {
  419. "tag": "in",
  420. "id": "skip",
  421. "type": "int",
  422. "tid": 0
  423. },
  424. {
  425. "tag": "in",
  426. "id": "timeout",
  427. "type": "int",
  428. "tid": 0
  429. },
  430. {
  431. "tag": "in",
  432. "id": "callback",
  433. "type": "IPeriodicAdvertisingCallback",
  434. "tid": -1
  435. }
  436. ],
  437. "return": "void"
  438. },
  439. {
  440. "id": "unregisterSync",
  441. "type": "method",
  442. "params": [
  443. {
  444. "tag": "in",
  445. "id": "callback",
  446. "type": "IPeriodicAdvertisingCallback",
  447. "tid": -1
  448. }
  449. ],
  450. "return": "void"
  451. },
  452. {
  453. "id": "registerClient",
  454. "type": "method",
  455. "params": [
  456. {
  457. "tag": "in",
  458. "id": "appId",
  459. "type": "ParcelUuid",
  460. "tid": -1
  461. },
  462. {
  463. "tag": "in",
  464. "id": "callback",
  465. "type": "IBluetoothGattCallback",
  466. "tid": -1
  467. }
  468. ],
  469. "return": "void"
  470. },
  471. {
  472. "id": "unregisterClient",
  473. "type": "method",
  474. "params": [
  475. {
  476. "tag": "in",
  477. "id": "clientIf",
  478. "type": "int",
  479. "tid": 0
  480. }
  481. ],
  482. "return": "void"
  483. },
  484. {
  485. "id": "clientConnect",
  486. "type": "method",
  487. "params": [
  488. {
  489. "tag": "in",
  490. "id": "clientIf",
  491. "type": "int",
  492. "tid": 0
  493. },
  494. {
  495. "tag": "in",
  496. "id": "address",
  497. "type": "String",
  498. "tid": 0
  499. },
  500. {
  501. "tag": "in",
  502. "id": "isDirect",
  503. "type": "boolean",
  504. "tid": 0
  505. },
  506. {
  507. "tag": "in",
  508. "id": "transport",
  509. "type": "int",
  510. "tid": 0
  511. },
  512. {
  513. "tag": "in",
  514. "id": "opportunistic",
  515. "type": "boolean",
  516. "tid": 0
  517. },
  518. {
  519. "tag": "in",
  520. "id": "phy",
  521. "type": "int",
  522. "tid": 0
  523. }
  524. ],
  525. "return": "void"
  526. },
  527. {
  528. "id": "clientDisconnect",
  529. "type": "method",
  530. "params": [
  531. {
  532. "tag": "in",
  533. "id": "clientIf",
  534. "type": "int",
  535. "tid": 0
  536. },
  537. {
  538. "tag": "in",
  539. "id": "address",
  540. "type": "String",
  541. "tid": 0
  542. }
  543. ],
  544. "return": "void"
  545. },
  546. {
  547. "id": "clientSetPreferredPhy",
  548. "type": "method",
  549. "params": [
  550. {
  551. "tag": "in",
  552. "id": "clientIf",
  553. "type": "int",
  554. "tid": 0
  555. },
  556. {
  557. "tag": "in",
  558. "id": "address",
  559. "type": "String",
  560. "tid": 0
  561. },
  562. {
  563. "tag": "in",
  564. "id": "txPhy",
  565. "type": "int",
  566. "tid": 0
  567. },
  568. {
  569. "tag": "in",
  570. "id": "rxPhy",
  571. "type": "int",
  572. "tid": 0
  573. },
  574. {
  575. "tag": "in",
  576. "id": "phyOptions",
  577. "type": "int",
  578. "tid": 0
  579. }
  580. ],
  581. "return": "void"
  582. },
  583. {
  584. "id": "clientReadPhy",
  585. "type": "method",
  586. "params": [
  587. {
  588. "tag": "in",
  589. "id": "clientIf",
  590. "type": "int",
  591. "tid": 0
  592. },
  593. {
  594. "tag": "in",
  595. "id": "address",
  596. "type": "String",
  597. "tid": 0
  598. }
  599. ],
  600. "return": "void"
  601. },
  602. {
  603. "id": "refreshDevice",
  604. "type": "method",
  605. "params": [
  606. {
  607. "tag": "in",
  608. "id": "clientIf",
  609. "type": "int",
  610. "tid": 0
  611. },
  612. {
  613. "tag": "in",
  614. "id": "address",
  615. "type": "String",
  616. "tid": 0
  617. }
  618. ],
  619. "return": "void"
  620. },
  621. {
  622. "id": "discoverServices",
  623. "type": "method",
  624. "params": [
  625. {
  626. "tag": "in",
  627. "id": "clientIf",
  628. "type": "int",
  629. "tid": 0
  630. },
  631. {
  632. "tag": "in",
  633. "id": "address",
  634. "type": "String",
  635. "tid": 0
  636. }
  637. ],
  638. "return": "void"
  639. },
  640. {
  641. "id": "discoverServiceByUuid",
  642. "type": "method",
  643. "params": [
  644. {
  645. "tag": "in",
  646. "id": "clientIf",
  647. "type": "int",
  648. "tid": 0
  649. },
  650. {
  651. "tag": "in",
  652. "id": "address",
  653. "type": "String",
  654. "tid": 0
  655. },
  656. {
  657. "tag": "in",
  658. "id": "uuid",
  659. "type": "ParcelUuid",
  660. "tid": -1
  661. }
  662. ],
  663. "return": "void"
  664. },
  665. {
  666. "id": "readCharacteristic",
  667. "type": "method",
  668. "params": [
  669. {
  670. "tag": "in",
  671. "id": "clientIf",
  672. "type": "int",
  673. "tid": 0
  674. },
  675. {
  676. "tag": "in",
  677. "id": "address",
  678. "type": "String",
  679. "tid": 0
  680. },
  681. {
  682. "tag": "in",
  683. "id": "handle",
  684. "type": "int",
  685. "tid": 0
  686. },
  687. {
  688. "tag": "in",
  689. "id": "authReq",
  690. "type": "int",
  691. "tid": 0
  692. }
  693. ],
  694. "return": "void"
  695. },
  696. {
  697. "id": "readUsingCharacteristicUuid",
  698. "type": "method",
  699. "params": [
  700. {
  701. "tag": "in",
  702. "id": "clientIf",
  703. "type": "int",
  704. "tid": 0
  705. },
  706. {
  707. "tag": "in",
  708. "id": "address",
  709. "type": "String",
  710. "tid": 0
  711. },
  712. {
  713. "tag": "in",
  714. "id": "uuid",
  715. "type": "ParcelUuid",
  716. "tid": -1
  717. },
  718. {
  719. "tag": "in",
  720. "id": "startHandle",
  721. "type": "int",
  722. "tid": 0
  723. },
  724. {
  725. "tag": "in",
  726. "id": "endHandle",
  727. "type": "int",
  728. "tid": 0
  729. },
  730. {
  731. "tag": "in",
  732. "id": "authReq",
  733. "type": "int",
  734. "tid": 0
  735. }
  736. ],
  737. "return": "void"
  738. },
  739. {
  740. "id": "writeCharacteristic",
  741. "type": "method",
  742. "params": [
  743. {
  744. "tag": "in",
  745. "id": "clientIf",
  746. "type": "int",
  747. "tid": 0
  748. },
  749. {
  750. "tag": "in",
  751. "id": "address",
  752. "type": "String",
  753. "tid": 0
  754. },
  755. {
  756. "tag": "in",
  757. "id": "handle",
  758. "type": "int",
  759. "tid": 0
  760. },
  761. {
  762. "tag": "in",
  763. "id": "writeType",
  764. "type": "int",
  765. "tid": 0
  766. },
  767. {
  768. "tag": "in",
  769. "id": "authReq",
  770. "type": "int",
  771. "tid": 0
  772. },
  773. {
  774. "tag": "in",
  775. "id": "value",
  776. "type": "byte[]",
  777. "tid": 0
  778. }
  779. ],
  780. "return": "void"
  781. },
  782. {
  783. "id": "readDescriptor",
  784. "type": "method",
  785. "params": [
  786. {
  787. "tag": "in",
  788. "id": "clientIf",
  789. "type": "int",
  790. "tid": 0
  791. },
  792. {
  793. "tag": "in",
  794. "id": "address",
  795. "type": "String",
  796. "tid": 0
  797. },
  798. {
  799. "tag": "in",
  800. "id": "handle",
  801. "type": "int",
  802. "tid": 0
  803. },
  804. {
  805. "tag": "in",
  806. "id": "authReq",
  807. "type": "int",
  808. "tid": 0
  809. }
  810. ],
  811. "return": "void"
  812. },
  813. {
  814. "id": "writeDescriptor",
  815. "type": "method",
  816. "params": [
  817. {
  818. "tag": "in",
  819. "id": "clientIf",
  820. "type": "int",
  821. "tid": 0
  822. },
  823. {
  824. "tag": "in",
  825. "id": "address",
  826. "type": "String",
  827. "tid": 0
  828. },
  829. {
  830. "tag": "in",
  831. "id": "handle",
  832. "type": "int",
  833. "tid": 0
  834. },
  835. {
  836. "tag": "in",
  837. "id": "authReq",
  838. "type": "int",
  839. "tid": 0
  840. },
  841. {
  842. "tag": "in",
  843. "id": "value",
  844. "type": "byte[]",
  845. "tid": 0
  846. }
  847. ],
  848. "return": "void"
  849. },
  850. {
  851. "id": "registerForNotification",
  852. "type": "method",
  853. "params": [
  854. {
  855. "tag": "in",
  856. "id": "clientIf",
  857. "type": "int",
  858. "tid": 0
  859. },
  860. {
  861. "tag": "in",
  862. "id": "address",
  863. "type": "String",
  864. "tid": 0
  865. },
  866. {
  867. "tag": "in",
  868. "id": "handle",
  869. "type": "int",
  870. "tid": 0
  871. },
  872. {
  873. "tag": "in",
  874. "id": "enable",
  875. "type": "boolean",
  876. "tid": 0
  877. }
  878. ],
  879. "return": "void"
  880. },
  881. {
  882. "id": "beginReliableWrite",
  883. "type": "method",
  884. "params": [
  885. {
  886. "tag": "in",
  887. "id": "clientIf",
  888. "type": "int",
  889. "tid": 0
  890. },
  891. {
  892. "tag": "in",
  893. "id": "address",
  894. "type": "String",
  895. "tid": 0
  896. }
  897. ],
  898. "return": "void"
  899. },
  900. {
  901. "id": "endReliableWrite",
  902. "type": "method",
  903. "params": [
  904. {
  905. "tag": "in",
  906. "id": "clientIf",
  907. "type": "int",
  908. "tid": 0
  909. },
  910. {
  911. "tag": "in",
  912. "id": "address",
  913. "type": "String",
  914. "tid": 0
  915. },
  916. {
  917. "tag": "in",
  918. "id": "execute",
  919. "type": "boolean",
  920. "tid": 0
  921. }
  922. ],
  923. "return": "void"
  924. },
  925. {
  926. "id": "readRemoteRssi",
  927. "type": "method",
  928. "params": [
  929. {
  930. "tag": "in",
  931. "id": "clientIf",
  932. "type": "int",
  933. "tid": 0
  934. },
  935. {
  936. "tag": "in",
  937. "id": "address",
  938. "type": "String",
  939. "tid": 0
  940. }
  941. ],
  942. "return": "void"
  943. },
  944. {
  945. "id": "configureMTU",
  946. "type": "method",
  947. "params": [
  948. {
  949. "tag": "in",
  950. "id": "clientIf",
  951. "type": "int",
  952. "tid": 0
  953. },
  954. {
  955. "tag": "in",
  956. "id": "address",
  957. "type": "String",
  958. "tid": 0
  959. },
  960. {
  961. "tag": "in",
  962. "id": "mtu",
  963. "type": "int",
  964. "tid": 0
  965. }
  966. ],
  967. "return": "void"
  968. },
  969. {
  970. "id": "connectionParameterUpdate",
  971. "type": "method",
  972. "params": [
  973. {
  974. "tag": "in",
  975. "id": "clientIf",
  976. "type": "int",
  977. "tid": 0
  978. },
  979. {
  980. "tag": "in",
  981. "id": "address",
  982. "type": "String",
  983. "tid": 0
  984. },
  985. {
  986. "tag": "in",
  987. "id": "connectionPriority",
  988. "type": "int",
  989. "tid": 0
  990. }
  991. ],
  992. "return": "void"
  993. },
  994. {
  995. "id": "leConnectionUpdate",
  996. "type": "method",
  997. "params": [
  998. {
  999. "id": "clientIf",
  1000. "type": "int",
  1001. "tid": 0
  1002. },
  1003. {
  1004. "id": "address",
  1005. "type": "String",
  1006. "tid": 0
  1007. },
  1008. {
  1009. "id": "minInterval",
  1010. "type": "int",
  1011. "tid": 0
  1012. },
  1013. {
  1014. "id": "maxInterval",
  1015. "type": "int",
  1016. "tid": 0
  1017. },
  1018. {
  1019. "id": "slaveLatency",
  1020. "type": "int",
  1021. "tid": 0
  1022. },
  1023. {
  1024. "id": "supervisionTimeout",
  1025. "type": "int",
  1026. "tid": 0
  1027. },
  1028. {
  1029. "id": "minConnectionEventLen",
  1030. "type": "int",
  1031. "tid": 0
  1032. },
  1033. {
  1034. "id": "maxConnectionEventLen",
  1035. "type": "int",
  1036. "tid": 0
  1037. }
  1038. ],
  1039. "return": "void"
  1040. },
  1041. {
  1042. "id": "registerServer",
  1043. "type": "method",
  1044. "params": [
  1045. {
  1046. "tag": "in",
  1047. "id": "appId",
  1048. "type": "ParcelUuid",
  1049. "tid": -1
  1050. },
  1051. {
  1052. "tag": "in",
  1053. "id": "callback",
  1054. "type": "IBluetoothGattServerCallback",
  1055. "tid": -1
  1056. }
  1057. ],
  1058. "return": "void"
  1059. },
  1060. {
  1061. "id": "unregisterServer",
  1062. "type": "method",
  1063. "params": [
  1064. {
  1065. "tag": "in",
  1066. "id": "serverIf",
  1067. "type": "int",
  1068. "tid": 0
  1069. }
  1070. ],
  1071. "return": "void"
  1072. },
  1073. {
  1074. "id": "serverConnect",
  1075. "type": "method",
  1076. "params": [
  1077. {
  1078. "tag": "in",
  1079. "id": "serverIf",
  1080. "type": "int",
  1081. "tid": 0
  1082. },
  1083. {
  1084. "tag": "in",
  1085. "id": "address",
  1086. "type": "String",
  1087. "tid": 0
  1088. },
  1089. {
  1090. "tag": "in",
  1091. "id": "isDirect",
  1092. "type": "boolean",
  1093. "tid": 0
  1094. },
  1095. {
  1096. "tag": "in",
  1097. "id": "transport",
  1098. "type": "int",
  1099. "tid": 0
  1100. }
  1101. ],
  1102. "return": "void"
  1103. },
  1104. {
  1105. "id": "serverDisconnect",
  1106. "type": "method",
  1107. "params": [
  1108. {
  1109. "tag": "in",
  1110. "id": "serverIf",
  1111. "type": "int",
  1112. "tid": 0
  1113. },
  1114. {
  1115. "tag": "in",
  1116. "id": "address",
  1117. "type": "String",
  1118. "tid": 0
  1119. }
  1120. ],
  1121. "return": "void"
  1122. },
  1123. {
  1124. "id": "serverSetPreferredPhy",
  1125. "type": "method",
  1126. "params": [
  1127. {
  1128. "tag": "in",
  1129. "id": "clientIf",
  1130. "type": "int",
  1131. "tid": 0
  1132. },
  1133. {
  1134. "tag": "in",
  1135. "id": "address",
  1136. "type": "String",
  1137. "tid": 0
  1138. },
  1139. {
  1140. "tag": "in",
  1141. "id": "txPhy",
  1142. "type": "int",
  1143. "tid": 0
  1144. },
  1145. {
  1146. "tag": "in",
  1147. "id": "rxPhy",
  1148. "type": "int",
  1149. "tid": 0
  1150. },
  1151. {
  1152. "tag": "in",
  1153. "id": "phyOptions",
  1154. "type": "int",
  1155. "tid": 0
  1156. }
  1157. ],
  1158. "return": "void"
  1159. },
  1160. {
  1161. "id": "serverReadPhy",
  1162. "type": "method",
  1163. "params": [
  1164. {
  1165. "tag": "in",
  1166. "id": "clientIf",
  1167. "type": "int",
  1168. "tid": 0
  1169. },
  1170. {
  1171. "tag": "in",
  1172. "id": "address",
  1173. "type": "String",
  1174. "tid": 0
  1175. }
  1176. ],
  1177. "return": "void"
  1178. },
  1179. {
  1180. "id": "addService",
  1181. "type": "method",
  1182. "params": [
  1183. {
  1184. "tag": "in",
  1185. "id": "serverIf",
  1186. "type": "int",
  1187. "tid": 0
  1188. },
  1189. {
  1190. "tag": "in",
  1191. "id": "service",
  1192. "type": "BluetoothGattService",
  1193. "tid": -1
  1194. }
  1195. ],
  1196. "return": "void"
  1197. },
  1198. {
  1199. "id": "removeService",
  1200. "type": "method",
  1201. "params": [
  1202. {
  1203. "tag": "in",
  1204. "id": "serverIf",
  1205. "type": "int",
  1206. "tid": 0
  1207. },
  1208. {
  1209. "tag": "in",
  1210. "id": "handle",
  1211. "type": "int",
  1212. "tid": 0
  1213. }
  1214. ],
  1215. "return": "void"
  1216. },
  1217. {
  1218. "id": "clearServices",
  1219. "type": "method",
  1220. "params": [
  1221. {
  1222. "tag": "in",
  1223. "id": "serverIf",
  1224. "type": "int",
  1225. "tid": 0
  1226. }
  1227. ],
  1228. "return": "void"
  1229. },
  1230. {
  1231. "id": "sendResponse",
  1232. "type": "method",
  1233. "params": [
  1234. {
  1235. "tag": "in",
  1236. "id": "serverIf",
  1237. "type": "int",
  1238. "tid": 0
  1239. },
  1240. {
  1241. "tag": "in",
  1242. "id": "address",
  1243. "type": "String",
  1244. "tid": 0
  1245. },
  1246. {
  1247. "tag": "in",
  1248. "id": "requestId",
  1249. "type": "int",
  1250. "tid": 0
  1251. },
  1252. {
  1253. "tag": "in",
  1254. "id": "status",
  1255. "type": "int",
  1256. "tid": 0
  1257. },
  1258. {
  1259. "tag": "in",
  1260. "id": "offset",
  1261. "type": "int",
  1262. "tid": 0
  1263. },
  1264. {
  1265. "tag": "in",
  1266. "id": "value",
  1267. "type": "byte[]",
  1268. "tid": 0
  1269. }
  1270. ],
  1271. "return": "void"
  1272. },
  1273. {
  1274. "id": "sendNotification",
  1275. "type": "method",
  1276. "params": [
  1277. {
  1278. "tag": "in",
  1279. "id": "serverIf",
  1280. "type": "int",
  1281. "tid": 0
  1282. },
  1283. {
  1284. "tag": "in",
  1285. "id": "address",
  1286. "type": "String",
  1287. "tid": 0
  1288. },
  1289. {
  1290. "tag": "in",
  1291. "id": "handle",
  1292. "type": "int",
  1293. "tid": 0
  1294. },
  1295. {
  1296. "tag": "in",
  1297. "id": "confirm",
  1298. "type": "boolean",
  1299. "tid": 0
  1300. },
  1301. {
  1302. "tag": "in",
  1303. "id": "value",
  1304. "type": "byte[]",
  1305. "tid": 0
  1306. }
  1307. ],
  1308. "return": "void"
  1309. },
  1310. {
  1311. "id": "disconnectAll",
  1312. "type": "method",
  1313. "return": "void"
  1314. },
  1315. {
  1316. "id": "unregAll",
  1317. "type": "method",
  1318. "return": "void"
  1319. },
  1320. {
  1321. "id": "numHwTrackFiltersAvailable",
  1322. "type": "method",
  1323. "return": "int"
  1324. }
  1325. ],
  1326. "type": "interface"
  1327. }