elliott.david 2012-11-14 08:34 采纳率: 25%
浏览 357

适用于 Android 用户管理器的正确用例?

I was looking at the new APIs introduced in Android 4.2. While looking at the UserManager class I came across the following method:

public boolean isUserAGoat()

Used to determine whether the user making this call is subject to teleportations.

Returns whether the user making this call is a goat.

How and when should this be used?

转载于:https://stackoverflow.com/questions/13375357/proper-use-cases-for-android-usermanager-isuseragoat

  • 写回答

7条回答 默认 最新

  • 游.程 2012-11-14 09:03
    关注

    This appears to be an inside joke at Google. It's also featured in the Google Chrome task manager. It has no purpose, other than some engineers finding it amusing. Which is a purpose by itself, if you will.

    1. In Chrome, open the Task Manager with <kbd>Shift</kbd>+<kbd>Esc</kbd>.
    2. Right click to add the Goats Teleported column.
    3. Wonder.

    There is even a huge Chromium bug report about too many teleported goats.

    chrome

    The following Chromium source code snippet is stolen from the HN comments.

    int TaskManagerModel::GetGoatsTeleported(int index) const {
      int seed = goat_salt_ * (index + 1);
      return (seed >> 16) & 255;
    }
    
    评论

报告相同问题?

悬赏问题

  • ¥15 怎么获取下面的: glove_word2id.json和 glove_numpy.npy 这两个文件
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug