The Application of Generating API Call Sequence Code for Android Driven by Neural Network

计算机科学 Android(操作系统) 系统调用 调用图 程序设计语言 人工神经网络 源代码 代码生成 操作系统 人工智能 钥匙(锁)
作者
Jingbo Yang,Wenjun Wu,Jian Ren
标识
DOI:10.1109/ijcnn54540.2023.10191527
摘要

API, namely application programming interface, can help developers implement their functions conveniently. To implement a function like dialing in Android, developers sometimes need to call many APIs organised in a special pattern, called API call sequence. However, existing methods rarely focus on code generation for API call sequence. In this paper, we introduce neural network into the application field of generating API call sequence code for Android. The purpose is realising Android code automatically generation by inputting function description. To reach this goal, we first design an API call sequence code graph which is named ACSCG to well represent the Android function code structure and then we convert the ACSCG to API call sequence. Besides, we devise an AI model based on Encoder-Decoder neural network to study the corresponding relation feature of function description and API call sequence. When finishing training the model, one can give a function description to it and generate corresponding API call sequence. After all above has been done, an algorithm is implemented to successfully convert the API call sequence into target code. To verify the efficiency of our method, we collect high quality code from Github and Gitee to build a dataset including 1000 items associated with essential functions in Android such as taking photo, file management, android browser and so on. The experiment shows that our model has a better performance in generating API call sequence code than state-of-the-art technologies.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
kiki发布了新的文献求助10
刚刚
prozac完成签到,获得积分10
1秒前
cc发布了新的文献求助10
2秒前
科研通AI5应助喜悦咖啡采纳,获得10
3秒前
一帆风顺发布了新的文献求助10
3秒前
淡淡书文发布了新的文献求助10
4秒前
领导范儿应助liuxiaomei采纳,获得10
5秒前
年华发布了新的文献求助20
6秒前
科研通AI2S应助小刘加油啊采纳,获得10
7秒前
8秒前
天天快乐应助颖颖采纳,获得10
9秒前
10秒前
敖江风云完成签到,获得积分10
12秒前
马上毕业发布了新的文献求助10
13秒前
14秒前
14秒前
15秒前
一梦三四年完成签到 ,获得积分10
15秒前
年华完成签到,获得积分10
16秒前
稻草人完成签到,获得积分10
17秒前
18秒前
wyt发布了新的文献求助10
18秒前
斯文冷梅发布了新的文献求助10
18秒前
大个应助三维采纳,获得10
19秒前
稻草人发布了新的文献求助10
21秒前
科研小趴菜完成签到,获得积分10
21秒前
Ava应助欢呼青易采纳,获得10
21秒前
CodeCraft应助月夕采纳,获得30
21秒前
无奈的谷雪完成签到,获得积分20
22秒前
22秒前
22秒前
22秒前
Willer发布了新的文献求助10
24秒前
小鑫发布了新的文献求助10
24秒前
25秒前
26秒前
小马甲应助12采纳,获得10
27秒前
颖颖发布了新的文献求助10
27秒前
pluto应助忧心的红酒采纳,获得10
30秒前
科研通AI5应助ardejiang采纳,获得10
30秒前
高分求助中
Applied Survey Data Analysis (第三版, 2025) 800
Narcissistic Personality Disorder 700
Handbook of Experimental Social Psychology 500
The Martian climate revisited: atmosphere and environment of a desert planet 500
建国初期十七年翻译活动的实证研究. 建国初期十七年翻译活动的实证研究 400
Transnational East Asian Studies 400
Towards a spatial history of contemporary art in China 400
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 物理 生物化学 纳米技术 计算机科学 化学工程 内科学 复合材料 物理化学 电极 遗传学 量子力学 基因 冶金 催化作用
热门帖子
关注 科研通微信公众号,转发送积分 3847231
求助须知:如何正确求助?哪些是违规求助? 3389760
关于积分的说明 10558708
捐赠科研通 3110017
什么是DOI,文献DOI怎么找? 1714165
邀请新用户注册赠送积分活动 825107
科研通“疑难数据库(出版商)”最低求助积分说明 775255