id stringlengths 7 14 | text stringlengths 1 106k |
|---|---|
4546424_8 | @PUT
@Consumes (MediaType.APPLICATION_JSON)
@Produces (MediaType.APPLICATION_JSON)
@Path (REST_API_SETTINGS)
public Response updateSettings(List<SettingsTemplate> settings) {
if (isDebugEnabled) {
S_LOGGER.debug("Entered into ComponentService.updateSettings(List<SettingsTemplate> settings)");
}
try {... |
4546424_9 | @GET
@Produces (MediaType.APPLICATION_JSON)
@Path (REST_API_SETTINGS + REST_API_PATH_ID)
public Response getSettingsTemplate(@PathParam(REST_API_PATH_PARAM_ID) String id) {
if (isDebugEnabled) {
S_LOGGER.debug("Entered into ComponentService.getSettingsTemplate(String id)" + id);
}
try {
SettingsTem... |
4570530_0 | public String[] sort() {
return collectLocationNames(sortLocations());
} |
4570530_1 | public String[] sort() {
return collectLocationNames(sortLocations());
} |
4570530_2 | public String[] sort() {
return collectLocationNames(sortLocations());
} |
4570530_3 | public boolean areThereImportsWithoutExports() {
boolean allImportsHaveExports = false;
for (String importedBeanName : imports.keySet()) {
if (!exports.containsKey(importedBeanName)) {
allImportsHaveExports = true;
String location = imports.get(importedBeanName).get(0).getLo... |
4570530_4 | public boolean areThereExportsWithoutImport() {
boolean allExportshaveImports = true;
for (String exportedBeanName : exports.keySet()) {
if (!imports.containsKey(exportedBeanName)) {
allExportshaveImports = false;
log.warn("Bean {} was exported but never imported", exportedBeanNa... |
457158_10 | public void searchFor(Set<String> keywords) {
for (Auction auction : auctions) {
announceIfAuctionMatches(auction, keywords);
}
searchListener.searchFinished();
} |
457158_11 | public void searchFor(Set<String> keywords) {
for (Auction auction : auctions) {
announceIfAuctionMatches(auction, keywords);
}
searchListener.searchFinished();
} |
4576305_0 | public static List<Span> decodeList(byte[] spans) {
try {
return decodeList(JSON_FACTORY.createParser(spans));
} catch (IOException e) {
throw new UncheckedIOException(e);
}
} |
4576305_1 | public static List<Span> decodeList(byte[] spans) {
try {
return decodeList(JSON_FACTORY.createParser(spans));
} catch (IOException e) {
throw new UncheckedIOException(e);
}
} |
4576305_2 | public static Span decodeOne(byte[] span) {
try {
return decodeOne(JSON_FACTORY.createParser(span));
} catch (IOException e) {
throw new UncheckedIOException(e);
}
} |
4576305_3 | public static Span decodeOne(byte[] span) {
try {
return decodeOne(JSON_FACTORY.createParser(span));
} catch (IOException e) {
throw new UncheckedIOException(e);
}
} |
4576305_4 | public List<Span> decodeList(byte[] spans) {
BufferedSource source = new Buffer().write(spans);
try {
return listSpansAdapter.fromJson(source);
} catch (IOException e) {
throw new AssertionError(e); // no I/O
}
} |
4576305_5 | public List<Span> decodeList(byte[] spans) {
BufferedSource source = new Buffer().write(spans);
try {
return listSpansAdapter.fromJson(source);
} catch (IOException e) {
throw new AssertionError(e); // no I/O
}
} |
4576305_6 | public List<List<Span>> getTraces() {
return storage.spanStore().getTraces();
} |
4576305_7 | public List<List<Span>> getTraces() {
return storage.spanStore().getTraces();
} |
4576305_8 | public int httpRequestCount() {
return server.getRequestCount();
} |
4576305_9 | public InMemoryCollectorMetrics collectorMetrics() {
return metrics;
} |
4581618_0 | public static IType removeQualifiers(IType type) {
while (type instanceof IQualifierType) {
type = ((IQualifierType) type).getType();
}
return type;
} |
4581618_1 | public static IType getPointerToType(IType type) {
type = removeQualifiers(type);
if (type instanceof IPointerType) {
return ((IPointerType) type).getType();
} else {
return null;
}
} |
4586516_0 | public final boolean canHandle(final Exception exception) {
Throwable cause = exception.getCause();
if (cause instanceof CandlepinParameterParseException) {
return true;
}
String msg = exception.getMessage();
if (StringUtils.isNotEmpty(msg)) {
Matcher paramMatcher = PARAM_REGEX.match... |
4586516_1 | public final boolean canHandle(final Exception exception) {
Throwable cause = exception.getCause();
if (cause instanceof CandlepinParameterParseException) {
return true;
}
String msg = exception.getMessage();
if (StringUtils.isNotEmpty(msg)) {
Matcher paramMatcher = PARAM_REGEX.match... |
4586516_2 | @Override
public Response toResponse(ReaderException exception) {
Status status = null;
if (exception.getResponse() != null) {
status = Response.Status.fromStatusCode(exception.getResponse().getStatus());
}
// Impl note:
// JsonMappingExceptions that occur as a result of user input are wrapp... |
4586516_3 | @Override
public Response toResponse(ReaderException exception) {
Status status = null;
if (exception.getResponse() != null) {
status = Response.Status.fromStatusCode(exception.getResponse().getStatus());
}
// Impl note:
// JsonMappingExceptions that occur as a result of user input are wrapp... |
4586516_4 | @Override
public Response toResponse(ReaderException exception) {
Status status = null;
if (exception.getResponse() != null) {
status = Response.Status.fromStatusCode(exception.getResponse().getStatus());
}
// Impl note:
// JsonMappingExceptions that occur as a result of user input are wrapp... |
4586516_5 | @Override
public final Response toResponse(final BadRequestException exception) {
if (badQueryParamHandler.canHandle(exception)) {
return badQueryParamHandler.getResponse(exception);
}
else {
// This is here to preserve old functionality.
// It may be just as good to use getDefaultBu... |
4586516_6 | @Override
public final Response toResponse(final BadRequestException exception) {
if (badQueryParamHandler.canHandle(exception)) {
return badQueryParamHandler.getResponse(exception);
}
else {
// This is here to preserve old functionality.
// It may be just as good to use getDefaultBu... |
4586516_7 | @Override
public Response toResponse(JAXBMarshalException exception) {
Status status = Response.Status.INTERNAL_SERVER_ERROR;
if (exception.getResponse() != null) {
status = Response.Status.fromStatusCode(
exception.getResponse().getStatus());
}
return getDefaultBuilder(exception, st... |
4586516_8 | @Override
public Response toResponse(JAXBMarshalException exception) {
Status status = Response.Status.INTERNAL_SERVER_ERROR;
if (exception.getResponse() != null) {
status = Response.Status.fromStatusCode(
exception.getResponse().getStatus());
}
return getDefaultBuilder(exception, st... |
4586516_9 | @Override
public final Response toResponse(final NotFoundException exception) {
if (badQueryParamHandler.canHandle(exception)) {
return badQueryParamHandler.getResponse(exception);
}
return getDefaultBuilder(exception, Response.Status.NOT_FOUND,
determineBestMediaType()).build();
} |
459348_10 | public @Nullable Job scheduleBootup() {
if (!preferences.isAutoBackupEnabled()) {
Log.d(TAG, "auto backup no longer enabled, canceling all jobs");
cancelAll();
return null;
} else if (preferences.isUseOldScheduler()) {
return schedule(BOOT_BACKUP_DELAY, REGULAR, false);
} els... |
459348_11 | public @Nullable Job scheduleBootup() {
if (!preferences.isAutoBackupEnabled()) {
Log.d(TAG, "auto backup no longer enabled, canceling all jobs");
cancelAll();
return null;
} else if (preferences.isUseOldScheduler()) {
return schedule(BOOT_BACKUP_DELAY, REGULAR, false);
} els... |
459348_12 | public @Nullable Job scheduleBootup() {
if (!preferences.isAutoBackupEnabled()) {
Log.d(TAG, "auto backup no longer enabled, canceling all jobs");
cancelAll();
return null;
} else if (preferences.isUseOldScheduler()) {
return schedule(BOOT_BACKUP_DELAY, REGULAR, false);
} els... |
459348_13 | public @Nullable Job scheduleIncoming() {
return schedule(preferences.getIncomingTimeoutSecs(), INCOMING, false);
} |
459348_14 | public Job scheduleRegular() {
return schedule(preferences.getRegularTimeoutSecs(), REGULAR, false);
} |
459348_15 | public @Nullable Job scheduleIncoming() {
return schedule(preferences.getIncomingTimeoutSecs(), INCOMING, false);
} |
459348_16 | public boolean isError() {
return state == SmsSyncState.ERROR;
} |
459348_17 | public String getErrorMessage(Resources resources) {
if (exception == null) return null;
if (exception instanceof MessagingException &&
"Unable to get IMAP prefix".equals(exception.getMessage())) {
return resources.getString(R.string.status_gmail_temp_error);
} else if (exception instanc... |
459348_18 | public String getErrorMessage(Resources resources) {
if (exception == null) return null;
if (exception instanceof MessagingException &&
"Unable to get IMAP prefix".equals(exception.getMessage())) {
return resources.getString(R.string.status_gmail_temp_error);
} else if (exception instanc... |
459348_19 | public String getNotificationLabel(Resources resources) {
switch (state) {
case LOGIN: return resources.getString(R.string.status_login_details);
case CALC: return resources.getString(R.string.status_calc_details);
case ERROR: return getErrorMessage(resources);
default: return null;... |
459348_20 | public String getNotificationLabel(Resources resources) {
switch (state) {
case LOGIN: return resources.getString(R.string.status_login_details);
case CALC: return resources.getString(R.string.status_calc_details);
case ERROR: return getErrorMessage(resources);
default: return null;... |
459348_21 | public String getNotificationLabel(Resources resources) {
switch (state) {
case LOGIN: return resources.getString(R.string.status_login_details);
case CALC: return resources.getString(R.string.status_calc_details);
case ERROR: return getErrorMessage(resources);
default: return null;... |
459348_22 | @Override
public int schedule(@NonNull Job job) {
if (LOCAL_LOGV) {
Log.v(TAG, "AlarmManagerDriver: schedule " +job);
}
final JobTrigger trigger = job.getTrigger();
final long atTime = scheduleTime(trigger);
if (atTime > 0) {
alarmManager.set(RTC_WAKEUP, atTime, createPendingIntent(c... |
459348_23 | @Override
public int schedule(@NonNull Job job) {
if (LOCAL_LOGV) {
Log.v(TAG, "AlarmManagerDriver: schedule " +job);
}
final JobTrigger trigger = job.getTrigger();
final long atTime = scheduleTime(trigger);
if (atTime > 0) {
alarmManager.set(RTC_WAKEUP, atTime, createPendingIntent(c... |
459348_24 | @Override
public int schedule(@NonNull Job job) {
if (LOCAL_LOGV) {
Log.v(TAG, "AlarmManagerDriver: schedule " +job);
}
final JobTrigger trigger = job.getTrigger();
final long atTime = scheduleTime(trigger);
if (atTime > 0) {
alarmManager.set(RTC_WAKEUP, atTime, createPendingIntent(c... |
459348_25 | @Override
public int schedule(@NonNull Job job) {
if (LOCAL_LOGV) {
Log.v(TAG, "AlarmManagerDriver: schedule " +job);
}
final JobTrigger trigger = job.getTrigger();
final long atTime = scheduleTime(trigger);
if (atTime > 0) {
alarmManager.set(RTC_WAKEUP, atTime, createPendingIntent(c... |
459348_26 | public @Nullable Query buildQueryForDataType(DataType type, @Nullable ContactGroupIds groupIds, int max) {
switch (type) {
case SMS: return getQueryForSMS(groupIds, max);
case MMS: return getQueryForMMS(groupIds, max);
case CALLLOG: return getQueryForCallLog(max);
default: ... |
459348_27 | public @Nullable Query buildQueryForDataType(DataType type, @Nullable ContactGroupIds groupIds, int max) {
switch (type) {
case SMS: return getQueryForSMS(groupIds, max);
case MMS: return getQueryForMMS(groupIds, max);
case CALLLOG: return getQueryForCallLog(max);
default: ... |
459348_28 | public @Nullable Query buildQueryForDataType(DataType type, @Nullable ContactGroupIds groupIds, int max) {
switch (type) {
case SMS: return getQueryForSMS(groupIds, max);
case MMS: return getQueryForMMS(groupIds, max);
case CALLLOG: return getQueryForCallLog(max);
default: ... |
459348_29 | public @Nullable Query buildQueryForDataType(DataType type, @Nullable ContactGroupIds groupIds, int max) {
switch (type) {
case SMS: return getQueryForSMS(groupIds, max);
case MMS: return getQueryForMMS(groupIds, max);
case CALLLOG: return getQueryForCallLog(max);
default: ... |
459348_30 | public @Nullable Query buildQueryForDataType(DataType type, @Nullable ContactGroupIds groupIds, int max) {
switch (type) {
case SMS: return getQueryForSMS(groupIds, max);
case MMS: return getQueryForMMS(groupIds, max);
case CALLLOG: return getQueryForCallLog(max);
default: ... |
459348_31 | public @Nullable Query buildMostRecentQueryForDataType(DataType type) {
switch (type) {
case MMS:
return new Query(
Consts.MMS_PROVIDER,
new String[] {Telephony.BaseMmsColumns.DATE },
null,
null,
Telephony.BaseMmsCol... |
459348_32 | public @Nullable Query buildMostRecentQueryForDataType(DataType type) {
switch (type) {
case MMS:
return new Query(
Consts.MMS_PROVIDER,
new String[] {Telephony.BaseMmsColumns.DATE },
null,
null,
Telephony.BaseMmsCol... |
459348_33 | public @Nullable Query buildMostRecentQueryForDataType(DataType type) {
switch (type) {
case MMS:
return new Query(
Consts.MMS_PROVIDER,
new String[] {Telephony.BaseMmsColumns.DATE },
null,
null,
Telephony.BaseMmsCol... |
459348_34 | public @NonNull Cursor getItemsForDataType(DataType dataType, ContactGroupIds group, int max) {
if (LOCAL_LOGV) Log.v(TAG, "getItemsForDataType(type=" + dataType + ", max=" + max + ")");
return performQuery(queryBuilder.buildQueryForDataType(dataType, group, max));
} |
459348_35 | public @NonNull Cursor getItemsForDataType(DataType dataType, ContactGroupIds group, int max) {
if (LOCAL_LOGV) Log.v(TAG, "getItemsForDataType(type=" + dataType + ", max=" + max + ")");
return performQuery(queryBuilder.buildQueryForDataType(dataType, group, max));
} |
459348_36 | public @NonNull Cursor getItemsForDataType(DataType dataType, ContactGroupIds group, int max) {
if (LOCAL_LOGV) Log.v(TAG, "getItemsForDataType(type=" + dataType + ", max=" + max + ")");
return performQuery(queryBuilder.buildQueryForDataType(dataType, group, max));
} |
459348_37 | public long getMostRecentTimestamp(DataType dataType) {
return getMostRecentTimestampForQuery(queryBuilder.buildMostRecentQueryForDataType(dataType));
} |
459348_38 | public long getMostRecentTimestamp(DataType dataType) {
return getMostRecentTimestampForQuery(queryBuilder.buildMostRecentQueryForDataType(dataType));
} |
459348_39 | public long getMostRecentTimestamp(DataType dataType) {
return getMostRecentTimestampForQuery(queryBuilder.buildMostRecentQueryForDataType(dataType));
} |
459348_40 | public long getMostRecentTimestamp(DataType dataType) {
return getMostRecentTimestampForQuery(queryBuilder.buildMostRecentQueryForDataType(dataType));
} |
459348_41 | @Override
protected void handleIntent(final Intent intent) {
if (intent == null) return; // NB: should not happen with START_NOT_STICKY
final BackupType backupType = BackupType.fromIntent(intent);
if (LOCAL_LOGV) {
Log.v(TAG, "handleIntent(" + intent +
", " + (intent.getExtras() == n... |
459348_42 | @Override
protected void handleIntent(final Intent intent) {
if (intent == null) return; // NB: should not happen with START_NOT_STICKY
final BackupType backupType = BackupType.fromIntent(intent);
if (LOCAL_LOGV) {
Log.v(TAG, "handleIntent(" + intent +
", " + (intent.getExtras() == n... |
459348_43 | @Override
protected void handleIntent(final Intent intent) {
if (intent == null) return; // NB: should not happen with START_NOT_STICKY
final BackupType backupType = BackupType.fromIntent(intent);
if (LOCAL_LOGV) {
Log.v(TAG, "handleIntent(" + intent +
", " + (intent.getExtras() == n... |
459348_44 | @Override
protected void handleIntent(final Intent intent) {
if (intent == null) return; // NB: should not happen with START_NOT_STICKY
final BackupType backupType = BackupType.fromIntent(intent);
if (LOCAL_LOGV) {
Log.v(TAG, "handleIntent(" + intent +
", " + (intent.getExtras() == n... |
459348_45 | public @NonNull BackupCursors fetch(final @NonNull EnumSet<DataType> types,
final @Nullable ContactGroupIds groups,
final int maxItems) {
int max = maxItems;
BackupCursors cursors = new BackupCursors();
for (DataType type : types) {
... |
459348_46 | public @NonNull BackupCursors fetch(final @NonNull EnumSet<DataType> types,
final @Nullable ContactGroupIds groups,
final int maxItems) {
int max = maxItems;
BackupCursors cursors = new BackupCursors();
for (DataType type : types) {
... |
459348_47 | public @NonNull BackupCursors fetch(final @NonNull EnumSet<DataType> types,
final @Nullable ContactGroupIds groups,
final int maxItems) {
int max = maxItems;
BackupCursors cursors = new BackupCursors();
for (DataType type : types) {
... |
459348_48 | @Override public CursorAndType next() {
if (cursorAndTypes.isEmpty()) throw new NoSuchElementException();
if (getCurrent().hasNext()) {
getCurrentCursor().moveToNext();
} else if (getNextNonEmptyIndex() != -1) {
index = getNextNonEmptyIndex();
getCurrentCursor().moveToFirst();
} ... |
459348_49 | public int count() {
int total = 0;
for (CursorAndType ct : cursorAndTypes) {
total += ct.cursor.getCount();
}
return total;
} |
459348_50 | public int count() {
int total = 0;
for (CursorAndType ct : cursorAndTypes) {
total += ct.cursor.getCount();
}
return total;
} |
459348_51 | @Override public void remove() {
throw new UnsupportedOperationException();
} |
459348_52 | @Override protected BackupState doInBackground(BackupConfig... params) {
if (params == null || params.length == 0) {
throw new IllegalArgumentException("No config passed");
}
final BackupConfig config = params[0];
if (config.backupType == SKIP) {
return skip(config.typesToBackup);
} ... |
459348_53 | @Override protected BackupState doInBackground(BackupConfig... params) {
if (params == null || params.length == 0) {
throw new IllegalArgumentException("No config passed");
}
final BackupConfig config = params[0];
if (config.backupType == SKIP) {
return skip(config.typesToBackup);
} ... |
459348_54 | @Override protected BackupState doInBackground(BackupConfig... params) {
if (params == null || params.length == 0) {
throw new IllegalArgumentException("No config passed");
}
final BackupConfig config = params[0];
if (config.backupType == SKIP) {
return skip(config.typesToBackup);
} ... |
459348_55 | @Override protected BackupState doInBackground(BackupConfig... params) {
if (params == null || params.length == 0) {
throw new IllegalArgumentException("No config passed");
}
final BackupConfig config = params[0];
if (config.backupType == SKIP) {
return skip(config.typesToBackup);
} ... |
459348_56 | @Override protected BackupState doInBackground(BackupConfig... params) {
if (params == null || params.length == 0) {
throw new IllegalArgumentException("No config passed");
}
final BackupConfig config = params[0];
if (config.backupType == SKIP) {
return skip(config.typesToBackup);
} ... |
459348_57 | @Override protected BackupState doInBackground(BackupConfig... params) {
if (params == null || params.length == 0) {
throw new IllegalArgumentException("No config passed");
}
final BackupConfig config = params[0];
if (config.backupType == SKIP) {
return skip(config.typesToBackup);
} ... |
459348_58 | public void syncCalendar(ConversionResult result) {
enableSync();
if (result.type != DataType.CALLLOG) return;
for (Map<String, String> m : result.getMapList()) {
try {
final int duration = Integer.parseInt(m.get(CallLog.Calls.DURATION));
final int callType = Integer.parseInt... |
459348_59 | private void enableSync() {
if (!syncEnabled) {
calendarAccessor.enableSync(calendarId);
syncEnabled = true;
}
} |
459348_60 | private void enableSync() {
if (!syncEnabled) {
calendarAccessor.enableSync(calendarId);
syncEnabled = true;
}
} |
459348_61 | @Override
public boolean onStartJob(JobParameters jobParameters) {
final Bundle extras = jobParameters.getExtras();
if (LOCAL_LOGV) {
Log.v(TAG, "onStartJob(" + jobParameters + ", extras=" + extras + ")");
}
if (wasTriggeredByContentUri(jobParameters)) {
if (LOCAL_LOGV) {
Log... |
459348_62 | @Override
public boolean onStopJob(JobParameters jobParameters) {
if (LOCAL_LOGV) {
Log.v(TAG, "onStopJob(" + jobParameters + ", extras=" + jobParameters.getExtras() + ")");
}
App.post(new CancelEvent(SYSTEM));
return false;
} |
459348_63 | @Override
public void onReceive(Context context, Intent intent) {
if (LOCAL_LOGV) Log.v(TAG, "onReceive(" + context + "," + intent + ")");
if (SMS_RECEIVED.equals(intent.getAction())) {
incomingSMS(context);
} else {
Log.w(TAG, "unhandled intent: "+intent);
}
} |
459348_64 | @Override
public void onReceive(Context context, Intent intent) {
if (LOCAL_LOGV) Log.v(TAG, "onReceive(" + context + "," + intent + ")");
if (SMS_RECEIVED.equals(intent.getAction())) {
incomingSMS(context);
} else {
Log.w(TAG, "unhandled intent: "+intent);
}
} |
459348_65 | @Override
public void onReceive(Context context, Intent intent) {
if (LOCAL_LOGV) Log.v(TAG, "onReceive(" + context + "," + intent + ")");
if (SMS_RECEIVED.equals(intent.getAction())) {
incomingSMS(context);
} else {
Log.w(TAG, "unhandled intent: "+intent);
}
} |
459348_66 | @Override
public void onReceive(Context context, Intent intent) {
if (LOCAL_LOGV) Log.v(TAG, "onReceive(" + context + "," + intent + ")");
if (SMS_RECEIVED.equals(intent.getAction())) {
incomingSMS(context);
} else {
Log.w(TAG, "unhandled intent: "+intent);
}
} |
459348_67 | @Override
public void onReceive(Context context, Intent intent) {
if (LOCAL_LOGV) Log.v(TAG, "onReceive(" + context + "," + intent + ")");
if (Intent.ACTION_BOOT_COMPLETED.equals(intent.getAction())) {
bootup(context);
} else {
Log.w(TAG, "unhandled intent: "+intent);
}
} |
459348_68 | @Override public void onReceive(Context context, Intent intent) {
Log.d(TAG, "onReceive("+intent+")");
if (isSmsBackupDefaultSmsApp(context)) {
final SmsMessage[] messages = getMessagesFromIntent(intent);
if (messages != null && messages.length > 0) {
storeMessage(context, messages);... |
459348_69 | @Override public void onReceive(Context context, Intent intent) {
Log.d(TAG, "onReceive("+intent+")");
if (isSmsBackupDefaultSmsApp(context)) {
final SmsMessage[] messages = getMessagesFromIntent(intent);
if (messages != null && messages.length > 0) {
storeMessage(context, messages);... |
459348_70 | public static boolean isSmsBackupDefaultSmsApp(@NonNull Context context) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
RoleManager roleManager = (RoleManager) context.getSystemService(Context.ROLE_SERVICE);
return (roleManager != null && roleManager.isRoleHeld(ROLE_SMS));
} else if (B... |
459348_71 | public static boolean isSmsBackupDefaultSmsApp(@NonNull Context context) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
RoleManager roleManager = (RoleManager) context.getSystemService(Context.ROLE_SERVICE);
return (roleManager != null && roleManager.isRoleHeld(ROLE_SMS));
} else if (B... |
459348_72 | @Override public boolean enableSync(long calendarId) {
final ContentValues values = new ContentValues();
values.put(CalendarContract.Calendars.SYNC_EVENTS, 1);
final Uri uri = ContentUris.withAppendedId(CalendarContract.Calendars.CONTENT_URI, calendarId);
return resolver.update(uri, values, null, null) ... |
459348_73 | @Override
public boolean addEntry(long calendarId, @NonNull Date when, int duration, @NonNull String title,
@NonNull String description) {
if (LOCAL_LOGV) {
Log.v(TAG, String.format("addEntry(%d, %s, %d, %s, %s)",
calendarId, when.toString(), duration, title, descript... |
459348_74 | @Override @NonNull
public Map<String, String> getCalendars() {
final Map<String, String> map = new LinkedHashMap<String, String>();
Cursor cursor = null;
try {
cursor = resolver.query(CalendarContract.Calendars.CONTENT_URI,
new String[] {
CalendarContract.Calendars._ID,
... |
459348_75 | @Override
public boolean addEntry(long calendarId, @NonNull Date when, int duration, @NonNull String title,
@NonNull String description) {
if (LOCAL_LOGV) {
Log.v(TAG, String.format("addEntry(%d, %s, %d, %s, %s)",
calendarId, when.toString(), duration, title, descript... |
459348_76 | @Override
public void onPurchasesUpdated(BillingResult result, @Nullable List<Purchase> purchases) {
log("onPurchasesUpdated(" + result + ", " + purchases + ")");
String message;
switch (result.getResponseCode()) {
case OK:
if (purchases != null) {
for (Purchase p : purc... |
459348_77 | @Override
public void onPurchasesUpdated(BillingResult result, @Nullable List<Purchase> purchases) {
log("onPurchasesUpdated(" + result + ", " + purchases + ")");
String message;
switch (result.getResponseCode()) {
case OK:
if (purchases != null) {
for (Purchase p : purc... |
459348_78 | @Override
public void onPurchasesUpdated(BillingResult result, @Nullable List<Purchase> purchases) {
log("onPurchasesUpdated(" + result + ", " + purchases + ")");
String message;
switch (result.getResponseCode()) {
case OK:
if (purchases != null) {
for (Purchase p : purc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.