/cts/tests/tests/view/src/android/view/cts/ |
D | MenuInflaterTest.java | 98 assertTrue(menu.findItem(R.id.visible_item).isVisible()); in testInflateFromXml() 99 assertEquals('a', menu.findItem(R.id.visible_item).getAlphabeticShortcut()); in testInflateFromXml() 101 assertFalse(menu.findItem(R.id.hidden_item).isVisible()); in testInflateFromXml() 102 assertEquals('b', menu.findItem(R.id.hidden_item).getAlphabeticShortcut()); in testInflateFromXml() 104 assertEquals(R.id.hidden_group, menu.findItem(R.id.hidden_by_group).getGroupId()); in testInflateFromXml() 105 assertFalse(menu.findItem(R.id.hidden_by_group).isVisible()); in testInflateFromXml() 106 assertEquals('c', menu.findItem(R.id.hidden_by_group).getAlphabeticShortcut()); in testInflateFromXml() 112 assertEquals("Start", menu.findItem(R.id.start).getTitle()); in testInflateFromXml() 113 assertIconUsingDrawableRes((BitmapDrawable) menu.findItem(R.id.start).getIcon(), in testInflateFromXml() 116 assertEquals("Pass", menu.findItem(R.id.pass).getTitle()); in testInflateFromXml() [all …]
|
D | View_FocusHandlingTest.java | 38 View v1 = activity.findViewById(R.id.view1); in testFocusHandling() 39 View v2 = activity.findViewById(R.id.view2); in testFocusHandling() 40 View v3 = activity.findViewById(R.id.view3); in testFocusHandling() 41 View v4 = activity.findViewById(R.id.view4); in testFocusHandling() 64 v1.setNextFocusRightId(R.id.view2); in testFocusHandling() 65 v1.setNextFocusDownId(R.id.view3); in testFocusHandling() 67 v2.setNextFocusLeftId(R.id.view1); in testFocusHandling() 68 v2.setNextFocusDownId(R.id.view4); in testFocusHandling() 70 v3.setNextFocusRightId(R.id.view4); in testFocusHandling() 71 v3.setNextFocusUpId(R.id.view1); in testFocusHandling() [all …]
|
D | FocusFinderCtsActivity.java | 44 layout = (ViewGroup) findViewById(R.id.layout); in onCreate() 45 topLeftButton = (Button) findViewById(R.id.top_left_button); in onCreate() 46 topRightButton = (Button) findViewById(R.id.top_right_button); in onCreate() 47 bottomLeftButton = (Button) findViewById(R.id.bottom_left_button); in onCreate() 48 bottomRightButton = (Button) findViewById(R.id.bottom_right_button); in onCreate()
|
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/ |
D | FlashlightTest.java | 52 for (String id : mCameraIds) { in setUp() 54 new StaticMetadata(mCameraManager.getCameraCharacteristics(id), in setUp() 57 mFlashCameraIdList.add(id); in setUp() 67 for (String id : mFlashCameraIdList) { in testSetTorchModeOnOff() 68 resetTorchModeStatus(id); in testSetTorchModeOnOff() 72 for (String id : mFlashCameraIdList) { in testSetTorchModeOnOff() 76 mCameraManager.setTorchMode(id, true); // should get ON in testSetTorchModeOnOff() 78 mCameraManager.setTorchMode(id, false); // should get OFF in testSetTorchModeOnOff() 82 times(2)).onTorchModeChanged(id, false); in testSetTorchModeOnOff() 87 times(1)).onTorchModeChanged(id, true); in testSetTorchModeOnOff() [all …]
|
D | ImageReaderTest.java | 100 for (String id : mCameraIds) { in testFlexibleYuv() 102 Log.i(TAG, "Testing Camera " + id); in testFlexibleYuv() 103 openDevice(id); in testFlexibleYuv() 106 closeDevice(id); in testFlexibleYuv() 112 for (String id : mCameraIds) { in testDepth16() 114 Log.i(TAG, "Testing Camera " + id); in testDepth16() 115 openDevice(id); in testDepth16() 118 closeDevice(id); in testDepth16() 124 for (String id : mCameraIds) { in testDepthPointCloud() 126 Log.i(TAG, "Testing Camera " + id); in testDepthPointCloud() [all …]
|
D | ReprocessCaptureTest.java | 90 for (String id : mCameraIds) { in testBasicYuvToYuvReprocessing() 91 if (!isYuvReprocessSupported(id)) { in testBasicYuvToYuvReprocessing() 96 testBasicReprocessing(id, ImageFormat.YUV_420_888, ImageFormat.YUV_420_888); in testBasicYuvToYuvReprocessing() 104 for (String id : mCameraIds) { in testBasicYuvToJpegReprocessing() 105 if (!isYuvReprocessSupported(id)) { in testBasicYuvToJpegReprocessing() 110 testBasicReprocessing(id, ImageFormat.YUV_420_888, ImageFormat.JPEG); in testBasicYuvToJpegReprocessing() 118 for (String id : mCameraIds) { in testBasicOpaqueToYuvReprocessing() 119 if (!isOpaqueReprocessSupported(id)) { in testBasicOpaqueToYuvReprocessing() 124 testBasicReprocessing(id, ImageFormat.PRIVATE, ImageFormat.YUV_420_888); in testBasicOpaqueToYuvReprocessing() 132 for (String id : mCameraIds) { in testBasicOpaqueToJpegReprocessing() [all …]
|
/cts/tests/tests/app/src/android/app/cts/ |
D | NotificationManagerTest.java | 56 final int id = 1; in testNotify() local 57 sendNotification(id, R.drawable.black); in testNotify() 59 sendNotification(id, R.drawable.blue); in testNotify() 60 sendNotification(id, R.drawable.yellow); in testNotify() 65 if (sbn.getId() != id) { in testNotify() 73 final int id = 9; in testCancel() local 74 sendNotification(id, R.drawable.black); in testCancel() 75 mNotificationManager.cancel(id); in testCancel() 79 assertFalse("canceled notification was still alive, id=" + id, sbn.getId() == id); in testCancel() 102 private void sendNotification(final int id, final int icon) { in sendNotification() argument [all …]
|
D | ActivityManagerRecentTaskInfoTest.java | 42 int id = 1; in testWriteToParcel() local 45 mRecentTaskInfo.id = id; in testWriteToParcel() 54 assertEquals(id, values.id); in testWriteToParcel() 61 mRecentTaskInfo.id = -1; in testWriteToParcel() 69 assertEquals(-1, values.id); in testWriteToParcel() 76 int id = 1; in testReadFromParcel() local 79 mRecentTaskInfo.id = id; in testReadFromParcel() 88 assertEquals(id, values.id); in testReadFromParcel() 95 mRecentTaskInfo.id = -1; in testReadFromParcel() 102 assertEquals(-1, values.id); in testReadFromParcel()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | LayoutDirectionTest.java | 126 R.id.layout_linearlayout_ltr, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_LTR, in testDirectionFromXml() 127 R.id.layout_linearlayout_ltr_child_1, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_LTR, in testDirectionFromXml() 128 R.id.layout_linearlayout_ltr_child_2, LAYOUT_DIRECTION_RTL, LAYOUT_DIRECTION_RTL, in testDirectionFromXml() 130 … R.id.layout_linearlayout_ltr_child_3, LAYOUT_DIRECTION_INHERIT, LAYOUT_DIRECTION_LTR, in testDirectionFromXml() 132 … R.id.layout_linearlayout_ltr_child_4, LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR); in testDirectionFromXml() 135 R.id.layout_linearlayout_rtl, LAYOUT_DIRECTION_RTL, LAYOUT_DIRECTION_RTL, in testDirectionFromXml() 136 R.id.layout_linearlayout_rtl_child_1, LAYOUT_DIRECTION_LTR, LAYOUT_DIRECTION_LTR, in testDirectionFromXml() 137 R.id.layout_linearlayout_rtl_child_2, LAYOUT_DIRECTION_RTL, LAYOUT_DIRECTION_RTL, in testDirectionFromXml() 139 … R.id.layout_linearlayout_rtl_child_3, LAYOUT_DIRECTION_INHERIT, LAYOUT_DIRECTION_RTL, in testDirectionFromXml() 141 … R.id.layout_linearlayout_rtl_child_4, LAYOUT_DIRECTION_LOCALE, LAYOUT_DIRECTION_LTR); in testDirectionFromXml() [all …]
|
D | RelativeLayout_LayoutParamsTest.java | 59 R.id.relative_sublayout_attrs); in testConstructor() 63 View view1 = activity.findViewById(R.id.relative_view1); in testConstructor() 72 View view2 = activity.findViewById(R.id.relative_view2); in testConstructor() 77 assertEquals(R.id.relative_view1, rules[RelativeLayout.BELOW]); in testConstructor() 78 assertEquals(R.id.relative_view1, rules[RelativeLayout.ALIGN_LEFT]); in testConstructor() 83 View view3 = activity.findViewById(R.id.relative_view3); in testConstructor() 89 assertEquals(R.id.relative_view1, rules[RelativeLayout.ALIGN_TOP]); in testConstructor() 90 assertEquals(R.id.relative_view2, rules[RelativeLayout.ALIGN_BOTTOM]); in testConstructor() 91 assertEquals(R.id.relative_view1, rules[RelativeLayout.RIGHT_OF]); in testConstructor() 95 View view4 = activity.findViewById(R.id.relative_view4); in testConstructor() [all …]
|
D | RemoteViewsTest.java | 118 View view = mResult.findViewById(R.id.remoteView_chronometer); in testSetViewVisibility() 121 mRemoteViews.setViewVisibility(R.id.remoteView_chronometer, View.INVISIBLE); in testSetViewVisibility() 125 mRemoteViews.setViewVisibility(R.id.remoteView_chronometer, View.GONE); in testSetViewVisibility() 129 mRemoteViews.setViewVisibility(R.id.remoteView_chronometer, View.VISIBLE); in testSetViewVisibility() 135 TextView textView = (TextView) mResult.findViewById(R.id.remoteView_text); in testSetTextViewText() 139 mRemoteViews.setTextViewText(R.id.remoteView_text, expected); in testSetTextViewText() 143 mRemoteViews.setTextViewText(R.id.remoteView_text, null); in testSetTextViewText() 147 mRemoteViews.setTextViewText(R.id.remoteView_absolute, ""); in testSetTextViewText() 157 ImageView image = (ImageView) mResult.findViewById(R.id.remoteView_image); in testSetIcon() 161 mRemoteViews.setIcon(R.id.remoteView_image, "setImageIcon", iconBlack); in testSetIcon() [all …]
|
D | RemoteViewsActivityTest.java | 55 ViewGroup parent = (ViewGroup) mActivity.findViewById(R.id.remoteView_host); in testGood() 61 assertTrue("LinearLayout not inflated", result.findViewById(R.id.linear) != null); in testGood() 62 assertTrue("TextView not inflated", result.findViewById(R.id.text) != null); in testGood() 63 assertTrue("ImageView not inflated", result.findViewById(R.id.image) != null); in testGood() 64 assertTrue("FrameLayout not inflated", result.findViewById(R.id.frame) != null); in testGood() 65 assertTrue("RelateiveLayout not inflated", result.findViewById(R.id.relative) != null); in testGood() 66 assertTrue("AbsoluteLayout not inflated", result.findViewById(R.id.absolute) != null); in testGood() 67 assertTrue("ProgressBar not inflated", result.findViewById(R.id.progress) != null); in testGood() 68 assertTrue("ImageButton not inflated", result.findViewById(R.id.image_button) != null); in testGood() 69 assertTrue("Button not inflated", result.findViewById(R.id.button) != null); in testGood() [all …]
|
D | AdapterView_AdapterContextMenuInfoTest.java | 30 long id = 0xffL; in testConstructor() local 31 menuInfo = new AdapterView.AdapterContextMenuInfo(testView, position, id); in testConstructor() 34 assertEquals(id, menuInfo.id); in testConstructor()
|
/cts/suite/cts/deviceTests/browserbench/assets/octane/ |
D | richards.js | 126 Scheduler.prototype.addIdleTask = function (id, priority, queue, count) { argument 127 this.addRunningTask(id, priority, queue, new IdleTask(this, 1, count)); 136 Scheduler.prototype.addWorkerTask = function (id, priority, queue) { argument 137 this.addTask(id, priority, queue, new WorkerTask(this, ID_HANDLER_A, 0)); 146 Scheduler.prototype.addHandlerTask = function (id, priority, queue) { argument 147 this.addTask(id, priority, queue, new HandlerTask(this)); 156 Scheduler.prototype.addDeviceTask = function (id, priority, queue) { argument 157 this.addTask(id, priority, queue, new DeviceTask(this)) 167 Scheduler.prototype.addRunningTask = function (id, priority, queue, task) { argument 168 this.addTask(id, priority, queue, task); [all …]
|
/cts/tests/app/src/android/app/cts/ |
D | LocalActivityManagerTestHelper.java | 89 final String id = "id_remove_activity"; in testRemoveAllActivity() local 92 mLocalActivityManager.startActivity(id, intent); in testRemoveAllActivity() 94 Activity activity = mLocalActivityManager.getActivity(id); in testRemoveAllActivity() 107 activity = mLocalActivityManager.getActivity(id); in testRemoveAllActivity() 159 final String id = "id_dispatch_pause"; in testSaveInstanceState() local 162 mLocalActivityManager.startActivity(id, intent); in testSaveInstanceState() 178 final String id = "id_dispatch_pause"; in testDispatchPauseFalse() local 181 mLocalActivityManager.startActivity(id, intent); in testDispatchPauseFalse() 192 final String id = "id_dispatch_pause"; in testDispatchPauseTrue() local 195 mLocalActivityManager.startActivity(id, intent); in testDispatchPauseTrue() [all …]
|
/cts/suite/audio_quality/lib/src/task/ |
D | TaskDownload.cpp | 41 android::String8 id; in run() local 42 if (!findStringAttribute(STR_ID, id)) { in run() 47 android::sp<Buffer> buffer = getTestCase()->findBuffer(id); in run() 49 LOGE("TaskDownload::run cannot find buffer %s", id.string()); in run() 53 if (!getTestCase()->getRemoteAudio()->downloadData(id, buffer, downloadId)) { in run() 56 LOGI("Downloaded buffer %s to DUT with id %d", id.string(), downloadId); in run()
|
/cts/tests/uiautomator/test-apps/CtsUiAutomatorApp/src/com/android/cts/uiautomator/ |
D | MainActivity.java | 40 if (findViewById(R.id.test_detail_container) != null) { in onCreate() 42 ((TestListFragment) getSupportFragmentManager().findFragmentById(R.id.item_list)) in onCreate() 48 public void onItemSelected(String id) { in onItemSelected() argument 50 Fragment fragment = TestItems.getFragment(id); in onItemSelected() 52 .replace(R.id.test_detail_container, fragment).commit(); in onItemSelected() 55 detailIntent.putExtra("item_id", id); in onItemSelected()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | BleScannerPowerLevelActivity.java | 64 mTimerText = (TextView)findViewById(R.id.ble_timer); in onCreate() 91 (TextView)findViewById(R.id.ble_ultra_low_mac)); in onCreate() 93 (TextView)findViewById(R.id.ble_low_mac)); in onCreate() 95 (TextView)findViewById(R.id.ble_medium_mac)); in onCreate() 97 (TextView)findViewById(R.id.ble_high_mac)); in onCreate() 100 (TextView)findViewById(R.id.ble_ultra_low_count)); in onCreate() 102 (TextView)findViewById(R.id.ble_low_count)); in onCreate() 104 (TextView)findViewById(R.id.ble_medium_count)); in onCreate() 106 (TextView)findViewById(R.id.ble_high_count)); in onCreate() 109 (TextView)findViewById(R.id.ble_ultra_low_rssi)); in onCreate() [all …]
|
/cts/tests/tests/hardware/src/android/hardware/cts/ |
D | CameraTest.java | 379 for (int id = 0; id < nCameras; id++) { in testTakePicture() 380 Log.v(TAG, "Camera id=" + id); in testTakePicture() 381 initializeMessageLooper(id); in testTakePicture() 424 for (int id = 0; id < nCameras; id++) { in testPreviewCallback() 425 Log.v(TAG, "Camera id=" + id); in testPreviewCallback() 426 testPreviewCallbackByCamera(id); in testPreviewCallback() 468 for (int id = 0; id < nCameras; id++) { in testSetOneShotPreviewCallback() 469 Log.v(TAG, "Camera id=" + id); in testSetOneShotPreviewCallback() 470 testSetOneShotPreviewCallbackByCamera(id); in testSetOneShotPreviewCallback() 491 for (int id = 0; id < nCameras; id++) { in testSetPreviewDisplay() [all …]
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | SendToClientBlockingTest.java | 57 int id = random.nextInt(10); in testSendToClientBlocking1Params() local 60 mScript.set_ID(id); in testSendToClientBlocking1Params() 70 resultId == id); in testSendToClientBlocking1Params() 75 int id = random.nextInt(10); in testSendToClientBlocking3Params() local 79 mScript.set_ID(id); in testSendToClientBlocking3Params() 90 "The data is:" + data, resultId == id && resultData == data); in testSendToClientBlocking3Params()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | CameraProfileTest.java | 48 for (int id = 0; id < nCamera; id++) { in testGetWithId() 49 int low = CameraProfile.getJpegEncodingQualityParameter(id, CameraProfile.QUALITY_LOW); in testGetWithId() 50 … int mid = CameraProfile.getJpegEncodingQualityParameter(id, CameraProfile.QUALITY_MEDIUM); in testGetWithId() 51 … int high = CameraProfile.getJpegEncodingQualityParameter(id, CameraProfile.QUALITY_HIGH); in testGetWithId()
|
/cts/apps/NotificationBot/src/com/android/cts/robot/ |
D | NotificationBot.java | 43 int id = intent.getIntExtra(EXTRA_ID, -1); in onReceive() local 44 Log.i(TAG, "id: " + id); in onReceive() 49 noMa.notify(id, n); in onReceive() 53 int id = intent.getIntExtra(EXTRA_ID, -1); in onReceive() local 54 Log.i(TAG, "id: " + id); in onReceive() 55 if (id < 0) { in onReceive() 61 noMa.cancel(id); in onReceive()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | AudioRoutingNotificationsActivity.java | 61 case R.id.audio_routingnotification_playBtn: in onClick() 66 case R.id.audio_routingnotification_playStopBtn: in onClick() 71 case R.id.audio_routingnotification_recordBtn: in onClick() 74 case R.id.audio_routingnotification_recordStopBtn: in onClick() 84 (TextView)findViewById(R.id.audio_routingnotification_audioTrack_change); in onRoutingChanged() 100 (TextView)findViewById(R.id.audio_routingnotification_audioRecord_change); in onRoutingChanged() 118 btn = (Button)findViewById(R.id.audio_routingnotification_playBtn); in onCreate() 120 btn = (Button)findViewById(R.id.audio_routingnotification_playStopBtn); in onCreate() 122 btn = (Button)findViewById(R.id.audio_routingnotification_recordBtn); in onCreate() 124 btn = (Button)findViewById(R.id.audio_routingnotification_recordStopBtn); in onCreate()
|
/cts/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityWindowQueryActivity.java | 37 findViewById(R.id.button5).setOnClickListener(new View.OnClickListener() { in onCreate() 42 findViewById(R.id.button5).setOnLongClickListener(new View.OnLongClickListener() { in onCreate() 48 findViewById(R.id.button5).setAccessibilityDelegate(new View.AccessibilityDelegate() { in onCreate() 52 info.addAction(new AccessibilityAction(R.id.foo_custom_action, "Foo")); in onCreate() 57 if (action == R.id.foo_custom_action) { in onCreate()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/widget/ |
D | WidgetCtsProvider.java | 148 int id = appWidgetIds[i]; in onUpdate() local 149 if (!sStateMap.containsKey(id)) { in onUpdate() 150 sStateMap.put(id, STATE_BEGIN); in onUpdate() 246 rv.setTextViewText(R.id.instruction, text.instruction); in updateWidget() 250 rv.setTextViewText(R.id.title, text.title); in updateWidget() 260 rv.setViewVisibility(R.id.list, View.VISIBLE); in updateWidget() 261 rv.setRemoteAdapter(appWidgetId, R.id.list, intent); in updateWidget() 263 rv.setViewVisibility(R.id.list, View.GONE); in updateWidget() 267 rv.setViewVisibility(R.id.fail, View.GONE); in updateWidget() 268 rv.setTextViewText(R.id.pass, "Start Test"); in updateWidget() [all …]
|