Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DBackgroundLaunchProcessControllerTests.java100 assertThat(balVerdict.getCode()).isEqualTo(BAL_BLOCK); in testNothingAllows()
112 assertThat(balVerdict.getCode()).isEqualTo(BAL_ALLOW_PERMISSION); in testInstrumenting()
129 assertThat(balVerdict.getCode()).isEqualTo(BAL_ALLOW_PERMISSION); in testAllowedByTokenNoCallback()
144 assertThat(balVerdict.getCode()).isEqualTo(BAL_ALLOW_PERMISSION); in testAllowedByToken()
158 assertThat(balVerdict.getCode()).isEqualTo(BAL_ALLOW_VISIBLE_WINDOW); in testBoundByForeground()
171 assertThat(balVerdict.getCode()).isEqualTo(BAL_ALLOW_FOREGROUND); in testForegroundTask()
187 assertThat(balVerdict.getCode()).isEqualTo(BAL_ALLOW_GRACE_PERIOD); in testGracePeriod()
DBackgroundActivityStartControllerExemptionTests.java238 assertWithMessage(balState.toString()).that(callerVerdict.getCode()).isEqualTo( in testNoExemption()
240 assertWithMessage(balState.toString()).that(realCallerVerdict.getCode()).isEqualTo( in testNoExemption()
272 assertWithMessage(balState.toString()).that(callerVerdict.getCode()).isEqualTo( in testCaller_appHasVisibleWindow()
304 assertWithMessage(balState.toString()).that(realCallerVerdict.getCode()).isEqualTo( in testRealCaller_appHasVisibleWindow()
344 assertWithMessage(balState.toString()).that(callerVerdict.getCode()).isEqualTo( in testCaller_appAllowedByBLPC()
380 assertWithMessage(balState.toString()).that(realCallerVerdict.getCode()).isEqualTo( in testRealCaller_appAllowedByBLPC()
429 assertWithMessage(balState.toString()).that(realCallerVerdict.getCode()).isEqualTo( in testRealCaller_appAllowedByBLPCforOtherProcess()
465 assertWithMessage(balState.toString()).that(realCallerVerdict.getCode()).isEqualTo( in testRealCaller_isCompanionApp()
497 assertWithMessage(balState.toString()).that(callerVerdict.getCode()).isEqualTo( in testCaller_balPermission()
533 assertWithMessage(balState.toString()).that(realCallerVerdict.getCode()).isEqualTo( in testRealCaller_balPermission()
[all …]
DBackgroundActivityStartControllerTests.java252 assertThat(verdict.getCode()).isEqualTo(BackgroundActivityStartController.BAL_BLOCK); in testRegularActivityStart_noExemption_isBlocked()
325 new BalAllowedLog("package.app3/someClass", callerVerdict.getCode())); in testRegularActivityStart_allowedByCaller_isAllowed()
359 new BalAllowedLog("package.app3/someClass", realCallerVerdict.getCode())); in testRegularActivityStart_allowedByRealCaller_isAllowed()
394 new BalAllowedLog("package.app3/someClass", callerVerdict.getCode())); in testRegularActivityStart_allowedByCallerAndRealCaller_returnsCallerVerdict()
397 new BalAllowedLog("", callerVerdict.getCode())); in testRegularActivityStart_allowedByCallerAndRealCaller_returnsCallerVerdict()
473 new BalAllowedLog("package.app3/someClass", callerVerdict.getCode())); in testPendingIntent_allowedByCallerAndOptIn_isAllowed()
/frameworks/base/services/tests/RemoteProvisioningServiceTests/src/com/android/server/security/rkp/
DRemoteProvisioningShellCommandTest.java101 int getCode() { in getCode() method in RemoteProvisioningShellCommandTest.CommandResult
142 assertThat(res.getCode()).isEqualTo(0); in list_zeroInstances()
155 assertThat(res.getCode()).isEqualTo(0); in list_oneInstances()
169 assertThat(res.getCode()).isEqualTo(0); in list_twoInstances()
203 assertThat(res.getCode()).isEqualTo(0); in csr_hwVersion1_withChallenge()
236 assertThat(res.getCode()).isEqualTo(0); in csr_hwVersion2_withChallenge()
255 assertThat(res.getCode()).isEqualTo(0); in csr_hwVersion3_withoutChallenge()
276 assertThat(res.getCode()).isEqualTo(0); in csr_hwVersion3_withChallenge()
319 assertThat(res.getCode()).isEqualTo(0); in certify_sameOrderAsReceived()
353 assertThat(res.getCode()).isEqualTo(0); in certify_noBlankLineBeforeTrailer()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/appops/
DAppOpsControllerTest.java215 assertThat(first.getCode()).isEqualTo(AppOpsManager.OP_FINE_LOCATION); in startListening_fetchesCurrentActive_oneActive()
249 assertThat(item0.getCode()).isEqualTo(AppOpsManager.OP_FINE_LOCATION); in startListening_fetchesCurrentActive_multiplePackages()
254 assertThat(item1.getCode()).isEqualTo(AppOpsManager.OP_FINE_LOCATION); in startListening_fetchesCurrentActive_multiplePackages()
297 assertThat(first.getCode()).isEqualTo(AppOpsManager.OP_PHONE_CALL_MICROPHONE); in startListening_fetchesCurrentActive_multipleEntries()
302 assertThat(second.getCode()).isEqualTo(AppOpsManager.OP_CAMERA); in startListening_fetchesCurrentActive_multipleEntries()
338 assertThat(first.getCode()).isEqualTo(AppOpsManager.OP_RECORD_AUDIO); in startListening_fetchesCurrentActive_multipleAttributes()
777 assertEquals(AppOpsManager.OP_CAMERA, list.get(0).getCode()); in testOnlyRecordAudioPhoneCallMicrophonePaused()
921 assertEquals(AppOpsManager.OP_CAMERA, list.get(0).getCode()); in testCameraFilteredWhenCameraDisabled()
931 assertEquals(AppOpsManager.OP_RECORD_AUDIO, list.get(0).getCode()); in testCameraFilteredWhenCameraDisabled()
939 int cameraIdx = list.get(0).getCode() == AppOpsManager.OP_CAMERA ? 0 : 1; in testCameraFilteredWhenCameraDisabled()
[all …]
/frameworks/base/telephony/java/com/android/ims/
DImsException.java53 public int getCode() { in getCode() method in ImsException
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DLocationControllerImpl.java235 if (appOpsItems.get(i).getCode() == OP_MONITOR_HIGH_POWER_LOCATION) { in areActiveHighPowerLocationRequests()
262 if (appOpsItems.get(i).getCode() == OP_FINE_LOCATION in areActiveLocationRequests()
263 || appOpsItems.get(i).getCode() == OP_COARSE_LOCATION) { in areActiveLocationRequests()
299 final String permission = AppOpsManager.opToPermission(item.getCode()); in isSystemApp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/appops/
DAppOpItem.java44 public int getCode() { in getCode() method in AppOpItem
DAppOpsControllerImpl.java308 if (item.getCode() == code && item.getUid() == uid in getAppOpItemLocked()
545 if (isOpMicrophone(item.getCode())) { in updateSensorDisabledStatus()
547 } else if (isOpCamera(item.getCode())) { in updateSensorDisabledStatus()
554 item.getCode(), in updateSensorDisabledStatus()
635 removeNoted(item.getCode(), item.getUid(), item.getPackageName()); in scheduleRemoval()
/frameworks/native/libs/binder/tests/
DbinderRecordedTransactionTest.cpp49 EXPECT_EQ(retrievedTransaction->getCode(), 1); in TEST()
123 EXPECT_EQ(retrievedTransaction->getCode(), 1); in TEST()
/frameworks/base/telephony/java/android/telephony/ims/
DImsException.java117 public @ImsErrorCode int getCode() { in getCode() method in ImsException
/frameworks/base/media/java/android/mtp/
DMtpPropertyList.java72 public int getCode() { in getCode() method in MtpPropertyList
/frameworks/native/libs/binder/include/binder/
DRecordedTransaction.h47 LIBBINDER_EXPORTED uint32_t getCode() const;
/frameworks/base/telecomm/java/android/telecom/
DCallException.java133 public @CallErrorCode int getCode() { in getCode() method in CallException
DCallEndpointException.java101 public @CallEndpointErrorCode int getCode() { in getCode() method in CallEndpointException
DCallControl.java420 final int code = disconnectCause.getCode(); in validateDisconnectCause()
427 + "DisconnectCause.REJECTED]", disconnectCause.getCode())); in validateDisconnectCause()
DQueryLocationException.java114 public @QueryLocationErrorCode int getCode() { in getCode() method in QueryLocationException
DDisconnectCause.java236 public @DisconnectCauseCode int getCode() { in getCode() method in DisconnectCause
493 return Objects.equals(mDisconnectCode, d.getCode()) in equals()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
DImsCallProfileTest.java178 assertEquals(DisconnectCause.BUSY, parceledCause.getCode()); in testExtrasCleanup()
/frameworks/ex/camera2/public/src/com/android/ex/camera2/blocking/
DBlockingCameraManager.java73 public int getCode() { in getCode() method in BlockingCameraManager.BlockingOpenException
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneCallTracker.java3205 int code = reasonInfo.getCode(); in maybeRemapReasonCode()
3212 log("maybeRemapReasonCode : fromCode = " + reasonInfo.getCode() + " ; message = " in maybeRemapReasonCode()
3221 log("maybeRemapReasonCode : fromCode = " + reasonInfo.getCode() + " ; message = " in maybeRemapReasonCode()
3231 log("maybeRemapReasonCode : fromCode(wildcard) = " + reasonInfo.getCode() + in maybeRemapReasonCode()
3244 log("maybeRemapReasonCode : fromCode = " + reasonInfo.getCode() + in maybeRemapReasonCode()
3553 if (DBG) log("onCallStartFailed reasonCode=" + reasonInfo.getCode());
3588 int reason = reasonInfo.getCode();
3605 if (reasonInfo.getCode() == ImsReasonInfo.CODE_LOCAL_CALL_CS_RETRY_REQUIRED
3634 } else if (reasonInfo.getCode() == ImsReasonInfo.CODE_LOCAL_CALL_CS_RETRY_REQUIRED
3652 if (DBG) log("onCallTerminated reasonCode=" + reasonInfo.getCode());
[all …]
/frameworks/opt/net/ims/src/java/com/android/ims/
DFeatureConnector.java181 if (e.getCode()
/frameworks/native/libs/binder/tests/parcel_fuzzer/
Drandom_parcel_seeds.cpp267 uint32_t code = transaction.getCode(); in generateSeedsFromRecording()
/frameworks/native/libs/binder/
DRecordedTransaction.cpp396 uint32_t RecordedTransaction::getCode() const { in getCode() function in RecordedTransaction
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DImsStats.java380 termination.reasonCode = reasonInfo.getCode(); in onImsUnregistered()

12