Searched refs:get (Results 226 - 250 of 2683) sorted by relevance

1234567891011>>

/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/
H A DDiagnosticJson.java74 T get() { method in class:DiagnosticJson.Builder.WriteOnce
76 return mValue.get();
79 T get(T defaultValue) { method in class:DiagnosticJson.Builder.WriteOnce
80 return mValue.isPresent() ? mValue.get() : defaultValue;
153 mType.get(), mTimestamp.get(), mIntValues, mFloatValues, mDtc.get(null));
/packages/apps/Contacts/src/com/android/contacts/editor/
H A DEventFieldEditorView.java121 final EditField editField = getKind().fieldList.get(0);
138 final EditField editField = getKind().fieldList.get(0);
162 final String column = getKind().fieldList.get(0).column;
167 final int defaultYear = calendar.get(Calendar.YEAR);
182 calendar.set(defaultYear, calendar.get(Calendar.MONTH),
183 calendar.get(Calendar.DAY_OF_MONTH), CommonDateUtils.DEFAULT_HOUR, 0, 0);
198 final String column = getKind().fieldList.get(0).column;
203 final int defaultYear = calendar.get(Calendar.YEAR);
213 oldMonth = calendar.get(Calendar.MONTH);
214 oldDay = calendar.get(Calenda
[all...]
/packages/apps/Settings/tests/robotests/src/com/android/settings/fingerprint/
H A DSetupFingerprintEnrollIntroductionTest.java105 final Button skipButton = mController.get().findViewById(R.id.fingerprint_cancel_button);
109 ShadowActivity shadowActivity = Shadows.shadowOf(mController.get());
110 assertThat(mController.get().isFinishing()).named("Is finishing").isTrue();
121 final Button skipButton = mController.get().findViewById(R.id.fingerprint_cancel_button);
125 ShadowActivity shadowActivity = Shadows.shadowOf(mController.get());
126 assertThat(mController.get().isFinishing()).named("Is finishing").isTrue();
137 SetupFingerprintEnrollIntroduction activity = mController.get();
151 SetupFingerprintEnrollIntroduction activity = mController.get();
162 SetupFingerprintEnrollIntroduction activity = mController.create().resume().get();
177 SetupFingerprintEnrollIntroduction activity = mController.create().resume().get();
[all...]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/common/
H A DResizableIntArrayTests.java61 assertEquals("value at " + i, value, src.get(i));
75 assertEquals("value at " + i, value, src.get(i));
82 src.get(0);
83 fail("get(0) shouldn't succeed");
88 src.get(DEFAULT_CAPACITY);
89 fail("get(DEFAULT_CAPACITY) shouldn't succeed");
98 assertEquals("value after add at " + index, valueAddAt, src.get(index));
99 assertEquals("value after add at 0", 0, src.get(0));
101 src.get(src.getLength());
102 fail("get(lengt
[all...]
/packages/apps/Contacts/tests/src/com/android/contacts/model/dataitem/
H A DDataItemTests.java105 assertEquals(true, dataList.get(0).isSuperPrimary());
106 assertEquals(true, dataList.get(0).isPrimary());
107 assertEquals(9, (int) dataList.get(0).getTimesUsed());
108 assertEquals(999L, (long) dataList.get(0).getLastTimeUsed());
109 assertEquals(1, dataList.get(0).getKindTypeColumn(kind));
134 assertEquals(email1, ((EmailDataItem) dataList.get(0)).getAddress());
135 assertEquals(email2, ((EmailDataItem) dataList.get(1)).getAddress());
137 ((EmailDataItem) dataList.get(0)).getKindTypeColumn(kind));
171 assertEquals(customLabel1, ((EventDataItem) dataList.get(0)).getLabel());
172 assertEquals(customLabel2, ((EventDataItem) dataList.get(
[all...]
/packages/apps/Contacts/tests/src/com/android/contacts/model/
H A DRawContactDeltaTests.java189 final CPOWrapper cpoWrapper = diff.get(0);
193 final CPOWrapper cpoWrapper = diff.get(1);
199 final CPOWrapper cpoWrapper = diff.get(2);
205 final CPOWrapper cpoWrapper = diff.get(3);
232 final CPOWrapper cpoWrapper = diff.get(0);
236 final CPOWrapper cpoWrapper = diff.get(1);
242 final CPOWrapper cpoWrapper = diff.get(2);
248 final CPOWrapper cpoWrapper = diff.get(3);
254 final CPOWrapper cpoWrapper = diff.get(4);
275 final CPOWrapper cpoWrapper = diff.get(
[all...]
H A DAccountWithDataSetTest.java81 assertEquals(a1, listA.get(0));
86 assertEquals(a2, listB.get(0));
87 assertEquals(a1, listB.get(1));
92 assertEquals(a3, listC.get(0));
93 assertEquals(a2, listC.get(1));
94 assertEquals(a1, listC.get(2));
/packages/apps/Camera2/src/com/android/camera/captureintent/state/
H A DStateStartingPreview.java115 mResourceSurfaceTexture.get().setPreviewLayoutSize(event.getLayoutSize());
126 mResourceConstructed.get().getMainThread().execute(new Runnable() {
129 mResourceConstructed.get().getModuleUI().onPreviewStarted();
159 final List<Size> supportedPreviewSizes = mResourceOpenedCamera.get()
166 mResourceConstructed.get().getResolutionSetting().getPictureAspectRatio(
167 mResourceOpenedCamera.get().getCameraId(),
168 mResourceOpenedCamera.get().getCameraFacing());
175 // another way to get the correct preview size.
186 mResourceSurfaceTexture.get().setPreviewSize(previewSize);
203 mResourceOpenedCamera.get()
[all...]
H A DStateOpeningCamera.java147 mResourceConstructed.get().getMainThread().execute(new Runnable() {
150 mResourceConstructed.get().getModuleUI().applyModuleSpecs(
189 mPictureSize = mResourceConstructed.get().getResolutionSetting().getPictureSize(
193 mResourceConstructed.get().getAppController().getSettingsManager(),
203 mResourceConstructed.get().getOrientationManager(), mCameraCharacteristics);
205 mResourceConstructed.get().getOneCameraOpener().open(
208 mResourceConstructed.get().getCameraHandler(),
209 mResourceConstructed.get().getMainThread(),
211 mResourceConstructed.get().getBurstFacade(),
212 mResourceConstructed.get()
[all...]
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
H A DTaskJpegEncode.java81 ByteBuffer y_buffer = planeList.get(0).getBuffer();
82 ByteBuffer u_buffer = planeList.get(1).getBuffer();
83 ByteBuffer v_buffer = planeList.get(2).getBuffer();
106 ByteBuffer y_buffer = planeList.get(0).getBuffer();
107 ByteBuffer u_buffer = planeList.get(1).getBuffer();
108 ByteBuffer v_buffer = planeList.get(2).getBuffer();
109 final int color_pixel_stride = planeList.get(1).getPixelStride();
115 dataCopy[i] = (byte) (y_buffer.get(i) & 255);
119 dataCopy[data_offset + 2 * i] = v_buffer.get(i * color_pixel_stride);
120 dataCopy[data_offset + 2 * i + 1] = u_buffer.get(
[all...]
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/error/
H A DVoicemailErrorMessage.java132 Logger.get(context)
148 Logger.get(context)
151 VoicemailComponent.get(context)
165 Logger.get(context).logImpression(DialerImpression.Type.VVM_CALL_VOICEMAIL_CLICKED);
179 Logger.get(context).logImpression(DialerImpression.Type.VVM_USER_SYNC);
194 Logger.get(context).logImpression(DialerImpression.Type.VVM_USER_RETRY);
216 VoicemailComponent.get(context)
219 Logger.get(context).logImpression(impressionToLog);
242 VoicemailComponent.get(context)
245 Logger.get(contex
[all...]
/packages/apps/DocumentsUI/src/com/android/documentsui/
H A DThumbnailCache.java71 sizeMap = mSizeIndex.get(uri);
78 Pair<Uri, Point> cacheKey = sizeMap.get(size);
80 Entry entry = mCache.get(cacheKey);
89 cacheKey = sizeMap.get(otherSize);
92 Entry entry = mCache.get(cacheKey);
102 cacheKey = sizeMap.get(otherSize);
105 Entry entry = mCache.get(cacheKey);
128 sizeMap = mSizeIndex.get(uri);
149 sizeMap = mSizeIndex.get(uri);
165 sizeMap = mSizeIndex.get(ur
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DFilterDeleteSet.java122 Deletion d = mCurrent.get(i);
128 Deletion d = mCurrent.get(j);
132 // Now get enough to cover deleted items in [start, end]
137 Deletion d = mCurrent.get(m);
153 Request r = mRequests.get(i);
160 if (mCurrent.get(j).path == r.path) break;
171 if (mCurrent.get(j).path == r.path) {
191 int minIndex = mCurrent.get(0).index;
194 Deletion d = mCurrent.get(i);
205 MediaItem item = items.get(
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
H A DKeyStylesSet.java102 final Object value = mStyleAttributes.get(index);
107 final KeyStyle parentStyle = mStyles.get(mParentStyleName);
117 final Object value = mStyleAttributes.get(index);
121 final KeyStyle parentStyle = mStyles.get(mParentStyleName);
130 final Object value = mStyleAttributes.get(index);
134 final KeyStyle parentStyle = mStyles.get(mParentStyleName);
140 final int parentFlags = mStyles.get(mParentStyleName).getFlags(a, index);
141 final Integer value = (Integer)mStyleAttributes.get(index);
175 final Integer value = (Integer)mStyleAttributes.get(index);
224 final KeyStyle style = mStyles.get(styleNam
[all...]
H A DPointerTrackerQueue.java72 final Element element = expandableArray.get(index);
91 return (mArraySize == 0) ? null : mExpandableArrayOfActivePointers.get(0);
104 final Element element = expandableArray.get(index);
121 final Element element = expandableArray.get(index);
131 expandableArray.set(newIndex, expandableArray.get(index));
156 final Element element = expandableArray.get(index);
182 final Element element = expandableArray.get(index);
199 final Element element = expandableArray.get(index);
216 final Element element = expandableArray.get(index);
229 final Element element = expandableArray.get(inde
[all...]
/packages/apps/Settings/src/com/android/settings/dashboard/conditional/
H A DConditionManager.java77 mConditions.get(i).refreshState();
130 if (mConditions.get(i).saveState(bundle)) {
132 final String clz = mConditions.get(i).getClass().getSimpleName();
202 if (clz.equals(conditions.get(i).getClass())) {
203 return (T) conditions.get(i);
217 if (mConditions.get(i).shouldShow()) {
218 conditions.add(mConditions.get(i));
229 mListeners.get(i).onConditionsChanged();
245 mConditions.get(i).onResume();
252 mConditions.get(
278 public static ConditionManager get(Context context) { method in class:ConditionManager
282 public static ConditionManager get(Context context, boolean loadConditionsNow) { method in class:ConditionManager
[all...]
/packages/services/Car/service/src/com/android/car/hal/
H A DSensorHalService.java112 config = mSensorToPropConfig.get(CarSensorManager.SENSOR_TYPE_WHEEL_TICK_DISTANCE);
115 Log.e(TAG, "init: unable to get property config for SENSOR_TYPE_WHEEL_TICK_DISTANCE");
118 mMicrometersPerWheelTick[i] = config.configArray.get(i +
172 mgrValue = mMgrGearToHalMap.get(halValue, -1);
175 mgrValue = mMgrIgnitionStateToHalMap.get(halValue, -1);
195 v.value.int32Values.get(0) == 1);
201 Integer mgrVal = mapHalEnumValueToMgr(property, v.value.int32Values.get(0));
207 v.value.floatValues.get(0));
304 configArray.get(INDEX_WHEEL_DISTANCE_ENABLE_FLAG));
306 configArray.get(INDEX_WHEEL_DISTANCE_FRONT_LEF
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/folder/
H A DPreviewItemManager.java79 ? new FolderPreviewItemAnim(this, mFirstPageParams.get(0), 0, 2, -1, -1,
81 : new FolderPreviewItemAnim(this, mFirstPageParams.get(0), -1, -1, 0, 2,
140 PreviewItemDrawingParams p = params.get(i);
187 mFirstPageParams.get(index) : null;
207 PreviewItemDrawingParams p = params.get(i);
208 p.drawable = items.get(i).getCompoundDrawables()[1];
273 if (mFirstPageParams.get(i).drawable == who) {
308 int prevIndex = newParams.indexOf(moveIn.get(i));
309 PreviewItemDrawingParams p = params.get(prevIndex);
311 updateTransitionParam(p, moveIn.get(
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/
H A DObexAppParameters.java133 byte[] bval = mParams.get(tag);
139 return ByteBuffer.wrap(bval).get();
143 byte[] bval = mParams.get(tag);
153 byte[] bval = mParams.get(tag);
163 byte[] bval = mParams.get(tag);
173 byte[] bval = mParams.get(tag);
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
H A DObexAppParameters.java133 byte[] bval = mParams.get(tag);
139 return ByteBuffer.wrap(bval).get();
143 byte[] bval = mParams.get(tag);
153 byte[] bval = mParams.get(tag);
163 byte[] bval = mParams.get(tag);
173 byte[] bval = mParams.get(tag);
/packages/apps/Calendar/tests/src/com/android/calendar/
H A DFakeSharedPreferences.java50 return ((Boolean)mValues.get(key)).booleanValue();
58 return ((Float)mValues.get(key)).floatValue();
66 return ((Integer)mValues.get(key)).intValue();
74 return ((Long)mValues.get(key)).longValue();
82 return (String)mValues.get(key);
90 return (Set<String>) mValues.get(key);
/packages/apps/Email/tests/src/com/android/email/
H A DMockSharedPreferences.java52 return ((Boolean)mValues.get(key)).booleanValue();
59 return ((Float)mValues.get(key)).floatValue();
66 return ((Integer)mValues.get(key)).intValue();
73 return ((Long)mValues.get(key)).longValue();
80 return (String)mValues.get(key);
87 return (Set<String>) mValues.get(key);
/packages/apps/Messaging/src/com/android/messaging/ui/contact/
H A DContactSectionIndexer.java55 return mSectionStartingPositions.get(
72 if (position <= mSectionStartingPositions.get(left)) {
74 } else if (position >= mSectionStartingPositions.get(right)) {
80 final int startingPos = mSectionStartingPositions.get(mid);
81 final int nextStartingPos = mSectionStartingPositions.get(mid + 1);
130 // Loop through the contact cursor and get the starting position for each first character.
148 final String currentSection = lastIndex >= 0 ? sections.get(lastIndex) : null;
161 // First check if we get indexer label extras from the contact provider; if not, fall back
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/media/
H A DMediaResourceManagerTest.java46 MediaCacheManager.get().reclaim();
62 MediaCacheManager.get().reclaim();
85 MediaCacheManager.get().reclaim();
93 MediaCacheManager.get().reclaim();
105 MediaCacheManager.get().reclaim();
116 MediaCacheManager.get().reclaim();
/packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/
H A DVirtualKeyboardPreferenceControllerTest.java95 when(imis.get(0).getPackageName()).thenReturn(componentName.getPackageName());
97 when(imis.get(0).loadLabel(mPm)).thenReturn("label");
116 when(imis.get(0).getPackageName()).thenReturn(componentName.getPackageName());
117 when(imis.get(0).loadLabel(mPm)).thenReturn(label1);
118 when(imis.get(1).getPackageName()).thenReturn(componentName.getPackageName());
119 when(imis.get(1).loadLabel(mPm)).thenReturn(label2);

Completed in 1132 milliseconds

1234567891011>>