奇怪的功能ActivityManager:isUserAMonkey。这是什么意思,什么是它的使用? [英] Strange function in ActivityManager: isUserAMonkey. What does this mean, what is its use?

查看:297
本文介绍了奇怪的功能ActivityManager:isUserAMonkey。这是什么意思,什么是它的使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现包的以下功能 android.app.ActivityManager

public static boolean isUserAMonkey ()

的<一个href="http://developer.android.com/reference/android/app/ActivityManager.html#isUserAMonkey()">reference描述:

公共静态布尔isUserAMonkey()自:API级别8

返回真,如果用户界面正在被一只猴子搞砸。

Returns "true" if the user interface is currently being messed with by a monkey.

我感到十分震惊,这个奇怪的功能。而有几个问题。

I was shocked by this strange function. And have a few questions.

  • 这是什么(用户界面目前正在由一个搞砸 猴)是什么意思?

  • What does this (user interface is currently being messed with by a monkey) mean?

什么是实际使用此功能?

What is the practical use of this function?

为什么他们使用 isUserAMonkey 函数名?

Why do they use isUserAMonkey for the function name?

推荐答案

这方法是检查阉当前用户是通过一些自动测试一个测试用户。

This method is for checking wether the current user is a test user by some automatic testing.

这篇关于奇怪的功能ActivityManager:isUserAMonkey。这是什么意思,什么是它的使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆