/platform_testing/libraries/car-helpers/multiuser-helper/src/android/platform/helpers/ |
D | MultiUserHelper.java | 99 public void switchAndWaitForStable(int id, long timeoutMs) throws Exception { in switchAndWaitForStable() argument 100 switchToUserId(id); in switchAndWaitForStable() 113 public void switchToUserId(int id) throws Exception { in switchToUserId() argument 115 registerUserSwitchObserver(latch, id); in switchToUserId() 116 if (!mUserManagerHelper.switchToUserId(id)) { in switchToUserId() 117 throw new Exception(String.format("Failed to switch to user: %d", id)); in switchToUserId() 123 id, USER_SWITCH_TIMEOUT_SECOND)); in switchToUserId()
|
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/ |
D | NotificationHelper.java | 69 public void createChannel(String id, String name, int importance, boolean vibrate, in createChannel() argument 71 if (manager.getNotificationChannel(id) != null) { in createChannel() 74 NotificationChannel channel = new NotificationChannel(id, name, importance); in createChannel() 84 public void useChannel(String id) { in useChannel() argument 85 mCurrentChannelId = id; in useChannel() 98 for (int id : ids) { in checkNotificationExistence() 99 result = result && checkNotificationExistence(id, manager); in checkNotificationExistence() 111 public boolean checkNotificationExistence(int id, NotificationManager manager) in checkNotificationExistence() argument 118 if (sbn.getId() == id) { in checkNotificationExistence() 128 Log.i(LOG_TAG, String.format("Notification (id=%d) existence = %b", id, isFound)); in checkNotificationExistence()
|
D | OverviewHelper.java | 240 int id = res.getIdentifier("config_recentsComponentName", "string", "android"); in isRecentsInLauncher() local 241 ComponentName recentsComponent = ComponentName.unflattenFromString(res.getString(id)); in isRecentsInLauncher()
|
/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/ |
D | AbstractStandardAppHelper.java | 133 String id = getLauncherName(); in open() local 135 getLauncherStrategy().launch(id, pkg); in open() 136 Log.i(LOG_TAG, "Launched package: id=" + id + ", pkg=" + pkg); in open() 301 protected UiObject2 findElementById(String id) { in findElementById() argument 302 UiObject2 element = mDevice.findObject(By.res(getPackage(), id)); in findElementById() 306 throw new UnknownUiException(String.format(ERROR_NOT_FOUND, "with id", id, getPackage())); in findElementById() 338 protected void waitAndClickById(String packageStr, String id, long timeout) { in waitAndClickById() argument 339 clickOn(mDevice.wait(Until.findObject(By.res(packageStr, id)), timeout)); in waitAndClickById() 351 protected void checkElementWithIdExists(String packageStr, String id, long timeout) { in checkElementWithIdExists() argument 352 if (!mDevice.wait(Until.hasObject(By.res(packageStr, id)), timeout)) { in checkElementWithIdExists() [all …]
|
/platform_testing/tests/functional/notificationtests/src/com/android/notification/functional/ |
D | NotificationHelper.java | 121 public void sendNotification(int id, int visibility, String title) throws Exception { in sendNotification() argument 122 sendNotification(id, visibility, title, false); in sendNotification() 125 public void sendNotification(int id, int visibility, String title, boolean buzz) in sendNotification() argument 148 mNotificationManager.notify(id, notification.build()); in sendNotification() 201 public boolean checkNotificationExistence(int id, boolean exists) throws Exception { in checkNotificationExistence() argument 207 if (sbn.getId() == id) { in checkNotificationExistence() 221 public StatusBarNotification getStatusBarNotification(int id) { in getStatusBarNotification() argument 225 if (sbn.getId() == id) { in getStatusBarNotification() 288 String id = (buzz ? BUZZY_CHANNEL_ID : QUIET_CHANNEL_ID); in getChannel() local 294 channel = mNotificationManager.getNotificationChannel(id); in getChannel() [all …]
|
D | NotificationInteractionTests.java | 230 int id = CUSTOM_NOTIFICATION_ID; in testNotificationClicks() local 231 mHelper.sendNotification(id, Notification.VISIBILITY_PUBLIC, in testNotificationClicks() 246 .addTaggedData(MetricsEvent.NOTIFICATION_ID, id) in testNotificationClicks() 252 .addTaggedData(MetricsEvent.NOTIFICATION_ID, id) in testNotificationClicks() 265 .addTaggedData(MetricsEvent.NOTIFICATION_ID, id) in testNotificationClicks() 278 .addTaggedData(MetricsEvent.NOTIFICATION_ID, id) in testNotificationClicks()
|
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/ |
D | LayersTrace.java | 192 int id = proto.id; in fromFlattenedLayers() local 195 Layer newLayer = layerMap.get(id); in fromFlattenedLayers() 198 layerMap.append(id, newLayer); in fromFlattenedLayers() 200 throw new RuntimeException("Duplicate layer id found:" + id); in fromFlattenedLayers() 437 return mProto.id; in getId()
|
/platform_testing/tests/functional/testapks/permissiontestappmv1/src/com/android/permissontestappmv1/ |
D | MainActivity.java | 44 final Button buttonGetPermission = (Button) findViewById(R.id.buttonGetPermission); in onCreate()
|
/platform_testing/libraries/collectors-helper/statsd/src/com/android/helpers/ |
D | StatsdHelper.java | 151 private AtomMatcher.Builder getSimpleAtomMatcher(int id, int fieldId) { in getSimpleAtomMatcher() argument 153 .setId(id) in getSimpleAtomMatcher()
|
/platform_testing/libraries/collectors-helper/jank/test/src/com/android/helpers/ |
D | JankCollectionHelperTest.java | 407 private String buildMetricKey(String pkg, String id) { in buildMetricKey() argument 408 return constructKey(JankCollectionHelper.GFXINFO_METRICS_PREFIX, pkg, id); in buildMetricKey()
|
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/ |
D | AuptTestRunner.java | 640 public int onStartCommand(Intent intent, int flags, int id) {
|