OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:syncadapter
(Results
1 - 25
of
88
) sorted by null
1
2
3
4
/developers/build/prebuilts/gradle/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/
SyncService.java
26
* <p>This service is invoked in response to Intents with action android.content.
SyncAdapter
, and
27
* returns a Binder connection to
SyncAdapter
.
32
* manage the lifecycle of our {@link
SyncAdapter
} and provide a handle to said
SyncAdapter
to the
39
private static
SyncAdapter
sSyncAdapter = null;
42
* Thread-safe constructor, creates static {@link
SyncAdapter
} instance.
50
sSyncAdapter = new
SyncAdapter
(getApplicationContext(), true);
65
* Return Binder handle for IPC communication with {@link
SyncAdapter
}.
67
* <p>New sync requests will be sent directly to the
SyncAdapter
using this channel.
70
* @return Binder handle for {@link
SyncAdapter
}
[
all
...]
/developers/samples/android/connectivity/sync/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/
SyncService.java
26
* <p>This service is invoked in response to Intents with action android.content.
SyncAdapter
, and
27
* returns a Binder connection to
SyncAdapter
.
32
* manage the lifecycle of our {@link
SyncAdapter
} and provide a handle to said
SyncAdapter
to the
39
private static
SyncAdapter
sSyncAdapter = null;
42
* Thread-safe constructor, creates static {@link
SyncAdapter
} instance.
50
sSyncAdapter = new
SyncAdapter
(getApplicationContext(), true);
65
* Return Binder handle for IPC communication with {@link
SyncAdapter
}.
67
* <p>New sync requests will be sent directly to the
SyncAdapter
using this channel.
70
* @return Binder handle for {@link
SyncAdapter
}
[
all
...]
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/
SyncService.java
26
* <p>This service is invoked in response to Intents with action android.content.
SyncAdapter
, and
27
* returns a Binder connection to
SyncAdapter
.
32
* manage the lifecycle of our {@link
SyncAdapter
} and provide a handle to said
SyncAdapter
to the
39
private static
SyncAdapter
sSyncAdapter = null;
42
* Thread-safe constructor, creates static {@link
SyncAdapter
} instance.
50
sSyncAdapter = new
SyncAdapter
(getApplicationContext(), true);
65
* Return Binder handle for IPC communication with {@link
SyncAdapter
}.
67
* <p>New sync requests will be sent directly to the
SyncAdapter
using this channel.
70
* @return Binder handle for {@link
SyncAdapter
}
[
all
...]
/developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/syncadapter/
SyncService.java
17
package com.example.android.sampletvinput.
syncadapter
;
25
* Service which provides the
SyncAdapter
implementation to the framework on request.
29
private static
SyncAdapter
sSyncAdapter = null;
36
sSyncAdapter = new
SyncAdapter
(getApplicationContext(), true);
SyncUtils.java
17
package com.example.android.sampletvinput.
syncadapter
;
28
* Static helper methods for working with the
SyncAdapter
framework.
45
bundle.putString(
SyncAdapter
.BUNDLE_KEY_INPUT_ID, inputId);
47
SyncAdapter
.SYNC_FREQUENCY_SEC);
54
bundle.putString(
SyncAdapter
.BUNDLE_KEY_INPUT_ID, inputId);
SyncAdapter.java
17
package com.example.android.sampletvinput.
syncadapter
;
45
* A
SyncAdapter
implementation which updates program info periodically.
47
class
SyncAdapter
extends AbstractThreadedSyncAdapter {
48
public static final String TAG = "
SyncAdapter
";
57
public
SyncAdapter
(Context context, boolean autoInitialize) {
62
public
SyncAdapter
(Context context, boolean autoInitialize, boolean allowParallelSyncs) {
74
String inputId = extras.getString(
SyncAdapter
.BUNDLE_KEY_INPUT_ID);
88
* Inserts programs from now to {@link
SyncAdapter
#SYNC_WINDOW_SEC}.
DummyAccountService.java
17
package com.example.android.sampletvinput.
syncadapter
;
31
* Dummy account service for
SyncAdapter
. Note that this does nothing because this input uses a feed
54
* Dummy Authenticator used in {@link
SyncAdapter
}. This does nothing for all the operations
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/syncadapter/
SyncService.java
16
package com.example.android.samplesync.
syncadapter
;
24
* ACTION_AUTHENTICATOR_INTENT. It instantiates the
syncadapter
and returns its
31
private static
SyncAdapter
sSyncAdapter = null;
37
sSyncAdapter = new
SyncAdapter
(getApplicationContext(), true);
SyncAdapter.java
16
package com.example.android.samplesync.
syncadapter
;
44
*
SyncAdapter
implementation for syncing sample
SyncAdapter
contacts to the
50
public class
SyncAdapter
extends AbstractThreadedSyncAdapter {
52
private static final String TAG = "
SyncAdapter
";
60
public
SyncAdapter
(Context context, boolean autoInitialize) {
/development/samples/browseable/BasicSyncAdapter/
_index.jd
8
This sample demonstrates using
SyncAdapter
to fetch background data for an app that
AndroidManifest.xml
32
<!-- Required to enable our
SyncAdapter
after it's created. -->
58
as an attachment point for the
SyncAdapter
. See res/xml/
syncadapter
.xml and
68
<!-- This service implements our
SyncAdapter
. It needs to be exported, so that the system
75
<action android:name="android.content.
SyncAdapter
" />
77
<!-- This points to a required XML file which describes our
SyncAdapter
. -->
78
<meta-data android:name="android.content.
SyncAdapter
"
79
android:resource="@xml/
syncadapter
" />
82
<!-- This implements the account we'll use as an attachment point for our
SyncAdapter
. Since
83
our
SyncAdapter
doesn't need to authenticate the current user (it just fetches a public RS
[
all
...]
/frameworks/base/core/java/android/content/
ISyncAdapter.aidl
24
* Interface used to control the sync activity on a
SyncAdapter
29
* Initiate a sync for this account.
SyncAdapter
-specific parameters may
36
* @param extras
SyncAdapter
-specific parameters
49
* Initialize the
SyncAdapter
for this account and authority.
ISyncContext.aidl
22
* Interface used by the
SyncAdapter
to indicate its progress.
27
* Call to indicate that the
SyncAdapter
is making progress. E.g., if this
SyncAdapter
SyncStats.java
30
* The
SyncAdapter
was unable to authenticate the {@link android.accounts.Account}
37
* The
SyncAdapter
had a problem, most likely with the network connectivity or a timeout
44
* The
SyncAdapter
had a problem with the data it received from the server or the storage
47
* from the user). If the
SyncAdapter
cleans up the data itself then it typically won't
49
* perform some cleanup. E.g., if the
SyncAdapter
received a bad entry from the server
51
* progress and still increment this value just so the
SyncAdapter
can record that an
57
* The
SyncAdapter
detected that there was an unrecoverable version conflict when it
67
* by the
SyncAdapter
.
73
* by the
SyncAdapter
.
79
* by the
SyncAdapter
[
all
...]
ISyncServiceAdapter.aidl
30
* Initiate a sync.
SyncAdapter
-specific parameters may be specified in
35
* @param extras
SyncAdapter
-specific parameters.
SyncContext.java
50
* Call to indicate that the
SyncAdapter
is making progress. E.g., if this
SyncAdapter
SyncAdapterType.java
111
* @return True if this
SyncAdapter
supports syncing multiple accounts simultaneously.
113
* using this
SyncAdapter
.
124
* If true then the SyncManager will never issue an initialization sync to the
SyncAdapter
128
* @return true if the
SyncAdapter
does not require initialization and if it is ok for the
129
*
SyncAdapter
to treat it as syncable automatically.
140
* @return The activity to use to invoke this
SyncAdapter
's settings activity.
/development/apps/Development/src/com/android/development/
SyncAdapterDriver.java
127
ISyncAdapter
syncAdapter
= null;
129
syncAdapter
= mActiveServiceConnection.mBoundSyncAdapter;
132
if (
syncAdapter
!= null) {
157
ISyncAdapter
syncAdapter
= null;
159
syncAdapter
= mActiveServiceConnection.mBoundSyncAdapter;
162
if (
syncAdapter
!= null) {
168
syncAdapter
.startSync(mActiveServiceConnection,
182
ISyncAdapter
syncAdapter
= null;
184
syncAdapter
= mActiveServiceConnection.mBoundSyncAdapter;
187
if (
syncAdapter
!= null)
[
all
...]
/developers/build/prebuilts/gradle/BasicSyncAdapter/Application/src/main/
AndroidManifest.xml
32
<!-- Required to enable our
SyncAdapter
after it's created. -->
58
as an attachment point for the
SyncAdapter
. See res/xml/
syncadapter
.xml and
68
<!-- This service implements our
SyncAdapter
. It needs to be exported, so that the system
75
<action android:name="android.content.
SyncAdapter
" />
77
<!-- This points to a required XML file which describes our
SyncAdapter
. -->
78
<meta-data android:name="android.content.
SyncAdapter
"
79
android:resource="@xml/
syncadapter
" />
82
<!-- This implements the account we'll use as an attachment point for our
SyncAdapter
. Since
83
our
SyncAdapter
doesn't need to authenticate the current user (it just fetches a public RS
[
all
...]
/developers/samples/android/connectivity/sync/BasicSyncAdapter/Application/src/main/
AndroidManifest.xml
32
<!-- Required to enable our
SyncAdapter
after it's created. -->
58
as an attachment point for the
SyncAdapter
. See res/xml/
syncadapter
.xml and
68
<!-- This service implements our
SyncAdapter
. It needs to be exported, so that the system
75
<action android:name="android.content.
SyncAdapter
" />
77
<!-- This points to a required XML file which describes our
SyncAdapter
. -->
78
<meta-data android:name="android.content.
SyncAdapter
"
79
android:resource="@xml/
syncadapter
" />
82
<!-- This implements the account we'll use as an attachment point for our
SyncAdapter
. Since
83
our
SyncAdapter
doesn't need to authenticate the current user (it just fetches a public RS
[
all
...]
/development/samples/SampleSyncAdapter/res/values/
strings.xml
23
name="label">Sample
SyncAdapter
</string>
27
name="permlab_samplesyncadapterAuthPassword">access to passwords for Sample
SyncAdapter
accounts</string>
31
Sample
SyncAdapter
account(s) you have configured.</string>
39
the Sample
SyncAdapter
account(s) you have configured.</string>
41
name="notification_login_error">Touch to sign into your Sample
SyncAdapter
account.</string>
64
name="login_activity_loginfail_text_both">The username or password isn\'t valid. A Sample
SyncAdapter
account is
78
name="login_activity_newaccount_text">Sign in to your Sample
SyncAdapter
account. </string>
114
to the amazing Sample
SyncAdapter
social network. If this was a real app, it should now
/development/samples/SampleSyncAdapter/res/xml/
syncadapter.xml
26
the
syncadapter
does not support uploading (and thus the contacts
27
associated with this
syncadapter
are not editable). The SDK 11
/developers/build/prebuilts/androidtv/sample-inputs/app/src/main/
AndroidManifest.xml
24
<!-- Required to enable our
SyncAdapter
after it's created. -->
61
sets up
SyncAdapter
to provide program information in the background. -->
93
<!-- This service implements the
SyncAdapter
for updating program information regularly in
95
<service android:name=".
syncadapter
.SyncService"
98
<action android:name="android.content.
SyncAdapter
" />
100
<meta-data android:name="android.content.
SyncAdapter
"
101
android:resource="@xml/
syncadapter
" />
105
account used for
SyncAdapter
. -->
106
<service android:name=".
syncadapter
.DummyAccountService">
/packages/apps/ContactsCommon/tests/
AndroidManifest.xml
29
<action android:name="android.content.
SyncAdapter
"/>
32
android:name="android.content.
SyncAdapter
"
/packages/apps/Exchange/
AndroidManifest.xml
93
android:name="android.content.
SyncAdapter
" />
95
<meta-data android:name="android.content.
SyncAdapter
"
105
android:name="android.content.
SyncAdapter
" />
107
<meta-data android:name="android.content.
SyncAdapter
"
117
android:name="android.content.
SyncAdapter
" />
119
<meta-data android:name="android.content.
SyncAdapter
"
Completed in 2783 milliseconds
1
2
3
4