Home
last modified time | relevance | path

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

12345678910>>...141

/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_avrcp_controller.cpp73 sCallbackEnv.get(), sCallbackEnv->NewByteArray(sizeof(RawAddress))); in btavrcp_passthrough_response_callback()
74 if (!addr.get()) { in btavrcp_passthrough_response_callback()
79 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, sizeof(RawAddress), in btavrcp_passthrough_response_callback()
82 (jint)id, (jint)pressed, addr.get()); in btavrcp_passthrough_response_callback()
111 sCallbackEnv.get(), sCallbackEnv->NewByteArray(sizeof(RawAddress))); in btavrcp_connection_state_callback()
112 if (!addr.get()) { in btavrcp_connection_state_callback()
117 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, sizeof(RawAddress), in btavrcp_connection_state_callback()
121 addr.get()); in btavrcp_connection_state_callback()
136 sCallbackEnv.get(), sCallbackEnv->NewByteArray(sizeof(RawAddress))); in btavrcp_get_rcfeatures_callback()
137 if (!addr.get()) { in btavrcp_get_rcfeatures_callback()
[all …]
Dcom_android_bluetooth_hfpclient.cpp74 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), marshall_bda(bd_addr)); in connection_state_cb()
75 if (!addr.get()) return; in connection_state_cb()
80 addr.get()); in connection_state_cb()
88 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), marshall_bda(bd_addr)); in audio_state_cb()
89 if (!addr.get()) return; in audio_state_cb()
92 (jint)state, addr.get()); in audio_state_cb()
99 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), marshall_bda(bd_addr)); in vr_cmd_cb()
100 if (!addr.get()) return; in vr_cmd_cb()
103 (jint)state, addr.get()); in vr_cmd_cb()
111 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), marshall_bda(bd_addr)); in network_state_cb()
[all …]
Dcom_android_bluetooth_gatt.cpp216 ScopedLocalRef<jstring> address(sCallbackEnv.get(), in btgattc_scan_result_cb()
217 bdaddr2newjstr(sCallbackEnv.get(), bda)); in btgattc_scan_result_cb()
218 ScopedLocalRef<jbyteArray> jb(sCallbackEnv.get(), in btgattc_scan_result_cb()
220 sCallbackEnv->SetByteArrayRegion(jb.get(), 0, adv_data.size(), in btgattc_scan_result_cb()
224 addr_type, address.get(), primary_phy, in btgattc_scan_result_cb()
226 periodic_adv_int, jb.get()); in btgattc_scan_result_cb()
234 ScopedLocalRef<jstring> address(sCallbackEnv.get(), in btgattc_open_cb()
235 bdaddr2newjstr(sCallbackEnv.get(), &bda)); in btgattc_open_cb()
237 conn_id, status, address.get()); in btgattc_open_cb()
245 ScopedLocalRef<jstring> address(sCallbackEnv.get(), in btgattc_close_cb()
[all …]
Dcom_android_bluetooth_hfp.cpp89 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), marshall_bda(bd_addr)); in ConnectionStateCallback()
90 if (!addr.get()) return; in ConnectionStateCallback()
93 (jint)state, addr.get()); in ConnectionStateCallback()
104 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), marshall_bda(bd_addr)); in AudioStateCallback()
105 if (!addr.get()) return; in AudioStateCallback()
108 (jint)state, addr.get()); in AudioStateCallback()
117 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), marshall_bda(bd_addr)); in VoiceRecognitionCallback()
118 if (!addr.get()) { in VoiceRecognitionCallback()
124 (jint)state, addr.get()); in VoiceRecognitionCallback()
132 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), marshall_bda(bd_addr)); in AnswerCallCallback()
[all …]
Dcom_android_bluetooth_btservice_AdapterService.cpp101 if (!propVal.get()) { in get_properties()
106 callbackEnv->SetByteArrayRegion(propVal.get(), 0, properties[i].len, in get_properties()
108 callbackEnv->SetObjectArrayElement(*props, i, propVal.get()); in get_properties()
127 sCallbackEnv.get(), in adapter_properties_callback()
129 if (!val.get()) { in adapter_properties_callback()
134 ScopedLocalRef<jclass> mclass(sCallbackEnv.get(), in adapter_properties_callback()
135 sCallbackEnv->GetObjectClass(val.get())); in adapter_properties_callback()
141 sCallbackEnv.get(), in adapter_properties_callback()
142 sCallbackEnv->NewObjectArray(num_properties, mclass.get(), NULL)); in adapter_properties_callback()
143 if (!props.get()) { in adapter_properties_callback()
[all …]
Dcom_android_bluetooth_sdp.cpp139 sCallbackEnv.get(), sCallbackEnv->NewByteArray(sizeof(RawAddress))); in sdp_search_callback()
140 if (!addr.get()) return; in sdp_search_callback()
142 ScopedLocalRef<jbyteArray> uuid(sCallbackEnv.get(), in sdp_search_callback()
144 if (!uuid.get()) return; in sdp_search_callback()
146 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, sizeof(RawAddress), in sdp_search_callback()
148 sCallbackEnv->SetByteArrayRegion(uuid.get(), 0, sizeof(Uuid), in sdp_search_callback()
157 ScopedLocalRef<jstring> service_name(sCallbackEnv.get(), NULL); in sdp_search_callback()
168 addr.get(), uuid.get(), (jint)record->mas.mas_instance_id, in sdp_search_callback()
173 (jint)record->mas.supported_message_types, service_name.get(), in sdp_search_callback()
179 addr.get(), uuid.get(), (jint)record->mns.hdr.l2cap_psm, in sdp_search_callback()
[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/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/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/modules/DnsResolver/tests/dns_responder/
Ddns_tls_frontend.cpp43 return bssl::UniquePtr<X509>(PEM_read_bio_X509(bio.get(), nullptr, nullptr, nullptr)); in stringToX509Certs()
49 return bssl::UniquePtr<RSA>(PEM_read_bio_RSAPrivateKey(bio.get(), nullptr, nullptr, nullptr)); in stringToRSAPrivateKey()
76 SSL_CTX_set_ecdh_auto(ctx_.get(), 1); in startServer()
84 if (SSL_CTX_use_certificate(ctx_.get(), ca_certs.get()) <= 0) { in startServer()
90 if (SSL_CTX_use_RSAPrivateKey(ctx_.get(), private_key.get()) <= 0) { in startServer()
113 if (s.get() < 0) { in startServer()
114 PLOG(INFO) << "ignore creating socket failed " << s.get(); in startServer()
117 enableSockopt(s.get(), SOL_SOCKET, SO_REUSEPORT).ignoreError(); in startServer()
118 enableSockopt(s.get(), SOL_SOCKET, SO_REUSEADDR).ignoreError(); in startServer()
120 if (bind(s.get(), ai->ai_addr, ai->ai_addrlen)) { in startServer()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetServiceTest.java242 verify(mStateMachines.get(mCurrentDevice)).sendMessage(HeadsetStateMachine.CONNECT, in testConnectDevice_connectDeviceBelowLimit()
244 when(mStateMachines.get(mCurrentDevice).getDevice()).thenReturn(mCurrentDevice); in testConnectDevice_connectDeviceBelowLimit()
245 when(mStateMachines.get(mCurrentDevice).getConnectionState()).thenReturn( in testConnectDevice_connectDeviceBelowLimit()
249 when(mStateMachines.get(mCurrentDevice).getConnectionState()).thenReturn( in testConnectDevice_connectDeviceBelowLimit()
260 verify(mStateMachines.get(mCurrentDevice)).sendMessage(eq(HeadsetStateMachine.CONNECT), in testConnectDevice_connectDeviceBelowLimit()
279 verify(mStateMachines.get(mCurrentDevice)).sendMessage(HeadsetStateMachine.STACK_EVENT, in testMessageFromNative_deviceConnected()
281 when(mStateMachines.get(mCurrentDevice).getDevice()).thenReturn(mCurrentDevice); in testMessageFromNative_deviceConnected()
282 when(mStateMachines.get(mCurrentDevice).getConnectionState()).thenReturn( in testMessageFromNative_deviceConnected()
293 verify(mStateMachines.get(mCurrentDevice)).sendMessage(HeadsetStateMachine.STACK_EVENT, in testMessageFromNative_deviceConnected()
295 when(mStateMachines.get(mCurrentDevice).getConnectionState()).thenReturn( in testMessageFromNative_deviceConnected()
[all …]
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastChannelManagerTest.java69 assertEquals(12, list.get(0).mStartId); in testGetCellBroadcastChannelRanges()
70 assertEquals(12, list.get(0).mEndId); in testGetCellBroadcastChannelRanges()
71 assertEquals(AlertType.ETWS_EARTHQUAKE, list.get(0).mAlertType); in testGetCellBroadcastChannelRanges()
72 assertEquals(CellBroadcastChannelRange.LEVEL_EMERGENCY, list.get(0).mEmergencyLevel); in testGetCellBroadcastChannelRanges()
74 assertEquals(456, list.get(1).mStartId); in testGetCellBroadcastChannelRanges()
75 assertEquals(456, list.get(1).mEndId); in testGetCellBroadcastChannelRanges()
76 assertEquals(AlertType.ETWS_TSUNAMI, list.get(1).mAlertType); in testGetCellBroadcastChannelRanges()
77 assertEquals(CellBroadcastChannelRange.LEVEL_EMERGENCY, list.get(1).mEmergencyLevel); in testGetCellBroadcastChannelRanges()
79 assertEquals(0xAC00, list.get(2).mStartId); in testGetCellBroadcastChannelRanges()
80 assertEquals(0xAFED, list.get(2).mEndId); in testGetCellBroadcastChannelRanges()
[all …]
/packages/modules/DnsResolver/
DDnsTlsSocket.cpp83 if (mSslFd.get() == -1) { in tcpConnect()
88 resolv_tag_socket(mSslFd.get(), AID_DNS, NET_CONTEXT_INVALID_PID); in tcpConnect()
91 if (setsockopt(mSslFd.get(), SOL_SOCKET, SO_MARK, &mMark, len) == -1) { in tcpConnect()
97 const Status tfo = enableSockopt(mSslFd.get(), SOL_TCP, TCP_FASTOPEN_CONNECT); in tcpConnect()
103 enableTcpKeepAlives(mSslFd.get(), 15U, 5U, 3U).ignoreError(); in tcpConnect()
105 if (connect(mSslFd.get(), reinterpret_cast<const struct sockaddr *>(&mServer.ss), in tcpConnect()
119 bssl::UniquePtr<X509> cert(PEM_read_bio_X509(bio.get(), nullptr, nullptr, nullptr)); in setTestCaCertificate()
125 X509_STORE* cert_store = SSL_CTX_get_cert_store(mSslCtx.get()); in setTestCaCertificate()
126 if (!X509_STORE_add_cert(cert_store, cert.get())) { in setTestCaCertificate()
159 if (SSL_CTX_load_verify_locations(mSslCtx.get(), nullptr, kCaCertDir) != 1) { in initialize()
[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/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/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/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 …]
/packages/apps/Contacts/tests/src/com/android/contacts/model/dataitem/
DDataItemTests.java96 assertEquals(true, dataList.get(0).isSuperPrimary()); in testDataItemCollapsing_genericDataItemFields()
97 assertEquals(true, dataList.get(0).isPrimary()); in testDataItemCollapsing_genericDataItemFields()
98 assertEquals(1, dataList.get(0).getKindTypeColumn(kind)); in testDataItemCollapsing_genericDataItemFields()
123 assertEquals(email1, ((EmailDataItem) dataList.get(0)).getAddress()); in testDataItemCollapsing_email()
124 assertEquals(email2, ((EmailDataItem) dataList.get(1)).getAddress()); in testDataItemCollapsing_email()
126 ((EmailDataItem) dataList.get(0)).getKindTypeColumn(kind)); in testDataItemCollapsing_email()
160 assertEquals(customLabel1, ((EventDataItem) dataList.get(0)).getLabel()); in testDataItemCollapsing_event()
161 assertEquals(customLabel2, ((EventDataItem) dataList.get(1)).getLabel()); in testDataItemCollapsing_event()
162 assertEquals(date2, ((EventDataItem) dataList.get(2)).getStartDate()); in testDataItemCollapsing_event()
196 assertEquals(address1, ((ImDataItem) dataList.get(0)).getData()); in testDataItemCollapsing_im()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/conditional/
DConditionContextualCardControllerTest.java127 assertThat(conditionalCards.get(cardType)).isEmpty(); in getConditionalCards_hasEmptyConditionCards_shouldReturnThreeEmptyList()
138 assertThat(conditionalCards.get(CardType.CONDITIONAL)).hasSize(1); in getConditionalCards_hasOneConditionCardAndExpanded_shouldGetOneFullWidthCard()
139 assertThat(conditionalCards.get(CardType.CONDITIONAL).get(0).getViewType()).isEqualTo( in getConditionalCards_hasOneConditionCardAndExpanded_shouldGetOneFullWidthCard()
141 assertThat(conditionalCards.get(CardType.CONDITIONAL_HEADER)).isEmpty(); in getConditionalCards_hasOneConditionCardAndExpanded_shouldGetOneFullWidthCard()
142 assertThat(conditionalCards.get(CardType.CONDITIONAL_FOOTER)).isNotEmpty(); in getConditionalCards_hasOneConditionCardAndExpanded_shouldGetOneFullWidthCard()
152 assertThat(conditionalCards.get(CardType.CONDITIONAL)).isEmpty(); in getConditionalCards_hasOneConditionCardAndCollapsed_shouldGetConditionalHeader()
153 assertThat(conditionalCards.get(CardType.CONDITIONAL_HEADER)).isNotEmpty(); in getConditionalCards_hasOneConditionCardAndCollapsed_shouldGetConditionalHeader()
154 assertThat(conditionalCards.get(CardType.CONDITIONAL_FOOTER)).isEmpty(); in getConditionalCards_hasOneConditionCardAndCollapsed_shouldGetConditionalHeader()
164 assertThat(conditionalCards.get(CardType.CONDITIONAL)).hasSize(2); in getConditionalCards_hasTwoConditionCardsAndExpanded_shouldGetTwoHalfWidthCards()
165 for (ContextualCard card : conditionalCards.get(CardType.CONDITIONAL)) { in getConditionalCards_hasTwoConditionCardsAndExpanded_shouldGetTwoHalfWidthCards()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/
DMessage.java73 new BigInteger(attrs.get("handle"), 16); in Message()
75 mHandle = attrs.get("handle"); in Message()
84 mSubject = attrs.get("subject"); in Message()
85 String dateTime = attrs.get("datetime"); in Message()
94 mSenderName = attrs.get("sender_name"); in Message()
96 mSenderAddressing = attrs.get("sender_addressing"); in Message()
98 mReplytoAddressing = attrs.get("replyto_addressing"); in Message()
100 mRecipientName = attrs.get("recipient_name"); in Message()
102 mRecipientAddressing = attrs.get("recipient_addressing"); in Message()
104 mType = strToType(attrs.get("type")); in Message()
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/
DSampleChunkIoHelper.java193 mBufferManager.loadTrackFromStorage(mIds.get(i), mSamplePool); in init()
209 mMediaFormats.get(i).getFrameworkMediaFormatV16(); in init()
211 if (mMediaFormats.get(i).pixelWidthHeightRatio > 0) { in init()
217 (mMediaFormats.get(i).width in init()
218 * mMediaFormats.get(i).pixelWidthHeightRatio)); in init()
220 if (MimeTypes.isAudio(mMediaFormats.get(i).mimeType)) { in init()
221 audios.add(new BufferManager.TrackFormat(mIds.get(i), format)); in init()
222 } else if (MimeTypes.isVideo(mMediaFormats.get(i).mimeType)) { in init()
223 videos.add(new BufferManager.TrackFormat(mIds.get(i), format)); in init()
317 mBufferManager.unregisterChunkEvictedListener(mIds.get(i)); in release()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DEnterprisePrivacySettingsTest.java105 assertThat(controllers.get(position++)).isInstanceOf(NetworkLogsPreferenceController.class); in verifyPreferenceControllers()
106 assertThat(controllers.get(position++)).isInstanceOf(BugReportsPreferenceController.class); in verifyPreferenceControllers()
107 assertThat(controllers.get(position++)).isInstanceOf( in verifyPreferenceControllers()
109 assertThat(controllers.get(position++)).isInstanceOf( in verifyPreferenceControllers()
111 assertThat(controllers.get(position++)).isInstanceOf( in verifyPreferenceControllers()
113 assertThat(controllers.get(position++)).isInstanceOf( in verifyPreferenceControllers()
115 assertThat(controllers.get(position++)).isInstanceOf( in verifyPreferenceControllers()
117 assertThat(controllers.get(position++)).isInstanceOf( in verifyPreferenceControllers()
119 assertThat(controllers.get(position++)).isInstanceOf( in verifyPreferenceControllers()
121 assertThat(controllers.get(position++)).isInstanceOf( in verifyPreferenceControllers()
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/buffer/
DSampleChunkIoHelper.java195 mBufferManager.loadTrackFromStorage(mIds.get(i), mInputBufferPool); in init()
210 if (MimeTypes.isAudio(mFormats.get(i).sampleMimeType)) { in init()
211 MediaFormat mediaFormat = getAudioMediaFormat(mFormats.get(i)); in init()
213 audios.add(new BufferManager.TrackFormat(mIds.get(i), mediaFormat)); in init()
214 } else if (MimeTypes.isVideo(mFormats.get(i).sampleMimeType)) { in init()
215 MediaFormat mediaFormat = getVideoMediaFormat(mFormats.get(i)); in init()
217 if (mFormats.get(i).pixelWidthHeightRatio != Format.NO_VALUE) { in init()
223 (mFormats.get(i).width in init()
224 * mFormats.get(i).pixelWidthHeightRatio)); in init()
226 videos.add(new BufferManager.TrackFormat(mIds.get(i), mediaFormat)); in init()
[all …]
/packages/apps/Dialer/java/com/android/dialer/preferredsim/impl/
DPreferredAccountWorkerImpl.java107 Optional<PhoneAccountHandle> preferred = getPreferredAccount(appContext, dataId.get()); in doInBackground()
109 return usePreferredSim(preferred.get(), candidates, dataId.get()); in doInBackground()
122 SimSuggestionComponent.get(appContext) in doInBackground()
125 if (suggestion.isPresent() && suggestion.get().shouldAutoSelect) { in doInBackground()
126 return useSuggestedSim(suggestion.get(), candidates, dataId.orNull()); in doInBackground()
133 resultBuilder.setSuggestion(suggestion.get()); in doInBackground()
136 resultBuilder.setDataId(dataId.get()); in doInBackground()
145 Logger.get(appContext).logImpression(Type.DUAL_SIM_SELECTION_PREFERRED_USED); in usePreferredSim()
148 Logger.get(appContext).logImpression(Type.DUAL_SIM_SELECTION_PREFERRED_NOT_SELECTABLE); in usePreferredSim()
161 Logger.get(appContext).logImpression(Type.DUAL_SIM_SELECTION_GLOBAL_USED); in useDefaultSim()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/storage/
DDatabaseManagerTest.java263 Metadata checkData = list.get(0); in testRemoveUnusedMetadata_WithSingleBondedDevice()
315 Metadata checkData1 = list.get(0); in testRemoveUnusedMetadata_WithMultiBondedDevices()
317 Metadata checkData2 = list.get(1); in testRemoveUnusedMetadata_WithMultiBondedDevices()
419 .mMetadataCache.get(mTestDevice.getAddress()).is_active_a2dp_device); in testSetConnection()
424 Assert.assertEquals(mTestDevice, mostRecentlyConnectedDevicesOrdered.get(0)); in testSetConnection()
431 .mMetadataCache.get(mTestDevice.getAddress()).is_active_a2dp_device); in testSetConnection()
433 .mMetadataCache.get(mTestDevice2.getAddress()).is_active_a2dp_device); in testSetConnection()
437 Assert.assertEquals(mTestDevice2, mostRecentlyConnectedDevicesOrdered.get(0)); in testSetConnection()
438 Assert.assertEquals(mTestDevice, mostRecentlyConnectedDevicesOrdered.get(1)); in testSetConnection()
445 .mMetadataCache.get(mTestDevice.getAddress()).is_active_a2dp_device); in testSetConnection()
[all …]

12345678910>>...141