Home
last modified time | relevance | path

Searched refs:returnCode (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/base/core/java/android/net/metrics/
DValidationProbeEvent.java71 public final @ReturnCode int returnCode; field in ValidationProbeEvent
73 private ValidationProbeEvent(long durationMs, int probeType, int returnCode) { in ValidationProbeEvent() argument
76 this.returnCode = returnCode; in ValidationProbeEvent()
82 returnCode = in.readInt(); in ValidationProbeEvent()
115 public Builder setReturnCode(int returnCode) { in setReturnCode() argument
116 mReturnCode = returnCode; in setReturnCode()
134 out.writeInt(returnCode); in writeToParcel()
174 getProbeName(probeType), returnCode, getValidationStage(probeType), durationMs); in toString()
183 && returnCode == other.returnCode; in equals()
DDnsEvent.java58 boolean addResult(byte eventType, byte returnCode, int latencyMs) { in addResult() argument
59 boolean isSuccess = (returnCode == 0); in addResult()
68 returnCodes[eventCount] = returnCode; in addResult()
DNetworkMetrics.java76 public void addDnsResult(int eventType, int returnCode, int latencyMs) { in addDnsResult() argument
80 boolean isSuccess = dnsMetrics.addResult((byte) eventType, (byte) returnCode, latencyMs); in addDnsResult()
/frameworks/av/media/module/codecs/amrwb/enc/SampleCode/
DAMRWB_E_SAMPLE.c82 int returnCode; in encode() local
151 returnCode = pGetAPI(&AudioAPI); in encode()
152 if(returnCode) in encode()
210 returnCode = AudioAPI.SetInputData(hCodec,&inData); in encode()
213 returnCode = AudioAPI.GetOutputData(hCodec,&outData, &outFormat); in encode()
214 if(returnCode == 0) in encode()
229 else if((unsigned)returnCode == VO_ERR_LICENSE_ERROR) in encode()
234 } while((unsigned)returnCode != VO_ERR_INPUT_BUFFER_SMALL); in encode()
245 } while (!eofFile && returnCode); in encode()
249 returnCode = AudioAPI.Uninit(hCodec); in encode()
/frameworks/base/core/java/android/app/
DPackageDeleteObserver.java38 public void onPackageDeleted(String basePackageName, int returnCode, String msg) {
39 PackageDeleteObserver.this.onPackageDeleted(basePackageName, returnCode, msg);
51 public void onPackageDeleted(String basePackageName, int returnCode, String msg) { in onPackageDeleted() argument
DPackageInstallObserver.java38 public void onPackageInstalled(String basePackageName, int returnCode,
40 PackageInstallObserver.this.onPackageInstalled(basePackageName, returnCode, msg,
69 public void onPackageInstalled(String basePackageName, int returnCode, String msg, in onPackageInstalled() argument
/frameworks/base/telephony/java/android/telephony/
DMbmsStreamingSession.java212 int returnCode = streamingService.requestUpdateStreamingServices( in requestUpdateStreamingServices() local
214 if (returnCode == MbmsErrors.UNKNOWN) { in requestUpdateStreamingServices()
219 if (returnCode != MbmsErrors.SUCCESS) { in requestUpdateStreamingServices()
220 sendErrorToApp(returnCode, null); in requestUpdateStreamingServices()
264 int returnCode = streamingService.startStreaming( in startStreaming() local
266 if (returnCode == MbmsErrors.UNKNOWN) { in startStreaming()
271 if (returnCode != MbmsErrors.SUCCESS) { in startStreaming()
272 sendErrorToApp(returnCode, null); in startStreaming()
DMbmsGroupCallSession.java222 int returnCode = groupCallService.startGroupCall( in startGroupCall() local
224 if (returnCode == MbmsErrors.UNKNOWN) { in startGroupCall()
229 if (returnCode != MbmsErrors.SUCCESS) { in startGroupCall()
230 mInternalCallback.onError(returnCode, null); in startGroupCall()
DMbmsDownloadSession.java421 int returnCode = downloadService.requestUpdateFileServices(mSubscriptionId, classList); in requestUpdateFileServices() local
422 if (returnCode == MbmsErrors.UNKNOWN) { in requestUpdateFileServices()
427 if (returnCode != MbmsErrors.SUCCESS) { in requestUpdateFileServices()
428 sendErrorToApp(returnCode, null); in requestUpdateFileServices()
475 int returnCode = downloadService.addServiceAnnouncement( in addServiceAnnouncement() local
477 if (returnCode == MbmsErrors.UNKNOWN) { in addServiceAnnouncement()
482 if (returnCode != MbmsErrors.SUCCESS) { in addServiceAnnouncement()
483 sendErrorToApp(returnCode, null); in addServiceAnnouncement()
/frameworks/av/media/libaaudio/scripts/
Dmeasure_device_power.py86 returnCode = 1
89 while count < limit and returnCode != 0:
93 returnCode = subprocess.call(["adb", command])
94 print(('returnCode = {}'.format(returnCode)))
96 return returnCode
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DNonRequiredPackageDeleteObserver.java43 public void packageDeleted(String packageName, int returnCode) { in packageDeleted() argument
44 if (returnCode != PackageManager.DELETE_SUCCEEDED) { in packageDeleted()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DUninstallFinish.java56 int returnCode = intent.getIntExtra(PackageInstaller.EXTRA_STATUS, 0); in onReceive() local
60 if (returnCode == PackageInstaller.STATUS_PENDING_USER_ACTION) { in onReceive()
84 switch (returnCode) { in onReceive()
158 + returnCode + " no blocking user"); in onReceive()
181 + returnCode); in onReceive()
/frameworks/av/media/libaaudio/src/core/
DAudioGlobal.cpp50 const char* AudioGlobal_convertResultToText(aaudio_result_t returnCode) { in AudioGlobal_convertResultToText() argument
51 switch (returnCode) { in AudioGlobal_convertResultToText()
DAudioGlobal.h39 const char* AudioGlobal_convertResultToText(aaudio_result_t returnCode);
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/uninstall/
DUninstallCompleteCallbackTest.kt51 override fun onPackageDeleted(basePackageName: String, returnCode: Int, msg: String) { in onPackageDeleted()
52 mockAdapter.onPackageDeleted(basePackageName, returnCode, msg) in onPackageDeleted()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageSessionVerifier.java62 void onResult(int returnCode, String msg); in onResult() argument
174 public void onPackageInstalled(String basePackageName, int returnCode, String msg, in verifyAPK()
176 if (session.isStaged() && returnCode == PackageManager.INSTALL_SUCCEEDED) { in verifyAPK()
181 if (returnCode != PackageManager.INSTALL_SUCCEEDED) { in verifyAPK()
182 String errorMessage = PackageManager.installStatusToString(returnCode, msg); in verifyAPK()
183 session.setSessionFailed(returnCode, errorMessage); in verifyAPK()
184 callback.onResult(returnCode, msg); in verifyAPK()
DDeletePackageHelper.java812 int returnCode; in deletePackageVersionedInternal() local
826 returnCode = deletePackageX(internalPackageName, versionCode, in deletePackageVersionedInternal()
830 if (returnCode == DELETE_SUCCEEDED && packageState != null) { in deletePackageVersionedInternal()
854 returnCode = PackageManager.DELETE_FAILED_FOR_CHILD_PROFILE; in deletePackageVersionedInternal()
864 returnCode = deletePackageX(internalPackageName, versionCode, in deletePackageVersionedInternal()
871 returnCode = deletePackageX(internalPackageName, versionCode, in deletePackageVersionedInternal()
873 if (returnCode != DELETE_SUCCEEDED) { in deletePackageVersionedInternal()
875 + ", returnCode " + returnCode); in deletePackageVersionedInternal()
881 returnCode = PackageManager.DELETE_FAILED_OWNER_BLOCKED; in deletePackageVersionedInternal()
885 returnCode = PackageManager.DELETE_FAILED_INTERNAL_ERROR; in deletePackageVersionedInternal()
[all …]
/frameworks/base/core/java/android/content/pm/
DIPackageDeleteObserver.aidl27 void packageDeleted(in String packageName, in int returnCode); in packageDeleted() argument
DIPackageDeleteObserver2.aidl25 void onPackageDeleted(String packageName, int returnCode, String msg); in onPackageDeleted() argument
DIPackageInstallObserver2.aidl47 void onPackageInstalled(String basePackageName, int returnCode, String msg, in Bundle extras); in onPackageInstalled() argument
/frameworks/base/core/java/android/net/
DINetdEventCallback.aidl44 void onDnsEvent(int netId, int eventType, int returnCode, String hostname, in onDnsEvent() argument
/frameworks/base/core/java/com/android/server/net/
DBaseNetdEventCallback.java29 public void onDnsEvent(int netId, int eventType, int returnCode, String hostname, in onDnsEvent() argument
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DRestoreDeleteObserver.java63 public void packageDeleted(String packageName, int returnCode) throws RemoteException { in packageDeleted() argument
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecFeatureAction.java313 protected void finishWithCallback(int returnCode) { in finishWithCallback() argument
314 invokeCallback(returnCode); in finishWithCallback()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetdEventListenerService.java214 public synchronized void onDnsEvent(int netId, int eventType, int returnCode, int latencyMs, in onDnsEvent() argument
217 getMetricsForNetwork(timestamp, netId).addDnsResult(eventType, returnCode, latencyMs); in onDnsEvent()
222 callback.onDnsEvent(netId, eventType, returnCode, hostname, ipAddresses, in onDnsEvent()

12