HomeSort by relevance Sort by last modified time
    Searched defs:Binder (Results 1 - 25 of 93) sorted by null

1 2 3 4

  /frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
BinderUtil.java 19 import android.os.Binder;
22 * Utilities for faking the calling uid in Binder.
26 * Fake the calling uid in Binder.
27 * @param uid the calling uid that Binder should return from now on
30 Binder.restoreCallingIdentity((((long) uid) << 32) | Binder.getCallingPid());
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
BinderTest.java 7 import android.os.Binder;
21 assertThat(Binder.getCallingPid(), equalTo(47));
26 int pid = Binder.getCallingPid();
  /frameworks/base/tests/permission/src/com/android/framework/permission/tests/
VibratorServicePermissionTest.java 22 import android.os.Binder;
55 new Binder());
70 mVibratorService.cancelVibrate(new Binder());
  /cts/tests/tests/os/src/android/os/cts/
BinderTest.java 29 import android.os.Binder;
48 private Binder mStartReceiver;
58 mStartReceiver = new Binder() {
316 new Binder();
318 assertEquals(Process.myPid(), Binder.getCallingPid());
319 assertEquals(Process.myUid(), Binder.getCallingUid());
337 Binder.flushPendingCommands();
347 Binder.joinThreadPool();
370 if (elem.toString().contains("Binder.joinThreadPool")) {
379 long token = Binder.clearCallingIdentity()
    [all...]
  /external/guice/core/src/com/google/inject/
Binder.java 19 import com.google.inject.binder.AnnotatedBindingBuilder;
20 import com.google.inject.binder.AnnotatedConstantBindingBuilder;
21 import com.google.inject.binder.LinkedBindingBuilder;
48 * {@code binder}, just as you will if your module extends
196 * <p>The other methods of Binder such as {@link #bindScope},
206 public interface Binder {
237 * See the EDSL examples at {@link Binder}.
242 * See the EDSL examples at {@link Binder}.
247 * See the EDSL examples at {@link Binder}.
252 * See the EDSL examples at {@link Binder}
    [all...]
  /external/turbine/javatests/com/google/turbine/binder/
BinderTest.java 17 package com.google.turbine.binder;
25 import com.google.turbine.binder.bound.SourceTypeBoundClass;
26 import com.google.turbine.binder.sym.ClassSymbol;
77 Binder.bind(units, Collections.emptyList(), BOOTCLASSPATH).units();
118 Binder.bind(units, Collections.emptyList(), BOOTCLASSPATH).units();
153 Binder.bind(units, Collections.emptyList(), BOOTCLASSPATH).units();
178 Binder.bind(units, Collections.emptyList(), BOOTCLASSPATH);
195 Binder.bind(units, Collections.emptyList(), BOOTCLASSPATH).units();
219 Binder.bind(units, Collections.emptyList(), BOOTCLASSPATH).units();
255 Binder.bind(units, ImmutableList.of(libJar), BOOTCLASSPATH).units()
    [all...]
  /frameworks/base/services/core/java/com/android/server/
HardwarePropertiesManagerService.java 34 import android.os.Binder;
103 Binder.getCallingUid());
164 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage);
165 final int userId = UserHandle.getUserId(Binder.getCallingUid());
  /packages/apps/Settings/tests/robotests/src/com/android/settings/search/
DeviceIndexFeatureProviderTest.java 25 import android.os.Binder;
114 ShadowBinder.setCallingUid(Binder.getCallingUid() + 2000);
  /external/deqp/modules/glshared/
glsLifetimeTests.hpp 98 class Binder : public ContextWrapper
101 virtual ~Binder (void) {}
107 Binder (const Context& ctx) : ContextWrapper(ctx) {}
110 class SimpleBinder : public Binder
118 : Binder (ctx)
143 virtual Binder* binder (void) const { return DE_NULL; } function in class:deqp::gls::LifetimeTests::details::Type
157 Binder* binder_ = DE_NULL, bool genCreates_ = false)
169 Binder* binder (void) const { return m_binder; function in class:deqp::gls::LifetimeTests::details::SimpleType
    [all...]
  /external/turbine/java/com/google/turbine/binder/
Binder.java 17 package com.google.turbine.binder;
26 import com.google.turbine.binder.CompUnitPreprocessor.PreprocessedCompUnit;
27 import com.google.turbine.binder.Resolve.CanonicalResolver;
28 import com.google.turbine.binder.bound.BoundClass;
29 import com.google.turbine.binder.bound.HeaderBoundClass;
30 import com.google.turbine.binder.bound.PackageSourceBoundClass;
31 import com.google.turbine.binder.bound.SourceBoundClass;
32 import com.google.turbine.binder.bound.SourceHeaderBoundClass;
33 import com.google.turbine.binder.bound.SourceTypeBoundClass;
34 import com.google.turbine.binder.bound.TypeBoundClass
    [all...]
  /frameworks/base/core/java/android/os/
Looper.java 146 Binder.clearCallingIdentity();
147 final long ident = Binder.clearCallingIdentity();
224 final long newIdent = Binder.clearCallingIdentity();
MessageQueue.java 323 Binder.flushPendingCommands();
Binder.java 53 * interface, having it generate the appropriate Binder subclass. You can,
54 * however, derive directly from Binder to implement your own custom RPC
55 * protocol or simply instantiate a raw Binder object directly to use as a
66 * could go away, and thus require that you later re-create a new Binder and re-attach
70 * create a new Binder and hand it back to the correct place again; you need to be
73 * to create a new Binder.</p>
77 public class Binder implements IBinder {
80 * that extend this Binder class and that are not static. These kind
86 static final String TAG = "Binder";
102 * Guestimate of native memory associated with a Binder
    [all...]
  /frameworks/base/services/core/java/com/android/server/media/
AudioPlayerStateMonitor.java 24 import android.os.Binder;
131 Binder.flushPendingCommands();
133 final long token = Binder.clearCallingIdentity();
185 Binder.restoreCallingIdentity(token);
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/
AppSmsManager.java 23 import android.os.Binder;
78 appOps.checkPackage(Binder.getCallingUid(), callingPkg);
  /packages/apps/SecureElement/src/com/android/se/
Channel.java 25 import android.os.Binder;
306 Channel.this.setCallingPid(Binder.getCallingPid());
316 Channel.this.setCallingPid(Binder.getCallingPid());
  /frameworks/base/services/companion/java/com/android/server/companion/
CompanionDeviceManagerService.java 44 import android.os.Binder;
100 public class CompanionDeviceManagerService extends SystemService implements Binder.DeathRecipient {
226 final long callingIdentity = Binder.clearCallingIdentity();
234 Binder.restoreCallingIdentity(callingIdentity);
280 mAppOpsManager.checkPackage(Binder.getCallingUid(), pkg);
294 long identity = Binder.clearCallingIdentity();
303 Binder.restoreCallingIdentity(identity);
349 return UserHandle.getUserId(Binder.getCallingUid());
353 return Binder.getCallingUid() == Process.SYSTEM_UID;
445 Binder.withCleanCallingIdentity(obtainRunnable(CompanionDeviceManagerService:
    [all...]
  /packages/services/Telecomm/src/com/android/server/telecom/
TelecomServiceImpl.java 38 import android.os.Binder;
95 final UserHandle callingUserHandle = Binder.getCallingUserHandle();
96 long token = Binder.clearCallingIdentity();
104 Binder.restoreCallingIdentity(token);
117 final UserHandle callingUserHandle = Binder.getCallingUserHandle();
135 UserHandle callingUserHandle = Binder.getCallingUserHandle();
136 long token = Binder.clearCallingIdentity();
144 Binder.restoreCallingIdentity(token);
161 final UserHandle callingUserHandle = Binder.getCallingUserHandle();
162 long token = Binder.clearCallingIdentity()
    [all...]
  /frameworks/base/core/java/android/content/
ContentProviderNative.java 28 import android.os.Binder;
43 abstract public class ContentProviderNative extends Binder implements IContentProvider {
50 * Cast a Binder object into a content resolver interface, generating
422 Binder.copyAllowBlocking(mRemote, (d.cursor != null) ? d.cursor.asBinder() : null);
ContentProvider.java 37 import android.os.Binder;
190 * Binder object that deals with remoting.
541 if (getContext().checkPermission(permission, Binder.getCallingPid(), Binder.getCallingUid(),
558 final int pid = Binder.getCallingPid();
559 final int uid = Binder.getCallingUid();
640 final int pid = Binder.getCallingPid();
641 final int uid = Binder.getCallingUid();
738 * @see Binder#getCallingUid()
746 mTransport.mAppOpsManager.checkPackage(Binder.getCallingUid(), pkg)
    [all...]
  /frameworks/base/core/java/android/database/
CursorWindow.java 23 import android.os.Binder;
139 recordNewWindow(Binder.getCallingPid(), mWindowPtr);
165 + "created from binder.");
  /frameworks/base/media/java/android/media/
AudioPlaybackConfiguration.java 22 import android.os.Binder;
541 Binder.flushPendingCommands();
  /frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
RecoverableKeyStoreManager.java 34 import android.os.Binder;
179 int uid = Binder.getCallingUid();
330 int uid = Binder.getCallingUid();
341 int uid = Binder.getCallingUid();
352 int uid = Binder.getCallingUid();
386 long updatedRows = mDatabase.setRecoveryStatus(Binder.getCallingUid(), alias, status);
404 return mDatabase.getStatusForAllKeys(Binder.getCallingUid());
418 int uid = Binder.getCallingUid();
455 Binder.getCallingUid());
481 int uid = Binder.getCallingUid()
    [all...]
  /frameworks/base/services/usage/java/com/android/server/usage/
StorageStatsService.java 35 import android.os.Binder;
158 enforcePermission(Binder.getCallingUid(), callingPackage);
169 enforcePermission(Binder.getCallingUid(), callingPackage);
198 final long token = Binder.clearCallingIdentity();
220 Binder.restoreCallingIdentity(token);
226 enforcePermission(Binder.getCallingUid(), callingPackage);
238 enforcePermission(Binder.getCallingUid(), callingPackage);
264 if (Binder.getCallingUid() == appInfo.uid) {
267 enforcePermission(Binder.getCallingUid(), callingPackage);
308 if (Binder.getCallingUid() == uid)
    [all...]
  /packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/
MapClientService.java 241 return new Binder(this);
358 //Binder object: Must be static class or memory leak may occur
364 private static class Binder extends IBluetoothMapClient.Stub implements IProfileServiceBinder {
367 Binder(MapClientService service) {
369 Log.v(TAG, "Binder()");

Completed in 727 milliseconds

1 2 3 4