Home
last modified time | relevance | path

Searched refs:psdsType (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/services/core/java/com/android/server/location/gnss/
DGnssPsdsDownloader.java99 byte[] downloadPsdsData(int psdsType) { in downloadPsdsData() argument
103 if (psdsType == LONG_TERM_PSDS_SERVER_INDEX && mLongTermPsdsServers == null) { in downloadPsdsData()
105 } else if (psdsType > LONG_TERM_PSDS_SERVER_INDEX && psdsType <= MAX_PSDS_TYPE_INDEX in downloadPsdsData()
106 && mPsdsServers[psdsType] == null) { in downloadPsdsData()
110 if (psdsType == LONG_TERM_PSDS_SERVER_INDEX) { in downloadPsdsData()
123 } else if (psdsType > LONG_TERM_PSDS_SERVER_INDEX && psdsType <= MAX_PSDS_TYPE_INDEX) { in downloadPsdsData()
124 result = doDownloadWithTrafficAccounted(mPsdsServers[psdsType]); in downloadPsdsData()
DGnssLocationProvider.java673 for (int psdsType : mPendingDownloadPsdsTypes) { in onNetworkAvailable()
674 postWithWakeLockHeld(() -> handleDownloadPsdsData(psdsType)); in onNetworkAvailable()
760 private void handleDownloadPsdsData(int psdsType) { in handleDownloadPsdsData() argument
769 mPendingDownloadPsdsTypes.add(psdsType); in handleDownloadPsdsData()
774 if (mDownloadInProgressPsdsTypes.contains(psdsType)) { in handleDownloadPsdsData()
777 "PSDS type " + psdsType + " download in progress. Ignore the request."); in handleDownloadPsdsData()
783 mDownloadInProgressPsdsTypes.add(psdsType); in handleDownloadPsdsData()
789 byte[] data = psdsDownloader.downloadPsdsData(psdsType); in handleDownloadPsdsData()
793 psdsType); in handleDownloadPsdsData()
795 mGnssNative.injectPsdsData(data, data.length, psdsType); in handleDownloadPsdsData()
[all …]
/frameworks/base/services/core/jni/gnss/
DGnssPsdsCallback.cpp42 Status GnssPsdsCallbackAidl::downloadRequestCb(PsdsType psdsType) { in downloadRequestCb() argument
43 ALOGD("%s. psdsType: %d", __func__, static_cast<int32_t>(psdsType)); in downloadRequestCb()
45 env->CallVoidMethod(mCallbacksObj, method_psdsDownloadRequest, psdsType); in downloadRequestCb()
DGnssPsds.h39 virtual void injectPsdsData(const jbyteArray& data, const jint& length, const jint& psdsType);
46 void injectPsdsData(const jbyteArray& data, const jint& length, const jint& psdsType) override;
56 void injectPsdsData(const jbyteArray& data, const jint& length, const jint& psdsType) override;
DGnssPsds.cpp43 const jint& psdsType) { in injectPsdsData() argument
46 auto status = mIGnssPsds->injectPsdsData(static_cast<PsdsType>(psdsType), in injectPsdsData()
DGnssPsdsCallback.h43 binder::Status downloadRequestCb(hardware::gnss::PsdsType psdsType) override;
/frameworks/base/services/core/java/com/android/server/location/gnss/hal/
DGnssNative.java275 void onRequestPsdsDownload(int psdsType); in onRequestPsdsDownload() argument
1043 public void injectPsdsData(byte[] data, int length, int psdsType) { in injectPsdsData() argument
1045 mGnssHal.injectPsdsData(data, length, psdsType); in injectPsdsData()
1267 void psdsDownloadRequest(int psdsType) { in psdsDownloadRequest() argument
1268 Binder.withCleanCallingIdentity(() -> mPsdsCallbacks.onRequestPsdsDownload(psdsType)); in psdsDownloadRequest()
1565 protected void injectPsdsData(byte[] data, int length, int psdsType) { in injectPsdsData() argument
1566 native_inject_psds_data(data, length, psdsType); in injectPsdsData()
1720 private static native void native_inject_psds_data(byte[] data, int length, int psdsType); in native_inject_psds_data() argument
/frameworks/base/services/core/jni/
Dcom_android_server_location_GnssLocationProvider.cpp488 jint psdsType) { in android_location_gnss_hal_GnssNative_inject_psds_data() argument
493 gnssPsdsIface->injectPsdsData(data, length, psdsType); in android_location_gnss_hal_GnssNative_inject_psds_data()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/gnss/hal/
DFakeGnssHal.java709 protected void injectPsdsData(byte[] data, int length, int psdsType) {} in injectPsdsData() argument