Tabnine Logo
ServiceRecord.peekBinding
Code IndexAdd Tabnine to your IDE (free)

How to use
peekBinding
method
in
com.lody.virtual.server.am.ServiceRecord

Best Java code snippets using com.lody.virtual.server.am.ServiceRecord.peekBinding (Showing top 15 results out of 315)

origin: android-hacker/VirtualXposed

@Override
public void unbindFinished(IBinder token, Intent service, boolean doRebind, int userId) {
  synchronized (this) {
    ServiceRecord r = (ServiceRecord) token;
    if (r != null) {
      ServiceRecord.IntentBindRecord boundRecord = r.peekBinding(service);
      if (boundRecord != null) {
        boundRecord.doRebind = doRebind;
      }
    }
  }
}
origin: android-hacker/VirtualXposed

void addToBoundIntent(Intent intent, IServiceConnection connection) {
  IntentBindRecord record = peekBinding(intent);
  if (record == null) {
    record = new IntentBindRecord();
    record.intent = intent;
    synchronized (bindings) {
      bindings.add(record);
    }
  }
  record.addConnection(connection);
}
origin: android-hacker/VirtualXposed

@Override
public void publishService(IBinder token, Intent intent, IBinder service, int userId) {
  synchronized (this) {
    ServiceRecord r = (ServiceRecord) token;
    if (r != null) {
      ServiceRecord.IntentBindRecord boundRecord = r.peekBinding(intent);
      if (boundRecord != null) {
        boundRecord.binder = service;
        for (IServiceConnection conn : boundRecord.connections) {
          ComponentName component = ComponentUtils.toComponentName(r.serviceInfo);
          connectService(conn, component, boundRecord, false);
        }
      }
    }
  }
}
origin: android-hacker/VirtualXposed

@Override
public IBinder peekService(Intent service, String resolvedType, int userId) {
  synchronized (this) {
    ServiceInfo serviceInfo = resolveServiceInfo(service, userId);
    if (serviceInfo == null) {
      return null;
    }
    ServiceRecord r = findRecordLocked(userId, serviceInfo);
    if (r != null) {
      ServiceRecord.IntentBindRecord boundRecord = r.peekBinding(service);
      if (boundRecord != null) {
        return boundRecord.binder;
      }
    }
    return null;
  }
}
origin: android-hacker/VirtualXposed

  return 0;
ServiceRecord.IntentBindRecord boundRecord = r.peekBinding(service);
origin: darkskygit/VirtualApp

@Override
public void unbindFinished(IBinder token, Intent service, boolean doRebind, int userId) {
  synchronized (this) {
    ServiceRecord r = (ServiceRecord) token;
    if (r != null) {
      ServiceRecord.IntentBindRecord boundRecord = r.peekBinding(service);
      if (boundRecord != null) {
        boundRecord.doRebind = doRebind;
      }
    }
  }
}
origin: bzsome/VirtualApp-x326

@Override
public void unbindFinished(IBinder token, Intent service, boolean doRebind, int userId) {
  synchronized (this) {
    ServiceRecord r = (ServiceRecord) token;
    if (r != null) {
      ServiceRecord.IntentBindRecord boundRecord = r.peekBinding(service);
      if (boundRecord != null) {
        boundRecord.doRebind = doRebind;
      }
    }
  }
}
origin: darkskygit/VirtualApp

void addToBoundIntent(Intent intent, IServiceConnection connection) {
  IntentBindRecord record = peekBinding(intent);
  if (record == null) {
    record = new IntentBindRecord();
    record.intent = intent;
    synchronized (bindings) {
      bindings.add(record);
    }
  }
  record.addConnection(connection);
}
origin: bzsome/VirtualApp-x326

void addToBoundIntent(Intent intent, IServiceConnection connection) {
  IntentBindRecord record = peekBinding(intent);
  if (record == null) {
    record = new IntentBindRecord();
    record.intent = intent;
    synchronized (bindings) {
      bindings.add(record);
    }
  }
  record.addConnection(connection);
}
origin: bzsome/VirtualApp-x326

@Override
public IBinder peekService(Intent service, String resolvedType, int userId) {
  synchronized (this) {
    ServiceInfo serviceInfo = resolveServiceInfo(service, userId);
    if (serviceInfo == null) {
      return null;
    }
    ServiceRecord r = findRecordLocked(userId, serviceInfo);
    if (r != null) {
      ServiceRecord.IntentBindRecord boundRecord = r.peekBinding(service);
      if (boundRecord != null) {
        return boundRecord.binder;
      }
    }
    return null;
  }
}
origin: darkskygit/VirtualApp

@Override
public void publishService(IBinder token, Intent intent, IBinder service, int userId) {
  synchronized (this) {
    ServiceRecord r = (ServiceRecord) token;
    if (r != null) {
      ServiceRecord.IntentBindRecord boundRecord = r.peekBinding(intent);
      if (boundRecord != null) {
        boundRecord.binder = service;
        for (IServiceConnection conn : boundRecord.connections) {
          ComponentName component = ComponentUtils.toComponentName(r.serviceInfo);
          connectService(conn, component, boundRecord, false);
        }
      }
    }
  }
}
origin: bzsome/VirtualApp-x326

@Override
public void publishService(IBinder token, Intent intent, IBinder service, int userId) {
  synchronized (this) {
    ServiceRecord r = (ServiceRecord) token;
    if (r != null) {
      ServiceRecord.IntentBindRecord boundRecord = r.peekBinding(intent);
      if (boundRecord != null) {
        boundRecord.binder = service;
        for (IServiceConnection conn : boundRecord.connections) {
          ComponentName component = ComponentUtils.toComponentName(r.serviceInfo);
          connectService(conn, component, boundRecord, false);
        }
      }
    }
  }
}
origin: darkskygit/VirtualApp

@Override
public IBinder peekService(Intent service, String resolvedType, int userId) {
  synchronized (this) {
    ServiceInfo serviceInfo = resolveServiceInfo(service, userId);
    if (serviceInfo == null) {
      return null;
    }
    ServiceRecord r = findRecordLocked(userId, serviceInfo);
    if (r != null) {
      ServiceRecord.IntentBindRecord boundRecord = r.peekBinding(service);
      if (boundRecord != null) {
        return boundRecord.binder;
      }
    }
    return null;
  }
}
origin: darkskygit/VirtualApp

  return 0;
ServiceRecord.IntentBindRecord boundRecord = r.peekBinding(service);
origin: bzsome/VirtualApp-x326

  return 0;
ServiceRecord.IntentBindRecord boundRecord = r.peekBinding(service);
com.lody.virtual.server.amServiceRecordpeekBinding

Popular methods of ServiceRecord

  • <init>
  • addToBoundIntent
  • containConnection
  • getClientCount
  • getConnectionCount

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSharedPreferences (Context)
  • runOnUiThread (Activity)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now