Merge "Fix x86 bug with restoreCallingWorkSource"
This commit is contained in:
committed by
Android (Google) Code Review
commit
b85be43648
@@ -919,7 +919,7 @@ static jlong android_os_Binder_clearCallingWorkSource()
|
||||
return IPCThreadState::self()->clearCallingWorkSource();
|
||||
}
|
||||
|
||||
static void android_os_Binder_restoreCallingWorkSource(long token)
|
||||
static void android_os_Binder_restoreCallingWorkSource(jlong token)
|
||||
{
|
||||
IPCThreadState::self()->restoreCallingWorkSource(token);
|
||||
}
|
||||
|
||||
@@ -125,8 +125,10 @@ public class BinderWorkSourceTest {
|
||||
Binder.setCallingWorkSourceUid(UID);
|
||||
long token = Binder.clearCallingWorkSource();
|
||||
Binder.restoreCallingWorkSource(token);
|
||||
assertEquals(UID, Binder.getCallingWorkSourceUid());
|
||||
|
||||
assertEquals(UID, mService.getIncomingWorkSourceUid());
|
||||
// Still the same after the binder transaction.
|
||||
assertEquals(UID, Binder.getCallingWorkSourceUid());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user