首页> 外文会议>IEEE/ACM International Conference on Software Engineering >DroidStar: Callback Typestates for Android Classes
【24h】

DroidStar: Callback Typestates for Android Classes

机译:droidstar:android类的回调typestates

获取原文

摘要

Event-driven programming frameworks, such as Android, are based on components with asynchronous interfaces. The protocols for interacting with these components can often be described by finite-state machines we dub *callback typestates. Callback typestates are akin to classical typestates, with the difference that their outputs (callbacks) are produced asynchronously. While useful, these specifications are not commonly available, because writing them is difficult and error-prone. Our goal is to make the task of producing callback typestates significantly easier. We present a callback typestate assistant tool, DroidStar, that requires only limited user interaction to produce a callback typestate. Our approach is based on an active learning algorithm, L*. We improved the scalability of equivalence queries (a key component of L*), thus making active learning tractable on the Android system. We use DroidStar to learn callback typestates for Android classes both for cases where one is already provided by the documentation, and for cases where the documentation is unclear. The results show that DroidStar learns callback typestates accurately and efficiently. Moreover, in several cases, the synthesized callback typestates uncovered surprising and undocumented behaviors.
机译:事件驱动的编程框架(例如Android)基于具有异步接口的组件。用于与这些组件进行交互的协议通常可以通过我们配合的有限状态机器来描述。回调typestates类似于经典的typestates,差异是它们的输出(回调)是异步生成的。虽然有用,但这些规范不常用,因为写入它们是困难和错误的。我们的目标是使得产生回调的任务明显更容易。我们介绍了一个回调Typestate助手工具Droidstar,它只需要有限的用户交互来产生Typestate的回调。我们的方法是基于主动学习算法,L *。我们改进了等价查询的可扩展性(L *的一个关键组件),从而在Android系统上发出了活跃的学习。我们使用Droidstar学习用于Android类的回调Typestates,用于文档提供的情况,以及文档不清楚的情况。结果表明,Droidstar准确且有效地了解回调Typestates。此外,在几种情况下,合成的回调是故障的令人惊讶和无证行为。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号