/packages/apps/Settings/tests/robotests/src/com/android/settings/search/ |
D | IntentSearchViewHolderTest.java | 76 private IntentSearchViewHolder mHolder; field in IntentSearchViewHolderTest 88 mHolder = new IntentSearchViewHolder(view); in setUp() 97 assertThat(mHolder.titleView).isNotNull(); in testConstructor_membersNotNull() 98 assertThat(mHolder.summaryView).isNotNull(); in testConstructor_membersNotNull() 99 assertThat(mHolder.iconView).isNotNull(); in testConstructor_membersNotNull() 100 assertThat(mHolder.breadcrumbView).isNotNull(); in testConstructor_membersNotNull() 106 mHolder.onBind(mFragment, result); in testBindViewElements_allUpdated() 107 mHolder.itemView.performClick(); in testBindViewElements_allUpdated() 109 assertThat(mHolder.titleView.getText()).isEqualTo(TITLE); in testBindViewElements_allUpdated() 110 assertThat(mHolder.summaryView.getText()).isEqualTo(SUMMARY); in testBindViewElements_allUpdated() [all …]
|
D | InlineSwitchViewHolderTest.java | 61 private InlineSwitchViewHolder mHolder; field in InlineSwitchViewHolderTest 72 mHolder = new InlineSwitchViewHolder( in setUp() 75 ReflectionHelpers.setField(mHolder, "mMetricsFeatureProvider", in setUp() 81 assertThat(mHolder.titleView).isNotNull(); in testConstructor_MembersNotNull() 82 assertThat(mHolder.summaryView).isNotNull(); in testConstructor_MembersNotNull() 83 assertThat(mHolder.iconView).isNotNull(); in testConstructor_MembersNotNull() 84 assertThat(mHolder.switchView).isNotNull(); in testConstructor_MembersNotNull() 91 mHolder.onBind(mFragment, result); in testBindViewElements_AllUpdated() 93 assertThat(mHolder.switchView.isChecked()).isTrue(); in testBindViewElements_AllUpdated() 95 mHolder.switchView.performClick(); in testBindViewElements_AllUpdated() [all …]
|
D | SavedQueryViewHolderTest.java | 47 private SavedQueryViewHolder mHolder; field in SavedQueryViewHolderTest 58 mHolder = new SavedQueryViewHolder(mView); in setUp() 64 mHolder.onBind(mSearchFragment, result); in onBind_shouldBindClickCallback() 66 mHolder.itemView.performClick(); in onBind_shouldBindClickCallback()
|
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/ |
D | CollapsibleCheckboxPreferenceGroupTest.java | 45 private PreferenceViewHolder mHolder; field in CollapsibleCheckboxPreferenceGroupTest 61 mHolder = PreferenceViewHolder.createInstanceForTests(view); in setUp() 66 mPreference.onBindViewHolder(mHolder); in testItemVisibilityBeforeLoaded() 68 assertThat(mHolder.findViewById(R.id.progress_bar).getVisibility()).isEqualTo(View.VISIBLE); in testItemVisibilityBeforeLoaded() 69 assertThat(mHolder.findViewById(android.R.id.icon).getVisibility()).isEqualTo(View.GONE); in testItemVisibilityBeforeLoaded() 70 assertThat(mHolder.findViewById(android.R.id.widget_frame).getVisibility()) in testItemVisibilityBeforeLoaded() 81 mPreference.onBindViewHolder(mHolder); in testItemVisibilityAfterLoaded() 84 assertThat(mHolder.findViewById(R.id.progress_bar).getVisibility()).isEqualTo(View.GONE); in testItemVisibilityAfterLoaded() 85 assertThat(mHolder.findViewById(android.R.id.icon).getVisibility()).isEqualTo(View.GONE); in testItemVisibilityAfterLoaded() 86 assertThat(mHolder.findViewById(android.R.id.widget_frame).getVisibility()) in testItemVisibilityAfterLoaded() [all …]
|
D | PhotosDeletionPreferenceTest.java | 44 private PreferenceViewHolder mHolder; field in PhotosDeletionPreferenceTest 62 mHolder = PreferenceViewHolder.createInstanceForTests(view); in setUp() 73 mPreference.onBindViewHolder(mHolder); in testItemVisibilityBeforeLoaded() 74 assertThat(mHolder.findViewById(R.id.progress_bar).getVisibility()).isEqualTo(View.VISIBLE); in testItemVisibilityBeforeLoaded() 75 assertThat(mHolder.findViewById(android.R.id.icon).getVisibility()).isEqualTo(View.GONE); in testItemVisibilityBeforeLoaded() 76 assertThat(mHolder.findViewById(android.R.id.widget_frame).getVisibility()) in testItemVisibilityBeforeLoaded() 85 mPreference.onBindViewHolder(mHolder); in testItemVisibilityAfterLoaded() 88 assertThat(mHolder.findViewById(R.id.progress_bar).getVisibility()).isEqualTo(View.GONE); in testItemVisibilityAfterLoaded() 89 assertThat(mHolder.findViewById(android.R.id.icon).getVisibility()).isEqualTo(View.GONE); in testItemVisibilityAfterLoaded() 90 assertThat(mHolder.findViewById(android.R.id.checkbox).getVisibility()) in testItemVisibilityAfterLoaded() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
D | DataPlanSummaryPreferenceTest.java | 56 private PreferenceViewHolder mHolder; field in DataPlanSummaryPreferenceTest 67 mHolder = PreferenceViewHolder.createInstanceForTests(view); in setUp() 77 mPreference.onBindViewHolder(mHolder); in shouldRender_withoutData() 79 TextView planUsageTextView = (TextView) mHolder.findViewById(android.R.id.title); in shouldRender_withoutData() 81 TextView planNameTextView = (TextView) mHolder.findViewById(android.R.id.text1); in shouldRender_withoutData() 83 TextView planDescriptionTextView = (TextView) mHolder.findViewById(android.R.id.text2); in shouldRender_withoutData() 97 mPreference.onBindViewHolder(mHolder); in shouldRender_withData() 99 TextView planUsageTextView = (TextView) mHolder.findViewById(android.R.id.title); in shouldRender_withData() 104 TextView planNameTextView = (TextView) mHolder.findViewById(android.R.id.text1); in shouldRender_withData() 107 TextView planDescriptionTextView = (TextView) mHolder.findViewById(android.R.id.text2); in shouldRender_withData() [all …]
|
D | ManageDataPlansPreferenceTest.java | 41 private PreferenceViewHolder mHolder; field in ManageDataPlansPreferenceTest 52 mHolder = PreferenceViewHolder.createInstanceForTests(view); in setUp() 57 mPreference.onBindViewHolder(mHolder); in shouldRender_withData() 58 Button managePlanButton = (Button) mHolder.findViewById(R.id.manage_data_plans); in shouldRender_withData()
|
D | DataPlansSyncTimePreferenceTest.java | 43 private PreferenceViewHolder mHolder; field in DataPlansSyncTimePreferenceTest 54 mHolder = PreferenceViewHolder.createInstanceForTests(view); in setUp() 61 mPreference.onBindViewHolder(mHolder); in shouldRender_withData() 63 TextView syncTimeTextView = (TextView) mHolder.findViewById(android.R.id.title); in shouldRender_withData()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | LayoutPreferenceTest.java | 46 private PreferenceViewHolder mHolder; field in LayoutPreferenceTest 53 mHolder = PreferenceViewHolder.createInstanceForTests(LayoutInflater.from(mContext) in setUp() 62 mPreference.onBindViewHolder(mHolder); in setOnClickListener_shouldAttachToRootView() 64 mHolder.itemView.callOnClick(); in setOnClickListener_shouldAttachToRootView() 67 assertThat(mHolder.itemView.isFocusable()).isTrue(); in setOnClickListener_shouldAttachToRootView() 68 assertThat(mHolder.itemView.isClickable()).isTrue(); in setOnClickListener_shouldAttachToRootView() 74 mPreference.onBindViewHolder(mHolder); in setNonSelectable_viewShouldNotBeSelectable() 76 assertThat(mHolder.itemView.isFocusable()).isFalse(); in setNonSelectable_viewShouldNotBeSelectable() 77 assertThat(mHolder.itemView.isClickable()).isFalse(); in setNonSelectable_viewShouldNotBeSelectable() 85 mPreference.onBindViewHolder(mHolder); in disableSomeView_shouldMaintainStateAfterBind()
|
D | PhotosViewHolderControllerTest.java | 43 private AppViewHolder mHolder; field in PhotosViewHolderControllerTest 55 mHolder = AppViewHolder.createOrRecycle(inflater, null); in setUp() 60 mController.setupView(mHolder); in storageShouldBeZeroBytesIfQueriedBeforeStorageQueryFinishes() 62 assertThat(mHolder.summary.getText().toString()).isEqualTo("0.00B"); in storageShouldBeZeroBytesIfQueriedBeforeStorageQueryFinishes() 71 mController.setupView(mHolder); in storageShouldRepresentStorageStatsQuery() 73 assertThat(mHolder.summary.getText().toString()).isEqualTo("11.00B"); in storageShouldRepresentStorageStatsQuery()
|
D | MusicViewHolderControllerTest.java | 62 private AppViewHolder mHolder; field in MusicViewHolderControllerTest 73 mHolder = AppViewHolder.createOrRecycle(inflater, null); in setUp() 78 mController.setupView(mHolder); in storageShouldBeZeroBytesIfQueriedBeforeStorageQueryFinishes() 80 assertThat(mHolder.summary.getText().toString()).isEqualTo("0.00B"); in storageShouldBeZeroBytesIfQueriedBeforeStorageQueryFinishes() 89 mController.setupView(mHolder); in storageShouldRepresentStorageStatsQuery() 91 assertThat(mHolder.summary.getText().toString()).isEqualTo("1.00B"); in storageShouldRepresentStorageStatsQuery()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/ |
D | SummaryPreferenceTest.java | 46 private PreferenceViewHolder mHolder; field in SummaryPreferenceTest 58 mHolder = PreferenceViewHolder.createInstanceForTests(view); in setUp() 64 mPreference.onBindViewHolder(mHolder); in disableChart_shouldNotRender() 67 TextUtils.isEmpty(((TextView) mHolder.findViewById(android.R.id.text1)).getText())); in disableChart_shouldNotRender() 69 TextUtils.isEmpty(((TextView) mHolder.findViewById(android.R.id.text2)).getText())); in disableChart_shouldNotRender() 78 mPreference.onBindViewHolder(mHolder); in enableChart_shouldRender() 81 ((TextView) mHolder.findViewById(android.R.id.text1)).getText()); in enableChart_shouldRender() 83 ((TextView) mHolder.findViewById(android.R.id.text2)).getText()); in enableChart_shouldRender()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/ |
D | DocumentHolderTest.java | 37 DocumentHolder mHolder; field in DocumentHolderTest 44 mHolder = new DocumentHolder(getContext(), inflater.inflate(R.layout.item_doc_list, null)) { in setUp() 50 mHolder.addKeyEventListener(mListener); in setUp() 52 mHolder.itemView.requestLayout(); in setUp() 53 mHolder.itemView.invalidate(); in setUp() 79 mHolder.itemView.getHitRect(rect); in createEvent()
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | ThumbnailLoadTask.java | 47 private final AttachmentBitmapHolder mHolder; field in ThumbnailLoadTask 90 mHolder = holder; in ThumbnailLoadTask() 115 fd = mHolder.getResolver().openAssetFileDescriptor(thumbnailUri, "r"); in loadBitmap() 172 final ContentResolver resolver = mHolder.getResolver(); in getOrientation() 195 mHolder.thumbnailLoadFailed(); in onPostExecute() 201 mHolder.setThumbnail(result); in onPostExecute()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/ |
D | FixedLineSummaryPreferenceTest.java | 48 private PreferenceViewHolder mHolder; field in FixedLineSummaryPreferenceTest 60 mHolder = spy(PreferenceViewHolder.createInstanceForTests(view)); in setUp() 61 when(mHolder.findViewById(android.R.id.summary)).thenReturn(mSummary); in setUp() 66 mPreference.onBindViewHolder(mHolder); in onBindViewHolder_shouldSetSingleLine() 75 mPreference.onBindViewHolder(mHolder); in onBindViewHolder_TwoLineSummary_shouldSetTwoLines()
|
/packages/experimental/CameraPreviewTest/src/com/example/android/videochatcameratest/ |
D | CameraPreviewView.java | 12 public SurfaceHolder mHolder; field in CameraPreviewView 28 mHolder = getHolder(); in CameraPreviewView() 29 mHolder.addCallback(this); in CameraPreviewView() 30 mHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); in CameraPreviewView()
|
D | VideoChatTestActivity.java | 327 camera.setPreviewDisplay(previewView.mHolder); in TestCamera()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/ |
D | StorageSummaryDonutPreferenceControllerTest.java | 68 private PreferenceViewHolder mHolder; field in StorageSummaryDonutPreferenceControllerTest 87 mHolder = PreferenceViewHolder.createInstanceForTests(view); in setUp() 132 mPreference.onBindViewHolder(mHolder); in testFreeUpSpaceMetricIsTriggered() 133 Button button = (Button) mHolder.findViewById(R.id.deletion_helper_button); in testFreeUpSpaceMetricIsTriggered()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | RunningProcessesView.java | 99 ViewHolder mHolder; field in RunningProcessesView.ActiveItem 109 uptimeView = mHolder.size; in updateTime() 115 mHolder.size.setText(size); in updateTime() 122 mHolder.uptime.setText(""); in updateTime() 127 uptimeView = mHolder.uptime; in updateTime() 190 ai.mHolder = this; in bind()
|
D | RunningServiceDetails.java | 473 mSnippetActiveItem.mHolder.size.setText(""); 474 mSnippetActiveItem.mHolder.uptime.setText(""); 475 mSnippetActiveItem.mHolder.description.setText(R.string.no_services);
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/ |
D | LinkablePreferenceTest.java | 49 private PreferenceViewHolder mHolder; field in LinkablePreferenceTest 65 mHolder = PreferenceViewHolder.createInstanceForTests(mView); in setUp() 67 mPreference.onBindViewHolder(mHolder); in setUp()
|