Home
last modified time | relevance | path

Searched refs:rc (Results 1 – 25 of 49) sorted by relevance

12

/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Drate_control.cpp27 void updateRateControl(rateControl *rc, VideoEncData *video);
28 void updateRC_PostProc(rateControl *rc, VideoEncData *video);
54 rateControl **rc = video->rc; in RC_Initialize() local
65 rc[n]->fine_frame_skip = encParams->FineFrameSkip_Enabled; in RC_Initialize()
66 rc[n]->no_frame_skip = encParams->NoFrameSkip_Enabled; in RC_Initialize()
67 rc[n]->no_pre_skip = encParams->NoPreSkip_Enabled; in RC_Initialize()
68 rc[n]->skip_next_frame = 0; /* must be initialized */ in RC_Initialize()
71 rc[n]->Bs = video->encParams->BufferSize[n]; in RC_Initialize()
72 rc[n]->TMN_W = 0; in RC_Initialize()
73 rc[n]->VBV_fullness = (Int)(rc[n]->Bs * 0.5); /* rc[n]->Bs */ in RC_Initialize()
[all …]
Dvop.cpp48 rateControl **rc = video->rc; in EncodeVop() local
81 status = RC_VopQPSetting(video, rc); in EncodeVop()
108 RC_VopUpdateStat(video, rc[currLayer]); in EncodeVop()
200 rateControl **rc = video->rc; in EncodeSlice() local
259 status = RC_VopUpdateStat(video, rc[currLayer]); in EncodeSlice()
/frameworks/av/media/libcpustats/
DThreadCpuUsage.cpp36 int rc; in setEnabled() local
39 rc = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &mPreviousTs); in setEnabled()
40 if (rc) { in setEnabled()
47 rc = clock_gettime(CLOCK_MONOTONIC, &mMonotonicTs); in setEnabled()
48 if (rc) { in setEnabled()
58 rc = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts); in setEnabled()
59 if (rc) { in setEnabled()
101 int rc; in sample() local
102 rc = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &ts); in sample()
103 if (rc) { in sample()
[all …]
/frameworks/av/media/libstagefright/codecs/amrnb/common/include/
Dbasic_op_arm_gcc_v5.h201 register Word32 rc = var2; in L_mac() local
208 : "r"(rb), "r"(rc) in L_mac()
212 : "=r"(rc) in L_mac()
216 return (rc); in L_mac()
290 register Word32 rc = var2; in L_msu() local
298 : "r"(rb), "r"(rc) in L_msu()
340 register Word32 rc = L_var2_hi; in Mpy_32() local
349 : "r"(ra), "r"(rc) in Mpy_32()
376 : "r"(rb), "r"(rc) in Mpy_32()
421 register Word32 rc = var2; in Mpy_32_16() local
[all …]
Dl_mac.h126 register Word32 rc = var2;
133 : "r"(rb), "r"(rc)
137 : "=r"(rc)
141 return (rc);
Dmpy_32_16.h123 register Word32 rc = var2;
130 : "r"(ra), "r"(rc)
143 : "r"(rb), "r"(rc)
Dmpy_32.h152 register Word32 rc = L_var2_hi;
161 : "r"(ra), "r"(rc)
188 : "r"(rb), "r"(rc)
Dl_msu.h131 register Word32 rc = var2;
139 : "r"(rb), "r"(rc)
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DProxyController.java326 RadioCapability rc = (RadioCapability) ((AsyncResult) msg.obj).result; in onStartRadioCapabilityResponse() local
327 if ((rc == null) || (rc.getSession() != mRadioCapabilitySessionId)) { in onStartRadioCapabilityResponse()
329 + " rc=" + rc); in onStartRadioCapabilityResponse()
333 int id = rc.getPhoneId(); in onStartRadioCapabilityResponse()
335 logd("onStartRadioCapabilityResponse: Error response session=" + rc.getSession()); in onStartRadioCapabilityResponse()
375 RadioCapability rc = (RadioCapability) ((AsyncResult) msg.obj).result; in onApplyRadioCapabilityResponse() local
376 if ((rc == null) || (rc.getSession() != mRadioCapabilitySessionId)) { in onApplyRadioCapabilityResponse()
378 + " rc=" + rc); in onApplyRadioCapabilityResponse()
381 logd("onApplyRadioCapabilityResponse: rc=" + rc); in onApplyRadioCapabilityResponse()
384 logd("onApplyRadioCapabilityResponse: Error response session=" + rc.getSession()); in onApplyRadioCapabilityResponse()
[all …]
/frameworks/base/media/java/android/media/
DRemoteController.java550 RcDisplay(RemoteController rc) { in RcDisplay() argument
551 mController = new WeakReference<RemoteController>(rc); in RcDisplay()
556 final RemoteController rc = mController.get(); in setCurrentClientId() local
557 if (rc == null) { in setCurrentClientId()
562 if (rc.mClientGenerationIdCurrent != genId) { in setCurrentClientId()
563 rc.mClientGenerationIdCurrent = genId; in setCurrentClientId()
568 sendMsg(rc.mEventHandler, MSG_NEW_PENDING_INTENT, SENDMSG_REPLACE, in setCurrentClientId()
572 sendMsg(rc.mEventHandler, MSG_CLIENT_CHANGE, SENDMSG_REPLACE, in setCurrentClientId()
578 final RemoteController rc = mController.get(); in setEnabled() local
579 if (rc == null) { in setEnabled()
[all …]
/frameworks/base/core/java/com/android/internal/content/
DPackageHelper.java93 int rc = mountService.createSecureContainer(cid, sizeMb, "ext4", sdEncKey, uid, in createSdDir() local
95 if (rc != StorageResultCode.OperationSucceeded) { in createSdDir()
114 int rc = mountService.resizeSecureContainer(cid, sizeMb, sdEncKey); in resizeSdDir() local
115 if (rc == StorageResultCode.OperationSucceeded) { in resizeSdDir()
131 int rc = getMountService().mountSecureContainer(cid, key, ownerUid, readOnly); in mountSdDir() local
132 if (rc != StorageResultCode.OperationSucceeded) { in mountSdDir()
133 Log.i(TAG, "Failed to mount container " + cid + " rc : " + rc); in mountSdDir()
145 int rc = getMountService().unmountSecureContainer(cid, true); in unMountSdDir() local
146 if (rc != StorageResultCode.OperationSucceeded) { in unMountSdDir()
147 Log.e(TAG, "Failed to unmount " + cid + " with rc " + rc); in unMountSdDir()
[all …]
/frameworks/base/core/jni/
Dcom_android_internal_os_Zygote.cpp161 int rc = setgroups(gids.size(), reinterpret_cast<const gid_t*>(&gids[0])); in SetGids() local
162 if (rc == -1) { in SetGids()
191 int rc = setrlimit(javaRlimit[0], &rlim); in SetRLimits() local
192 if (rc == -1) { in SetRLimits()
203 int rc = prctl(PR_SET_KEEPCAPS, 1, 0, 0, 0); in EnableKeepCapabilities() local
204 if (rc == -1) { in EnableKeepCapabilities()
212 int rc = prctl(PR_CAPBSET_DROP, i, 0, 0, 0); in DropCapabilitiesBoundingSet() local
213 if (rc == -1) { in DropCapabilitiesBoundingSet()
485 int rc = createProcessGroup(uid, getpid()); in ForkAndSpecializeCommon() local
486 if (rc != 0) { in ForkAndSpecializeCommon()
[all …]
Dandroid_hardware_Camera.cpp500 status_t rc = Camera::getCameraInfo(cameraId, &cameraInfo); in android_hardware_Camera_getCameraInfo() local
501 if (rc != NO_ERROR) { in android_hardware_Camera_getCameraInfo()
849 status_t rc = camera->sendCommand(CAMERA_CMD_START_SMOOTH_ZOOM, value, 0); in android_hardware_Camera_startSmoothZoom() local
850 if (rc == BAD_VALUE) { in android_hardware_Camera_startSmoothZoom()
854 } else if (rc != NO_ERROR) { in android_hardware_Camera_startSmoothZoom()
890 status_t rc = camera->sendCommand(CAMERA_CMD_ENABLE_SHUTTER_SOUND, value, 0); in android_hardware_Camera_enableShutterSound() local
891 if (rc == NO_ERROR) { in android_hardware_Camera_enableShutterSound()
893 } else if (rc == PERMISSION_DENIED) { in android_hardware_Camera_enableShutterSound()
909 status_t rc = camera->sendCommand(CAMERA_CMD_START_FACE_DETECTION, type, 0); in android_hardware_Camera_startFaceDetection() local
910 if (rc == BAD_VALUE) { in android_hardware_Camera_startFaceDetection()
[all …]
/frameworks/av/services/camera/libcameraservice/device1/
DCameraHardwareInterface.h86 int rc = mDevice->common.close(&mDevice->common); in ~CameraHardwareInterface() local
87 if (rc != OK) in ~CameraHardwareInterface()
88 ALOGE("Could not close camera %s: %d", mName.string(), rc); in ~CameraHardwareInterface()
100 int rc = OK; in initialize() local
104 rc = cameraModule->open_legacy(module, mName.string(), in initialize()
108 rc = CameraService::filterOpenErrorCode(module->methods->open( in initialize()
111 if (rc != OK) { in initialize()
112 ALOGE("Could not open camera %s: %d", mName.string(), rc); in initialize()
113 return rc; in initialize()
116 return rc; in initialize()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwb/src/
Dpvamrwbdecoder_basic_op_gcc_armv5.h107 register int32 rc = (int32)n; in mul_32by16() local
119 "r"(rc)); in mul_32by16()
160 register int32 rc = L_var3; in msu_16by16_from_int32() local
168 "r"(rc)); in msu_16by16_from_int32()
179 register int32 rc = L_var3; in mac_16by16_to_int32() local
187 "r"(rc)); in mac_16by16_to_int32()
263 register int32 rc = (int32)L_add; in fxp_mac_16by16() local
270 "r"(rc)); in fxp_mac_16by16()
/frameworks/av/services/audioflinger/
DAudioWatchdog.cpp57 int rc = clock_gettime(CLOCK_MONOTONIC, &newTs); in threadLoop() local
58 if (rc != 0) { in threadLoop()
102 rc = nanosleep(&req, NULL); in threadLoop()
103 if (!((rc == 0) || (rc == -1 && errno == EINTR))) { in threadLoop()
DFastThread.cpp208 int rc = clock_gettime(CLOCK_MONOTONIC, &newTs); in threadLoop() local
209 if (rc == 0) { in threadLoop()
289 rc = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &newLoad); in threadLoop()
290 if (rc == 0) { in threadLoop()
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Dlevinson.c111 Word16 rc[], /* (o) Q15 : rc[M] Reflection coefficients. */ in Levinson() argument
138 rc[0] = Kh; in Levinson()
185 rc[i - 1] = Kh; in Levinson()
194 rc[0] = old_rc[0]; /* only two rc coefficients are needed */ in Levinson()
195 rc[1] = old_rc[1]; in Levinson()
243 old_rc[0] = rc[0]; in Levinson()
244 old_rc[1] = rc[1]; in Levinson()
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
Dpv_mp3dec_fxd_op_arm_gcc.h81 register int32 rc = (int32)L_add; in fxp_mac32_Q30() local
90 "r"(rc)); in fxp_mac32_Q30()
194 register int32 rc = (int32)L_add; in fxp_mac32_Q32() local
202 "r"(rc)); in fxp_mac32_Q32()
213 register int32 rc = (int32)L_sub; in fxp_msb32_Q32() local
221 "r"(rc)); in fxp_msb32_Q32()
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
Dlpc.cpp496 Word16 rc[4]; /* First 4 reflection coefficients Q15 */ in lpc() local
508 Levinson(st->levinsonSt, rHigh, rLow, &a[MP1], rc, pOverflow); in lpc()
515 Levinson(st->levinsonSt, rHigh, rLow, &a[MP1 * 3], rc, pOverflow); in lpc()
524 Levinson(st->levinsonSt, rHigh, rLow, &a[MP1 * 3], rc, pOverflow); in lpc()
Dlevinson.cpp637 Word16 rc[], /* o : rc[4] First 4 reflection coefficients */ in Levinson() argument
682 *rc = pv_round(t0, pOverflow); in Levinson()
752 *(rc + i - 1) = (Word16)((t2 + 0x00008000L) >> 16); in Levinson()
758 memset(rc, 0, sizeof(Word16)*4); in Levinson()
/frameworks/base/services/core/java/com/android/server/
DMountService.java622 int rc = doMountVolume(path); in handleSystemReady() local
623 if (rc != StorageResultCode.OperationSucceeded) { in handleSystemReady()
625 rc)); in handleSystemReady()
984 int rc; in onEvent() local
985 … if ((rc = doMountVolume(path)) != StorageResultCode.OperationSucceeded) { in onEvent()
986 Slog.w(TAG, String.format("Insertion mount failed (%d)", rc)); in onEvent()
1101 int rc = StorageResultCode.OperationSucceeded; in doMountVolume() local
1126 rc = StorageResultCode.OperationFailedNoMedia; in doMountVolume()
1134 rc = StorageResultCode.OperationFailedMediaBlank; in doMountVolume()
1142 rc = StorageResultCode.OperationFailedMediaCorrupt; in doMountVolume()
[all …]
/frameworks/base/libs/common_time/
Dcommon_time_server.cpp208 int rc, timeout; in runStateMachine_l() local
236 rc = poll(pfds, eventCnt, timeout); in runStateMachine_l()
245 if (rc < 0) { in runStateMachine_l()
250 if (rc == 0) { in runStateMachine_l()
404 int rc; in setupSocket_l() local
447 rc = setsockopt(mSocket, SOL_SOCKET, SO_BINDTODEVICE, in setupSocket_l()
449 if (rc) { in setupSocket_l()
466 rc = bind(mSocket, in setupSocket_l()
469 if (rc) { in setupSocket_l()
482 rc = setsockopt(mSocket, IPPROTO_IP, IP_ADD_MEMBERSHIP, in setupSocket_l()
[all …]
/frameworks/av/services/audiopolicy/
DAudioPolicyService.cpp71 int rc; in onFirstRef() local
87 rc = hw_get_module(AUDIO_POLICY_HARDWARE_MODULE_ID, &module); in onFirstRef()
88 if (rc) { in onFirstRef()
91 rc = audio_policy_dev_open(module, &mpAudioPolicyDev); in onFirstRef()
92 ALOGE_IF(rc, "couldn't open audio policy device (%s)", strerror(-rc)); in onFirstRef()
93 if (rc) { in onFirstRef()
97 rc = mpAudioPolicyDev->create_audio_policy(mpAudioPolicyDev, &aps_ops, this, in onFirstRef()
99 ALOGE_IF(rc, "couldn't create audio policy (%s)", strerror(-rc)); in onFirstRef()
100 if (rc) { in onFirstRef()
104 rc = mpAudioPolicy->init_check(mpAudioPolicy); in onFirstRef()
[all …]
/frameworks/av/services/soundtrigger/
DSoundTriggerHwService.cpp58 int rc; in onFirstRef() local
61 rc = hw_get_module_by_class(SOUND_TRIGGER_HARDWARE_MODULE_ID, HW_MODULE_PREFIX, &mod); in onFirstRef()
62 if (rc != 0) { in onFirstRef()
64 SOUND_TRIGGER_HARDWARE_MODULE_ID, "primary", strerror(-rc)); in onFirstRef()
67 rc = sound_trigger_hw_device_open(mod, &dev); in onFirstRef()
68 if (rc != 0) { in onFirstRef()
70 SOUND_TRIGGER_HARDWARE_MODULE_ID, "primary", strerror(-rc)); in onFirstRef()
79 rc = dev->get_properties(dev, &descriptor.properties); in onFirstRef()
80 if (rc != 0) { in onFirstRef()

12