Compare commits
3 Commits
lineage-21
...
cm-12.1
Author | SHA1 | Date | |
---|---|---|---|
|
1ed061f396 | ||
|
cbdae1245d | ||
|
7f60587448 |
@ -263,8 +263,8 @@ int init_frame_buffer_locked(struct private_module_t* module)
|
||||
|
||||
int refreshRate = 1000000000000000LLU /
|
||||
(
|
||||
uint64_t( info.upper_margin + info.lower_margin + info.yres )
|
||||
* ( info.left_margin + info.right_margin + info.xres )
|
||||
uint64_t( info.upper_margin + info.lower_margin + info.vsync_len + info.yres )
|
||||
* ( info.left_margin + info.right_margin + info.hsync_len + info.xres )
|
||||
* info.pixclock
|
||||
);
|
||||
|
||||
|
@ -67,6 +67,7 @@ namespace android {
|
||||
|
||||
|
||||
#define PROPERTY_RIL_IMPL "gsm.version.ril-impl"
|
||||
#define PROPERTY_QAN_ELEMENTS "ro.ril.qanelements"
|
||||
|
||||
// match with constant in RIL.java
|
||||
#define MAX_COMMAND_BYTES (8 * 1024)
|
||||
@ -2132,7 +2133,7 @@ sendResponseRaw (const void *data, size_t dataSize, RIL_SOCKET_ID socket_id) {
|
||||
uint32_t header;
|
||||
pthread_mutex_t * writeMutexHook = &s_writeMutex;
|
||||
|
||||
RLOGE("Send Response to %s", rilSocketIdToString(socket_id));
|
||||
RLOGD("Send Response to %s", rilSocketIdToString(socket_id));
|
||||
|
||||
#if (SIM_COUNT >= 2)
|
||||
if (socket_id == RIL_SOCKET_2) {
|
||||
@ -2297,7 +2298,14 @@ static int responseStrings(Parcel &p, void *response, size_t responselen, bool n
|
||||
|
||||
numStrings = responselen / sizeof(char *);
|
||||
if (network_search) {
|
||||
p.writeInt32 ((numStrings / 5) * 4);
|
||||
int32_t QANElements;
|
||||
|
||||
/*
|
||||
* This needs to be set to same value as mQANElements in the RIL
|
||||
* Telephony class.
|
||||
*/
|
||||
QANElements = property_get_int32(PROPERTY_QAN_ELEMENTS, 4);
|
||||
p.writeInt32 ((numStrings / 5) * QANElements);
|
||||
} else {
|
||||
p.writeInt32 (numStrings);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user