Home
last modified time | relevance | path

Searched refs:agent (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/docs/html/training/cloudsync/
Dbackupapi.jd18 <li><a href="#agent">Write Your Backup Agent</a></li>
59 manifest. First, declare the name of the class that acts as your backup agent,
61 your backup agent is going to be called {@code TheBackupAgent}, here's an example of
73 <h2 id="agent">Write Your Backup Agent</h2>
74 <p>The easiest way to create your backup agent is by extending the wrapper class
108 // Allocate a helper and add it to the backup agent
131 your application. Here's an example of how your backup agent helper might look if
157 <p>You can add as many backup helper instances to your backup agent helper as you
182 your backup agent's {@link
/frameworks/base/docs/html/tools/help/
Dbmgr.jd30 intrusive steps in order to test your application's backup agent. These commands are
42 backup agent's {@link
52 backup. When you execute this backup command, your application's backup agent will be invoked to
79 Backup Manager will then invoke your backup agent's {@link
91 Manager will immediately instantiate the application's backup agent and invoke it for restore. This
103 very useful while you're developing a backup agent, in case bugs lead you to write corrupt data
111 erase. The next backup operation that the application's agent processes will look as
122 <p>This might be useful if your application's backup agent is never being invoked for backup, to
/frameworks/base/docs/html/guide/topics/data/
Dbackup.jd108 <p>To backup your application data, you need to implement a backup agent. Your backup
109 agent is called by the Backup Manager to provide the data you want to back up. It is also called
111 your data transactions with the cloud storage (using the backup transport) and your backup agent
114 <p>To implement a backup agent, you must:</p>
117 <li>Declare your backup agent in your manifest file with the <a
118 href="{@docRoot}guide/topics/manifest/application-element.html#agent">{@code
125 <li>Define a backup agent by either:</p>
158 <p>This is the easiest step, so once you've decided on the class name for your backup agent, declare
160 href="{@docRoot}guide/topics/manifest/application-element.html#agent">{@code
248 format in which you write your application data, you can build a backup agent to cross-check your
[all …]
/frameworks/base/core/java/android/app/backup/
DIBackupManager.aidl59 void agentConnected(String packageName, IBinder agent); in agentConnected() argument
/frameworks/base/docs/html/guide/webapps/
Dbest-practices.jd29 full-size web sites (such as tablets) do <em>not</em> include the "mobile" string in the user agent,
30 while the rest of the user agent string is mostly the same. As such, it's important that you deliver
32 agent.</p>
Dmigrating.jd81 <p>If you serve content to your {@link android.webkit.WebView} based on the user agent, you should
82 to be aware of the user agent string has changed slightly and now includes the Chrome version:</p>
89 <p>If you need to retrieve the user agent but don't need to store it for your app or
92 getDefaultUserAgent()}. However, if you intend to override the user agent string in your
Dwebview.jd135 custom user agent string with {@link android.webkit.WebSettings#setUserAgentString(String)
136 setUserAgentString()}, then query the custom user agent in your web page to verify that the
/frameworks/base/services/java/com/android/server/
DBackupManagerService.java1778 IBackupAgent agent = null; in bindToAgentSynchronous() local
1808 agent = mConnectedAgent; in bindToAgentSynchronous()
1814 return agent; in bindToAgentSynchronous()
2163 IBackupAgent agent = null; in invokeNextAgent() local
2166 agent = bindToAgentSynchronous(mCurrentPackage.applicationInfo, in invokeNextAgent()
2168 addBackupTrace("agent bound; a? = " + (agent != null)); in invokeNextAgent()
2169 if (agent != null) { in invokeNextAgent()
2170 mStatus = invokeAgentForBackup(request.packageName, agent, mTransport); in invokeNextAgent()
2275 int invokeAgentForBackup(String packageName, IBackupAgent agent, in invokeAgentForBackup() argument
2325 agent.doBackup(mSavedState, mBackupData, mNewState, token, mBackupManagerBinder); in invokeAgentForBackup()
[all …]
/frameworks/base/core/java/android/app/
DActivityThread.java2462 BackupAgent agent = null; in handleCreateBackupAgent() local
2477 agent = (BackupAgent) cl.loadClass(classname).newInstance(); in handleCreateBackupAgent()
2481 context.setOuterContext(agent); in handleCreateBackupAgent()
2482 agent.attach(context); in handleCreateBackupAgent()
2484 agent.onCreate(); in handleCreateBackupAgent()
2485 binder = agent.onBind(); in handleCreateBackupAgent()
2486 mBackupAgents.put(packageName, agent); in handleCreateBackupAgent()
2516 BackupAgent agent = mBackupAgents.get(packageName); in handleDestroyBackupAgent() local
2517 if (agent != null) { in handleDestroyBackupAgent()
2519 agent.onDestroy(); in handleDestroyBackupAgent()
DIActivityManager.java169 public void backupAgentCreated(String packageName, IBinder agent) throws RemoteException; in backupAgentCreated() argument
DActivityManagerNative.java1448 IBinder agent = data.readStrongBinder(); in onTransact() local
1449 backupAgentCreated(packageName, agent); in onTransact()
3152 public void backupAgentCreated(String packageName, IBinder agent) throws RemoteException { in backupAgentCreated() argument
3157 data.writeStrongBinder(agent); in backupAgentCreated()
/frameworks/base/docs/html/guide/topics/manifest/
Dapplication-element.jd9 android:<a href="#agent">backupAgent</a>="<i>string</i>"
91 <dt><a name="agent"></a>{@code android:backupAgent}</dt>
92 <dd>The name of the class that implement's the application's backup agent,
/frameworks/base/tools/aapt/
DResource.cpp2398 String8 agent = getAttribute(tree, "http://schemas.android.com/apk/res/android", in writeProguardForAndroidManifest() local
2400 if (agent.length() > 0) { in writeProguardForAndroidManifest()
2401 addProguardKeepRule(keep, agent, pkg.string(), in writeProguardForAndroidManifest()
/frameworks/base/services/java/com/android/server/am/
DActivityManagerService.java12896 public void backupAgentCreated(String agentPackageName, IBinder agent) { in backupAgentCreated() argument
12898 + " = " + agent); in backupAgentCreated()
12911 bm.agentConnected(agentPackageName, agent); in backupAgentCreated()