Home
last modified time | relevance | path

Searched refs:get (Results 1 – 25 of 2018) sorted by relevance

12345678910>>...81

/packages/apps/Email/tests/src/com/android/emailcommon/mail/
DPackedStringTests.java46 assertEquals("val1", ps.get("tag1")); in testPackedString()
47 assertEquals("val2", ps.get("tag2")); in testPackedString()
48 assertEquals("val3", ps.get("tag3")); in testPackedString()
49 assertEquals("val4", ps.get("tag4")); in testPackedString()
50 assertNull(ps.get("tag100")); in testPackedString()
64 assertEquals("value1", b2.get("tag1")); in testPackedStringBuilderCreate()
65 assertEquals("value2", b2.get("tag2")); in testPackedStringBuilderCreate()
66 assertEquals("value3", b2.get("tag3")); in testPackedStringBuilderCreate()
67 assertEquals("value4", b2.get("tag4")); in testPackedStringBuilderCreate()
68 assertNull(b2.get("tag100")); in testPackedStringBuilderCreate()
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/ui/mediapicker/
DCameraManagerTest.java45 assertEquals(false, CameraManager.get().hasAnyCamera()); in testNoCameraDeviceGetInfo()
46 assertEquals(false, CameraManager.get().hasFrontAndBackCamera()); in testNoCameraDeviceGetInfo()
48 CameraManager.get().selectCamera(CameraInfo.CAMERA_FACING_BACK); in testNoCameraDeviceGetInfo()
58 assertEquals(true, CameraManager.get().hasAnyCamera()); in testFrontFacingOnlyGetInfo()
59 assertEquals(false, CameraManager.get().hasFrontAndBackCamera()); in testFrontFacingOnlyGetInfo()
60 CameraManager.get().selectCamera(CameraInfo.CAMERA_FACING_FRONT); in testFrontFacingOnlyGetInfo()
61 assertEquals(CameraInfo.CAMERA_FACING_FRONT, CameraManager.get().getCameraInfo().facing); in testFrontFacingOnlyGetInfo()
62 CameraManager.get().selectCamera(CameraInfo.CAMERA_FACING_BACK); in testFrontFacingOnlyGetInfo()
63 assertEquals(CameraInfo.CAMERA_FACING_FRONT, CameraManager.get().getCameraInfo().facing); in testFrontFacingOnlyGetInfo()
70 assertEquals(true, CameraManager.get().hasAnyCamera()); in testBackFacingOnlyGetInfo()
[all …]
/packages/apps/Camera2/src/com/android/camera/captureintent/state/
DStateReadyForCapture.java136 mResourceCaptureTools.get().getResourceConstructed().get() in takePicture()
167 mResourceCaptureTools.get().getMainThread().execute(new Runnable() { in startCountDown()
170 CaptureIntentModuleUI moduleUI = mResourceCaptureTools.get().getModuleUI(); in startCountDown()
176 mResourceCaptureTools.get() in startCountDown()
195 mResourceCaptureTools.get().getMainThread().execute(new Runnable() { in cancelCountDown()
198 mResourceCaptureTools.get().getModuleUI().cancelCountDown(); in cancelCountDown()
199 mResourceCaptureTools.get().getModuleUI().showPictureCaptureUI(); in cancelCountDown()
206 mResourceCaptureTools.get().takePictureNow(mPictureCallback, captureLoggingInfo); in takePictureNow()
216 mResourceCaptureTools.get().getResourceConstructed(), in registerEventHandlers()
217 mResourceCaptureTools.get().getResourceSurfaceTexture())); in registerEventHandlers()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPositionController.java251 Box b = mBoxes.get(0); in setViewSize()
272 Box b = mBoxes.get(index); in forceImageSize()
296 Box b = mBoxes.get(i); in setBoxSize()
344 Box b = mBoxes.get(0); in startOpeningAnimationIfNeeded()
361 Gap g = mGaps.get(i); in startOpeningAnimationIfNeeded()
392 Box b = mBoxes.get(i); in updateScaleAndGapLimit()
398 Gap g = mGaps.get(i); in updateScaleAndGapLimit()
407 Box a = mBoxes.get(i); in getDefaultGapSize()
408 Box b = mBoxes.get(i + 1); in getDefaultGapSize()
432 mBoxes.get(i).mAnimationStartTime = NO_ANIMATION; in stopAnimation()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DMetadataParser.java64 if (TextUtils.isEmpty(arguments.get(ID_FIELD_NAME)) in parseOneWordList()
65 || TextUtils.isEmpty(arguments.get(LOCALE_FIELD_NAME)) in parseOneWordList()
66 || TextUtils.isEmpty(arguments.get(DESCRIPTION_FIELD_NAME)) in parseOneWordList()
67 || TextUtils.isEmpty(arguments.get(UPDATE_FIELD_NAME)) in parseOneWordList()
68 || TextUtils.isEmpty(arguments.get(FILESIZE_FIELD_NAME)) in parseOneWordList()
69 || TextUtils.isEmpty(arguments.get(CHECKSUM_FIELD_NAME)) in parseOneWordList()
70 || TextUtils.isEmpty(arguments.get(REMOTE_FILENAME_FIELD_NAME)) in parseOneWordList()
71 || TextUtils.isEmpty(arguments.get(VERSION_FIELD_NAME)) in parseOneWordList()
72 || TextUtils.isEmpty(arguments.get(FORMATVERSION_FIELD_NAME))) { in parseOneWordList()
79 arguments.get(ID_FIELD_NAME), in parseOneWordList()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DHanziToPinyinTest.java45 final String newString = tokens.get(0).target; in test()
49 tokens.get(0).type, Token.UNKNOWN); in test()
56 tokens.get(0).type, Token.PINYIN); in test()
70 assertEquals(tokens.get(0).type, Token.PINYIN); in testGetToken()
71 assertTrue(tokens.get(0).target.equalsIgnoreCase("DU")); in testGetToken()
75 assertEquals(tokens.get(0).type, Token.PINYIN); in testGetToken()
76 assertEquals(tokens.get(1).type, Token.PINYIN); in testGetToken()
77 assertTrue(tokens.get(0).target.equalsIgnoreCase("DU")); in testGetToken()
78 assertTrue(tokens.get(1).target.equalsIgnoreCase("JUAN")); in testGetToken()
82 assertEquals(tokens.get(0).type, Token.LATIN); in testGetToken()
[all …]
DFastScrollingIndexCacheTest.java93 assertNull(mCache.get(null, null, null, null, null)); in testPutAndGet()
94 assertNull(mCache.get(URI_A, "*s*", PROJECTION_0, "*so*", "*ce*")); in testPutAndGet()
95 assertNull(mCache.get(URI_A, "*s*", PROJECTION_1, "*so*", "*ce*")); in testPutAndGet()
96 assertNull(mCache.get(URI_B, "s", PROJECTION_2, "so", "ce")); in testPutAndGet()
113 assertBundle(TITLES_0, COUNTS_0, mCache.get(null, null, null, null, null)); in testPutAndGet()
114 assertBundle(TITLES_1, COUNTS_1, mCache.get(URI_A, "*s*", PROJECTION_0, "*so*", "*ce*")); in testPutAndGet()
115 assertBundle(TITLES_2, COUNTS_2, mCache.get(URI_A, "*s*", PROJECTION_1, "*so*", "*ce*")); in testPutAndGet()
116 assertBundle(TITLES_3, COUNTS_3, mCache.get(URI_B, "s", PROJECTION_2, "so", "ce")); in testPutAndGet()
122 assertNull(mCache.get(null, null, null, null, null)); in testPutAndGet()
123 assertNull(mCache.get(URI_A, "*s*", PROJECTION_0, "*so*", "*ce*")); in testPutAndGet()
[all …]
/packages/apps/TV/usbtuner/src/com/android/usbtuner/exoplayer/
DMpegTsSampleSourceExtractor.java226 boolean processCcDataFlag = (buffer.get(pos) & 64) != 0; in parseClosedCaption()
227 int ccCount = buffer.get(pos) & 0x1f; in parseClosedCaption()
233 mCea708CcBuffer.put(buffer.get(pos + i)); in parseClosedCaption()
245 if (buffer.get(pos) == 0 in mayParseClosedCaption()
246 && buffer.get(pos + 1) == 0 in mayParseClosedCaption()
247 && buffer.get(pos + 2) == 1 in mayParseClosedCaption()
248 && (buffer.get(pos + 3) & 0xff) == 0xb2) { in mayParseClosedCaption()
251 if (buffer.get(pos + 4) == 'G' in mayParseClosedCaption()
252 && buffer.get(pos + 5) == 'A' in mayParseClosedCaption()
253 && buffer.get(pos + 6) == '9' in mayParseClosedCaption()
[all …]
/packages/services/Telecomm/src/com/android/server/telecom/
DTimeouts.java51 private static long get(ContentResolver contentResolver, String key, long defaultValue) { in get() method in Timeouts
61 return get(contentResolver, "direct_to_voicemail_ms", 500L); in getDirectToVoicemailMillis()
71 return get(contentResolver, "new_outgoing_call_cancel_ms", 400L); in getNewOutgoingCallCancelMillis()
80 return get(contentResolver, "delay_between_dtmf_tones_ms", 300L); in getDelayBetweenDtmfTonesMillis()
88 return get(contentResolver, "emergency_call_timeout_millis", 25000L /* 25 seconds */); in getEmergencyCallTimeoutMillis()
97 return get(contentResolver, "emergency_call_timeout_radio_off_millis", in getEmergencyCallTimeoutRadioOffMillis()
106 return get(contentResolver, "call_remove_unbind_in_call_services_delay", in getCallRemoveUnbindInCallServicesDelay()
116 return get(contentResolver, "bluetooth_pending_timeout_millis", 5000L); in getBluetoothPendingTimeoutMillis()
125 return get(contentResolver, "retry_bluetooth_connect_audio_backoff_millis", 500L); in getRetryBluetoothConnectAudioBackoffMillis()
133 return get(contentResolver, "stale_session_cleanup_timeout_millis", in getStaleSessionCleanupTimeoutMillis()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DCameraMediaChooser.java68 if (CameraManager.get().hasAnyCamera()) { in getSupportedMediaTypes()
77 CameraManager.get().closeCamera(); in destroyView()
78 CameraManager.get().setListener(null); in destroyView()
79 CameraManager.get().setSubscriptionDataProvider(null); in destroyView()
85 CameraManager.get().setListener(this); in createView()
86 CameraManager.get().setSubscriptionDataProvider(this); in createView()
87 CameraManager.get().setVideoMode(false); in createView()
98 if (CameraManager.get().isVideoMode()) { in createView()
122 CameraManager.get().swapCamera(); in createView()
133 if (CameraManager.get().isRecording()) { in createView()
[all …]
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/
DTaskConvertImageToRGBPreview.java267 ByteBuffer buf0 = planeList.get(0).getBuffer(); in colorInscribedDataCircleFromYuvImage()
268 ByteBuffer bufU = planeList.get(1).getBuffer(); // Downsampled by 2 in colorInscribedDataCircleFromYuvImage()
269 ByteBuffer bufV = planeList.get(2).getBuffer(); // Downsampled by 2 in colorInscribedDataCircleFromYuvImage()
270 int yByteStride = planeList.get(0).getRowStride() * subsample; in colorInscribedDataCircleFromYuvImage()
271 int uByteStride = planeList.get(1).getRowStride() * subsample; in colorInscribedDataCircleFromYuvImage()
272 int vByteStride = planeList.get(2).getRowStride() * subsample; in colorInscribedDataCircleFromYuvImage()
273 int yPixelStride = planeList.get(0).getPixelStride() * subsample; in colorInscribedDataCircleFromYuvImage()
274 int uPixelStride = planeList.get(1).getPixelStride() * subsample; in colorInscribedDataCircleFromYuvImage()
275 int vPixelStride = planeList.get(2).getPixelStride() * subsample; in colorInscribedDataCircleFromYuvImage()
286 logWrapper("\t U-Plane Size=" + planeList.get(1).getRowStride() + " Pixel Stride=" in colorInscribedDataCircleFromYuvImage()
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DSuggestionCursorBackedCursor.java93 private Suggestion get() { in get() method in SuggestionCursorBackedCursor
100 SuggestionExtras extras = get().getExtras(); in getExtra()
102 return extras.getExtra(mExtraColumns.get(extraColumn)); in getExtra()
128 return get().getSuggestionText1(); in getString()
130 return get().getSuggestionText2(); in getString()
132 return get().getSuggestionText2Url(); in getString()
134 return get().getSuggestionIcon1(); in getString()
136 return get().getSuggestionIcon2(); in getString()
138 return get().getSuggestionIntentAction(); in getString()
140 return get().getSuggestionIntentDataString(); in getString()
[all …]
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/dataitem/
DDataItemTests.java106 assertEquals(true, dataList.get(0).isSuperPrimary()); in testDataItemCollapsing_genericDataItemFields()
107 assertEquals(true, dataList.get(0).isPrimary()); in testDataItemCollapsing_genericDataItemFields()
108 assertEquals(9, (int) dataList.get(0).getTimesUsed()); in testDataItemCollapsing_genericDataItemFields()
109 assertEquals(999L, (long) dataList.get(0).getLastTimeUsed()); in testDataItemCollapsing_genericDataItemFields()
110 assertEquals(1, dataList.get(0).getKindTypeColumn(kind)); in testDataItemCollapsing_genericDataItemFields()
135 assertEquals(email1, ((EmailDataItem) dataList.get(0)).getAddress()); in testDataItemCollapsing_email()
136 assertEquals(email2, ((EmailDataItem) dataList.get(1)).getAddress()); in testDataItemCollapsing_email()
138 ((EmailDataItem) dataList.get(0)).getKindTypeColumn(kind)); in testDataItemCollapsing_email()
172 assertEquals(customLabel1, ((EventDataItem) dataList.get(0)).getLabel()); in testDataItemCollapsing_event()
173 assertEquals(customLabel2, ((EventDataItem) dataList.get(1)).getLabel()); in testDataItemCollapsing_event()
[all …]
/packages/apps/Camera2/src/com/android/camera/one/v2/
DOneCameraCharacteristicsImpl.java63 configMap = mCameraCharacteristics.get( in getSupportedPictureSizes()
82 configMap = mCameraCharacteristics.get( in getSupportedPreviewSizes()
98 return mCameraCharacteristics.get(CameraCharacteristics.SENSOR_ORIENTATION); in getSensorOrientation()
103 int direction = mCameraCharacteristics.get(CameraCharacteristics.LENS_FACING); in getCameraDirection()
113 return mCameraCharacteristics.get(CameraCharacteristics.SENSOR_INFO_ACTIVE_ARRAY_SIZE); in getSensorInfoActiveArraySize()
118 return mCameraCharacteristics.get(CameraCharacteristics.SCALER_AVAILABLE_MAX_DIGITAL_ZOOM); in getAvailableMaxDigitalZoom()
123 return mCameraCharacteristics.get(CameraCharacteristics.FLASH_INFO_AVAILABLE); in isFlashSupported()
130 int[] availableSceneModes = mCameraCharacteristics.get( in isHdrSceneSupported()
143 .get(CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL); in getSupportedHardwareLevel()
166 int[] modes = mCameraCharacteristics.get( in getSupportedFaceDetectModes()
[all …]
/packages/experimental/procstatlog/
Dprocstatreport.py148 writer.writerow([msec] + [values.get(n, "") for n in range(num_cols)])
156 "user": cgi.escape(os.environ.get("USER", "unknown")),
178 last = last_state.get("/proc/stat:cpu", "").split()
179 next = state.get("/proc/stat:cpu", "").split()
227 last = int(last_state.get(key, -1))
228 next = int(state.get(key, -1))
263 last = int(last_state.get("/proc/stat:ctxt", -1))
264 next = int(state.get("/proc/stat:ctxt", -1))
306 last = last_state.get(key, zero_stat).split()
307 next = state.get(key, "").split()
[all …]
/packages/apps/DevCamera/src/com/android/devcamera/
DCameraDeviceReport.java84 Rect size = p.get(CameraCharacteristics.SENSOR_INFO_ACTIVE_ARRAY_SIZE); in printCameraInfo()
92 Size size2 = p.get(CameraCharacteristics.SENSOR_INFO_PIXEL_ARRAY_SIZE); in printCameraInfo()
95 SizeF size3 = p.get(CameraCharacteristics.SENSOR_INFO_PHYSICAL_SIZE); in printCameraInfo()
99 int sensorOrientation = p.get(CameraCharacteristics.SENSOR_ORIENTATION); in printCameraInfo()
103 getTimestampSourceName(p.get(CameraCharacteristics.SENSOR_INFO_TIMESTAMP_SOURCE))); in printCameraInfo()
106 …getFocusDistanceCalibrationName(p.get(CameraCharacteristics.LENS_INFO_FOCUS_DISTANCE_CALIBRATION))… in printCameraInfo()
108 int[] faceModes = p.get(CameraCharacteristics.STATISTICS_INFO_AVAILABLE_FACE_DETECT_MODES); in printCameraInfo()
126 …Log.v(TAG, "STATISTICS_INFO_MAX_FACE_COUNT: " + p.get(CameraCharacteristics.STATISTICS_INFO_MAX_FA… in printCameraInfo()
129 + p.get(CameraCharacteristics.REQUEST_PIPELINE_MAX_DEPTH)); in printCameraInfo()
132 + p.get(CameraCharacteristics.REQUEST_MAX_NUM_OUTPUT_RAW)); in printCameraInfo()
[all …]
/packages/apps/Dialer/tests/src/com/android/dialer/calllog/
DCallLogGroupBuilderTest.java89 assertGroupIs(0, 3, mFakeGroupCreator.groups.get(0)); in testAddGroups_ThreeCallsMatching()
104 assertGroupIs(0, 2, mFakeGroupCreator.groups.get(0)); in testAddGroups_WithPostDialMatching()
105 assertGroupIs(2, 1, mFakeGroupCreator.groups.get(1)); in testAddGroups_WithPostDialMatching()
108 assertGroupIs(0, 3, mFakeGroupCreator.groups.get(0)); in testAddGroups_WithPostDialMatching()
124 assertGroupIs(0, 2, mFakeGroupCreator.groups.get(0)); in testAddGroups_WithViaNumberMatching()
125 assertGroupIs(2, 1, mFakeGroupCreator.groups.get(1)); in testAddGroups_WithViaNumberMatching()
128 assertGroupIs(0, 3, mFakeGroupCreator.groups.get(0)); in testAddGroups_WithViaNumberMatching()
138 assertGroupIs(0, 3, mFakeGroupCreator.groups.get(0)); in testAddGroups_MatchingIncomingAndOutgoing()
243 assertGroupIs(0, 1, mFakeGroupCreator.groups.get(0)); in testAddGroups_Separate()
244 assertGroupIs(1, 1, mFakeGroupCreator.groups.get(1)); in testAddGroups_Separate()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/providers/protos/mock/
DMockUiProvider.java72 resultMap.put(inboxfolderDetailsMap.get(FolderColumns.URI).toString(), in initializeAccount()
76 (String)inboxfolderDetailsMap.get(FolderColumns.URI)); in initializeAccount()
77 resultMap.put(((Uri) accountDetailsMap.get(AccountColumns.URI)).toString(), in initializeAccount()
82 resultMap.put(secondFolderDetailsMap.get(FolderColumns.URI).toString(), in initializeAccount()
86 inboxfolderDetailsMap.get(FolderColumns.CHILD_FOLDERS_LIST_URI).toString(), in initializeAccount()
96 resultMap.put(inboxfolderDetailsMap.get(FolderColumns.CONVERSATION_LIST_URI).toString(), in initializeAccount()
101 resultMap.put(message0.get(MessageColumns.URI).toString(), ImmutableList.of(message0)); in initializeAccount()
102 resultMap.put(conversations.get(0).get(ConversationColumns.MESSAGE_LIST_URI).toString(), in initializeAccount()
104 resultMap.put(message0.get(MessageColumns.ATTACHMENT_LIST_URI).toString(), in initializeAccount()
108 resultMap.put(message1.get(MessageColumns.URI).toString(), ImmutableList.of(message1)); in initializeAccount()
[all …]
/packages/apps/Nfc/nci/jni/
DNfcTag.cpp586 jmethodID ctor = e->GetMethodID(tag_cls.get(), "<init>", "()V"); in createNativeNfcTag()
587 ScopedLocalRef<jobject> tag(e, e->NewObject(tag_cls.get(), ctor)); in createNativeNfcTag()
590 fillNativeNfcTagMembers1(e, tag_cls.get(), tag.get()); in createNativeNfcTag()
593 fillNativeNfcTagMembers2(e, tag_cls.get(), tag.get(), activationData); in createNativeNfcTag()
596 fillNativeNfcTagMembers3(e, tag_cls.get(), tag.get(), activationData); in createNativeNfcTag()
599 fillNativeNfcTagMembers4(e, tag_cls.get(), tag.get(), activationData); in createNativeNfcTag()
602 fillNativeNfcTagMembers5(e, tag_cls.get(), tag.get(), activationData); in createNativeNfcTag()
608 mNativeData->tag = e->NewGlobalRef(tag.get()); in createNativeNfcTag()
612 …lVoidMethod(mNativeData->manager, android::gCachedNfcManagerNotifyNdefMessageListeners, tag.get()); in createNativeNfcTag()
646 ScopedIntArrayRW technologies(e, techList.get()); in fillNativeNfcTagMembers1()
[all …]
DNfcJniUtil.cpp82 if (cls.get() == NULL) in nfc_jni_cache_object()
88 jmethodID ctor = e->GetMethodID(cls.get(), "<init>", "()V"); in nfc_jni_cache_object()
89 ScopedLocalRef<jobject> obj(e, e->NewObject(cls.get(), ctor)); in nfc_jni_cache_object()
90 if (obj.get() == NULL) in nfc_jni_cache_object()
96 *cachedObj = e->NewGlobalRef(obj.get()); in nfc_jni_cache_object()
120 jfieldID f = e->GetFieldID(c.get(), "mHandle", "I"); in nfc_jni_get_nfc_socket_handle()
139 jfieldID f = e->GetFieldID(c.get(), "mNative", "J"); in nfc_jni_get_nat()
157 if(cls.get() == NULL) in nfc_jni_cache_object_local()
163 jmethodID ctor = e->GetMethodID(cls.get(), "<init>", "()V"); in nfc_jni_cache_object_local()
164 jobject obj = e->NewObject(cls.get(), ctor); in nfc_jni_cache_object_local()
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DPduPart.java198 return (byte[]) mPartHeader.get(P_CONTENT_ID); in getContentId()
216 final Integer charset = (Integer) mPartHeader.get(P_CHARSET); in getCharset()
247 return (byte[]) mPartHeader.get(P_CONTENT_LOCATION); in getContentLocation()
273 return (byte[]) mPartHeader.get(P_CONTENT_DISPOSITION); in getContentDisposition()
296 return (byte[]) mPartHeader.get(P_CONTENT_TYPE); in getContentType()
319 return (byte[]) mPartHeader.get(P_CONTENT_TRANSFER_ENCODING); in getContentTransferEncoding()
342 return (byte[]) mPartHeader.get(P_NAME); in getName()
365 return (byte[]) mPartHeader.get(P_FILENAME); in getFilename()
372 byte[] location = (byte[]) mPartHeader.get(P_NAME); in generateLocation()
374 location = (byte[]) mPartHeader.get(P_FILENAME); in generateLocation()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/
DProcStatsEntry.java126 if (DEBUG) Log.d(TAG, "Eval pkg of " + mName + ": single pkg " + mPackages.get(0)); in evaluateTargetPackage()
127 mBestTargetPackage = mPackages.get(0); in evaluateTargetPackage()
134 if ("android".equals(mPackages.get(ipkg))) { in evaluateTargetPackage()
135 mBestTargetPackage = mPackages.get(ipkg); in evaluateTargetPackage()
144 = stats.mPackages.get(mPackages.get(ipkg), mUid); in evaluateTargetPackage()
150 Log.w(TAG, "No package state found for " + mPackages.get(ipkg) + "/" in evaluateTargetPackage()
154 ProcessState pkgProc = pkgState.mProcesses.get(mName); in evaluateTargetPackage()
157 + mPackages.get(ipkg) + "/" + mUid); in evaluateTargetPackage()
167 if (subProcs.get(0).mRunWeight > (subProcs.get(1).mRunWeight *3)) { in evaluateTargetPackage()
169 + subProcs.get(0).mPackage + " weight " + subProcs.get(0).mRunWeight in evaluateTargetPackage()
[all …]
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/pbap/
DBluetoothPbapVcardManagerTest.java68 assertEquals("A,1", nameList.get(0)); in getContactNamesByNumberInternal()
69 assertEquals("B,2", nameList.get(1)); in getContactNamesByNumberInternal()
70 assertEquals("C,3", nameList.get(2)); in getContactNamesByNumberInternal()
71 assertEquals("D,4", nameList.get(3)); in getContactNamesByNumberInternal()
111 assertEquals("A,1", nameList.get(1)); in testGetPhonebookNameListOrderByIndex()
112 assertEquals("B,2", nameList.get(2)); in testGetPhonebookNameListOrderByIndex()
113 assertEquals("C,3", nameList.get(3)); in testGetPhonebookNameListOrderByIndex()
114 assertEquals("D,4", nameList.get(4)); in testGetPhonebookNameListOrderByIndex()
115 assertEquals(getContext().getString(android.R.string.unknownName) + ",5", nameList.get(5)); in testGetPhonebookNameListOrderByIndex()
136 assertEquals("A,3", nameList.get(1)); in testGetPhonebookNameListOrderByAlphabetical()
[all …]
/packages/apps/TV/src/com/android/tv/menu/
DMenuLayoutManager.java130 MenuRowView currentView = mMenuRowViews.get(mSelectedPosition); in layout()
143 Rect rect = layouts.get(i); in layout()
145 currentView = mMenuRowViews.get(i); in layout()
165 if (mMenuRowViews.get(i).getVisibility() != View.GONE) { in findNextVisiblePosition()
252 MenuRowView selectedView = mMenuRowViews.get(mSelectedPosition); in getViewLayouts()
264 MenuRowView nextView = mMenuRowViews.get(position); in getViewLayouts()
281 MenuRowView view = mMenuRowViews.get(i); in getViewLayouts()
293 MenuRowView view = mMenuRowViews.get(position); in getViewLayouts()
321 MenuRow row = mMenuRows.get(position); in setSelectedPosition()
327 mMenuRowViews.get(mSelectedPosition).onDeselected(); in setSelectedPosition()
[all …]
/packages/apps/Messaging/src/android/support/v7/mms/pdu/
DPduPart.java223 return (byte[]) mPartHeader.get(P_CONTENT_ID); in getContentId()
241 Integer charset = (Integer) mPartHeader.get(P_CHARSET); in getCharset()
272 return (byte[]) mPartHeader.get(P_CONTENT_LOCATION); in getContentLocation()
298 return (byte[]) mPartHeader.get(P_CONTENT_DISPOSITION); in getContentDisposition()
321 return (byte[]) mPartHeader.get(P_CONTENT_TYPE); in getContentType()
344 return (byte[]) mPartHeader.get(P_CONTENT_TRANSFER_ENCODING); in getContentTransferEncoding()
367 return (byte[]) mPartHeader.get(P_NAME); in getName()
390 return (byte[]) mPartHeader.get(P_FILENAME); in getFilename()
397 byte[] location = (byte[]) mPartHeader.get(P_NAME); in generateLocation()
399 location = (byte[]) mPartHeader.get(P_FILENAME); in generateLocation()
[all …]

12345678910>>...81