Searched refs:roAmount (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/media/libdrm/mobile1/src/objmng/ |
D | drm_api.c | 509 int32_t roAmount; in drm_checkRoAndUpdate() local 521 if (FALSE == drm_writeOrReadInfo(id, NULL, &roAmount, GET_ROAMOUNT)) in drm_checkRoAndUpdate() 524 validRoAmount = roAmount; in drm_checkRoAndUpdate() 525 if (roAmount < 1) in drm_checkRoAndUpdate() 528 pRo = malloc(roAmount * sizeof(T_DRM_Rights)); in drm_checkRoAndUpdate() 533 if (FALSE == drm_writeOrReadInfo(id, pRo, &roAmount, GET_ALL_RO)) { in drm_checkRoAndUpdate() 539 pNumOfPriority = malloc(sizeof(int32_t) * roAmount); in drm_checkRoAndUpdate() 540 for(i = 0; i < roAmount; i++) { in drm_checkRoAndUpdate() 541 iNum = roAmount - 1; in drm_checkRoAndUpdate() 542 for(j = 0; j < roAmount; j++) { in drm_checkRoAndUpdate() [all …]
|
D | drm_rights_manager.c | 357 int32_t roAmount; in drm_appendRightsInfo() local 364 if (FALSE == drm_writeOrReadInfo(id, NULL, &roAmount, GET_ROAMOUNT)) in drm_appendRightsInfo() 367 if (-1 == roAmount) in drm_appendRightsInfo() 368 roAmount = 0; in drm_appendRightsInfo() 371 roAmount++; in drm_appendRightsInfo() 374 if (FALSE == drm_writeOrReadInfo(id, rights, &roAmount, SAVE_A_RO)) in drm_appendRightsInfo() 535 int32_t id, roAmount; in drm_getKey() local 543 if (FALSE == drm_writeOrReadInfo(id, NULL, &roAmount, GET_ROAMOUNT)) in drm_getKey() 546 if (roAmount <= 0) in drm_getKey() 550 roAmount = 1; in drm_getKey() [all …]
|