id int32 0 165k | repo stringlengths 7 58 | path stringlengths 12 218 | func_name stringlengths 3 140 | original_string stringlengths 73 34.1k | language stringclasses 1
value | code stringlengths 73 34.1k | code_tokens list | docstring stringlengths 3 16k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 105 339 |
|---|---|---|---|---|---|---|---|---|---|---|---|
113,600 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.findAllDocs | @ObjectiveCName("findAllDocsWithPeer:")
public Command<List<MessageSearchEntity>> findAllDocs(Peer peer) {
return callback -> modules.getSearchModule().findAllDocs(peer)
.then(v -> callback.onResult(v))
.failure(e -> callback.onError(e));
} | java | @ObjectiveCName("findAllDocsWithPeer:")
public Command<List<MessageSearchEntity>> findAllDocs(Peer peer) {
return callback -> modules.getSearchModule().findAllDocs(peer)
.then(v -> callback.onResult(v))
.failure(e -> callback.onError(e));
} | [
"@",
"ObjectiveCName",
"(",
"\"findAllDocsWithPeer:\"",
")",
"public",
"Command",
"<",
"List",
"<",
"MessageSearchEntity",
">",
">",
"findAllDocs",
"(",
"Peer",
"peer",
")",
"{",
"return",
"callback",
"->",
"modules",
".",
"getSearchModule",
"(",
")",
".",
"fi... | Finding all doc messages
@param peer peer for search
@return found messages | [
"Finding",
"all",
"doc",
"messages"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1195-L1200 |
113,601 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.doCall | @ObjectiveCName("doCallWithUid:")
public Command<Long> doCall(int uid) {
return modules.getCallsModule().makeCall(Peer.user(uid), false);
} | java | @ObjectiveCName("doCallWithUid:")
public Command<Long> doCall(int uid) {
return modules.getCallsModule().makeCall(Peer.user(uid), false);
} | [
"@",
"ObjectiveCName",
"(",
"\"doCallWithUid:\"",
")",
"public",
"Command",
"<",
"Long",
">",
"doCall",
"(",
"int",
"uid",
")",
"{",
"return",
"modules",
".",
"getCallsModule",
"(",
")",
".",
"makeCall",
"(",
"Peer",
".",
"user",
"(",
"uid",
")",
",",
... | Calling to user
@param uid user you want to call
@return command to execute | [
"Calling",
"to",
"user"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1248-L1251 |
113,602 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.doVideoCall | @ObjectiveCName("doVideoCallWithUid:")
public Command<Long> doVideoCall(int uid) {
return modules.getCallsModule().makeCall(Peer.user(uid), true);
} | java | @ObjectiveCName("doVideoCallWithUid:")
public Command<Long> doVideoCall(int uid) {
return modules.getCallsModule().makeCall(Peer.user(uid), true);
} | [
"@",
"ObjectiveCName",
"(",
"\"doVideoCallWithUid:\"",
")",
"public",
"Command",
"<",
"Long",
">",
"doVideoCall",
"(",
"int",
"uid",
")",
"{",
"return",
"modules",
".",
"getCallsModule",
"(",
")",
".",
"makeCall",
"(",
"Peer",
".",
"user",
"(",
"uid",
")",... | Video Calling to user
@param uid user you want to call
@return command to execute | [
"Video",
"Calling",
"to",
"user"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1259-L1262 |
113,603 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.doGroupCall | @ObjectiveCName("doCallWithGid:")
public Command<Long> doGroupCall(int gid) {
return modules.getCallsModule().makeCall(Peer.group(gid), false);
} | java | @ObjectiveCName("doCallWithGid:")
public Command<Long> doGroupCall(int gid) {
return modules.getCallsModule().makeCall(Peer.group(gid), false);
} | [
"@",
"ObjectiveCName",
"(",
"\"doCallWithGid:\"",
")",
"public",
"Command",
"<",
"Long",
">",
"doGroupCall",
"(",
"int",
"gid",
")",
"{",
"return",
"modules",
".",
"getCallsModule",
"(",
")",
".",
"makeCall",
"(",
"Peer",
".",
"group",
"(",
"gid",
")",
"... | Starting new group call
@param gid group you want to call
@return command to execute | [
"Starting",
"new",
"group",
"call"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1270-L1273 |
113,604 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.toggleCallMute | @ObjectiveCName("toggleCallMuteWithCallId:")
public void toggleCallMute(long callId) {
if (modules.getCallsModule().getCall(callId).getIsAudioEnabled().get()) {
modules.getCallsModule().muteCall(callId);
} else {
modules.getCallsModule().unmuteCall(callId);
}
} | java | @ObjectiveCName("toggleCallMuteWithCallId:")
public void toggleCallMute(long callId) {
if (modules.getCallsModule().getCall(callId).getIsAudioEnabled().get()) {
modules.getCallsModule().muteCall(callId);
} else {
modules.getCallsModule().unmuteCall(callId);
}
} | [
"@",
"ObjectiveCName",
"(",
"\"toggleCallMuteWithCallId:\"",
")",
"public",
"void",
"toggleCallMute",
"(",
"long",
"callId",
")",
"{",
"if",
"(",
"modules",
".",
"getCallsModule",
"(",
")",
".",
"getCall",
"(",
"callId",
")",
".",
"getIsAudioEnabled",
"(",
")"... | Toggle muting of call
@param callId Call Id | [
"Toggle",
"muting",
"of",
"call"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1290-L1297 |
113,605 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.toggleVideoEnabled | @ObjectiveCName("toggleVideoEnabledWithCallId:")
public void toggleVideoEnabled(long callId) {
if (modules.getCallsModule().getCall(callId).getIsVideoEnabled().get()) {
modules.getCallsModule().disableVideo(callId);
} else {
modules.getCallsModule().enableVideo(callId);
... | java | @ObjectiveCName("toggleVideoEnabledWithCallId:")
public void toggleVideoEnabled(long callId) {
if (modules.getCallsModule().getCall(callId).getIsVideoEnabled().get()) {
modules.getCallsModule().disableVideo(callId);
} else {
modules.getCallsModule().enableVideo(callId);
... | [
"@",
"ObjectiveCName",
"(",
"\"toggleVideoEnabledWithCallId:\"",
")",
"public",
"void",
"toggleVideoEnabled",
"(",
"long",
"callId",
")",
"{",
"if",
"(",
"modules",
".",
"getCallsModule",
"(",
")",
".",
"getCall",
"(",
"callId",
")",
".",
"getIsVideoEnabled",
"(... | Toggle video of call
@param callId Call Id | [
"Toggle",
"video",
"of",
"call"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1304-L1311 |
113,606 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.checkCall | @ObjectiveCName("checkCall:withAttempt:")
public void checkCall(long callId, int attempt) {
if (modules.getCallsModule() != null) {
modules.getCallsModule().checkCall(callId, attempt);
}
} | java | @ObjectiveCName("checkCall:withAttempt:")
public void checkCall(long callId, int attempt) {
if (modules.getCallsModule() != null) {
modules.getCallsModule().checkCall(callId, attempt);
}
} | [
"@",
"ObjectiveCName",
"(",
"\"checkCall:withAttempt:\"",
")",
"public",
"void",
"checkCall",
"(",
"long",
"callId",
",",
"int",
"attempt",
")",
"{",
"if",
"(",
"modules",
".",
"getCallsModule",
"(",
")",
"!=",
"null",
")",
"{",
"modules",
".",
"getCallsModu... | Checking incoming call from push notification
@param callId Call Id
@param attempt Call Attempt | [
"Checking",
"incoming",
"call",
"from",
"push",
"notification"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1351-L1356 |
113,607 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.editMyName | @Nullable
@ObjectiveCName("editMyNameCommandWithName:")
public Command<Boolean> editMyName(final String newName) {
return callback -> modules.getUsersModule().editMyName(newName)
.then(v -> callback.onResult(true))
.failure(e -> callback.onError(e));
} | java | @Nullable
@ObjectiveCName("editMyNameCommandWithName:")
public Command<Boolean> editMyName(final String newName) {
return callback -> modules.getUsersModule().editMyName(newName)
.then(v -> callback.onResult(true))
.failure(e -> callback.onError(e));
} | [
"@",
"Nullable",
"@",
"ObjectiveCName",
"(",
"\"editMyNameCommandWithName:\"",
")",
"public",
"Command",
"<",
"Boolean",
">",
"editMyName",
"(",
"final",
"String",
"newName",
")",
"{",
"return",
"callback",
"->",
"modules",
".",
"getUsersModule",
"(",
")",
".",
... | Edit current user's name
@param newName new user's name
@return Command for execution | [
"Edit",
"current",
"user",
"s",
"name"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1369-L1375 |
113,608 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.editMyNick | @Nullable
@ObjectiveCName("editMyNickCommandWithNick:")
public Command<Boolean> editMyNick(final String newNick) {
return callback -> modules.getUsersModule().editNick(newNick)
.then(v -> callback.onResult(true))
.failure(e -> callback.onError(e));
} | java | @Nullable
@ObjectiveCName("editMyNickCommandWithNick:")
public Command<Boolean> editMyNick(final String newNick) {
return callback -> modules.getUsersModule().editNick(newNick)
.then(v -> callback.onResult(true))
.failure(e -> callback.onError(e));
} | [
"@",
"Nullable",
"@",
"ObjectiveCName",
"(",
"\"editMyNickCommandWithNick:\"",
")",
"public",
"Command",
"<",
"Boolean",
">",
"editMyNick",
"(",
"final",
"String",
"newNick",
")",
"{",
"return",
"callback",
"->",
"modules",
".",
"getUsersModule",
"(",
")",
".",
... | Edit current user's nick
@param newNick new user's nick
@return Command for execution | [
"Edit",
"current",
"user",
"s",
"nick"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1383-L1389 |
113,609 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.editMyAbout | @Nullable
@ObjectiveCName("editMyAboutCommandWithNick:")
public Command<Boolean> editMyAbout(final String newAbout) {
return callback -> modules.getUsersModule().editAbout(newAbout)
.then(v -> callback.onResult(true))
.failure(e -> callback.onError(e));
} | java | @Nullable
@ObjectiveCName("editMyAboutCommandWithNick:")
public Command<Boolean> editMyAbout(final String newAbout) {
return callback -> modules.getUsersModule().editAbout(newAbout)
.then(v -> callback.onResult(true))
.failure(e -> callback.onError(e));
} | [
"@",
"Nullable",
"@",
"ObjectiveCName",
"(",
"\"editMyAboutCommandWithNick:\"",
")",
"public",
"Command",
"<",
"Boolean",
">",
"editMyAbout",
"(",
"final",
"String",
"newAbout",
")",
"{",
"return",
"callback",
"->",
"modules",
".",
"getUsersModule",
"(",
")",
".... | Edit current user's about
@param newAbout new user's about
@return Command for execution | [
"Edit",
"current",
"user",
"s",
"about"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1397-L1403 |
113,610 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.editName | @Nullable
@ObjectiveCName("editNameCommandWithUid:withName:")
public Command<Boolean> editName(final int uid, final String name) {
return callback -> modules.getUsersModule().editName(uid, name)
.then(v -> callback.onResult(true))
.failure(e -> callback.onError(e));
} | java | @Nullable
@ObjectiveCName("editNameCommandWithUid:withName:")
public Command<Boolean> editName(final int uid, final String name) {
return callback -> modules.getUsersModule().editName(uid, name)
.then(v -> callback.onResult(true))
.failure(e -> callback.onError(e));
} | [
"@",
"Nullable",
"@",
"ObjectiveCName",
"(",
"\"editNameCommandWithUid:withName:\"",
")",
"public",
"Command",
"<",
"Boolean",
">",
"editName",
"(",
"final",
"int",
"uid",
",",
"final",
"String",
"name",
")",
"{",
"return",
"callback",
"->",
"modules",
".",
"g... | Edit user's local name
@param uid user's id
@param name new user's local name
@return Command for execution | [
"Edit",
"user",
"s",
"local",
"name"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1430-L1436 |
113,611 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.editGroupTitle | @NotNull
@ObjectiveCName("editGroupTitleWithGid:withTitle:")
public Promise<Void> editGroupTitle(final int gid, final String title) {
return modules.getGroupsModule().editTitle(gid, title);
} | java | @NotNull
@ObjectiveCName("editGroupTitleWithGid:withTitle:")
public Promise<Void> editGroupTitle(final int gid, final String title) {
return modules.getGroupsModule().editTitle(gid, title);
} | [
"@",
"NotNull",
"@",
"ObjectiveCName",
"(",
"\"editGroupTitleWithGid:withTitle:\"",
")",
"public",
"Promise",
"<",
"Void",
">",
"editGroupTitle",
"(",
"final",
"int",
"gid",
",",
"final",
"String",
"title",
")",
"{",
"return",
"modules",
".",
"getGroupsModule",
... | Edit group's title
@param gid group's id
@param title new group title
@return Promise for void | [
"Edit",
"group",
"s",
"title"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1445-L1449 |
113,612 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.editGroupTheme | @NotNull
@ObjectiveCName("editGroupThemeCommandWithGid:withTheme:")
public Command<Void> editGroupTheme(final int gid, final String theme) {
return callback -> modules.getGroupsModule().editTheme(gid, theme)
.then(v -> callback.onResult(v))
.failure(e -> callback.onError(... | java | @NotNull
@ObjectiveCName("editGroupThemeCommandWithGid:withTheme:")
public Command<Void> editGroupTheme(final int gid, final String theme) {
return callback -> modules.getGroupsModule().editTheme(gid, theme)
.then(v -> callback.onResult(v))
.failure(e -> callback.onError(... | [
"@",
"NotNull",
"@",
"ObjectiveCName",
"(",
"\"editGroupThemeCommandWithGid:withTheme:\"",
")",
"public",
"Command",
"<",
"Void",
">",
"editGroupTheme",
"(",
"final",
"int",
"gid",
",",
"final",
"String",
"theme",
")",
"{",
"return",
"callback",
"->",
"modules",
... | Edit group's theme
@param gid group's id
@param theme new group theme
@return Command for execution | [
"Edit",
"group",
"s",
"theme"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1458-L1464 |
113,613 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.editGroupAbout | @NotNull
@ObjectiveCName("editGroupAboutWithGid:withAbout:")
public Promise<Void> editGroupAbout(int gid, String about) {
return modules.getGroupsModule().editAbout(gid, about);
} | java | @NotNull
@ObjectiveCName("editGroupAboutWithGid:withAbout:")
public Promise<Void> editGroupAbout(int gid, String about) {
return modules.getGroupsModule().editAbout(gid, about);
} | [
"@",
"NotNull",
"@",
"ObjectiveCName",
"(",
"\"editGroupAboutWithGid:withAbout:\"",
")",
"public",
"Promise",
"<",
"Void",
">",
"editGroupAbout",
"(",
"int",
"gid",
",",
"String",
"about",
")",
"{",
"return",
"modules",
".",
"getGroupsModule",
"(",
")",
".",
"... | Edit group's about
@param gid group's id
@param about new group about
@return Promise for void | [
"Edit",
"group",
"s",
"about"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1473-L1477 |
113,614 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.editGroupShortName | @NotNull
@ObjectiveCName("editGroupShortNameWithGid:withAbout:")
public Promise<Void> editGroupShortName(int gid, String shortName) {
return modules.getGroupsModule().editShortName(gid, shortName);
} | java | @NotNull
@ObjectiveCName("editGroupShortNameWithGid:withAbout:")
public Promise<Void> editGroupShortName(int gid, String shortName) {
return modules.getGroupsModule().editShortName(gid, shortName);
} | [
"@",
"NotNull",
"@",
"ObjectiveCName",
"(",
"\"editGroupShortNameWithGid:withAbout:\"",
")",
"public",
"Promise",
"<",
"Void",
">",
"editGroupShortName",
"(",
"int",
"gid",
",",
"String",
"shortName",
")",
"{",
"return",
"modules",
".",
"getGroupsModule",
"(",
")"... | Edit group's short name
@param gid group's id
@param shortName new group short name
@return Promise for void | [
"Edit",
"group",
"s",
"short",
"name"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1486-L1490 |
113,615 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.loadGroupPermissions | @NotNull
@ObjectiveCName("loadGroupPermissionsWithGid:")
public Promise<GroupPermissions> loadGroupPermissions(int gid) {
return modules.getGroupsModule().loadAdminSettings(gid);
} | java | @NotNull
@ObjectiveCName("loadGroupPermissionsWithGid:")
public Promise<GroupPermissions> loadGroupPermissions(int gid) {
return modules.getGroupsModule().loadAdminSettings(gid);
} | [
"@",
"NotNull",
"@",
"ObjectiveCName",
"(",
"\"loadGroupPermissionsWithGid:\"",
")",
"public",
"Promise",
"<",
"GroupPermissions",
">",
"loadGroupPermissions",
"(",
"int",
"gid",
")",
"{",
"return",
"modules",
".",
"getGroupsModule",
"(",
")",
".",
"loadAdminSetting... | Load Group's permissions
@param gid group's id
@return promise of permissions | [
"Load",
"Group",
"s",
"permissions"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1498-L1502 |
113,616 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.saveGroupPermissions | @NotNull
@ObjectiveCName("saveGroupPermissionsWithGid:withSettings:")
public Promise<Void> saveGroupPermissions(int gid, GroupPermissions adminSettings) {
return modules.getGroupsModule().saveAdminSettings(gid, adminSettings);
} | java | @NotNull
@ObjectiveCName("saveGroupPermissionsWithGid:withSettings:")
public Promise<Void> saveGroupPermissions(int gid, GroupPermissions adminSettings) {
return modules.getGroupsModule().saveAdminSettings(gid, adminSettings);
} | [
"@",
"NotNull",
"@",
"ObjectiveCName",
"(",
"\"saveGroupPermissionsWithGid:withSettings:\"",
")",
"public",
"Promise",
"<",
"Void",
">",
"saveGroupPermissions",
"(",
"int",
"gid",
",",
"GroupPermissions",
"adminSettings",
")",
"{",
"return",
"modules",
".",
"getGroups... | Save Group's permissions
@param gid group's id
@param adminSettings settings
@return promise of void | [
"Save",
"Group",
"s",
"permissions"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1511-L1515 |
113,617 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.changeGroupAvatar | @ObjectiveCName("changeGroupAvatarWithGid:withDescriptor:")
public void changeGroupAvatar(int gid, String descriptor) {
modules.getGroupsModule().changeAvatar(gid, descriptor);
} | java | @ObjectiveCName("changeGroupAvatarWithGid:withDescriptor:")
public void changeGroupAvatar(int gid, String descriptor) {
modules.getGroupsModule().changeAvatar(gid, descriptor);
} | [
"@",
"ObjectiveCName",
"(",
"\"changeGroupAvatarWithGid:withDescriptor:\"",
")",
"public",
"void",
"changeGroupAvatar",
"(",
"int",
"gid",
",",
"String",
"descriptor",
")",
"{",
"modules",
".",
"getGroupsModule",
"(",
")",
".",
"changeAvatar",
"(",
"gid",
",",
"de... | Change group avatar
@param gid group's id
@param descriptor descriptor of avatar file | [
"Change",
"group",
"avatar"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1523-L1526 |
113,618 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.leaveAndDeleteGroup | @NotNull
@ObjectiveCName("leaveAndDeleteGroupWithGid:")
public Promise<Void> leaveAndDeleteGroup(int gid) {
return modules.getGroupsModule().leaveAndDeleteGroup(gid);
} | java | @NotNull
@ObjectiveCName("leaveAndDeleteGroupWithGid:")
public Promise<Void> leaveAndDeleteGroup(int gid) {
return modules.getGroupsModule().leaveAndDeleteGroup(gid);
} | [
"@",
"NotNull",
"@",
"ObjectiveCName",
"(",
"\"leaveAndDeleteGroupWithGid:\"",
")",
"public",
"Promise",
"<",
"Void",
">",
"leaveAndDeleteGroup",
"(",
"int",
"gid",
")",
"{",
"return",
"modules",
".",
"getGroupsModule",
"(",
")",
".",
"leaveAndDeleteGroup",
"(",
... | Leave and delete group
@param gid group's id
@return Promise of Void | [
"Leave",
"and",
"delete",
"group"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1588-L1592 |
113,619 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.shareHistory | @NotNull
@ObjectiveCName("shareHistoryWithGid:")
public Promise<Void> shareHistory(int gid) {
return modules.getGroupsModule().shareHistory(gid);
} | java | @NotNull
@ObjectiveCName("shareHistoryWithGid:")
public Promise<Void> shareHistory(int gid) {
return modules.getGroupsModule().shareHistory(gid);
} | [
"@",
"NotNull",
"@",
"ObjectiveCName",
"(",
"\"shareHistoryWithGid:\"",
")",
"public",
"Promise",
"<",
"Void",
">",
"shareHistory",
"(",
"int",
"gid",
")",
"{",
"return",
"modules",
".",
"getGroupsModule",
"(",
")",
".",
"shareHistory",
"(",
"gid",
")",
";",... | Share Group History
@param gid group's id
@return Promise of void | [
"Share",
"Group",
"History"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1612-L1616 |
113,620 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.inviteMemberPromise | @NotNull
@ObjectiveCName("inviteMemberPromiseWithGid:withUid:")
public Promise<Void> inviteMemberPromise(int gid, int uid) {
return modules.getGroupsModule().addMember(gid, uid);
} | java | @NotNull
@ObjectiveCName("inviteMemberPromiseWithGid:withUid:")
public Promise<Void> inviteMemberPromise(int gid, int uid) {
return modules.getGroupsModule().addMember(gid, uid);
} | [
"@",
"NotNull",
"@",
"ObjectiveCName",
"(",
"\"inviteMemberPromiseWithGid:withUid:\"",
")",
"public",
"Promise",
"<",
"Void",
">",
"inviteMemberPromise",
"(",
"int",
"gid",
",",
"int",
"uid",
")",
"{",
"return",
"modules",
".",
"getGroupsModule",
"(",
")",
".",
... | Adding member to group
@param gid group's id
@param uid user's id
@return promise of adding member to group | [
"Adding",
"member",
"to",
"group"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1640-L1644 |
113,621 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.loadMembers | @ObjectiveCName("loadMembersWithGid:withLimit:withNext:")
public Promise<GroupMembersSlice> loadMembers(int gid, int limit, byte[] next) {
return modules.getGroupsModule().loadMembers(gid, limit, next);
} | java | @ObjectiveCName("loadMembersWithGid:withLimit:withNext:")
public Promise<GroupMembersSlice> loadMembers(int gid, int limit, byte[] next) {
return modules.getGroupsModule().loadMembers(gid, limit, next);
} | [
"@",
"ObjectiveCName",
"(",
"\"loadMembersWithGid:withLimit:withNext:\"",
")",
"public",
"Promise",
"<",
"GroupMembersSlice",
">",
"loadMembers",
"(",
"int",
"gid",
",",
"int",
"limit",
",",
"byte",
"[",
"]",
"next",
")",
"{",
"return",
"modules",
".",
"getGroup... | Load async members
@param gid group id
@param limit limit of loading
@param next optional cursor of next
@return promise of members slice | [
"Load",
"async",
"members"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1669-L1672 |
113,622 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.makeAdmin | @NotNull
@ObjectiveCName("makeAdminCommandWithGid:withUid:")
public Command<Void> makeAdmin(final int gid, final int uid) {
return callback -> modules.getGroupsModule().makeAdmin(gid, uid)
.then(v -> callback.onResult(v))
.failure(e -> callback.onError(e));
} | java | @NotNull
@ObjectiveCName("makeAdminCommandWithGid:withUid:")
public Command<Void> makeAdmin(final int gid, final int uid) {
return callback -> modules.getGroupsModule().makeAdmin(gid, uid)
.then(v -> callback.onResult(v))
.failure(e -> callback.onError(e));
} | [
"@",
"NotNull",
"@",
"ObjectiveCName",
"(",
"\"makeAdminCommandWithGid:withUid:\"",
")",
"public",
"Command",
"<",
"Void",
">",
"makeAdmin",
"(",
"final",
"int",
"gid",
",",
"final",
"int",
"uid",
")",
"{",
"return",
"callback",
"->",
"modules",
".",
"getGroup... | Make member admin of group
@param gid group's id
@param uid user's id
@return Command for execution | [
"Make",
"member",
"admin",
"of",
"group"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1681-L1687 |
113,623 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.transferOwnership | @NotNull
@ObjectiveCName("transferOwnershipWithGid:withUid:")
public Promise<Void> transferOwnership(int gid, int uid) {
return modules.getGroupsModule().transferOwnership(gid, uid);
} | java | @NotNull
@ObjectiveCName("transferOwnershipWithGid:withUid:")
public Promise<Void> transferOwnership(int gid, int uid) {
return modules.getGroupsModule().transferOwnership(gid, uid);
} | [
"@",
"NotNull",
"@",
"ObjectiveCName",
"(",
"\"transferOwnershipWithGid:withUid:\"",
")",
"public",
"Promise",
"<",
"Void",
">",
"transferOwnership",
"(",
"int",
"gid",
",",
"int",
"uid",
")",
"{",
"return",
"modules",
".",
"getGroupsModule",
"(",
")",
".",
"t... | Transfer ownership of group
@param gid group's id
@param uid user's id
@return Promise of void | [
"Transfer",
"ownership",
"of",
"group"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1711-L1715 |
113,624 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.joinGroupViaToken | @NotNull
@ObjectiveCName("joinGroupViaLinkCommandWithToken:")
public Command<Integer> joinGroupViaToken(String token) {
return callback -> modules.getGroupsModule().joinGroupByToken(token)
.then(v -> callback.onResult(v))
.failure(e -> callback.onError(e));
} | java | @NotNull
@ObjectiveCName("joinGroupViaLinkCommandWithToken:")
public Command<Integer> joinGroupViaToken(String token) {
return callback -> modules.getGroupsModule().joinGroupByToken(token)
.then(v -> callback.onResult(v))
.failure(e -> callback.onError(e));
} | [
"@",
"NotNull",
"@",
"ObjectiveCName",
"(",
"\"joinGroupViaLinkCommandWithToken:\"",
")",
"public",
"Command",
"<",
"Integer",
">",
"joinGroupViaToken",
"(",
"String",
"token",
")",
"{",
"return",
"callback",
"->",
"modules",
".",
"getGroupsModule",
"(",
")",
".",... | Join group using invite link
@param token invite token
@return Command for execution | [
"Join",
"group",
"using",
"invite",
"link"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1751-L1757 |
113,625 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.requestIntegrationToken | @NotNull
@ObjectiveCName("requestIntegrationTokenCommandWithGid:")
public Command<String> requestIntegrationToken(int gid) {
return callback -> modules.getGroupsModule().requestIntegrationToken(gid)
.then(v -> callback.onResult(v))
.failure(e -> callback.onError(e));
... | java | @NotNull
@ObjectiveCName("requestIntegrationTokenCommandWithGid:")
public Command<String> requestIntegrationToken(int gid) {
return callback -> modules.getGroupsModule().requestIntegrationToken(gid)
.then(v -> callback.onResult(v))
.failure(e -> callback.onError(e));
... | [
"@",
"NotNull",
"@",
"ObjectiveCName",
"(",
"\"requestIntegrationTokenCommandWithGid:\"",
")",
"public",
"Command",
"<",
"String",
">",
"requestIntegrationToken",
"(",
"int",
"gid",
")",
"{",
"return",
"callback",
"->",
"modules",
".",
"getGroupsModule",
"(",
")",
... | Request integration token for group
@param gid group's id
@return Command for execution | [
"Request",
"integration",
"token",
"for",
"group"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1777-L1783 |
113,626 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.isStarted | @ObjectiveCName("isStartedWithUid:")
public Promise<Boolean> isStarted(int uid) {
return modules.getMessagesModule().chatIsEmpty(Peer.user(uid));
} | java | @ObjectiveCName("isStartedWithUid:")
public Promise<Boolean> isStarted(int uid) {
return modules.getMessagesModule().chatIsEmpty(Peer.user(uid));
} | [
"@",
"ObjectiveCName",
"(",
"\"isStartedWithUid:\"",
")",
"public",
"Promise",
"<",
"Boolean",
">",
"isStarted",
"(",
"int",
"uid",
")",
"{",
"return",
"modules",
".",
"getMessagesModule",
"(",
")",
".",
"chatIsEmpty",
"(",
"Peer",
".",
"user",
"(",
"uid",
... | Check if chat with bot is started
@param uid bot user id
@return is chat with bot started | [
"Check",
"if",
"chat",
"with",
"bot",
"is",
"started"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1805-L1808 |
113,627 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.removeContact | @Nullable
@ObjectiveCName("removeContactCommandWithUid:")
public Command<Boolean> removeContact(int uid) {
return modules.getContactsModule().removeContact(uid);
} | java | @Nullable
@ObjectiveCName("removeContactCommandWithUid:")
public Command<Boolean> removeContact(int uid) {
return modules.getContactsModule().removeContact(uid);
} | [
"@",
"Nullable",
"@",
"ObjectiveCName",
"(",
"\"removeContactCommandWithUid:\"",
")",
"public",
"Command",
"<",
"Boolean",
">",
"removeContact",
"(",
"int",
"uid",
")",
"{",
"return",
"modules",
".",
"getContactsModule",
"(",
")",
".",
"removeContact",
"(",
"uid... | Remove user from contact's list
@param uid user's id
@return Command for execution | [
"Remove",
"user",
"from",
"contact",
"s",
"list"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1860-L1864 |
113,628 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.addContact | @Nullable
@ObjectiveCName("addContactCommandWithUid:")
public Command<Boolean> addContact(int uid) {
return modules.getContactsModule().addContact(uid);
} | java | @Nullable
@ObjectiveCName("addContactCommandWithUid:")
public Command<Boolean> addContact(int uid) {
return modules.getContactsModule().addContact(uid);
} | [
"@",
"Nullable",
"@",
"ObjectiveCName",
"(",
"\"addContactCommandWithUid:\"",
")",
"public",
"Command",
"<",
"Boolean",
">",
"addContact",
"(",
"int",
"uid",
")",
"{",
"return",
"modules",
".",
"getContactsModule",
"(",
")",
".",
"addContact",
"(",
"uid",
")",... | Add contact to contact's list
@param uid user's id
@return Command for execution | [
"Add",
"contact",
"to",
"contact",
"s",
"list"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1872-L1876 |
113,629 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.bindFile | @NotNull
@ObjectiveCName("bindFileWithReference:autoStart:withCallback:")
public FileVM bindFile(FileReference fileReference, boolean isAutoStart, FileVMCallback callback) {
return new FileVM(fileReference, isAutoStart, modules, callback);
} | java | @NotNull
@ObjectiveCName("bindFileWithReference:autoStart:withCallback:")
public FileVM bindFile(FileReference fileReference, boolean isAutoStart, FileVMCallback callback) {
return new FileVM(fileReference, isAutoStart, modules, callback);
} | [
"@",
"NotNull",
"@",
"ObjectiveCName",
"(",
"\"bindFileWithReference:autoStart:withCallback:\"",
")",
"public",
"FileVM",
"bindFile",
"(",
"FileReference",
"fileReference",
",",
"boolean",
"isAutoStart",
",",
"FileVMCallback",
"callback",
")",
"{",
"return",
"new",
"Fil... | Bind File View Model
@param fileReference reference to file
@param isAutoStart automatically start download
@param callback View Model file state callback
@return File View Model | [
"Bind",
"File",
"View",
"Model"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1904-L1908 |
113,630 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.bindUpload | @NotNull
@ObjectiveCName("bindUploadWithRid:withCallback:")
public UploadFileVM bindUpload(long rid, UploadFileVMCallback callback) {
return new UploadFileVM(rid, callback, modules);
} | java | @NotNull
@ObjectiveCName("bindUploadWithRid:withCallback:")
public UploadFileVM bindUpload(long rid, UploadFileVMCallback callback) {
return new UploadFileVM(rid, callback, modules);
} | [
"@",
"NotNull",
"@",
"ObjectiveCName",
"(",
"\"bindUploadWithRid:withCallback:\"",
")",
"public",
"UploadFileVM",
"bindUpload",
"(",
"long",
"rid",
",",
"UploadFileVMCallback",
"callback",
")",
"{",
"return",
"new",
"UploadFileVM",
"(",
"rid",
",",
"callback",
",",
... | Bind Uploading File View Model
@param rid randomId of uploading file
@param callback View Model file state callback
@return Upload File View Model | [
"Bind",
"Uploading",
"File",
"View",
"Model"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1917-L1921 |
113,631 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.bindRawFile | @ObjectiveCName("bindRawFileWithReference:autoStart:withCallback:")
public void bindRawFile(FileReference fileReference, boolean isAutoStart, FileCallback callback) {
modules.getFilesModule().bindFile(fileReference, isAutoStart, callback);
} | java | @ObjectiveCName("bindRawFileWithReference:autoStart:withCallback:")
public void bindRawFile(FileReference fileReference, boolean isAutoStart, FileCallback callback) {
modules.getFilesModule().bindFile(fileReference, isAutoStart, callback);
} | [
"@",
"ObjectiveCName",
"(",
"\"bindRawFileWithReference:autoStart:withCallback:\"",
")",
"public",
"void",
"bindRawFile",
"(",
"FileReference",
"fileReference",
",",
"boolean",
"isAutoStart",
",",
"FileCallback",
"callback",
")",
"{",
"modules",
".",
"getFilesModule",
"("... | Raw Bind File
@param fileReference reference to file
@param isAutoStart automatically start download
@param callback file state callback | [
"Raw",
"Bind",
"File"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1930-L1933 |
113,632 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.unbindRawFile | @ObjectiveCName("unbindRawFileWithFileId:autoCancel:withCallback:")
public void unbindRawFile(long fileId, boolean isAutoCancel, FileCallback callback) {
modules.getFilesModule().unbindFile(fileId, callback, isAutoCancel);
} | java | @ObjectiveCName("unbindRawFileWithFileId:autoCancel:withCallback:")
public void unbindRawFile(long fileId, boolean isAutoCancel, FileCallback callback) {
modules.getFilesModule().unbindFile(fileId, callback, isAutoCancel);
} | [
"@",
"ObjectiveCName",
"(",
"\"unbindRawFileWithFileId:autoCancel:withCallback:\"",
")",
"public",
"void",
"unbindRawFile",
"(",
"long",
"fileId",
",",
"boolean",
"isAutoCancel",
",",
"FileCallback",
"callback",
")",
"{",
"modules",
".",
"getFilesModule",
"(",
")",
".... | Unbind Raw File
@param fileId file id
@param isAutoCancel automatically cancel download
@param callback file state callback | [
"Unbind",
"Raw",
"File"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1942-L1945 |
113,633 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.bindRawUploadFile | @ObjectiveCName("bindRawUploadFileWithRid:withCallback:")
public void bindRawUploadFile(long rid, UploadFileCallback callback) {
modules.getFilesModule().bindUploadFile(rid, callback);
} | java | @ObjectiveCName("bindRawUploadFileWithRid:withCallback:")
public void bindRawUploadFile(long rid, UploadFileCallback callback) {
modules.getFilesModule().bindUploadFile(rid, callback);
} | [
"@",
"ObjectiveCName",
"(",
"\"bindRawUploadFileWithRid:withCallback:\"",
")",
"public",
"void",
"bindRawUploadFile",
"(",
"long",
"rid",
",",
"UploadFileCallback",
"callback",
")",
"{",
"modules",
".",
"getFilesModule",
"(",
")",
".",
"bindUploadFile",
"(",
"rid",
... | Raw Bind Upload File
@param rid randomId of uploading file
@param callback file state callback | [
"Raw",
"Bind",
"Upload",
"File"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1953-L1956 |
113,634 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.unbindRawUploadFile | @ObjectiveCName("unbindRawUploadFileWithRid:withCallback:")
public void unbindRawUploadFile(long rid, UploadFileCallback callback) {
modules.getFilesModule().unbindUploadFile(rid, callback);
} | java | @ObjectiveCName("unbindRawUploadFileWithRid:withCallback:")
public void unbindRawUploadFile(long rid, UploadFileCallback callback) {
modules.getFilesModule().unbindUploadFile(rid, callback);
} | [
"@",
"ObjectiveCName",
"(",
"\"unbindRawUploadFileWithRid:withCallback:\"",
")",
"public",
"void",
"unbindRawUploadFile",
"(",
"long",
"rid",
",",
"UploadFileCallback",
"callback",
")",
"{",
"modules",
".",
"getFilesModule",
"(",
")",
".",
"unbindUploadFile",
"(",
"ri... | Unbind Raw Upload File
@param rid randomId of uploading file
@param callback file state callback | [
"Unbind",
"Raw",
"Upload",
"File"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1964-L1967 |
113,635 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.requestState | @ObjectiveCName("requestStateWithFileId:withCallback:")
public void requestState(long fileId, final FileCallback callback) {
modules.getFilesModule().requestState(fileId, callback);
} | java | @ObjectiveCName("requestStateWithFileId:withCallback:")
public void requestState(long fileId, final FileCallback callback) {
modules.getFilesModule().requestState(fileId, callback);
} | [
"@",
"ObjectiveCName",
"(",
"\"requestStateWithFileId:withCallback:\"",
")",
"public",
"void",
"requestState",
"(",
"long",
"fileId",
",",
"final",
"FileCallback",
"callback",
")",
"{",
"modules",
".",
"getFilesModule",
"(",
")",
".",
"requestState",
"(",
"fileId",
... | Request file state
@param fileId file id
@param callback file state callback | [
"Request",
"file",
"state"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1975-L1978 |
113,636 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.requestUploadState | @ObjectiveCName("requestUploadStateWithRid:withCallback:")
public void requestUploadState(long rid, UploadFileCallback callback) {
modules.getFilesModule().requestUploadState(rid, callback);
} | java | @ObjectiveCName("requestUploadStateWithRid:withCallback:")
public void requestUploadState(long rid, UploadFileCallback callback) {
modules.getFilesModule().requestUploadState(rid, callback);
} | [
"@",
"ObjectiveCName",
"(",
"\"requestUploadStateWithRid:withCallback:\"",
")",
"public",
"void",
"requestUploadState",
"(",
"long",
"rid",
",",
"UploadFileCallback",
"callback",
")",
"{",
"modules",
".",
"getFilesModule",
"(",
")",
".",
"requestUploadState",
"(",
"ri... | Request upload file state
@param rid file's random id
@param callback file state callback | [
"Request",
"upload",
"file",
"state"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L1986-L1989 |
113,637 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.changeNotificationsEnabled | @ObjectiveCName("changeNotificationsEnabledWithPeer:withValue:")
public void changeNotificationsEnabled(Peer peer, boolean val) {
modules.getSettingsModule().changeNotificationsEnabled(peer, val);
} | java | @ObjectiveCName("changeNotificationsEnabledWithPeer:withValue:")
public void changeNotificationsEnabled(Peer peer, boolean val) {
modules.getSettingsModule().changeNotificationsEnabled(peer, val);
} | [
"@",
"ObjectiveCName",
"(",
"\"changeNotificationsEnabledWithPeer:withValue:\"",
")",
"public",
"void",
"changeNotificationsEnabled",
"(",
"Peer",
"peer",
",",
"boolean",
"val",
")",
"{",
"modules",
".",
"getSettingsModule",
"(",
")",
".",
"changeNotificationsEnabled",
... | Change if notifications enabled for peer
@param peer destination peer
@param val is notifications enabled | [
"Change",
"if",
"notifications",
"enabled",
"for",
"peer"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L2264-L2267 |
113,638 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.changeNotificationsSound | @ObjectiveCName("changeNotificationsSoundPeer:withValue:")
public void changeNotificationsSound(Peer peer, String val) {
modules.getSettingsModule().changeNotificationPeerSound(peer, val);
} | java | @ObjectiveCName("changeNotificationsSoundPeer:withValue:")
public void changeNotificationsSound(Peer peer, String val) {
modules.getSettingsModule().changeNotificationPeerSound(peer, val);
} | [
"@",
"ObjectiveCName",
"(",
"\"changeNotificationsSoundPeer:withValue:\"",
")",
"public",
"void",
"changeNotificationsSound",
"(",
"Peer",
"peer",
",",
"String",
"val",
")",
"{",
"modules",
".",
"getSettingsModule",
"(",
")",
".",
"changeNotificationPeerSound",
"(",
"... | Change notifications sound for peer
@param peer destination peer
@param val notification sound custom uri or null for default sound | [
"Change",
"notifications",
"sound",
"for",
"peer"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L2286-L2289 |
113,639 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.loadSessions | @NotNull
@ObjectiveCName("loadSessionsCommand")
public Command<List<ApiAuthSession>> loadSessions() {
return callback -> modules.getSecurityModule().loadSessions()
.then(r -> callback.onResult(r))
.failure(e -> callback.onError(e));
} | java | @NotNull
@ObjectiveCName("loadSessionsCommand")
public Command<List<ApiAuthSession>> loadSessions() {
return callback -> modules.getSecurityModule().loadSessions()
.then(r -> callback.onResult(r))
.failure(e -> callback.onError(e));
} | [
"@",
"NotNull",
"@",
"ObjectiveCName",
"(",
"\"loadSessionsCommand\"",
")",
"public",
"Command",
"<",
"List",
"<",
"ApiAuthSession",
">",
">",
"loadSessions",
"(",
")",
"{",
"return",
"callback",
"->",
"modules",
".",
"getSecurityModule",
"(",
")",
".",
"loadS... | Loading active sessions
@return Command for execution | [
"Loading",
"active",
"sessions"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L2552-L2558 |
113,640 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.terminateAllSessions | @NotNull
@ObjectiveCName("terminateAllSessionsCommand")
public Command<Void> terminateAllSessions() {
return callback -> modules.getSecurityModule().terminateAllSessions()
.then(r -> callback.onResult(r))
.failure(e -> callback.onError(e));
} | java | @NotNull
@ObjectiveCName("terminateAllSessionsCommand")
public Command<Void> terminateAllSessions() {
return callback -> modules.getSecurityModule().terminateAllSessions()
.then(r -> callback.onResult(r))
.failure(e -> callback.onError(e));
} | [
"@",
"NotNull",
"@",
"ObjectiveCName",
"(",
"\"terminateAllSessionsCommand\"",
")",
"public",
"Command",
"<",
"Void",
">",
"terminateAllSessions",
"(",
")",
"{",
"return",
"callback",
"->",
"modules",
".",
"getSecurityModule",
"(",
")",
".",
"terminateAllSessions",
... | Terminate all other sessions
@return Command for execution | [
"Terminate",
"all",
"other",
"sessions"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L2565-L2571 |
113,641 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.startWebAction | @ObjectiveCName("startWebAction:")
public Command<WebActionDescriptor> startWebAction(final String webAction) {
return modules.getExternalModule().startWebAction(webAction);
} | java | @ObjectiveCName("startWebAction:")
public Command<WebActionDescriptor> startWebAction(final String webAction) {
return modules.getExternalModule().startWebAction(webAction);
} | [
"@",
"ObjectiveCName",
"(",
"\"startWebAction:\"",
")",
"public",
"Command",
"<",
"WebActionDescriptor",
">",
"startWebAction",
"(",
"final",
"String",
"webAction",
")",
"{",
"return",
"modules",
".",
"getExternalModule",
"(",
")",
".",
"startWebAction",
"(",
"web... | Command for starting web action
@param webAction web action name
@return Command for execution | [
"Command",
"for",
"starting",
"web",
"action"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L2597-L2600 |
113,642 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.completeWebAction | @ObjectiveCName("completeWebActionWithHash:withUrl:")
public Command<Boolean> completeWebAction(final String actionHash, final String url) {
return modules.getExternalModule().completeWebAction(actionHash, url);
} | java | @ObjectiveCName("completeWebActionWithHash:withUrl:")
public Command<Boolean> completeWebAction(final String actionHash, final String url) {
return modules.getExternalModule().completeWebAction(actionHash, url);
} | [
"@",
"ObjectiveCName",
"(",
"\"completeWebActionWithHash:withUrl:\"",
")",
"public",
"Command",
"<",
"Boolean",
">",
"completeWebAction",
"(",
"final",
"String",
"actionHash",
",",
"final",
"String",
"url",
")",
"{",
"return",
"modules",
".",
"getExternalModule",
"(... | Command for completing web action
@param actionHash web action name
@param url completion url
@return Command for execution | [
"Command",
"for",
"completing",
"web",
"action"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L2609-L2612 |
113,643 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.registerGooglePush | @ObjectiveCName("registerGooglePushWithProjectId:withToken:")
public void registerGooglePush(long projectId, String token) {
modules.getPushesModule().registerGooglePush(projectId, token);
} | java | @ObjectiveCName("registerGooglePushWithProjectId:withToken:")
public void registerGooglePush(long projectId, String token) {
modules.getPushesModule().registerGooglePush(projectId, token);
} | [
"@",
"ObjectiveCName",
"(",
"\"registerGooglePushWithProjectId:withToken:\"",
")",
"public",
"void",
"registerGooglePush",
"(",
"long",
"projectId",
",",
"String",
"token",
")",
"{",
"modules",
".",
"getPushesModule",
"(",
")",
".",
"registerGooglePush",
"(",
"project... | Register google push
@param projectId GCM project id
@param token GCM token | [
"Register",
"google",
"push"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L2677-L2680 |
113,644 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.registerApplePush | @ObjectiveCName("registerApplePushWithApnsId:withToken:")
public void registerApplePush(int apnsId, String token) {
modules.getPushesModule().registerApplePush(apnsId, token);
} | java | @ObjectiveCName("registerApplePushWithApnsId:withToken:")
public void registerApplePush(int apnsId, String token) {
modules.getPushesModule().registerApplePush(apnsId, token);
} | [
"@",
"ObjectiveCName",
"(",
"\"registerApplePushWithApnsId:withToken:\"",
")",
"public",
"void",
"registerApplePush",
"(",
"int",
"apnsId",
",",
"String",
"token",
")",
"{",
"modules",
".",
"getPushesModule",
"(",
")",
".",
"registerApplePush",
"(",
"apnsId",
",",
... | Register apple push
@param apnsId internal APNS cert key
@param token APNS token | [
"Register",
"apple",
"push"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L2688-L2691 |
113,645 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java | Messenger.registerApplePushKit | @ObjectiveCName("registerApplePushKitWithApnsId:withToken:")
public void registerApplePushKit(int apnsId, String token) {
modules.getPushesModule().registerApplePushKit(apnsId, token);
} | java | @ObjectiveCName("registerApplePushKitWithApnsId:withToken:")
public void registerApplePushKit(int apnsId, String token) {
modules.getPushesModule().registerApplePushKit(apnsId, token);
} | [
"@",
"ObjectiveCName",
"(",
"\"registerApplePushKitWithApnsId:withToken:\"",
")",
"public",
"void",
"registerApplePushKit",
"(",
"int",
"apnsId",
",",
"String",
"token",
")",
"{",
"modules",
".",
"getPushesModule",
"(",
")",
".",
"registerApplePushKit",
"(",
"apnsId",... | Register apple push kit tokens
@param apnsId internal APNS cert key
@param token APNS token | [
"Register",
"apple",
"push",
"kit",
"tokens"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java#L2699-L2702 |
113,646 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/ConfigurationBuilder.java | ConfigurationBuilder.addTrustedKey | @NotNull
@ObjectiveCName("addTrustedKey:")
public ConfigurationBuilder addTrustedKey(String trustedKey) {
trustedKeys.add(new TrustedKey(trustedKey));
return this;
} | java | @NotNull
@ObjectiveCName("addTrustedKey:")
public ConfigurationBuilder addTrustedKey(String trustedKey) {
trustedKeys.add(new TrustedKey(trustedKey));
return this;
} | [
"@",
"NotNull",
"@",
"ObjectiveCName",
"(",
"\"addTrustedKey:\"",
")",
"public",
"ConfigurationBuilder",
"addTrustedKey",
"(",
"String",
"trustedKey",
")",
"{",
"trustedKeys",
".",
"add",
"(",
"new",
"TrustedKey",
"(",
"trustedKey",
")",
")",
";",
"return",
"thi... | Adding Trusted key for protocol encryption securing
@param trustedKey hex representation of trusted key
@return this | [
"Adding",
"Trusted",
"key",
"for",
"protocol",
"encryption",
"securing"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/ConfigurationBuilder.java#L178-L183 |
113,647 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/ConfigurationBuilder.java | ConfigurationBuilder.addPreferredLanguage | @NotNull
@ObjectiveCName("addPreferredLanguage:")
public ConfigurationBuilder addPreferredLanguage(String language) {
if (!preferredLanguages.contains(language)) {
preferredLanguages.add(language);
}
return this;
} | java | @NotNull
@ObjectiveCName("addPreferredLanguage:")
public ConfigurationBuilder addPreferredLanguage(String language) {
if (!preferredLanguages.contains(language)) {
preferredLanguages.add(language);
}
return this;
} | [
"@",
"NotNull",
"@",
"ObjectiveCName",
"(",
"\"addPreferredLanguage:\"",
")",
"public",
"ConfigurationBuilder",
"addPreferredLanguage",
"(",
"String",
"language",
")",
"{",
"if",
"(",
"!",
"preferredLanguages",
".",
"contains",
"(",
"language",
")",
")",
"{",
"pre... | Adding preferred language
@param language language code
@return this | [
"Adding",
"preferred",
"language"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/ConfigurationBuilder.java#L256-L263 |
113,648 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/viewmodel/AppStateVM.java | AppStateVM.onDialogsChanged | public synchronized void onDialogsChanged(boolean isEmpty) {
if (isDialogsEmpty.get() != isEmpty) {
context.getPreferences().putBool("app.dialogs.empty", isEmpty);
isDialogsEmpty.change(isEmpty);
}
if (!isEmpty) {
if (isAppEmpty.get()) {
contex... | java | public synchronized void onDialogsChanged(boolean isEmpty) {
if (isDialogsEmpty.get() != isEmpty) {
context.getPreferences().putBool("app.dialogs.empty", isEmpty);
isDialogsEmpty.change(isEmpty);
}
if (!isEmpty) {
if (isAppEmpty.get()) {
contex... | [
"public",
"synchronized",
"void",
"onDialogsChanged",
"(",
"boolean",
"isEmpty",
")",
"{",
"if",
"(",
"isDialogsEmpty",
".",
"get",
"(",
")",
"!=",
"isEmpty",
")",
"{",
"context",
".",
"getPreferences",
"(",
")",
".",
"putBool",
"(",
"\"app.dialogs.empty\"",
... | Notify from Modules about dialogs state changed
@param isEmpty is dialogs empty | [
"Notify",
"from",
"Modules",
"about",
"dialogs",
"state",
"changed"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/viewmodel/AppStateVM.java#L69-L80 |
113,649 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/viewmodel/AppStateVM.java | AppStateVM.onContactsChanged | public synchronized void onContactsChanged(boolean isEmpty) {
if (isContactsEmpty.get() != isEmpty) {
context.getPreferences().putBool("app.contacts.empty", isEmpty);
isContactsEmpty.change(isEmpty);
}
if (!isEmpty) {
if (isAppEmpty.get()) {
co... | java | public synchronized void onContactsChanged(boolean isEmpty) {
if (isContactsEmpty.get() != isEmpty) {
context.getPreferences().putBool("app.contacts.empty", isEmpty);
isContactsEmpty.change(isEmpty);
}
if (!isEmpty) {
if (isAppEmpty.get()) {
co... | [
"public",
"synchronized",
"void",
"onContactsChanged",
"(",
"boolean",
"isEmpty",
")",
"{",
"if",
"(",
"isContactsEmpty",
".",
"get",
"(",
")",
"!=",
"isEmpty",
")",
"{",
"context",
".",
"getPreferences",
"(",
")",
".",
"putBool",
"(",
"\"app.contacts.empty\""... | Notify from Modules about contacts state changed
@param isEmpty is contacts empty | [
"Notify",
"from",
"Modules",
"about",
"contacts",
"state",
"changed"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/viewmodel/AppStateVM.java#L87-L98 |
113,650 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/notifications/NotificationsActor.java | NotificationsActor.onNewMessage | public void onNewMessage(Peer peer, int sender, long date, ContentDescription description,
boolean hasCurrentUserMention, int messagesCount, int dialogsCount) {
// Check if message already read to avoid incorrect notifications
// for already read messages
if (date <... | java | public void onNewMessage(Peer peer, int sender, long date, ContentDescription description,
boolean hasCurrentUserMention, int messagesCount, int dialogsCount) {
// Check if message already read to avoid incorrect notifications
// for already read messages
if (date <... | [
"public",
"void",
"onNewMessage",
"(",
"Peer",
"peer",
",",
"int",
"sender",
",",
"long",
"date",
",",
"ContentDescription",
"description",
",",
"boolean",
"hasCurrentUserMention",
",",
"int",
"messagesCount",
",",
"int",
"dialogsCount",
")",
"{",
"// Check if mes... | Handling event about incoming notification
@param peer peer of message
@param sender sender uid of message
@param date date of message
@param description content description of message
@param hasCurrentUserMention does message have user mention | [
"Handling",
"event",
"about",
"incoming",
"notification"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/notifications/NotificationsActor.java#L139-L232 |
113,651 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/notifications/NotificationsActor.java | NotificationsActor.onMessagesRead | public void onMessagesRead(Peer peer, long fromDate) {
// Filtering obsolete read events
if (fromDate < getLastReadDate(peer)) {
return;
}
// Removing read messages from pending storage
getNotifications().clear();
pendingStorage.setMessagesCount(0);
... | java | public void onMessagesRead(Peer peer, long fromDate) {
// Filtering obsolete read events
if (fromDate < getLastReadDate(peer)) {
return;
}
// Removing read messages from pending storage
getNotifications().clear();
pendingStorage.setMessagesCount(0);
... | [
"public",
"void",
"onMessagesRead",
"(",
"Peer",
"peer",
",",
"long",
"fromDate",
")",
"{",
"// Filtering obsolete read events",
"if",
"(",
"fromDate",
"<",
"getLastReadDate",
"(",
"peer",
")",
")",
"{",
"return",
";",
"}",
"// Removing read messages from pending st... | Processing event about messages read
@param peer peer
@param fromDate read from date | [
"Processing",
"event",
"about",
"messages",
"read"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/notifications/NotificationsActor.java#L240-L257 |
113,652 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/notifications/NotificationsActor.java | NotificationsActor.onConversationHidden | public void onConversationHidden(Peer peer) {
if (visiblePeer != null && visiblePeer.equals(peer)) {
this.visiblePeer = null;
}
} | java | public void onConversationHidden(Peer peer) {
if (visiblePeer != null && visiblePeer.equals(peer)) {
this.visiblePeer = null;
}
} | [
"public",
"void",
"onConversationHidden",
"(",
"Peer",
"peer",
")",
"{",
"if",
"(",
"visiblePeer",
"!=",
"null",
"&&",
"visiblePeer",
".",
"equals",
"(",
"peer",
")",
")",
"{",
"this",
".",
"visiblePeer",
"=",
"null",
";",
"}",
"}"
] | Processing Conversation hidden event
@param peer peer | [
"Processing",
"Conversation",
"hidden",
"event"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/notifications/NotificationsActor.java#L338-L342 |
113,653 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/notifications/NotificationsActor.java | NotificationsActor.isNotificationsEnabled | private boolean isNotificationsEnabled(Peer peer, boolean hasMention) {
// If notifications doesn't enabled at all
if (!context().getSettingsModule().isNotificationsEnabled()) {
return false;
}
// Notifications for groups
if (peer.getPeerType() == PeerType.GROUP) {
... | java | private boolean isNotificationsEnabled(Peer peer, boolean hasMention) {
// If notifications doesn't enabled at all
if (!context().getSettingsModule().isNotificationsEnabled()) {
return false;
}
// Notifications for groups
if (peer.getPeerType() == PeerType.GROUP) {
... | [
"private",
"boolean",
"isNotificationsEnabled",
"(",
"Peer",
"peer",
",",
"boolean",
"hasMention",
")",
"{",
"// If notifications doesn't enabled at all",
"if",
"(",
"!",
"context",
"(",
")",
".",
"getSettingsModule",
"(",
")",
".",
"isNotificationsEnabled",
"(",
")... | Testing if notifications enabled for message
@param peer peer of message
@param hasMention does peer have mention
@return is notification enabled for peer | [
"Testing",
"if",
"notifications",
"enabled",
"for",
"message"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/notifications/NotificationsActor.java#L448-L497 |
113,654 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/notifications/NotificationsActor.java | NotificationsActor.getLastReadDate | private long getLastReadDate(Peer peer) {
if (readStates.containsKey(peer)) {
return readStates.get(peer);
}
byte[] data = storage.get(peer.getUnuqueId());
if (data != null) {
try {
return ReadState.fromBytes(data).getSortDate();
} cat... | java | private long getLastReadDate(Peer peer) {
if (readStates.containsKey(peer)) {
return readStates.get(peer);
}
byte[] data = storage.get(peer.getUnuqueId());
if (data != null) {
try {
return ReadState.fromBytes(data).getSortDate();
} cat... | [
"private",
"long",
"getLastReadDate",
"(",
"Peer",
"peer",
")",
"{",
"if",
"(",
"readStates",
".",
"containsKey",
"(",
"peer",
")",
")",
"{",
"return",
"readStates",
".",
"get",
"(",
"peer",
")",
";",
"}",
"byte",
"[",
"]",
"data",
"=",
"storage",
".... | Getting last read sort key for peer
@param peer peer for key
@return sort key, 0 if not available | [
"Getting",
"last",
"read",
"sort",
"key",
"for",
"peer"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/notifications/NotificationsActor.java#L521-L535 |
113,655 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/notifications/NotificationsActor.java | NotificationsActor.setLastReadDate | private void setLastReadDate(Peer peer, long date) {
storage.put(peer.getUnuqueId(), new ReadState(date).toByteArray());
readStates.put(peer, date);
} | java | private void setLastReadDate(Peer peer, long date) {
storage.put(peer.getUnuqueId(), new ReadState(date).toByteArray());
readStates.put(peer, date);
} | [
"private",
"void",
"setLastReadDate",
"(",
"Peer",
"peer",
",",
"long",
"date",
")",
"{",
"storage",
".",
"put",
"(",
"peer",
".",
"getUnuqueId",
"(",
")",
",",
"new",
"ReadState",
"(",
"date",
")",
".",
"toByteArray",
"(",
")",
")",
";",
"readStates",... | Setting last read date for peer
@param peer peer
@param date date | [
"Setting",
"last",
"read",
"date",
"for",
"peer"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/notifications/NotificationsActor.java#L543-L546 |
113,656 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/notifications/NotificationsActor.java | NotificationsActor.onBusEvent | @Override
public void onBusEvent(Event event) {
if (event instanceof AppVisibleChanged) {
AppVisibleChanged visibleChanged = (AppVisibleChanged) event;
if (visibleChanged.isVisible()) {
onAppVisible();
} else {
onAppHidden();
}
... | java | @Override
public void onBusEvent(Event event) {
if (event instanceof AppVisibleChanged) {
AppVisibleChanged visibleChanged = (AppVisibleChanged) event;
if (visibleChanged.isVisible()) {
onAppVisible();
} else {
onAppHidden();
}
... | [
"@",
"Override",
"public",
"void",
"onBusEvent",
"(",
"Event",
"event",
")",
"{",
"if",
"(",
"event",
"instanceof",
"AppVisibleChanged",
")",
"{",
"AppVisibleChanged",
"visibleChanged",
"=",
"(",
"AppVisibleChanged",
")",
"event",
";",
"if",
"(",
"visibleChanged... | Receiving bus events
@param event event | [
"Receiving",
"bus",
"events"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/notifications/NotificationsActor.java#L581-L595 |
113,657 | actorapp/actor-platform | actor-server/actor-frontend/src/main/java/im/actor/crypto/primitives/kuznechik/KuznechikCipher.java | KuznechikCipher.encryptBlock | public void encryptBlock(byte[] data, int offset, byte[] dest, int destOffset) {
// w128_t x;
// x.q[0] = ((uint64_t *) blk)[0];
// x.q[1] = ((uint64_t *) blk)[1];
Kuz128 x = new Kuz128();
x.setQ(0, ByteStrings.bytesToLong(data, offset));
x.setQ(1, ByteStrings.bytesToLong... | java | public void encryptBlock(byte[] data, int offset, byte[] dest, int destOffset) {
// w128_t x;
// x.q[0] = ((uint64_t *) blk)[0];
// x.q[1] = ((uint64_t *) blk)[1];
Kuz128 x = new Kuz128();
x.setQ(0, ByteStrings.bytesToLong(data, offset));
x.setQ(1, ByteStrings.bytesToLong... | [
"public",
"void",
"encryptBlock",
"(",
"byte",
"[",
"]",
"data",
",",
"int",
"offset",
",",
"byte",
"[",
"]",
"dest",
",",
"int",
"destOffset",
")",
"{",
"// w128_t x;",
"// x.q[0] = ((uint64_t *) blk)[0];",
"// x.q[1] = ((uint64_t *) blk)[1];",
"Kuz128",
"x",
"="... | Encrypting Block with KuznechikImpl encryption
@param data 16-byte block for encryption
@param offset offset in block
@param dest destination array
@param destOffset destinaation offset | [
"Encrypting",
"Block",
"with",
"KuznechikImpl",
"encryption"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-server/actor-frontend/src/main/java/im/actor/crypto/primitives/kuznechik/KuznechikCipher.java#L31-L57 |
113,658 | actorapp/actor-platform | actor-server/actor-frontend/src/main/java/im/actor/crypto/primitives/kuznechik/KuznechikCipher.java | KuznechikCipher.decryptBlock | @Override
public void decryptBlock(byte[] data, int offset, byte[] dest, int destOffset) {
// w128_t x;
// x.q[0] = ((uint64_t *) blk)[0] ^ key->k[9].q[0];
// x.q[1] = ((uint64_t *) blk)[1] ^ key->k[9].q[1];
Kuz128 x = new Kuz128();
x.setQ(0, ByteStrings.bytesToLong(data, off... | java | @Override
public void decryptBlock(byte[] data, int offset, byte[] dest, int destOffset) {
// w128_t x;
// x.q[0] = ((uint64_t *) blk)[0] ^ key->k[9].q[0];
// x.q[1] = ((uint64_t *) blk)[1] ^ key->k[9].q[1];
Kuz128 x = new Kuz128();
x.setQ(0, ByteStrings.bytesToLong(data, off... | [
"@",
"Override",
"public",
"void",
"decryptBlock",
"(",
"byte",
"[",
"]",
"data",
",",
"int",
"offset",
",",
"byte",
"[",
"]",
"dest",
",",
"int",
"destOffset",
")",
"{",
"// w128_t x;",
"// x.q[0] = ((uint64_t *) blk)[0] ^ key->k[9].q[0];",
"// x.q[1] = ((uint64_t ... | Decrypting block with Kuznechik encryption
@param data source data for decryption
@param offset offset in data
@param dest destination array
@param destOffset destination offset | [
"Decrypting",
"block",
"with",
"Kuznechik",
"encryption"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-server/actor-frontend/src/main/java/im/actor/crypto/primitives/kuznechik/KuznechikCipher.java#L67-L95 |
113,659 | actorapp/actor-platform | actor-server/actor-frontend/src/main/java/im/actor/crypto/primitives/kuznechik/KuznechikCipher.java | KuznechikCipher.convertKey | static KuzIntKey convertKey(byte[] key) {
if (key.length != 32) {
throw new RuntimeException("Key might be 32 bytes length");
}
KuzIntKey kuz = new KuzIntKey();
// w128_t c, x, y, z;
Kuz128 c = new Kuz128(), x = new Kuz128(), y = new Kuz128(), z = new Kuz128();
... | java | static KuzIntKey convertKey(byte[] key) {
if (key.length != 32) {
throw new RuntimeException("Key might be 32 bytes length");
}
KuzIntKey kuz = new KuzIntKey();
// w128_t c, x, y, z;
Kuz128 c = new Kuz128(), x = new Kuz128(), y = new Kuz128(), z = new Kuz128();
... | [
"static",
"KuzIntKey",
"convertKey",
"(",
"byte",
"[",
"]",
"key",
")",
"{",
"if",
"(",
"key",
".",
"length",
"!=",
"32",
")",
"{",
"throw",
"new",
"RuntimeException",
"(",
"\"Key might be 32 bytes length\"",
")",
";",
"}",
"KuzIntKey",
"kuz",
"=",
"new",
... | Converting binary representation of a key to internal format
@param key raw key
@return key in internal format | [
"Converting",
"binary",
"representation",
"of",
"a",
"key",
"to",
"internal",
"format"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-server/actor-frontend/src/main/java/im/actor/crypto/primitives/kuznechik/KuznechikCipher.java#L117-L193 |
113,660 | actorapp/actor-platform | actor-sdk/sdk-core-android/android-sdk/src/main/java/im/actor/sdk/ActorSDK.java | ActorSDK.waitForReady | public void waitForReady() {
if (!isLoaded) {
synchronized (LOAD_LOCK) {
if (!isLoaded) {
try {
long start = Runtime.getActorTime();
LOAD_LOCK.wait();
Log.d(TAG, "Waited for startup in " + (Ru... | java | public void waitForReady() {
if (!isLoaded) {
synchronized (LOAD_LOCK) {
if (!isLoaded) {
try {
long start = Runtime.getActorTime();
LOAD_LOCK.wait();
Log.d(TAG, "Waited for startup in " + (Ru... | [
"public",
"void",
"waitForReady",
"(",
")",
"{",
"if",
"(",
"!",
"isLoaded",
")",
"{",
"synchronized",
"(",
"LOAD_LOCK",
")",
"{",
"if",
"(",
"!",
"isLoaded",
")",
"{",
"try",
"{",
"long",
"start",
"=",
"Runtime",
".",
"getActorTime",
"(",
")",
";",
... | Waiting for Messenger Ready | [
"Waiting",
"for",
"Messenger",
"Ready"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core-android/android-sdk/src/main/java/im/actor/sdk/ActorSDK.java#L371-L385 |
113,661 | actorapp/actor-platform | actor-sdk/sdk-core-android/android-sdk/src/main/java/im/actor/sdk/ActorSDK.java | ActorSDK.getDelegatedFragment | public <T> T getDelegatedFragment(ActorIntent delegatedIntent, android.support.v4.app.Fragment baseFragment, Class<T> type) {
if (delegatedIntent != null &&
delegatedIntent instanceof ActorIntentFragmentActivity &&
((ActorIntentFragmentActivity) delegatedIntent).getFragment() !=... | java | public <T> T getDelegatedFragment(ActorIntent delegatedIntent, android.support.v4.app.Fragment baseFragment, Class<T> type) {
if (delegatedIntent != null &&
delegatedIntent instanceof ActorIntentFragmentActivity &&
((ActorIntentFragmentActivity) delegatedIntent).getFragment() !=... | [
"public",
"<",
"T",
">",
"T",
"getDelegatedFragment",
"(",
"ActorIntent",
"delegatedIntent",
",",
"android",
".",
"support",
".",
"v4",
".",
"app",
".",
"Fragment",
"baseFragment",
",",
"Class",
"<",
"T",
">",
"type",
")",
"{",
"if",
"(",
"delegatedIntent"... | Method is used internally for getting delegated fragment | [
"Method",
"is",
"used",
"internally",
"for",
"getting",
"delegated",
"fragment"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core-android/android-sdk/src/main/java/im/actor/sdk/ActorSDK.java#L1036-L1047 |
113,662 | actorapp/actor-platform | actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/promise/Promises.java | Promises.tuple | @ObjectiveCName("tupleWithT1:withT2:")
public static <T1, T2> Promise<Tuple2<T1, T2>> tuple(Promise<T1> t1, Promise<T2> t2) {
return PromisesArray.ofPromises((Promise<Object>) t1, (Promise<Object>) t2)
.zip()
.map(src -> new Tuple2<>((T1) src.get(0), (T2) src.get(1)));
} | java | @ObjectiveCName("tupleWithT1:withT2:")
public static <T1, T2> Promise<Tuple2<T1, T2>> tuple(Promise<T1> t1, Promise<T2> t2) {
return PromisesArray.ofPromises((Promise<Object>) t1, (Promise<Object>) t2)
.zip()
.map(src -> new Tuple2<>((T1) src.get(0), (T2) src.get(1)));
} | [
"@",
"ObjectiveCName",
"(",
"\"tupleWithT1:withT2:\"",
")",
"public",
"static",
"<",
"T1",
",",
"T2",
">",
"Promise",
"<",
"Tuple2",
"<",
"T1",
",",
"T2",
">",
">",
"tuple",
"(",
"Promise",
"<",
"T1",
">",
"t1",
",",
"Promise",
"<",
"T2",
">",
"t2",
... | Combines two promises to one with different data types
@param t1 first argument
@param t2 second argument
@param <T1> first argument type
@param <T2> second argument type
@return promise | [
"Combines",
"two",
"promises",
"to",
"one",
"with",
"different",
"data",
"types"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/promise/Promises.java#L41-L47 |
113,663 | actorapp/actor-platform | actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/promise/Promises.java | Promises.tuple | @ObjectiveCName("tupleWithT1:withT2:withT3:")
public static <T1, T2, T3> Promise<Tuple3<T1, T2, T3>> tuple(Promise<T1> t1, Promise<T2> t2, Promise<T3> t3) {
return PromisesArray.ofPromises((Promise<Object>) t1, (Promise<Object>) t2, (Promise<Object>) t3)
.zip()
.map(src -> ne... | java | @ObjectiveCName("tupleWithT1:withT2:withT3:")
public static <T1, T2, T3> Promise<Tuple3<T1, T2, T3>> tuple(Promise<T1> t1, Promise<T2> t2, Promise<T3> t3) {
return PromisesArray.ofPromises((Promise<Object>) t1, (Promise<Object>) t2, (Promise<Object>) t3)
.zip()
.map(src -> ne... | [
"@",
"ObjectiveCName",
"(",
"\"tupleWithT1:withT2:withT3:\"",
")",
"public",
"static",
"<",
"T1",
",",
"T2",
",",
"T3",
">",
"Promise",
"<",
"Tuple3",
"<",
"T1",
",",
"T2",
",",
"T3",
">",
">",
"tuple",
"(",
"Promise",
"<",
"T1",
">",
"t1",
",",
"Pro... | Combines tree promises to one with different data types
@param t1 first argument
@param t2 second argument
@param t3 third argument
@param <T1> first argument type
@param <T2> second argument type
@param <T3> third argument type
@return promise | [
"Combines",
"tree",
"promises",
"to",
"one",
"with",
"different",
"data",
"types"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/promise/Promises.java#L60-L65 |
113,664 | actorapp/actor-platform | actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/promise/Promises.java | Promises.traverse | public static <T> Promise traverse(List<Supplier<Promise<T>>> queue) {
if (queue.size() == 0) {
return Promise.success(null);
}
return queue.remove(0).get()
.flatMap(v -> traverse(queue));
} | java | public static <T> Promise traverse(List<Supplier<Promise<T>>> queue) {
if (queue.size() == 0) {
return Promise.success(null);
}
return queue.remove(0).get()
.flatMap(v -> traverse(queue));
} | [
"public",
"static",
"<",
"T",
">",
"Promise",
"traverse",
"(",
"List",
"<",
"Supplier",
"<",
"Promise",
"<",
"T",
">",
">",
">",
"queue",
")",
"{",
"if",
"(",
"queue",
".",
"size",
"(",
")",
"==",
"0",
")",
"{",
"return",
"Promise",
".",
"success... | Execute promises step by step
@param queue queue of promises
@param <T> type of promises
@return promise | [
"Execute",
"promises",
"step",
"by",
"step"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/promise/Promises.java#L98-L106 |
113,665 | actorapp/actor-platform | actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/markdown/Patterns.java | Patterns.concatGroups | public static final String concatGroups(MatcherCompat matcher) {
StringBuilder b = new StringBuilder();
final int numGroups = matcher.groupCount();
for (int i = 1; i <= numGroups; i++) {
String s = matcher.group(i);
if (s != null) {
b.append(s);
... | java | public static final String concatGroups(MatcherCompat matcher) {
StringBuilder b = new StringBuilder();
final int numGroups = matcher.groupCount();
for (int i = 1; i <= numGroups; i++) {
String s = matcher.group(i);
if (s != null) {
b.append(s);
... | [
"public",
"static",
"final",
"String",
"concatGroups",
"(",
"MatcherCompat",
"matcher",
")",
"{",
"StringBuilder",
"b",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"final",
"int",
"numGroups",
"=",
"matcher",
".",
"groupCount",
"(",
")",
";",
"for",
"(",
"... | Convenience method to take all of the non-null matching groups in a
regex Matcher and return them as a concatenated string.
@param matcher The Matcher object from which grouped text will
be extracted
@return A String comprising all of the non-null matched
groups concatenated together | [
"Convenience",
"method",
"to",
"take",
"all",
"of",
"the",
"non",
"-",
"null",
"matching",
"groups",
"in",
"a",
"regex",
"Matcher",
"and",
"return",
"them",
"as",
"a",
"concatenated",
"string",
"."
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/markdown/Patterns.java#L114-L124 |
113,666 | actorapp/actor-platform | actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/markdown/Patterns.java | Patterns.digitsAndPlusOnly | public static final String digitsAndPlusOnly(MatcherCompat matcher) {
StringBuilder buffer = new StringBuilder();
String matchingRegion = matcher.group();
for (int i = 0, size = matchingRegion.length(); i < size; i++) {
char character = matchingRegion.charAt(i);
if (chara... | java | public static final String digitsAndPlusOnly(MatcherCompat matcher) {
StringBuilder buffer = new StringBuilder();
String matchingRegion = matcher.group();
for (int i = 0, size = matchingRegion.length(); i < size; i++) {
char character = matchingRegion.charAt(i);
if (chara... | [
"public",
"static",
"final",
"String",
"digitsAndPlusOnly",
"(",
"MatcherCompat",
"matcher",
")",
"{",
"StringBuilder",
"buffer",
"=",
"new",
"StringBuilder",
"(",
")",
";",
"String",
"matchingRegion",
"=",
"matcher",
".",
"group",
"(",
")",
";",
"for",
"(",
... | Convenience method to return only the digits and plus signs
in the matching string.
@param matcher The Matcher object from which digits and plus will
be extracted
@return A String comprising all of the digits and plus in
the isMatch | [
"Convenience",
"method",
"to",
"return",
"only",
"the",
"digits",
"and",
"plus",
"signs",
"in",
"the",
"matching",
"string",
"."
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/markdown/Patterns.java#L135-L145 |
113,667 | actorapp/actor-platform | actor-sdk/sdk-core-android/android-sdk/src/main/java/im/actor/sdk/util/images/BitmapUtil.java | BitmapUtil.writeInt | private static byte[] writeInt(int value) throws IOException {
byte[] b = new byte[4];
b[0] = (byte) (value & 0x000000FF);
b[1] = (byte) ((value & 0x0000FF00) >> 8);
b[2] = (byte) ((value & 0x00FF0000) >> 16);
b[3] = (byte) ((value & 0xFF000000) >> 24);
return b;
} | java | private static byte[] writeInt(int value) throws IOException {
byte[] b = new byte[4];
b[0] = (byte) (value & 0x000000FF);
b[1] = (byte) ((value & 0x0000FF00) >> 8);
b[2] = (byte) ((value & 0x00FF0000) >> 16);
b[3] = (byte) ((value & 0xFF000000) >> 24);
return b;
} | [
"private",
"static",
"byte",
"[",
"]",
"writeInt",
"(",
"int",
"value",
")",
"throws",
"IOException",
"{",
"byte",
"[",
"]",
"b",
"=",
"new",
"byte",
"[",
"4",
"]",
";",
"b",
"[",
"0",
"]",
"=",
"(",
"byte",
")",
"(",
"value",
"&",
"0x000000FF",
... | Write integer to little-endian
@param value
@return
@throws IOException | [
"Write",
"integer",
"to",
"little",
"-",
"endian"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core-android/android-sdk/src/main/java/im/actor/sdk/util/images/BitmapUtil.java#L163-L172 |
113,668 | actorapp/actor-platform | actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/actors/Actor.java | Actor.reply | public void reply(Object message) {
if (context.sender() != null) {
context.sender().send(message, self());
}
} | java | public void reply(Object message) {
if (context.sender() != null) {
context.sender().send(message, self());
}
} | [
"public",
"void",
"reply",
"(",
"Object",
"message",
")",
"{",
"if",
"(",
"context",
".",
"sender",
"(",
")",
"!=",
"null",
")",
"{",
"context",
".",
"sender",
"(",
")",
".",
"send",
"(",
"message",
",",
"self",
"(",
")",
")",
";",
"}",
"}"
] | Reply message to sender of last message
@param message reply message | [
"Reply",
"message",
"to",
"sender",
"of",
"last",
"message"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/actors/Actor.java#L225-L229 |
113,669 | actorapp/actor-platform | actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/actors/Actor.java | Actor.drop | public void drop(Object message) {
if (system().getTraceInterface() != null) {
system().getTraceInterface().onDrop(sender(), message, this);
}
reply(new DeadLetter(message));
} | java | public void drop(Object message) {
if (system().getTraceInterface() != null) {
system().getTraceInterface().onDrop(sender(), message, this);
}
reply(new DeadLetter(message));
} | [
"public",
"void",
"drop",
"(",
"Object",
"message",
")",
"{",
"if",
"(",
"system",
"(",
")",
".",
"getTraceInterface",
"(",
")",
"!=",
"null",
")",
"{",
"system",
"(",
")",
".",
"getTraceInterface",
"(",
")",
".",
"onDrop",
"(",
"sender",
"(",
")",
... | Dropping of message
@param message message for dropping | [
"Dropping",
"of",
"message"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/actors/Actor.java#L236-L241 |
113,670 | actorapp/actor-platform | actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/util/ExponentialBackoff.java | ExponentialBackoff.exponentialWait | public synchronized long exponentialWait() {
long maxDelayRet = minDelay + ((maxDelay - minDelay) / maxFailureCount) * currentFailureCount;
return (long) (random.nextFloat() * maxDelayRet);
} | java | public synchronized long exponentialWait() {
long maxDelayRet = minDelay + ((maxDelay - minDelay) / maxFailureCount) * currentFailureCount;
return (long) (random.nextFloat() * maxDelayRet);
} | [
"public",
"synchronized",
"long",
"exponentialWait",
"(",
")",
"{",
"long",
"maxDelayRet",
"=",
"minDelay",
"+",
"(",
"(",
"maxDelay",
"-",
"minDelay",
")",
"/",
"maxFailureCount",
")",
"*",
"currentFailureCount",
";",
"return",
"(",
"long",
")",
"(",
"rando... | Calculating wait duration after failure attempt
@return wait in ms | [
"Calculating",
"wait",
"duration",
"after",
"failure",
"attempt"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/util/ExponentialBackoff.java#L42-L45 |
113,671 | actorapp/actor-platform | actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/promise/Promise.java | Promise.then | @ObjectiveCName("then:")
public synchronized Promise<T> then(final Consumer<T> then) {
if (isFinished) {
if (exception == null) {
dispatcher.dispatch(() -> then.apply(result));
}
} else {
callbacks.add(new PromiseCallback<T>() {
@Ov... | java | @ObjectiveCName("then:")
public synchronized Promise<T> then(final Consumer<T> then) {
if (isFinished) {
if (exception == null) {
dispatcher.dispatch(() -> then.apply(result));
}
} else {
callbacks.add(new PromiseCallback<T>() {
@Ov... | [
"@",
"ObjectiveCName",
"(",
"\"then:\"",
")",
"public",
"synchronized",
"Promise",
"<",
"T",
">",
"then",
"(",
"final",
"Consumer",
"<",
"T",
">",
"then",
")",
"{",
"if",
"(",
"isFinished",
")",
"{",
"if",
"(",
"exception",
"==",
"null",
")",
"{",
"d... | Handling successful result
@param then supplier for result
@return this | [
"Handling",
"successful",
"result"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/promise/Promise.java#L113-L133 |
113,672 | actorapp/actor-platform | actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/promise/Promise.java | Promise.map | @ObjectiveCName("map:")
public <R> Promise<R> map(final Function<T, R> res) {
final Promise<T> self = this;
return new Promise<>((PromiseFunc<R>) resolver -> {
self.then(t -> {
R r;
try {
r = res.apply(t);
} catch (Excep... | java | @ObjectiveCName("map:")
public <R> Promise<R> map(final Function<T, R> res) {
final Promise<T> self = this;
return new Promise<>((PromiseFunc<R>) resolver -> {
self.then(t -> {
R r;
try {
r = res.apply(t);
} catch (Excep... | [
"@",
"ObjectiveCName",
"(",
"\"map:\"",
")",
"public",
"<",
"R",
">",
"Promise",
"<",
"R",
">",
"map",
"(",
"final",
"Function",
"<",
"T",
",",
"R",
">",
"res",
")",
"{",
"final",
"Promise",
"<",
"T",
">",
"self",
"=",
"this",
";",
"return",
"new... | Mapping result value of promise to another value
@param res mapping function
@param <R> destination type
@return promise | [
"Mapping",
"result",
"value",
"of",
"promise",
"to",
"another",
"value"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/promise/Promise.java#L266-L283 |
113,673 | actorapp/actor-platform | actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/promise/Promise.java | Promise.flatMap | @ObjectiveCName("flatMap:")
public <R> Promise<R> flatMap(final Function<T, Promise<R>> res) {
final Promise<T> self = this;
return new Promise<>((PromiseFunc<R>) resolver -> {
self.then(t -> {
Promise<R> promise;
try {
promise = res.ap... | java | @ObjectiveCName("flatMap:")
public <R> Promise<R> flatMap(final Function<T, Promise<R>> res) {
final Promise<T> self = this;
return new Promise<>((PromiseFunc<R>) resolver -> {
self.then(t -> {
Promise<R> promise;
try {
promise = res.ap... | [
"@",
"ObjectiveCName",
"(",
"\"flatMap:\"",
")",
"public",
"<",
"R",
">",
"Promise",
"<",
"R",
">",
"flatMap",
"(",
"final",
"Function",
"<",
"T",
",",
"Promise",
"<",
"R",
">",
">",
"res",
")",
"{",
"final",
"Promise",
"<",
"T",
">",
"self",
"=",
... | Map result of promise to promise of value
@param res mapping function
@param <R> destination type
@return promise | [
"Map",
"result",
"of",
"promise",
"to",
"promise",
"of",
"value"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/promise/Promise.java#L292-L311 |
113,674 | actorapp/actor-platform | actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/promise/Promise.java | Promise.chain | public <R> Promise<T> chain(final Function<T, Promise<R>> res) {
final Promise<T> self = this;
return new Promise<>(resolver -> {
self.then(t -> {
Promise<R> chained = res.apply(t);
chained.then(t2 -> resolver.result(t));
chained.failure(e -> r... | java | public <R> Promise<T> chain(final Function<T, Promise<R>> res) {
final Promise<T> self = this;
return new Promise<>(resolver -> {
self.then(t -> {
Promise<R> chained = res.apply(t);
chained.then(t2 -> resolver.result(t));
chained.failure(e -> r... | [
"public",
"<",
"R",
">",
"Promise",
"<",
"T",
">",
"chain",
"(",
"final",
"Function",
"<",
"T",
",",
"Promise",
"<",
"R",
">",
">",
"res",
")",
"{",
"final",
"Promise",
"<",
"T",
">",
"self",
"=",
"this",
";",
"return",
"new",
"Promise",
"<>",
... | Chaining result to next promise and returning current value as result promise
@param res chaining function
@param <R> destination type
@return promise | [
"Chaining",
"result",
"to",
"next",
"promise",
"and",
"returning",
"current",
"value",
"as",
"result",
"promise"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/promise/Promise.java#L320-L330 |
113,675 | actorapp/actor-platform | actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/promise/Promise.java | Promise.after | public Promise<T> after(final ConsumerDouble<T, Exception> afterHandler) {
then(t -> afterHandler.apply(t, null));
failure(e -> afterHandler.apply(null, e));
return this;
} | java | public Promise<T> after(final ConsumerDouble<T, Exception> afterHandler) {
then(t -> afterHandler.apply(t, null));
failure(e -> afterHandler.apply(null, e));
return this;
} | [
"public",
"Promise",
"<",
"T",
">",
"after",
"(",
"final",
"ConsumerDouble",
"<",
"T",
",",
"Exception",
">",
"afterHandler",
")",
"{",
"then",
"(",
"t",
"->",
"afterHandler",
".",
"apply",
"(",
"t",
",",
"null",
")",
")",
";",
"failure",
"(",
"e",
... | Called after success or failure
@param afterHandler after handler
@return this | [
"Called",
"after",
"success",
"or",
"failure"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/promise/Promise.java#L338-L342 |
113,676 | actorapp/actor-platform | actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/promise/Promise.java | Promise.pipeTo | @ObjectiveCName("pipeTo:")
public Promise<T> pipeTo(PromiseResolver<T> resolver) {
then(t -> resolver.result(t));
failure(e -> resolver.error(e));
return this;
} | java | @ObjectiveCName("pipeTo:")
public Promise<T> pipeTo(PromiseResolver<T> resolver) {
then(t -> resolver.result(t));
failure(e -> resolver.error(e));
return this;
} | [
"@",
"ObjectiveCName",
"(",
"\"pipeTo:\"",
")",
"public",
"Promise",
"<",
"T",
">",
"pipeTo",
"(",
"PromiseResolver",
"<",
"T",
">",
"resolver",
")",
"{",
"then",
"(",
"t",
"->",
"resolver",
".",
"result",
"(",
"t",
")",
")",
";",
"failure",
"(",
"e"... | Pipe result to resolver
@param resolver destination resolver
@return this | [
"Pipe",
"result",
"to",
"resolver"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/promise/Promise.java#L350-L355 |
113,677 | actorapp/actor-platform | actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/util/Hex.java | Hex.hex | public static String hex(byte[] bytes) {
char[] hexChars = new char[bytes.length * 2];
for (int j = 0; j < bytes.length; j++) {
int v = bytes[j] & 0xFF;
hexChars[j * 2] = HEXES_SMALL[v >>> 4];
hexChars[j * 2 + 1] = HEXES_SMALL[v & 0x0F];
}
return new S... | java | public static String hex(byte[] bytes) {
char[] hexChars = new char[bytes.length * 2];
for (int j = 0; j < bytes.length; j++) {
int v = bytes[j] & 0xFF;
hexChars[j * 2] = HEXES_SMALL[v >>> 4];
hexChars[j * 2 + 1] = HEXES_SMALL[v & 0x0F];
}
return new S... | [
"public",
"static",
"String",
"hex",
"(",
"byte",
"[",
"]",
"bytes",
")",
"{",
"char",
"[",
"]",
"hexChars",
"=",
"new",
"char",
"[",
"bytes",
".",
"length",
"*",
"2",
"]",
";",
"for",
"(",
"int",
"j",
"=",
"0",
";",
"j",
"<",
"bytes",
".",
"... | Calculating lowcase hex string
@param bytes data for hex
@return hex string | [
"Calculating",
"lowcase",
"hex",
"string"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/util/Hex.java#L24-L32 |
113,678 | actorapp/actor-platform | actor-sdk/sdk-core-android/android-sdk/src/main/java/im/actor/sdk/controllers/conversation/view/BubbleContainer.java | BubbleContainer.onMeasure | @Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
int topOffset = 0;
View messageView = findMessageView();
int padding = Screen.dp(8);
if (showAvatar) {
padding += Screen.dp(48);
}
measureChildWithMargins(messageView, widt... | java | @Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
int topOffset = 0;
View messageView = findMessageView();
int padding = Screen.dp(8);
if (showAvatar) {
padding += Screen.dp(48);
}
measureChildWithMargins(messageView, widt... | [
"@",
"Override",
"protected",
"void",
"onMeasure",
"(",
"int",
"widthMeasureSpec",
",",
"int",
"heightMeasureSpec",
")",
"{",
"int",
"topOffset",
"=",
"0",
";",
"View",
"messageView",
"=",
"findMessageView",
"(",
")",
";",
"int",
"padding",
"=",
"Screen",
".... | Small hack for avoiding listview selection | [
"Small",
"hack",
"for",
"avoiding",
"listview",
"selection"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core-android/android-sdk/src/main/java/im/actor/sdk/controllers/conversation/view/BubbleContainer.java#L238-L265 |
113,679 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/network/ActorApi.java | ActorApi.request | public synchronized <T extends Response> long request(Request<T> request, RpcCallback<T> callback, long timeout) {
if (request == null) {
throw new RuntimeException("Request can't be null");
}
long rid = NEXT_RPC_ID.incrementAndGet();
this.apiBroker.send(new ApiBroker.Perform... | java | public synchronized <T extends Response> long request(Request<T> request, RpcCallback<T> callback, long timeout) {
if (request == null) {
throw new RuntimeException("Request can't be null");
}
long rid = NEXT_RPC_ID.incrementAndGet();
this.apiBroker.send(new ApiBroker.Perform... | [
"public",
"synchronized",
"<",
"T",
"extends",
"Response",
">",
"long",
"request",
"(",
"Request",
"<",
"T",
">",
"request",
",",
"RpcCallback",
"<",
"T",
">",
"callback",
",",
"long",
"timeout",
")",
"{",
"if",
"(",
"request",
"==",
"null",
")",
"{",
... | Performing API request
@param request request body
@param callback request callback
@param <T> type of response
@param timeout timeout of rpc
@return rid of request | [
"Performing",
"API",
"request"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/network/ActorApi.java#L74-L81 |
113,680 | actorapp/actor-platform | actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/crypto/box/ActorBox.java | ActorBox.openBox | public static byte[] openBox(byte[] header, byte[] cipherText, ActorBoxKey key) throws IntegrityException {
CBCHmacBox aesCipher =
new CBCHmacBox(Crypto.createAES128(key.getKeyAES()), Crypto.createSHA256(), key.getMacAES());
CBCHmacBox kuzCipher =
new CBCHmacBox(new Kuzne... | java | public static byte[] openBox(byte[] header, byte[] cipherText, ActorBoxKey key) throws IntegrityException {
CBCHmacBox aesCipher =
new CBCHmacBox(Crypto.createAES128(key.getKeyAES()), Crypto.createSHA256(), key.getMacAES());
CBCHmacBox kuzCipher =
new CBCHmacBox(new Kuzne... | [
"public",
"static",
"byte",
"[",
"]",
"openBox",
"(",
"byte",
"[",
"]",
"header",
",",
"byte",
"[",
"]",
"cipherText",
",",
"ActorBoxKey",
"key",
")",
"throws",
"IntegrityException",
"{",
"CBCHmacBox",
"aesCipher",
"=",
"new",
"CBCHmacBox",
"(",
"Crypto",
... | Opening Encrypted box
@param header plain-text header of a box
@param cipherText encrypted content
@param key Box key
@return plain-text content
@throws IntegrityException | [
"Opening",
"Encrypted",
"box"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/crypto/box/ActorBox.java#L35-L58 |
113,681 | actorapp/actor-platform | actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/crypto/box/ActorBox.java | ActorBox.closeBox | public static byte[] closeBox(byte[] header, byte[] plainText, byte[] random32, ActorBoxKey key) throws IntegrityException {
CBCHmacBox aesCipher = new CBCHmacBox(Crypto.createAES128(key.getKeyAES()), Crypto.createSHA256(), key.getMacAES());
CBCHmacBox kuzCipher = new CBCHmacBox(new KuznechikFastEngine(... | java | public static byte[] closeBox(byte[] header, byte[] plainText, byte[] random32, ActorBoxKey key) throws IntegrityException {
CBCHmacBox aesCipher = new CBCHmacBox(Crypto.createAES128(key.getKeyAES()), Crypto.createSHA256(), key.getMacAES());
CBCHmacBox kuzCipher = new CBCHmacBox(new KuznechikFastEngine(... | [
"public",
"static",
"byte",
"[",
"]",
"closeBox",
"(",
"byte",
"[",
"]",
"header",
",",
"byte",
"[",
"]",
"plainText",
",",
"byte",
"[",
"]",
"random32",
",",
"ActorBoxKey",
"key",
")",
"throws",
"IntegrityException",
"{",
"CBCHmacBox",
"aesCipher",
"=",
... | Closing encrypted box
@param header plain-text header of a box
@param plainText plain-text content
@param random32 32 random bytes
@param key Box key
@return encrypted context
@throws IntegrityException | [
"Closing",
"encrypted",
"box"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/runtime/runtime-shared/src/main/java/im/actor/runtime/crypto/box/ActorBox.java#L70-L86 |
113,682 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/util/JavaUtil.java | JavaUtil.contains | public static boolean contains(String[] vals, String value) {
for (int i = 0; i < vals.length; i++) {
if (vals[i].equals(value)) {
return true;
}
}
return false;
} | java | public static boolean contains(String[] vals, String value) {
for (int i = 0; i < vals.length; i++) {
if (vals[i].equals(value)) {
return true;
}
}
return false;
} | [
"public",
"static",
"boolean",
"contains",
"(",
"String",
"[",
"]",
"vals",
",",
"String",
"value",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"vals",
".",
"length",
";",
"i",
"++",
")",
"{",
"if",
"(",
"vals",
"[",
"i",
"]",
... | Checking if string array contains value
@param vals values
@param value value
@return is array contains string | [
"Checking",
"if",
"string",
"array",
"contains",
"value"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/util/JavaUtil.java#L23-L30 |
113,683 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/util/JavaUtil.java | JavaUtil.equalsE | public static <T> boolean equalsE(T a, T b) {
if (a == null && b == null) {
return true;
}
if (a != null && b == null) {
return false;
}
if (a == null) {
return false;
}
return a.equals(b);
} | java | public static <T> boolean equalsE(T a, T b) {
if (a == null && b == null) {
return true;
}
if (a != null && b == null) {
return false;
}
if (a == null) {
return false;
}
return a.equals(b);
} | [
"public",
"static",
"<",
"T",
">",
"boolean",
"equalsE",
"(",
"T",
"a",
",",
"T",
"b",
")",
"{",
"if",
"(",
"a",
"==",
"null",
"&&",
"b",
"==",
"null",
")",
"{",
"return",
"true",
";",
"}",
"if",
"(",
"a",
"!=",
"null",
"&&",
"b",
"==",
"nu... | Equals with null checking
@param a first argument
@param b second argument
@return is equals result | [
"Equals",
"with",
"null",
"checking"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/util/JavaUtil.java#L39-L50 |
113,684 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/util/JavaUtil.java | JavaUtil.last | public static <T> List<T> last(List<T> elements, int limit) {
ArrayList<T> res = new ArrayList<T>();
for (int i = 0; i < elements.size(); i++) {
if (res.size() >= limit) {
break;
}
res.add(elements.get(elements.size() - 1 - i));
}
retur... | java | public static <T> List<T> last(List<T> elements, int limit) {
ArrayList<T> res = new ArrayList<T>();
for (int i = 0; i < elements.size(); i++) {
if (res.size() >= limit) {
break;
}
res.add(elements.get(elements.size() - 1 - i));
}
retur... | [
"public",
"static",
"<",
"T",
">",
"List",
"<",
"T",
">",
"last",
"(",
"List",
"<",
"T",
">",
"elements",
",",
"int",
"limit",
")",
"{",
"ArrayList",
"<",
"T",
">",
"res",
"=",
"new",
"ArrayList",
"<",
"T",
">",
"(",
")",
";",
"for",
"(",
"in... | Getting last elements of list in reverse order
@param elements source list
@param limit maximum elements count
@param <T> type of objects
@return result list | [
"Getting",
"last",
"elements",
"of",
"list",
"in",
"reverse",
"order"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/util/JavaUtil.java#L60-L69 |
113,685 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/util/JavaUtil.java | JavaUtil.unbox | public static long[] unbox(List<Long> list) {
long[] res = new long[list.size()];
for (int i = 0; i < res.length; i++) {
res[i] = list.get(i);
}
return res;
} | java | public static long[] unbox(List<Long> list) {
long[] res = new long[list.size()];
for (int i = 0; i < res.length; i++) {
res[i] = list.get(i);
}
return res;
} | [
"public",
"static",
"long",
"[",
"]",
"unbox",
"(",
"List",
"<",
"Long",
">",
"list",
")",
"{",
"long",
"[",
"]",
"res",
"=",
"new",
"long",
"[",
"list",
".",
"size",
"(",
")",
"]",
";",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"res... | Unboxing long list
@param list source list
@return result | [
"Unboxing",
"long",
"list"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/util/JavaUtil.java#L77-L83 |
113,686 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/viewmodel/GlobalStateVM.java | GlobalStateVM.onGlobalCounterChanged | public synchronized void onGlobalCounterChanged(int value) {
globalCounter.change(value);
if (!isAppVisible.get()) {
globalTempCounter.change(value);
}
} | java | public synchronized void onGlobalCounterChanged(int value) {
globalCounter.change(value);
if (!isAppVisible.get()) {
globalTempCounter.change(value);
}
} | [
"public",
"synchronized",
"void",
"onGlobalCounterChanged",
"(",
"int",
"value",
")",
"{",
"globalCounter",
".",
"change",
"(",
"value",
")",
";",
"if",
"(",
"!",
"isAppVisible",
".",
"get",
"(",
")",
")",
"{",
"globalTempCounter",
".",
"change",
"(",
"val... | Notify from Modules about global counters changed
@param value current value of global counter | [
"Notify",
"from",
"Modules",
"about",
"global",
"counters",
"changed"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/viewmodel/GlobalStateVM.java#L55-L60 |
113,687 | actorapp/actor-platform | actor-sdk/sdk-core/runtime/runtime-generic/src/main/java/im/actor/runtime/generic/storage/AsyncListEngine.java | AsyncListEngine.addOrUpdateItem | @Override
public void addOrUpdateItem(T item) {
synchronized (LOCK) {
// Update memory cache
cache.onObjectUpdated(item.getEngineId(), item);
List<T> items = new ArrayList<T>();
items.add(item);
asyncStorageInt.addOrUpdateItems(items);
... | java | @Override
public void addOrUpdateItem(T item) {
synchronized (LOCK) {
// Update memory cache
cache.onObjectUpdated(item.getEngineId(), item);
List<T> items = new ArrayList<T>();
items.add(item);
asyncStorageInt.addOrUpdateItems(items);
... | [
"@",
"Override",
"public",
"void",
"addOrUpdateItem",
"(",
"T",
"item",
")",
"{",
"synchronized",
"(",
"LOCK",
")",
"{",
"// Update memory cache",
"cache",
".",
"onObjectUpdated",
"(",
"item",
".",
"getEngineId",
"(",
")",
",",
"item",
")",
";",
"List",
"<... | Main List Engine | [
"Main",
"List",
"Engine"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/runtime/runtime-generic/src/main/java/im/actor/runtime/generic/storage/AsyncListEngine.java#L40-L54 |
113,688 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/encryption/KeyManagerActor.java | KeyManagerActor.fetchOwnIdentity | private Promise<OwnIdentity> fetchOwnIdentity() {
return Promise.success(new OwnIdentity(ownKeys.getKeyGroupId(), ownKeys.getIdentityKey()));
} | java | private Promise<OwnIdentity> fetchOwnIdentity() {
return Promise.success(new OwnIdentity(ownKeys.getKeyGroupId(), ownKeys.getIdentityKey()));
} | [
"private",
"Promise",
"<",
"OwnIdentity",
">",
"fetchOwnIdentity",
"(",
")",
"{",
"return",
"Promise",
".",
"success",
"(",
"new",
"OwnIdentity",
"(",
"ownKeys",
".",
"getKeyGroupId",
"(",
")",
",",
"ownKeys",
".",
"getIdentityKey",
"(",
")",
")",
")",
";"... | Fetching Own Identity key and group id | [
"Fetching",
"Own",
"Identity",
"key",
"and",
"group",
"id"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/encryption/KeyManagerActor.java#L216-L218 |
113,689 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/encryption/KeyManagerActor.java | KeyManagerActor.fetchPreKey | private Promise<PrivateKey> fetchPreKey(byte[] publicKey) {
try {
return Promise.success(ManagedList.of(ownKeys.getPreKeys())
.filter(PrivateKey.PRE_KEY_EQUALS(publicKey))
.first());
} catch (Exception e) {
Log.d(TAG, "Unable to find own pr... | java | private Promise<PrivateKey> fetchPreKey(byte[] publicKey) {
try {
return Promise.success(ManagedList.of(ownKeys.getPreKeys())
.filter(PrivateKey.PRE_KEY_EQUALS(publicKey))
.first());
} catch (Exception e) {
Log.d(TAG, "Unable to find own pr... | [
"private",
"Promise",
"<",
"PrivateKey",
">",
"fetchPreKey",
"(",
"byte",
"[",
"]",
"publicKey",
")",
"{",
"try",
"{",
"return",
"Promise",
".",
"success",
"(",
"ManagedList",
".",
"of",
"(",
"ownKeys",
".",
"getPreKeys",
"(",
")",
")",
".",
"filter",
... | Fetching own private pre key by public key
@param publicKey public key material for search | [
"Fetching",
"own",
"private",
"pre",
"key",
"by",
"public",
"key"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/encryption/KeyManagerActor.java#L225-L237 |
113,690 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/encryption/KeyManagerActor.java | KeyManagerActor.fetchPreKey | private Promise<PrivateKey> fetchPreKey(long keyId) {
try {
return Promise.success(ManagedList.of(ownKeys.getPreKeys())
.filter(PrivateKey.PRE_KEY_EQUALS_ID(keyId))
.first());
} catch (Exception e) {
Log.d(TAG, "Unable to find own pre key #... | java | private Promise<PrivateKey> fetchPreKey(long keyId) {
try {
return Promise.success(ManagedList.of(ownKeys.getPreKeys())
.filter(PrivateKey.PRE_KEY_EQUALS_ID(keyId))
.first());
} catch (Exception e) {
Log.d(TAG, "Unable to find own pre key #... | [
"private",
"Promise",
"<",
"PrivateKey",
">",
"fetchPreKey",
"(",
"long",
"keyId",
")",
"{",
"try",
"{",
"return",
"Promise",
".",
"success",
"(",
"ManagedList",
".",
"of",
"(",
"ownKeys",
".",
"getPreKeys",
"(",
")",
")",
".",
"filter",
"(",
"PrivateKey... | Fetching own pre key by id
@param keyId pre key id | [
"Fetching",
"own",
"pre",
"key",
"by",
"id"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/encryption/KeyManagerActor.java#L244-L253 |
113,691 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/encryption/KeyManagerActor.java | KeyManagerActor.fetchUserGroups | private Promise<UserKeys> fetchUserGroups(final int uid) {
User user = users().getValue(uid);
if (user == null) {
throw new RuntimeException("Unable to find user #" + uid);
}
final UserKeys userKeys = getCachedUserKeys(uid);
if (userKeys != null) {
retur... | java | private Promise<UserKeys> fetchUserGroups(final int uid) {
User user = users().getValue(uid);
if (user == null) {
throw new RuntimeException("Unable to find user #" + uid);
}
final UserKeys userKeys = getCachedUserKeys(uid);
if (userKeys != null) {
retur... | [
"private",
"Promise",
"<",
"UserKeys",
">",
"fetchUserGroups",
"(",
"final",
"int",
"uid",
")",
"{",
"User",
"user",
"=",
"users",
"(",
")",
".",
"getValue",
"(",
"uid",
")",
";",
"if",
"(",
"user",
"==",
"null",
")",
"{",
"throw",
"new",
"RuntimeExc... | Fetching all user's key groups
@param uid User's id | [
"Fetching",
"all",
"user",
"s",
"key",
"groups"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/encryption/KeyManagerActor.java#L272-L306 |
113,692 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/encryption/KeyManagerActor.java | KeyManagerActor.fetchUserPreKey | private Promise<PublicKey> fetchUserPreKey(final int uid, final int keyGroupId, final long keyId) {
User user = users().getValue(uid);
if (user == null) {
throw new RuntimeException("Unable to find user #" + uid);
}
return pickUserGroup(uid, keyGroupId)
.fla... | java | private Promise<PublicKey> fetchUserPreKey(final int uid, final int keyGroupId, final long keyId) {
User user = users().getValue(uid);
if (user == null) {
throw new RuntimeException("Unable to find user #" + uid);
}
return pickUserGroup(uid, keyGroupId)
.fla... | [
"private",
"Promise",
"<",
"PublicKey",
">",
"fetchUserPreKey",
"(",
"final",
"int",
"uid",
",",
"final",
"int",
"keyGroupId",
",",
"final",
"long",
"keyId",
")",
"{",
"User",
"user",
"=",
"users",
"(",
")",
".",
"getValue",
"(",
"uid",
")",
";",
"if",... | Fetching user's pre key by key id
@param uid User's id
@param keyGroupId User's key group id
@param keyId Key id | [
"Fetching",
"user",
"s",
"pre",
"key",
"by",
"key",
"id"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/encryption/KeyManagerActor.java#L315-L383 |
113,693 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/encryption/KeyManagerActor.java | KeyManagerActor.fetchUserPreKey | private Promise<PublicKey> fetchUserPreKey(final int uid, final int keyGroupId) {
return pickUserGroup(uid, keyGroupId)
.flatMap(new Function<Tuple2<UserKeysGroup, UserKeys>, Promise<PublicKey>>() {
@Override
public Promise<PublicKey> apply(final Tuple2<Us... | java | private Promise<PublicKey> fetchUserPreKey(final int uid, final int keyGroupId) {
return pickUserGroup(uid, keyGroupId)
.flatMap(new Function<Tuple2<UserKeysGroup, UserKeys>, Promise<PublicKey>>() {
@Override
public Promise<PublicKey> apply(final Tuple2<Us... | [
"private",
"Promise",
"<",
"PublicKey",
">",
"fetchUserPreKey",
"(",
"final",
"int",
"uid",
",",
"final",
"int",
"keyGroupId",
")",
"{",
"return",
"pickUserGroup",
"(",
"uid",
",",
"keyGroupId",
")",
".",
"flatMap",
"(",
"new",
"Function",
"<",
"Tuple2",
"... | Fetching user's random pre key
@param uid User's id
@param keyGroupId User's key group id | [
"Fetching",
"user",
"s",
"random",
"pre",
"key"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/encryption/KeyManagerActor.java#L391-L428 |
113,694 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/encryption/KeyManagerActor.java | KeyManagerActor.onPublicKeysGroupAdded | private void onPublicKeysGroupAdded(int uid, ApiEncryptionKeyGroup keyGroup) {
UserKeys userKeys = getCachedUserKeys(uid);
if (userKeys == null) {
return;
}
UserKeysGroup validatedKeysGroup = validateUserKeysGroup(uid, keyGroup);
if (validatedKeysGroup != null) {
... | java | private void onPublicKeysGroupAdded(int uid, ApiEncryptionKeyGroup keyGroup) {
UserKeys userKeys = getCachedUserKeys(uid);
if (userKeys == null) {
return;
}
UserKeysGroup validatedKeysGroup = validateUserKeysGroup(uid, keyGroup);
if (validatedKeysGroup != null) {
... | [
"private",
"void",
"onPublicKeysGroupAdded",
"(",
"int",
"uid",
",",
"ApiEncryptionKeyGroup",
"keyGroup",
")",
"{",
"UserKeys",
"userKeys",
"=",
"getCachedUserKeys",
"(",
"uid",
")",
";",
"if",
"(",
"userKeys",
"==",
"null",
")",
"{",
"return",
";",
"}",
"Us... | Handler for adding new key group
@param uid User's id
@param keyGroup Added key group | [
"Handler",
"for",
"adding",
"new",
"key",
"group"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/encryption/KeyManagerActor.java#L440-L452 |
113,695 | actorapp/actor-platform | actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/encryption/KeyManagerActor.java | KeyManagerActor.onPublicKeysGroupRemoved | private void onPublicKeysGroupRemoved(int uid, int keyGroupId) {
UserKeys userKeys = getCachedUserKeys(uid);
if (userKeys == null) {
return;
}
UserKeys updatedUserKeys = userKeys.removeUserKeyGroup(keyGroupId);
cacheUserKeys(updatedUserKeys);
context().getEnc... | java | private void onPublicKeysGroupRemoved(int uid, int keyGroupId) {
UserKeys userKeys = getCachedUserKeys(uid);
if (userKeys == null) {
return;
}
UserKeys updatedUserKeys = userKeys.removeUserKeyGroup(keyGroupId);
cacheUserKeys(updatedUserKeys);
context().getEnc... | [
"private",
"void",
"onPublicKeysGroupRemoved",
"(",
"int",
"uid",
",",
"int",
"keyGroupId",
")",
"{",
"UserKeys",
"userKeys",
"=",
"getCachedUserKeys",
"(",
"uid",
")",
";",
"if",
"(",
"userKeys",
"==",
"null",
")",
"{",
"return",
";",
"}",
"UserKeys",
"up... | Handler for removing key group
@param uid User's id
@param keyGroupId Removed key group id | [
"Handler",
"for",
"removing",
"key",
"group"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/modules/encryption/KeyManagerActor.java#L460-L470 |
113,696 | actorapp/actor-platform | actor-sdk/sdk-core-clc/app-clc/src/main/java/im/actor/sdk/ClcMessenger.java | ClcMessenger.clearPref | public void clearPref() {
try {
((ClcJavaPreferenceStorage) modules.getPreferences()).getPref().clear();
} catch (BackingStoreException e) {
logger.error("Cannot clear preferences", e);
}
} | java | public void clearPref() {
try {
((ClcJavaPreferenceStorage) modules.getPreferences()).getPref().clear();
} catch (BackingStoreException e) {
logger.error("Cannot clear preferences", e);
}
} | [
"public",
"void",
"clearPref",
"(",
")",
"{",
"try",
"{",
"(",
"(",
"ClcJavaPreferenceStorage",
")",
"modules",
".",
"getPreferences",
"(",
")",
")",
".",
"getPref",
"(",
")",
".",
"clear",
"(",
")",
";",
"}",
"catch",
"(",
"BackingStoreException",
"e",
... | clear java preferences | [
"clear",
"java",
"preferences"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core-clc/app-clc/src/main/java/im/actor/sdk/ClcMessenger.java#L64-L70 |
113,697 | actorapp/actor-platform | actor-sdk/sdk-core-android/android-sdk/src/main/java/im/actor/sdk/util/images/ops/ImageLoading.java | ImageLoading.loadBitmap | public static Bitmap loadBitmap(Uri uri, Context context) throws ImageLoadException {
return loadBitmap(new UriSource(uri, context));
} | java | public static Bitmap loadBitmap(Uri uri, Context context) throws ImageLoadException {
return loadBitmap(new UriSource(uri, context));
} | [
"public",
"static",
"Bitmap",
"loadBitmap",
"(",
"Uri",
"uri",
",",
"Context",
"context",
")",
"throws",
"ImageLoadException",
"{",
"return",
"loadBitmap",
"(",
"new",
"UriSource",
"(",
"uri",
",",
"context",
")",
")",
";",
"}"
] | Loading bitmap without any modifications
@param uri content uri for bitmap
@param context Application Context
@return loaded bitmap (always not null)
@throws ImageLoadException if it is unable to load file | [
"Loading",
"bitmap",
"without",
"any",
"modifications"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core-android/android-sdk/src/main/java/im/actor/sdk/util/images/ops/ImageLoading.java#L49-L51 |
113,698 | actorapp/actor-platform | actor-sdk/sdk-core-android/android-sdk/src/main/java/im/actor/sdk/util/images/ops/ImageLoading.java | ImageLoading.loadBitmapOptimized | public static Bitmap loadBitmapOptimized(Uri uri, Context context) throws ImageLoadException {
return loadBitmapOptimized(uri, context, MAX_PIXELS);
} | java | public static Bitmap loadBitmapOptimized(Uri uri, Context context) throws ImageLoadException {
return loadBitmapOptimized(uri, context, MAX_PIXELS);
} | [
"public",
"static",
"Bitmap",
"loadBitmapOptimized",
"(",
"Uri",
"uri",
",",
"Context",
"context",
")",
"throws",
"ImageLoadException",
"{",
"return",
"loadBitmapOptimized",
"(",
"uri",
",",
"context",
",",
"MAX_PIXELS",
")",
";",
"}"
] | Loading bitmap with optimized loaded size less than 1.4 MPX
@param uri content uri for bitmap
@param context Application Context
@return loaded bitmap (always not null)
@throws ImageLoadException if it is unable to load file | [
"Loading",
"bitmap",
"with",
"optimized",
"loaded",
"size",
"less",
"than",
"1",
".",
"4",
"MPX"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core-android/android-sdk/src/main/java/im/actor/sdk/util/images/ops/ImageLoading.java#L97-L99 |
113,699 | actorapp/actor-platform | actor-sdk/sdk-core-android/android-sdk/src/main/java/im/actor/sdk/util/images/ops/ImageLoading.java | ImageLoading.save | public static byte[] save(Bitmap src) throws ImageSaveException {
return save(src, Bitmap.CompressFormat.JPEG, JPEG_QUALITY);
} | java | public static byte[] save(Bitmap src) throws ImageSaveException {
return save(src, Bitmap.CompressFormat.JPEG, JPEG_QUALITY);
} | [
"public",
"static",
"byte",
"[",
"]",
"save",
"(",
"Bitmap",
"src",
")",
"throws",
"ImageSaveException",
"{",
"return",
"save",
"(",
"src",
",",
"Bitmap",
".",
"CompressFormat",
".",
"JPEG",
",",
"JPEG_QUALITY",
")",
";",
"}"
] | Saving image in jpeg to byte array with quality 80
@param src source image
@return saved data
@throws ImageSaveException if it is unable to save image | [
"Saving",
"image",
"in",
"jpeg",
"to",
"byte",
"array",
"with",
"quality",
"80"
] | 5123c1584757c6eeea0ed2a0e7e043629871a0c6 | https://github.com/actorapp/actor-platform/blob/5123c1584757c6eeea0ed2a0e7e043629871a0c6/actor-sdk/sdk-core-android/android-sdk/src/main/java/im/actor/sdk/util/images/ops/ImageLoading.java#L243-L245 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.